5c7bc011cd04fa43de2a6c5fd5fdc8e3a64ffb44
[gnulib.git] / ChangeLog
1 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2
3         argmatch-tests, exclude_tests: use _Noreturn
4         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5         Remove.
6         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
7
8         stdlib: use _Noreturn
9         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
10         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11         * modules/stdlib (Depends-on): Add _Noreturn.
12         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
13
14         stdnoreturn-tests: new module
15         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
16
17         stdnoreturn: new module
18         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
19         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
20
21         _Noreturn-tests: new module
22         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
23
24         _Noreturn: new module
25         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
26         New section, mentioning it.
27         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
28
29         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
30
31 2011-07-11  Eric Blake  <eblake@redhat.com>
32
33         ffs: new module
34         * modules/ffs: New file.
35         * m4/ffs.m4: Likewise.
36         * lib/ffs.c: Likewise.
37         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
38         * modules/strings (Makefile.am): Substitute witness.
39         (Depends-on): Add c++defs.
40         * lib/strings.in.h (ffs): Declare.
41         * modules/ffs-tests: New test file.
42         * tests/test-ffs.c: Test new module.
43         * MODULES.html.sh (Integer arithmetic functions): Mention it.
44         * doc/posix-functions/ffs.texi (ffs): Likewise.
45
46         regex: avoid compiler warning
47         * lib/regex.c (includes): Include <strings.h>, for use of
48         strcasecmp in regcomp.c.
49         Reported by Joachim Schmitz.
50
51 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52
53         stdint: respect system's intmax_t if INTMAX_MAX
54         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
55         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
56         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
57         long but int64_t is long long, and where we will clash with the
58         system intmax_t if we override it.  See
59         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
60         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
61         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
62         similarly for UINTMAX_C.
63
64 2011-07-08  Bruno Haible  <bruno@clisp.org>
65
66         pthread_sigmask tests: Avoid a compiler warning.
67         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
68         non-zero.
69
70         sigprocmask tests: A better way to avoid a compiler warning.
71         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
72         (main): Complain if system() returns non-zero.
73         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
74
75 2011-07-08  Bruno Haible  <bruno@clisp.org>
76
77         pthread_sigmask: Work around IRIX bug.
78         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
79         bug.
80         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
81         there may be unblocked pending signals.
82         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
83
84 2011-07-08  Bruno Haible  <bruno@clisp.org>
85
86         pthread_sigmask: Work around Cygwin bug.
87         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
88         bug.
89         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
90         the system's pthread_sigmask function.
91         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
92
93 2011-07-08  Bruno Haible  <bruno@clisp.org>
94
95         pthread_sigmask: Work around bug in single-threaded implementation.
96         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
97         FreeBSD, HP-UX, Solaris bug.
98         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
99         * lib/pthread_sigmask.c: Include <stddef.h>.
100         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
101         the system's pthread_sigmask function.
102         * modules/pthread_sigmask (configure.ac): Invoke
103         gl_PREREQ_PTHREAD_SIGMASK.
104         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
105         HP-UX, Solaris.
106
107 2011-07-08  Eric Blake  <eblake@redhat.com>
108
109         test-sigprocmask: avoid compiler warning
110         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
111         * tests/test-sigprocmask.c (main): Use it to silence warning.
112         Reported by Jim Meyering.
113
114         test-snprintf: avoid compiler warning
115         * tests/test-snprintf.c (main): Avoid shadowed declaration.
116         * tests/test-vsnprintf.c (main): Likewise.
117         Reported by Jim Meyering.
118
119 2011-07-08  Bruno Haible  <bruno@clisp.org>
120
121         Tests for module 'pthread_sigmask'.
122         * modules/pthread_sigmask-tests: New file.
123         * tests/test-pthread_sigmask1.c: New file, based on
124         tests/test-sigprocmask.c.
125         * tests/test-pthread_sigmask2.c: New file.
126
127 2011-07-08  Jim Meyering  <meyering@redhat.com>
128
129         test-getopt.h: avoid warning about an unused variable
130         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
131
132 2011-07-07  Jim Meyering  <meyering@redhat.com>
133
134         maint: reduce list of files exempt from sc_prohibit_leading_TABs
135         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
136         now that it no longer contains leading TABs.
137         Remove unused "url=FIXME" statement.
138
139 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
140
141         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
142         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
143         When gl_THREADLIB is not in use, assume that the POSIX sematics
144         are desired.  This is better for Emacs, which uses POSIX semantics
145         on GNUish and/or POSIXish platforms, and does not use threads at
146         all otherwise.
147
148         pthread_sigmask: fix typo when testing for libraries
149         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
150         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
151
152 2011-07-08  Eric Blake  <eblake@redhat.com>
153
154         fts: introduce FTS_NOATIME
155         * lib/fts_.h (FTS_NOATIME): New bit flag.
156         (FTS_OPTIONMASK): Adjust.
157         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
158         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
159
160 2011-07-08  Bruno Haible  <bruno@clisp.org>
161
162         Tests for module 'thread'.
163         * modules/thread-tests: New file.
164         * tests/test-thread_self.c: New file.
165         * tests/test-thread_create.cc: New file.
166
167 2011-07-08  Bruno Haible  <bruno@clisp.org>
168
169         thread: Avoid gcc warnings when using gl_thread_self().
170         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
171         'void *'.
172         (gl_thread_self_pointer): Update.
173
174 2011-07-07  Bruno Haible  <bruno@clisp.org>
175
176         signal-c++-tests: Check declaration of pthread_sigmask.
177         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
178         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
179         $(LIB_PTHREAD_SIGMASK).
180
181 2011-07-07  Bruno Haible  <bruno@clisp.org>
182
183         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
184         * lib/signal.in.h (pthread_sigmask): Override if
185         REPLACE_PTHREAD_SIGMASK is 1.
186         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
187         REPLACE_PTHREAD_SIGMASK.
188         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
189         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
190         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
191         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
192         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
193
194 2011-07-07  Bruno Haible  <bruno@clisp.org>
195
196         pthread_sigmask: Ensure declaration in <signal.h>.
197         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
198         include <pthread.h>.
199         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
200         problem.
201
202 2011-07-07  Bruno Haible  <bruno@clisp.org>
203
204         pthread_sigmask: Document the module.
205         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
206
207 2011-07-07  Bruno Haible  <bruno@clisp.org>
208
209         pthread_sigmask: Follow gnulib conventions.
210         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
211         gl_PTHREAD_SIGMASK.
212         * modules/pthread_sigmask (configure.ac): Update.
213
214 2011-07-07  Bruno Haible  <bruno@clisp.org>
215
216         pthread_sigmask: Make declaration C++ safe.
217         * lib/signal.in.h: In two special conditions, just do an #include_next.
218         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
219         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
220         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
221         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
222         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
223         not REPLACE_PTHREAD_MASK.
224         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
225         not REPLACE_PTHREAD_MASK.
226         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
227
228 2011-07-07  Bruno Haible  <bruno@clisp.org>
229
230         pthread_sigmask: Fix return value.
231         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
232         * lib/pthread_sigmask.c: New file.
233         * modules/pthread_sigmask (Files): Add it.
234         (configure.ac): Invoke AC_LIBOBJ.
235
236 2011-07-07  Eric Blake  <eblake@redhat.com>
237
238         getopt: more portable argv creation
239         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
240         const, use char arrays rather than strings.
241         Suggested by Paul Eggert.
242
243 2011-07-07  Bruno Haible  <bruno@clisp.org>
244
245         Tests for module 'sigprocmask'.
246         * modules/sigprocmask-tests: New file.
247         * tests/test-sigprocmask.c: New file.
248
249 2011-07-07  Bruno Haible  <bruno@clisp.org>
250
251         float tests: Tweak.
252         * tests/test-float.c (main): Tweak skip message.
253
254 2011-07-07  Eric Blake  <eblake@redhat.com>
255
256         getopt: avoid compiler warning during configure
257         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
258         assigning string literals to non-const pointer.
259
260         getopt-gnu: avoid crash in glibc getopt
261         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
262         * tests/test-getopt.h (test_getopt): Enhance test.
263         * tests/test-getopt_long.h (test_getopt_long): Likewise.
264         * doc/posix-functions/getopt.texi (getopt): Document it.
265         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
266         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
267         Likewise.
268
269 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
270
271         getopt: handle W; without long options in getopt [BZ #12922]
272         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
273         but no long options are defined, just return 'W'.
274
275 2011-07-07  Bruno Haible  <bruno@clisp.org>
276
277         Avoid literal tabs.
278         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
279         variable containing a tab instead of a literal tab.
280         Reported by Jim Meyering.
281
282 2011-07-07  Bruno Haible  <bruno@clisp.org>
283
284         Comments.
285         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
286
287 2011-07-06  Bruno Haible  <bruno@clisp.org>
288
289         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
290         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
291         <winsock2.h>.
292         (rpl_fd_isset, FD_ISSET): New definitions, copied from
293         lib/sys_socket.in.h.
294         (close, gethostname): Hide declarations from <winsock2.h>.
295         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
296         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
297         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
298         (select): Don't override if gnulib's <sys/select.h> was already
299         included.
300         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
301         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
302         setsockopt, shutdown, select): Tweak indentation.
303
304 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
305
306         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
307         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
308         in an application that does not use the sys_select module.
309
310 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
311
312         poll: do not return 0 on timeout=-1
313         * lib/poll.c: Loop with yield if no events occured
314
315 2011-07-06  Eric Blake  <eblake@redhat.com>
316
317         pthread_sigmask: always replace when not using pthread
318         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
319         replacement when using some threading other than pthread.  Fix
320         logic bug.
321
322 2011-07-06  Bruno Haible  <bruno@clisp.org>
323
324         Comments.
325         * m4/printf.m4: Update comments about mingw.
326
327 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
328
329         sys_select: define sigset_t more portably
330         * lib/sys_select.in.h: Always include <sys/types.h>, since
331         we now need sigset_t and mingw defines it there.
332         Include <signal.h> before split inclusion guard, to avoid
333         mishaps on Solaris, whose <signal.h> eventually includes us.
334         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
335         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
336         which come from ...
337         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
338         gl_CHECK_TYPE_SIGSET_T.
339         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
340         does the real work.
341         * modules/sys_select (Depends-on): Add 'signal'.
342
343         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
344         Suggested by Bruno Haible.
345
346         pselect: Use pthread_sigmask, not sigprocmask.
347         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
348         multithreaded apps better than sigprocmask does.
349         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
350         sigprocmask directly.
351
352 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
353
354         * lib/pselect.c (pselect): Use plain name, without "rpl_".
355         Don't #undef,  since we don't need any underlying pselect.
356         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
357         (Depends-on): Add select.
358         (Link): Add $(LIBSOCKET).
359         These changes suggested by Bruno Haible.
360
361         pselect: document better
362         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
363         * doc/posix-functions/pselect.texi (pselect): Document new module.
364
365         pthread_sigmask: new module
366         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
367         * doc/posix-functions/pthread_sigmask.texi: Document new module.
368         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
369         This is done only as a macro; I don't know how well that'll
370         work for C++.  Move <sys/types.h> include before the include_next,
371         to avoid mishap on Solaris.
372         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
373         * modules/signal (Makefile.am): Substitute the check's results.
374         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
375
376         test-pselect: new module
377         * modules/pselect-tests, tests/test-pselect.c: New files.
378         * tests/test-select.c, tests/test-sys_select-c++.cc:
379         If TEST_PSELECT is defined, test pselect instead of testing select.
380
381         * tests/test-sys_select.c (sigset_t): Test for it, too.
382         Suggested by Bruno Haible.
383
384 2011-07-05  Eric Blake  <eblake@redhat.com>
385
386         snprintf: guarantee %1$d, for libintl
387         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
388         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
389         * doc/posix-functions/snprintf.texi (snprintf): Update.
390         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
391         * tests/test-snprintf.c (main): Enhance test.
392         * tests/test-vsnprintf.c (main): Likewise.
393
394 2011-07-05  Jim Meyering  <meyering@redhat.com>
395
396         maint: exempt stdio-read.c and stdio-write.c from the cppi check
397         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
398         per Bruno's request, to accommodate this idiom (no space after "#")
399         even when the function is inside an #if block:
400         char *
401         gets (char *s)
402         #undef gets
403         {
404           ...
405         }
406
407 2011-07-04  Jim Meyering  <meyering@redhat.com>
408
409         maint: indent with spaces, not TABs, and add a rule to check this
410         * tests/test-userspec.c: Indent with spaces, not TABs.
411         * tests/test-argp.c: Likewise.
412         * tests/test-c-stack2.sh: Likewise.
413         * tests/test-parse-duration.sh: Likewise
414         * m4/strtod.m4: Likewise.
415         * m4/alloca.m4: Likewise.
416         * m4/pselect.m4: Likewise.
417         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
418
419 2011-07-03  Jim Meyering  <meyering@redhat.com>
420
421         maint.mk: correct omissions in prohibit_argmatch_without_use check
422         This rule would mistakenly report that argmatch.h is included without
423         use even when both the argmatch and invalid_arg macro were used.
424         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
425         of argmatch and invalid_arg.
426
427 2011-07-03  Bruno Haible  <bruno@clisp.org>
428
429         Comments about EINTR.
430         * lib/safe-read.h: Explain the purpose of this module.
431         * lib/safe-write.h: Likewise.
432         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
433         module.
434         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
435         module.
436         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
437
438 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
439
440         xnanosleep: Rewrite to use new dtotimespec module.
441         It has the conversion code that used to be in xnanosleep.
442         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
443         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
444         (TIME_T_MAX): Remove.
445         (xnanosleep): Rewrite in terms of dtotimespec.
446         * modules/xnanosleep (Depends-on): Add dtotimespec.
447         Remove intprops, stdbool.
448
449         timespec-add, timespec-sub: new modules
450         * lib/timespec.h (timespec_add, timespec_sub): New decls.
451         * lib/timespec-add.c, lib/timespec-sub.c:
452         * modules/timespec-add, modules/timespec-sub: New files.
453
454         dtotimespec: new module
455         * lib/timespec.h (dtotimespec): New decl.
456         * lib/dtotimespec.c, modules/dtotimespec: New files.
457
458         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
459
460         pselect: new module
461         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
462         (pselect): New decls.
463         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
464         since the standard pselect decl uses 'restrict'.
465         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
466         HAVE_PSELECT, REPLACE_PSELECT.
467         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
468         HAVE_PSELECT, REPLACE_PSELECT.
469         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
470
471         sys_select: don't depend on sys_socket
472         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
473         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
474         This fix works on GNU and GNU-like platforms, but has not been tested
475         on native Windows.
476         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
477         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
478         gl_HEADER_SYS_SOCKET.
479         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
480         gl_PREREQ_SYS_H_WINSOCK2.
481
482 2011-06-29  Eric Blake  <eblake@redhat.com>
483
484         pipe2: fix C89 compile problem
485         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
486         Reported by Bruno Haible.
487
488         pipe, pipe2: don't corrupt fd on error
489         * lib/pipe.c (pipe): Leave fd unchanged on error.
490         * lib/pipe2.c (pipe2): Likewise.
491         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
492         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
493
494 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
495
496         mmap-anon: do not use regular expressions inadvertently
497         * m4/mmap-anon.m4: Remove trailing period from strings sought
498         in the output.
499
500 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
501
502         nanosleep: fix integer overflow problem
503         * lib/nanosleep.c (my_usleep): Don't assume signed integer
504         arithmetic wraps around on overflow.
505
506         nanosleep: simplify carrying
507         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
508         first call to the underyling nanosleep, not for the last one.
509         This doesn't fix any bugs, but it simplifies the computation of
510         the remaining delay.  Found while auditing integer overflow issues.
511
512         dup2: remove test for existence of fcntl
513         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
514         "#if HAVE_FCNTL", in the configure-time test program.
515         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
516         and therefore speeds up "configure" a bit.  Found while
517         adding the dup2 module to Emacs.
518
519 2011-06-24  Eric Blake  <eblake@redhat.com>
520
521         maint.mk: enhance useless header checks
522         * top/maint.mk (_sc_header_without_use): Check both include
523         styles.
524         (sc_prohibit_assert_without_use)
525         (sc_prohibit_close_stream_without_use)
526         (sc_prohibit_getopt_without_use)
527         (sc_prohibit_quotearg_without_use)
528         (sc_prohibit_quote_without_use)
529         (sc_prohibit_long_options_without_use)
530         (sc_prohibit_inttostr_without_use)
531         (sc_prohibit_ignore_value_without_use)
532         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
533         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
534         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
535         (sc_prohibit_hash_pjw_without_use)
536         (sc_prohibit_safe_read_without_use)
537         (sc_prohibit_argmatch_without_use)
538         (sc_prohibit_canonicalize_without_use)
539         (sc_prohibit_root_dev_ino_without_use)
540         (sc_prohibit_openat_without_use)
541         (sc_prohibit_c_ctype_without_use)
542         (sc_prohibit_signal_without_use)
543         (sc_prohibit_stdio--_without_use)
544         (sc_prohibit_stdio-safer_without_use)
545         (sc_prohibit_strings_without_use)
546         (sc_prohibit_intprops_without_use)
547         (sc_prohibit_stddef_without_use)
548         (sc_prohibit_xfreopen_without_use): Update clients.
549
550 2011-06-24  Jim Meyering  <meyering@redhat.com>
551
552         syntax-check: keep one maint.mk rule in sync with its header
553         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
554         of the bug Eric has just fixed, with today's commit 25e4c2ec.
555         I prefer to avoid temporary files here, so use <(...), but that
556         is not supported by /bin/sh, so...
557         (SHELL): Define to /bin/bash.
558
559 2011-06-24  Eric Blake  <eblake@redhat.com>
560
561         maint.mk: update sc_prohibit_intprops_without_use
562         * top/maint.mk (_intprops_names): Match recent changes.
563
564 2011-06-24  Bruno Haible  <bruno@clisp.org>
565
566         strerror-override: No-op tweak.
567         * lib/strerror-override.h (strerror_override): Reorder conditions,
568         for consistency with lib/strerror-override.c.
569
570 2011-06-23  Eric Blake  <eblake@redhat.com>
571
572         maint.mk: test further PATH_MAX issues
573         * top/maint.mk (sc_prohibit_path_max_array): Rename...
574         (sc_prohibit_path_max_allocation): ...and also test alloca.
575         Suggested by Jim Meyering.
576
577 2011-06-22  Eric Blake  <eblake@redhat.com>
578
579         maint.mk: add syntax-check to avoid char[PATH_MAX]
580         * top/maint.mk (sc_prohibit_path_max_array): New rule.
581
582         stat: be robust to PATH_MAX definition
583         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
584         * modules/stat (Depends-on): Add verify.
585
586         link: work around IRIX bug
587         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
588         * lib/link.c (rpl_link): Work around it.
589         * tests/test-link.h (test_link): Enhance test.
590         * doc/posix-functions/link.texi (link): Document the bug.
591
592         getopt: silence clang warning
593         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
594         dereference.
595         Reported by Gustavo Martin Domato.
596
597 2011-06-22  Jim Meyering  <meyering@redhat.com>
598
599         bootstrap: do not insert a blank line into each .gitignore file
600         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
601
602 2011-06-21  Eric Blake  <eblake@redhat.com>
603
604         perror: test for output mismatch
605         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
606         perror on IRIX.
607
608         strerror_r: fix OpenBSD behavior on out-of-range
609         * lib/strerror_r.c (strerror_r): Always use maximal string.
610         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
611
612         strerror_r: fix OpenBSD behavior on 0
613         * lib/strerror-override.c (strerror_override): Also override 0
614         when needed.
615         * lib/strerror-override.h (strerror_override): Likewise.
616         * lib/strerror.c (strerror): Simplify, now that 0 override is done
617         earlier.
618         * lib/strerror_r.c (strerror_r): Likewise.
619         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
620         behavior...
621         (gl_FUNC_STRERROR_0): ...into new macro.
622         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
623         is overridden.
624         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
625         * modules/strerror-override (Files): Add strerror.m4.
626         (configure.ac): Also provide override for 0 when needed.
627         * doc/posix-functions/strerror.texi (strerror): Document this.
628         * doc/posix-functions/perror.texi (perror): Likewise.
629
630         perror: adjust array size
631         * modules/perror (Depends-on): Add strerror-override.
632         * lib/perror.c (perror): Use it to avoid magic number.
633
634         strerror-override: reduce size
635         * lib/strerror-override.c (strerror_override): Use fewer lines.
636
637 2011-06-20  Bruno Haible  <bruno@clisp.org>
638
639         pathmax: Ensure correct value for PATH_MAX on HP-UX.
640         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
641
642 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
643
644         alloca: port to compilers that can optimize like GCC 4.6.0
645         * lib/alloca.c (find_stack_direction): New signature, taken from
646         Autoconf git.  This works with GCC 4.6.0.  This code should never
647         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
648         be used with other compilers that optimize as well as GCC 4.6.0 does.
649         (alloca): Adjust to new signature.
650         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
651         New macro, which patches Autoconf in a similar way.
652
653         c-stack: stop worrying about stack direction
654         * lib/c-stack.c (find_stack_direction): Remove.
655         (segv_handler): Don't worry about stack direction growth, as it's
656         too much of a pain to configure this correctly, given how compilers
657         are optimizing-away our stack-growth detection code.  Instead, assume
658         that any access to just before or just after the stack is OK.
659         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
660         Don't require AC_FUNC_ALLOCA; no longer needed.
661
662 2011-06-20  Eric Blake  <eblake@redhat.com>
663
664         test-stat: don't allocate PATH_MAX bytes
665         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
666         PATH_MAX-sized buffer.
667         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
668         * modules/stat-tests (Depends-on): Likewise.
669         * tests/test-fstatat.c (includes): Drop pathmax.h.
670         * tests/test-stat.c (includes): Likewise.
671         Reported by Bruno Haible.
672
673 2011-06-20  Bruno Haible  <bruno@clisp.org>
674
675         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
676         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
677         * lib/float.c: New file.
678         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
679         REPLACE_FLOAT_LDBL.
680         * modules/float (Files): Add lib/float.c.
681         (configure.ac): Invoke AC_LIBOBJ.
682         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
683
684 2011-06-20  Bruno Haible  <bruno@clisp.org>
685
686         Tests for module 'float'.
687         * modules/float-tests: New file.
688         * tests/test-float.c: New file.
689
690 2011-06-19  Bruno Haible  <bruno@clisp.org>
691
692         isinf: Coding style.
693         * lib/isinf.c: Use GNU coding style.
694
695 2011-06-19  Bruno Haible  <bruno@clisp.org>
696
697         linkat test: Avoid test failure on AIX 7.1.
698         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
699         * tests/test-link.h (test_link): Likewise.
700
701 2011-06-19  Bruno Haible  <bruno@clisp.org>
702
703         pread test: Avoid test failure on OpenBSD 4.9.
704         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
705
706 2011-06-19  Bruno Haible  <bruno@clisp.org>
707
708         sprintf-posix: Fix test failure on AIX 7.1.
709         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
710         * doc/posix-functions/dprintf.texi: Mention limited precision problem
711         on AIX.
712         * doc/posix-functions/fprintf.texi: Likewise.
713         * doc/posix-functions/printf.texi: Likewise.
714         * doc/posix-functions/snprintf.texi: Likewise.
715         * doc/posix-functions/sprintf.texi: Likewise.
716         * doc/posix-functions/vdprintf.texi: Likewise.
717         * doc/posix-functions/vfprintf.texi: Likewise.
718         * doc/posix-functions/vprintf.texi: Likewise.
719         * doc/posix-functions/vsnprintf.texi: Likewise.
720         * doc/posix-functions/vsprintf.texi: Likewise.
721
722 2011-06-19  Bruno Haible  <bruno@clisp.org>
723
724         roundl-ieee: Fix test failure on AIX 7.1.
725         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
726         * doc/posix-functions/roundl.texi: Mention problem with negative
727         arguments.
728
729 2011-06-19  Bruno Haible  <bruno@clisp.org>
730
731         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
732         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
733         * doc/posix-functions/round.texi: Mention problem with negative
734         arguments.
735         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
736
737 2011-06-19  Bruno Haible  <bruno@clisp.org>
738
739         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
740         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
741         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
742         * doc/posix-functions/roundf.texi: Mention problem with negative
743         arguments.
744         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
745
746 2011-06-19  Bruno Haible  <bruno@clisp.org>
747
748         ceilf-ieee: Work around bug on MacOS X 10.5.
749         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
750
751         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
752         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
753         IEEE compliant, avoid compiler optimizations.
754         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
755         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
756         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
757         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
758         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
759         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
760         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
761         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
762         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
763         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
764
765 2011-06-19  Bruno Haible  <bruno@clisp.org>
766
767         ceilf-ieee: Work around bug on AIX 7.1.
768         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
769         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
770
771 2011-06-19  Bruno Haible  <bruno@clisp.org>
772
773         ceil-ieee: Work around bug on AIX 7.1.
774         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
775         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
776
777 2011-06-18  Bruno Haible  <bruno@clisp.org>
778
779         fsync test: Avoid test failure on MacOS X and AIX.
780         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
781         EINVAL.
782
783 2011-06-18  Bruno Haible  <bruno@clisp.org>
784
785         openat, fdopendir tests: Fix link errors.
786         * modules/openat-tests (Depends-on): Add progname.
787         * modules/fdopendir-tests (Depends-on): Likewise.
788         * tests/test-fchownat.c: Include progname.h.
789         (main): Call set_program_name.
790         * tests/test-fstatat.c: Include progname.h.
791         (main): Call set_program_name.
792         * tests/test-mkdirat.c: Include progname.h.
793         (main): Call set_program_name.
794         * tests/test-openat.c: Include progname.h.
795         (main): Call set_program_name.
796         * tests/test-unlinkat.c: Include progname.h.
797         (main): Call set_program_name.
798         * tests/test-fdopendir.c: Include progname.h.
799         (main): Call set_program_name.
800
801 2011-06-18  Bruno Haible  <bruno@clisp.org>
802
803         Doc update.
804         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
805         HP-UX.
806         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
807
808 2011-06-18  Bruno Haible  <bruno@clisp.org>
809
810         getcwd tests: Avoid compilation error on HP-UX 11.31.
811         * modules/getcwd-tests (Depends-on): Add pathmax.
812         * tests/test-getcwd.c: Include pathmax.h.
813
814 2011-06-18  Bruno Haible  <bruno@clisp.org>
815
816         isfinite, isinf: Fix link error on AIX 6 and 7.
817         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
818         needed, also test the macro with a 'float' argument.
819         * m4/isinf.m4 (gl_ISINF): Likewise.
820
821 2011-06-18  Bruno Haible  <bruno@clisp.org>
822
823         getloadavg: Don't clobber LIBS. Regression from previous commit.
824         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
825         AC_CHECK_LIB from here...
826         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
827         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
828         gl_func_getloadavg_done.
829         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
830
831 2011-06-18  Bruno Haible  <bruno@clisp.org>
832
833         clean-temp: Improve documentation.
834         * lib/clean-temp.h: Explain better how to use this module.
835         Reported by John Darrington <john@darrington.wattle.id.au>.
836
837 2011-06-17  Bruno Haible  <bruno@clisp.org>
838
839         pread, pwrite: Avoid cc warning on AIX.
840         * lib/unistd.in.h (pread): Undefine before defining as a macro.
841         (pwrite): Likewise.
842
843 2011-06-17  Bruno Haible  <bruno@clisp.org>
844
845         spawn-pipe tests: Fix link error.
846         * tests/test-spawn-pipe-child.c: Undefine fprintf.
847         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
848
849 2011-06-17  Bruno Haible  <bruno@clisp.org>
850
851         Tests: Remove unnecessary dependency.
852         * modules/canonicalize-tests (Depends-on): Remove progname.
853         * modules/chown-tests (Depends-on): Likewise.
854         * modules/dirname-tests (Depends-on): Likewise.
855         * modules/fdopendir-tests (Depends-on): Likewise.
856         * modules/fdutimensat-tests (Depends-on): Likewise.
857         * modules/hash-tests (Depends-on): Likewise.
858         * modules/lchown-tests (Depends-on): Likewise.
859         * modules/linkat-tests (Depends-on): Likewise.
860         * modules/renameat-tests (Depends-on): Likewise.
861         * modules/spawn-pipe-tests (Depends-on): Likewise.
862         * modules/utimensat-tests (Depends-on): Likewise.
863
864 2011-06-17  Bruno Haible  <bruno@clisp.org>
865
866         spawn-pipe tests: Fix link error.
867         * tests/test-spawn-pipe-child.c: Undefine fflush.
868
869 2011-06-17  Bruno Haible  <bruno@clisp.org>
870
871         Fix tests link errors.
872         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
873         * modules/chown-tests (Makefile.am): Don't link test-chown with
874         LIBINTL.
875         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
876         LIBINTL.
877         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
878         LIBINTL.
879         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
880         LIBINTL.
881
882 2011-06-16  Bruno Haible  <bruno@clisp.org>
883
884         crypto/gc-sha1: Fix recent regression.
885         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
886         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
887
888         crypto/gc-md5: Fix recent regression.
889         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
890
891         crypto/gc-md4: Fix recent regression.
892         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
893         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
894
895         crypto/gc-arctwo: Fix recent regression.
896         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
897         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
898
899         crypto/gc-rijndael: Fix recent regression.
900         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
901         (configure.ac): Invoke AC_LIBOBJ here.
902         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
903         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
904
905         crypto/gc-hmac-sha1: Fix recent regression.
906         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
907         (configure.ac): Invoke AC_LIBOBJ here.
908         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
909         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
910
911         crypto/gc-hmac-md5: Fix recent regression.
912         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
913         (configure.ac): Invoke AC_LIBOBJ here.
914         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
915         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
916
917         crypto/gc-des: Fix recent regression.
918         * modules/crypto/gc-des (Files): Remove m4/des.m4.
919         (configure.ac): Invoke AC_LIBOBJ here.
920         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
921         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
922
923         crypto/gc-arcfour: Fix recent regression.
924         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
925         (configure.ac): Invoke AC_LIBOBJ here.
926         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
927         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
928
929 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
930
931         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
932         After the 2011-05-21 change, this macro requires
933         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
934         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
935
936 2011-06-16  Bruno Haible  <bruno@clisp.org>
937
938         fprintftime: Move AC_LIBOBJ invocations to module description.
939         * m4/fprintftime.m4: Remove file.
940         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
941         (configure.ac): Remove gl_FPRINTFTIME call.
942         (Makefile.am): Augment lib_SOURCES.
943         Reported by Jim Meyering.
944
945 2011-06-16  Bruno Haible  <bruno@clisp.org>
946
947         tmpfile-safer: Finish 2011-05-23 commit.
948         * m4/stdio-safer.m4: Really remove file.
949         Reported by Jim Meyering.
950
951 2011-06-16  Bruno Haible  <bruno@clisp.org>
952
953         syntax-check: Fix typo.
954         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
955         printf-posix.m4.
956         Reported by Jim Meyering.
957
958 2011-06-13  Jim Meyering  <meyering@redhat.com>
959
960         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
961         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
962
963 2011-05-23  Bruno Haible  <bruno@clisp.org>
964
965         yesno: Move AC_LIBOBJ invocations to module description.
966         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
967         * modules/yesno (Makefile.am): Augment lib_SOURCES.
968
969 2011-05-23  Bruno Haible  <bruno@clisp.org>
970
971         xstrtol: Move AC_LIBOBJ invocations to module description.
972         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
973         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
974
975 2011-05-23  Bruno Haible  <bruno@clisp.org>
976
977         xstrtold: Move AC_LIBOBJ invocations to module description.
978         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
979         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
980
981 2011-05-23  Bruno Haible  <bruno@clisp.org>
982
983         xstrtod: Move AC_LIBOBJ invocations to module description.
984         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
985         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
986
987 2011-05-23  Bruno Haible  <bruno@clisp.org>
988
989         xnanosleep: Move AC_LIBOBJ invocations to module description.
990         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
991         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
992
993 2011-05-23  Bruno Haible  <bruno@clisp.org>
994
995         xgetcwd: Move AC_LIBOBJ invocations to module description.
996         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
997         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
998
999 2011-05-23  Bruno Haible  <bruno@clisp.org>
1000
1001         xalloc: Move AC_LIBOBJ invocations to module description.
1002         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
1003         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
1004
1005 2011-05-23  Bruno Haible  <bruno@clisp.org>
1006
1007         write-any-file: Move AC_LIBOBJ invocations to module description.
1008         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
1009         invocation.
1010         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
1011
1012 2011-05-23  Bruno Haible  <bruno@clisp.org>
1013
1014         utimens: Move AC_LIBOBJ invocations to module description.
1015         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
1016         * modules/utimens (Makefile.am): Augment lib_SOURCES.
1017
1018 2011-05-23  Bruno Haible  <bruno@clisp.org>
1019
1020         utimecmp: Move AC_LIBOBJ invocations to module description.
1021         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
1022         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
1023
1024 2011-05-23  Bruno Haible  <bruno@clisp.org>
1025
1026         userspec: Move AC_LIBOBJ invocations to module description.
1027         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
1028         * modules/userspec (Makefile.am): Augment lib_SOURCES.
1029
1030 2011-05-23  Bruno Haible  <bruno@clisp.org>
1031
1032         unlinkdir: Move AC_LIBOBJ invocations to module description.
1033         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
1034         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
1035
1036 2011-05-23  Bruno Haible  <bruno@clisp.org>
1037
1038         unistd-safer: Move AC_LIBOBJ invocations to module description.
1039         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
1040         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
1041
1042 2011-05-23  Bruno Haible  <bruno@clisp.org>
1043
1044         tempname: Move AC_LIBOBJ invocations to module description.
1045         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
1046         * modules/tempname (Makefile.am): Augment lib_SOURCES.
1047
1048 2011-05-23  Bruno Haible  <bruno@clisp.org>
1049
1050         strftime: Move AC_LIBOBJ invocations to module description.
1051         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
1052         * modules/strftime (Makefile.am): Augment lib_SOURCES.
1053
1054 2011-05-23  Bruno Haible  <bruno@clisp.org>
1055
1056         stdlib-safer: Move AC_LIBOBJ invocations to module description.
1057         * m4/stdlib-safer.m4: Remove file.
1058         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
1059         (configure.ac): Remove gl_STDLIB_SAFER call.
1060         (Makefile.am): Augment lib_SOURCES.
1061
1062 2011-05-23  Bruno Haible  <bruno@clisp.org>
1063
1064         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
1065         * m4/stdio-safer.m4: Remove file.
1066         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
1067         (configure.ac): Remove gl_TMPFILE_SAFER call.
1068         (Makefile.am): Augment lib_SOURCES.
1069
1070 2011-05-23  Bruno Haible  <bruno@clisp.org>
1071
1072         popen-safer: Move AC_LIBOBJ invocations to module description.
1073         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
1074         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
1075         (configure.ac): Remove gl_POPEN_SAFER call.
1076         (Makefile.am): Augment lib_SOURCES.
1077
1078 2011-05-23  Bruno Haible  <bruno@clisp.org>
1079
1080         freopen-safer: Move AC_LIBOBJ invocations to module description.
1081         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
1082         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
1083         (configure.ac): Remove gl_FREOPEN_SAFER call.
1084         (Makefile.am): Augment lib_SOURCES.
1085
1086 2011-05-23  Bruno Haible  <bruno@clisp.org>
1087
1088         fopen-safer: Move AC_LIBOBJ invocations to module description.
1089         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
1090         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
1091         (configure.ac): Remove gl_FOPEN_SAFER call.
1092         (Makefile.am): Augment lib_SOURCES.
1093
1094 2011-05-23  Bruno Haible  <bruno@clisp.org>
1095
1096         crypto/sha512: Move AC_LIBOBJ invocations to module description.
1097         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
1098         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
1099
1100 2011-05-23  Bruno Haible  <bruno@clisp.org>
1101
1102         crypto/sha256: Move AC_LIBOBJ invocations to module description.
1103         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
1104         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
1105
1106 2011-05-23  Bruno Haible  <bruno@clisp.org>
1107
1108         crypto/sha1: Move AC_LIBOBJ invocations to module description.
1109         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
1110         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
1111
1112 2011-05-23  Bruno Haible  <bruno@clisp.org>
1113
1114         settime: Move AC_LIBOBJ invocations to module description.
1115         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
1116         * modules/settime (Makefile.am): Augment lib_SOURCES.
1117
1118 2011-05-23  Bruno Haible  <bruno@clisp.org>
1119
1120         savedir: Move AC_LIBOBJ invocations to module description.
1121         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
1122         * modules/savedir (Makefile.am): Augment lib_SOURCES.
1123
1124 2011-05-23  Bruno Haible  <bruno@clisp.org>
1125
1126         save-cwd: Move AC_LIBOBJ invocations to module description.
1127         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
1128         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
1129
1130 2011-05-23  Bruno Haible  <bruno@clisp.org>
1131
1132         same: Move AC_LIBOBJ invocations to module description.
1133         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
1134         * modules/same (Makefile.am): Augment lib_SOURCES.
1135
1136 2011-05-23  Bruno Haible  <bruno@clisp.org>
1137
1138         safe-write: Move AC_LIBOBJ invocations to module description.
1139         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
1140         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
1141         instead of gl_SAFE_WRITE.
1142         (Makefile.am): Augment lib_SOURCES.
1143
1144 2011-05-23  Bruno Haible  <bruno@clisp.org>
1145
1146         safe-read: Move AC_LIBOBJ invocations to module description.
1147         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
1148         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
1149         of gl_SAFE_READ.
1150         (Makefile.am): Augment lib_SOURCES.
1151
1152 2011-05-23  Bruno Haible  <bruno@clisp.org>
1153
1154         safe-alloc: Move AC_LIBOBJ invocations to module description.
1155         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
1156         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
1157
1158 2011-05-23  Bruno Haible  <bruno@clisp.org>
1159
1160         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
1161         * m4/rijndael.m4: Remove file.
1162         * modules/crypto/rijndael (Files): Remove it.
1163         (configure.ac): Remove gl_RIJNDAEL call.
1164         (Makefile.am): Augment lib_SOURCES.
1165
1166 2011-05-23  Bruno Haible  <bruno@clisp.org>
1167
1168         readtokens: Move AC_LIBOBJ invocations to module description.
1169         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
1170         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
1171
1172 2011-05-23  Bruno Haible  <bruno@clisp.org>
1173
1174         read-file: Move AC_LIBOBJ invocations to module description.
1175         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
1176         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
1177         of gl_FUNC_READ_FILE.
1178         (Makefile.am): Augment lib_SOURCES.
1179
1180 2011-05-23  Bruno Haible  <bruno@clisp.org>
1181
1182         quotearg: Move AC_LIBOBJ invocations to module description.
1183         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
1184         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
1185
1186 2011-05-23  Bruno Haible  <bruno@clisp.org>
1187
1188         quote: Move AC_LIBOBJ invocations to module description.
1189         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
1190         * modules/quote (Makefile.am): Augment lib_SOURCES.
1191
1192 2011-05-23  Bruno Haible  <bruno@clisp.org>
1193
1194         posixver: Move AC_LIBOBJ invocations to module description.
1195         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
1196         * modules/posixver (Makefile.am): Augment lib_SOURCES.
1197
1198 2011-05-23  Bruno Haible  <bruno@clisp.org>
1199
1200         posixtm: Move AC_LIBOBJ invocations to module description.
1201         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
1202         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
1203
1204 2011-05-23  Bruno Haible  <bruno@clisp.org>
1205
1206         physmem: Move AC_LIBOBJ invocations to module description.
1207         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
1208         * modules/physmem (Makefile.am): Augment lib_SOURCES.
1209
1210 2011-05-23  Bruno Haible  <bruno@clisp.org>
1211
1212         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
1213         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
1214         invocation.
1215         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
1216
1217 2011-05-23  Bruno Haible  <bruno@clisp.org>
1218
1219         mpsort: Move AC_LIBOBJ invocations to module description.
1220         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
1221         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
1222
1223 2011-05-23  Bruno Haible  <bruno@clisp.org>
1224
1225         modechange: Move AC_LIBOBJ invocations to module description.
1226         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
1227         * modules/modechange (Makefile.am): Augment lib_SOURCES.
1228
1229 2011-05-23  Bruno Haible  <bruno@clisp.org>
1230
1231         mkdir-p: Move AC_LIBOBJ invocations to module description.
1232         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
1233         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
1234
1235 2011-05-23  Bruno Haible  <bruno@clisp.org>
1236
1237         mkancesdirs: Move AC_LIBOBJ invocations to module description.
1238         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
1239         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
1240
1241 2011-05-23  Bruno Haible  <bruno@clisp.org>
1242
1243         mgetgroups: Move AC_LIBOBJ invocations to module description.
1244         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
1245         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
1246
1247 2011-05-23  Bruno Haible  <bruno@clisp.org>
1248
1249         memxor: Move AC_LIBOBJ invocations to module description.
1250         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
1251         * modules/memxor (Makefile.am): Augment lib_SOURCES.
1252
1253 2011-05-23  Bruno Haible  <bruno@clisp.org>
1254
1255         memcoll: Move AC_LIBOBJ invocations to module description.
1256         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
1257         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
1258
1259 2011-05-23  Bruno Haible  <bruno@clisp.org>
1260
1261         memcasecmp: Move AC_LIBOBJ invocations to module description.
1262         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
1263         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
1264
1265 2011-05-23  Bruno Haible  <bruno@clisp.org>
1266
1267         crypto/md5: Move AC_LIBOBJ invocations to module description.
1268         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
1269         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
1270
1271 2011-05-23  Bruno Haible  <bruno@clisp.org>
1272
1273         crypto/md4: Move AC_LIBOBJ invocations to module description.
1274         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
1275         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
1276
1277 2011-05-23  Bruno Haible  <bruno@clisp.org>
1278
1279         crypto/md2: Move AC_LIBOBJ invocations to module description.
1280         * m4/md2.m4: Remove file.
1281         * modules/crypto/md2 (Files): Remove it.
1282         (configure.ac): Remove gl_MD2 call.
1283         (Makefile.am): Augment lib_SOURCES.
1284
1285 2011-05-23  Bruno Haible  <bruno@clisp.org>
1286
1287         long-options: Move AC_LIBOBJ invocations to module description.
1288         * m4/long-options.m4: Remove file.
1289         * modules/long-options (Files): Remove it.
1290         (configure.ac): Remove gl_LONG_OPTIONS call.
1291         (Makefile.am): Augment lib_SOURCES.
1292
1293 2011-05-23  Bruno Haible  <bruno@clisp.org>
1294
1295         i-ring: Move AC_LIBOBJ invocations to module description.
1296         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
1297         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
1298
1299 2011-05-23  Bruno Haible  <bruno@clisp.org>
1300
1301         idcache: Move AC_LIBOBJ invocations to module description.
1302         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
1303         * modules/idcache (Makefile.am): Augment lib_SOURCES.
1304
1305 2011-05-23  Bruno Haible  <bruno@clisp.org>
1306
1307         human: Move AC_LIBOBJ invocations to module description.
1308         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
1309         * modules/human (Makefile.am): Augment lib_SOURCES.
1310
1311 2011-05-23  Bruno Haible  <bruno@clisp.org>
1312
1313         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
1314         * m4/hmac-sha1.m4: Remove file.
1315         * modules/crypto/hmac-sha1 (Files): Remove it.
1316         (configure.ac): Remove gl_HMAC_SHA1 call.
1317         (Makefile.am): Augment lib_SOURCES.
1318
1319 2011-05-23  Bruno Haible  <bruno@clisp.org>
1320
1321         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
1322         * m4/hmac-md5.m4: Remove file.
1323         * modules/crypto/hmac-md5 (Files): Remove it.
1324         (configure.ac): Remove gl_HMAC_MD5 call.
1325         (Makefile.am): Augment lib_SOURCES.
1326
1327 2011-05-23  Bruno Haible  <bruno@clisp.org>
1328
1329         hash: Move AC_LIBOBJ invocations to module description.
1330         * m4/hash.m4: Remove file.
1331         * modules/hash (Files): Remove it.
1332         (configure.ac): Remove gl_HASH call.
1333         (Makefile.am): Augment lib_SOURCES.
1334
1335 2011-05-23  Bruno Haible  <bruno@clisp.org>
1336
1337         hard-locale: Move AC_LIBOBJ invocations to module description.
1338         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
1339         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
1340
1341 2011-05-23  Bruno Haible  <bruno@clisp.org>
1342
1343         getugroups: Move AC_LIBOBJ invocations to module description.
1344         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
1345         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
1346
1347 2011-05-23  Bruno Haible  <bruno@clisp.org>
1348
1349         gettime: Move AC_LIBOBJ invocations to module description.
1350         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
1351         * modules/gettime (Makefile.am): Augment lib_SOURCES.
1352
1353 2011-05-23  Bruno Haible  <bruno@clisp.org>
1354
1355         getndelim2: Move AC_LIBOBJ invocations to module description.
1356         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
1357         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
1358
1359 2011-05-23  Bruno Haible  <bruno@clisp.org>
1360
1361         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
1362         * m4/gc-pbkdf2-sha1.m4: Remove file.
1363         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
1364         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
1365         (Makefile.am): Augment lib_SOURCES.
1366
1367 2011-05-23  Bruno Haible  <bruno@clisp.org>
1368
1369         fts: Move AC_LIBOBJ invocations to module description.
1370         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
1371         * modules/fts (configure.ac): ... to here.
1372
1373 2011-05-23  Bruno Haible  <bruno@clisp.org>
1374
1375         file-type: Move AC_LIBOBJ invocations to module description.
1376         * m4/file-type.m4: Remove file.
1377         * modules/file-type (Files): Remove it.
1378         (configure.ac): Remove gl_FILE_TYPE call.
1379         (Makefile.am): Augment lib_SOURCES.
1380
1381 2011-05-23  Bruno Haible  <bruno@clisp.org>
1382
1383         filenamecat*: Respect rules for use of AC_LIBOBJ.
1384         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
1385         Remove AC_LIBOBJ invocation.
1386         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
1387         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
1388
1389 2011-05-23  Bruno Haible  <bruno@clisp.org>
1390
1391         filemode: Move AC_LIBOBJ invocations to module description.
1392         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
1393         * modules/filemode (Makefile.am): Augment lib_SOURCES.
1394
1395 2011-05-23  Bruno Haible  <bruno@clisp.org>
1396
1397         openat-safer: Move AC_LIBOBJ invocations to module description.
1398         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
1399         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
1400
1401 2011-05-23  Bruno Haible  <bruno@clisp.org>
1402
1403         fcntl-safer: Move AC_LIBOBJ invocations to module description.
1404         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
1405         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
1406
1407 2011-05-23  Bruno Haible  <bruno@clisp.org>
1408
1409         exclude: Move AC_LIBOBJ invocations to module description.
1410         * m4/exclude.m4: Remove file.
1411         * modules/exclude (Files): Remove it.
1412         (configure.ac): Remove gl_EXCLUDE call.
1413         (Makefile.am): Augment lib_SOURCES.
1414
1415 2011-05-23  Bruno Haible  <bruno@clisp.org>
1416
1417         dirname*: Respect rules for use of AC_LIBOBJ.
1418         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
1419         invocations.
1420         * modules/dirname (Makefile.am): Augment lib_SOURCES.
1421         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
1422
1423 2011-05-23  Bruno Haible  <bruno@clisp.org>
1424
1425         dirent-safer: Move AC_LIBOBJ invocations to module description.
1426         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
1427         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
1428
1429 2011-05-23  Bruno Haible  <bruno@clisp.org>
1430
1431         crypto/des: Move AC_LIBOBJ invocations to module description.
1432         * m4/des.m4: Remove file.
1433         * modules/crypto/des (Files): Remove it.
1434         (configure.ac): Remove gl_DES call.
1435         (Makefile.am): Augment lib_SOURCES.
1436
1437 2011-05-23  Bruno Haible  <bruno@clisp.org>
1438
1439         cycle-check: Move AC_LIBOBJ invocations to module description.
1440         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
1441         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
1442
1443 2011-05-23  Bruno Haible  <bruno@clisp.org>
1444
1445         c-strtold: Move AC_LIBOBJ invocations to module description.
1446         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
1447         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
1448
1449 2011-05-23  Bruno Haible  <bruno@clisp.org>
1450
1451         c-strtod: Move AC_LIBOBJ invocations to module description.
1452         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
1453         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
1454
1455 2011-05-23  Bruno Haible  <bruno@clisp.org>
1456
1457         crc: Move AC_LIBOBJ invocations to module description.
1458         * m4/crc.m4: Remove file.
1459         * modules/crc (Files): Remove it.
1460         (configure.ac): Remove gl_CRC call.
1461         (Makefile.am): Augment lib_SOURCES.
1462
1463 2011-05-23  Bruno Haible  <bruno@clisp.org>
1464
1465         close-stream: Move AC_LIBOBJ invocations to module description.
1466         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
1467         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
1468
1469 2011-05-23  Bruno Haible  <bruno@clisp.org>
1470
1471         closeout: Move AC_LIBOBJ invocations to module description.
1472         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
1473         * modules/closeout (Makefile.am): Augment lib_SOURCES.
1474
1475 2011-05-23  Bruno Haible  <bruno@clisp.org>
1476
1477         closein: Move AC_LIBOBJ invocations to module description.
1478         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
1479         * modules/closein (Makefile.am): Augment lib_SOURCES.
1480
1481 2011-05-23  Bruno Haible  <bruno@clisp.org>
1482
1483         cloexec: Move AC_LIBOBJ invocations to module description.
1484         * m4/cloexec.m4: Remove file.
1485         * modules/cloexec (Files): Remove it.
1486         (configure.ac): Remove gl_CLOEXEC call.
1487         (Makefile.am): Augment lib_SOURCES.
1488
1489 2011-05-23  Bruno Haible  <bruno@clisp.org>
1490
1491         check-version: Move AC_LIBOBJ invocations to module description.
1492         * m4/check-version.m4: Remove file.
1493         * modules/check-version (Files): Remove it.
1494         (configure.ac): Remove gl_CHECK_VERSION call.
1495         (Makefile.am): Augment lib_SOURCES.
1496
1497 2011-05-23  Bruno Haible  <bruno@clisp.org>
1498
1499         chdir-safer: Move AC_LIBOBJ invocations to module description.
1500         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
1501         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
1502
1503 2011-05-23  Bruno Haible  <bruno@clisp.org>
1504
1505         canonicalize: Move AC_LIBOBJ invocations to module description.
1506         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
1507         AC_LIBOBJ invocation.
1508         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
1509
1510 2011-05-23  Bruno Haible  <bruno@clisp.org>
1511
1512         canon-host: Move AC_LIBOBJ invocations to module description.
1513         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
1514         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
1515         instead of gl_CANON_HOST.
1516         (Makefile.am): Augment lib_SOURCES.
1517
1518 2011-05-23  Bruno Haible  <bruno@clisp.org>
1519
1520         backupfile: Move AC_LIBOBJ invocations to module description.
1521         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
1522         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
1523
1524 2011-05-23  Bruno Haible  <bruno@clisp.org>
1525
1526         argmatch: Move AC_LIBOBJ invocations to module description.
1527         * m4/argmatch.m4: Remove file.
1528         * modules/argmatch (Files): Remove it.
1529         (configure.ac): Remove gl_ARGMATCH call.
1530         (Makefile.am): Augment lib_SOURCES.
1531
1532 2011-05-23  Bruno Haible  <bruno@clisp.org>
1533
1534         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
1535         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
1536         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
1537
1538 2011-05-23  Bruno Haible  <bruno@clisp.org>
1539
1540         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
1541         * m4/arcfour.m4: Remove file.
1542         * modules/crypto/arcfour (Files): Remove it.
1543         (configure.ac): Remove gl_ARCFOUR call.
1544         (Makefile.am): Augment lib_SOURCES.
1545
1546 2011-05-22  Bruno Haible  <bruno@clisp.org>
1547
1548         write: Move AC_LIBOBJ invocations to module description.
1549         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
1550         * modules/write (configure.ac): ... to here.
1551
1552 2011-05-22  Bruno Haible  <bruno@clisp.org>
1553
1554         wmemset: Move AC_LIBOBJ invocations to module description.
1555         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
1556         here...
1557         * modules/wmemset (configure.ac): ... to here.
1558
1559 2011-05-22  Bruno Haible  <bruno@clisp.org>
1560
1561         wmemmove: Move AC_LIBOBJ invocations to module description.
1562         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
1563         here...
1564         * modules/wmemmove (configure.ac): ... to here.
1565
1566 2011-05-22  Bruno Haible  <bruno@clisp.org>
1567
1568         wmemcpy: Move AC_LIBOBJ invocations to module description.
1569         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
1570         here...
1571         * modules/wmemcpy (configure.ac): ... to here.
1572
1573 2011-05-22  Bruno Haible  <bruno@clisp.org>
1574
1575         wmemcmp: Move AC_LIBOBJ invocations to module description.
1576         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
1577         here...
1578         * modules/wmemcmp (configure.ac): ... to here.
1579
1580 2011-05-22  Bruno Haible  <bruno@clisp.org>
1581
1582         wmemchr: Move AC_LIBOBJ invocations to module description.
1583         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
1584         here...
1585         * modules/wmemchr (configure.ac): ... to here.
1586
1587 2011-05-22  Bruno Haible  <bruno@clisp.org>
1588
1589         wcswidth: Move AC_LIBOBJ invocations to module description.
1590         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
1591         here...
1592         * modules/wcswidth (configure.ac): ... to here.
1593
1594 2011-05-22  Bruno Haible  <bruno@clisp.org>
1595
1596         wcwidth: Respect rules for use of AC_LIBOBJ.
1597         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
1598         invocation from here...
1599         * modules/wcwidth (configure.ac): ... to here.
1600         (Depends-on): Update conditions.
1601
1602 2011-05-22  Bruno Haible  <bruno@clisp.org>
1603
1604         wctype: Move AC_LIBOBJ invocations to module description.
1605         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
1606         invocation from here...
1607         * modules/wctype (configure.ac): ... to here.
1608         (Depends-on): Update conditions.
1609
1610 2011-05-22  Bruno Haible  <bruno@clisp.org>
1611
1612         wctrans: Move AC_LIBOBJ invocations to module description.
1613         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
1614         invocation from here...
1615         * modules/wctrans (configure.ac): ... to here.
1616
1617 2011-05-22  Bruno Haible  <bruno@clisp.org>
1618
1619         wctomb: Move AC_LIBOBJ invocations to module description.
1620         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
1621         invocations from here...
1622         * modules/wctomb (configure.ac): ... to here.
1623
1624 2011-05-22  Bruno Haible  <bruno@clisp.org>
1625
1626         wctob: Move AC_LIBOBJ invocations to module description.
1627         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
1628         gl_PREREQ_WCTOB invocations from here...
1629         * modules/wctob (configure.ac): ... to here.
1630         (Depends-on): Update conditions.
1631
1632 2011-05-22  Bruno Haible  <bruno@clisp.org>
1633
1634         wcsxfrm: Move AC_LIBOBJ invocations to module description.
1635         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
1636         here...
1637         * modules/wcsxfrm (configure.ac): ... to here.
1638
1639 2011-05-22  Bruno Haible  <bruno@clisp.org>
1640
1641         wcstok: Move AC_LIBOBJ invocations to module description.
1642         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
1643         * modules/wcstok (configure.ac): ... to here.
1644
1645 2011-05-22  Bruno Haible  <bruno@clisp.org>
1646
1647         wcsstr: Move AC_LIBOBJ invocations to module description.
1648         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
1649         * modules/wcsstr (configure.ac): ... to here.
1650
1651 2011-05-22  Bruno Haible  <bruno@clisp.org>
1652
1653         wcsspn: Move AC_LIBOBJ invocations to module description.
1654         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
1655         * modules/wcsspn (configure.ac): ... to here.
1656
1657 2011-05-22  Bruno Haible  <bruno@clisp.org>
1658
1659         wcsrtombs: Move AC_LIBOBJ invocations to module description.
1660         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
1661         gl_PREREQ_WCSRTOMBS invocations from here...
1662         * modules/wcsrtombs (configure.ac): ... to here.
1663
1664 2011-05-22  Bruno Haible  <bruno@clisp.org>
1665
1666         wcsrchr: Move AC_LIBOBJ invocations to module description.
1667         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
1668         here...
1669         * modules/wcsrchr (configure.ac): ... to here.
1670
1671 2011-05-22  Bruno Haible  <bruno@clisp.org>
1672
1673         wcspbrk: Move AC_LIBOBJ invocations to module description.
1674         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
1675         here...
1676         * modules/wcspbrk (configure.ac): ... to here.
1677
1678 2011-05-22  Bruno Haible  <bruno@clisp.org>
1679
1680         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
1681         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
1682         gl_PREREQ_WCSNRTOMBS invocations from here...
1683         * modules/wcsnrtombs (configure.ac): ... to here.
1684
1685 2011-05-22  Bruno Haible  <bruno@clisp.org>
1686
1687         wcsnlen: Move AC_LIBOBJ invocations to module description.
1688         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
1689         here...
1690         * modules/wcsnlen (configure.ac): ... to here.
1691
1692 2011-05-22  Bruno Haible  <bruno@clisp.org>
1693
1694         wcsncpy: Move AC_LIBOBJ invocations to module description.
1695         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
1696         here...
1697         * modules/wcsncpy (configure.ac): ... to here.
1698
1699 2011-05-22  Bruno Haible  <bruno@clisp.org>
1700
1701         wcsncmp: Move AC_LIBOBJ invocations to module description.
1702         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
1703         here...
1704         * modules/wcsncmp (configure.ac): ... to here.
1705
1706 2011-05-22  Bruno Haible  <bruno@clisp.org>
1707
1708         wcsncat: Move AC_LIBOBJ invocations to module description.
1709         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
1710         here...
1711         * modules/wcsncat (configure.ac): ... to here.
1712
1713 2011-05-22  Bruno Haible  <bruno@clisp.org>
1714
1715         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
1716         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
1717         from here...
1718         * modules/wcsncasecmp (configure.ac): ... to here.
1719
1720 2011-05-22  Bruno Haible  <bruno@clisp.org>
1721
1722         wcslen: Move AC_LIBOBJ invocations to module description.
1723         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
1724         * modules/wcslen (configure.ac): ... to here.
1725
1726 2011-05-22  Bruno Haible  <bruno@clisp.org>
1727
1728         wcsdup: Move AC_LIBOBJ invocations to module description.
1729         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
1730         * modules/wcsdup (configure.ac): ... to here.
1731
1732 2011-05-22  Bruno Haible  <bruno@clisp.org>
1733
1734         wcscspn: Move AC_LIBOBJ invocations to module description.
1735         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
1736         here...
1737         * modules/wcscspn (configure.ac): ... to here.
1738
1739 2011-05-22  Bruno Haible  <bruno@clisp.org>
1740
1741         wcscpy: Move AC_LIBOBJ invocations to module description.
1742         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
1743         * modules/wcscpy (configure.ac): ... to here.
1744
1745 2011-05-22  Bruno Haible  <bruno@clisp.org>
1746
1747         wcscoll: Move AC_LIBOBJ invocations to module description.
1748         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
1749         here...
1750         * modules/wcscoll (configure.ac): ... to here.
1751
1752 2011-05-22  Bruno Haible  <bruno@clisp.org>
1753
1754         wcscmp: Move AC_LIBOBJ invocations to module description.
1755         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
1756         * modules/wcscmp (configure.ac): ... to here.
1757
1758 2011-05-22  Bruno Haible  <bruno@clisp.org>
1759
1760         wcschr: Move AC_LIBOBJ invocations to module description.
1761         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
1762         * modules/wcschr (configure.ac): ... to here.
1763
1764 2011-05-22  Bruno Haible  <bruno@clisp.org>
1765
1766         wcscat: Move AC_LIBOBJ invocations to module description.
1767         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
1768         * modules/wcscat (configure.ac): ... to here.
1769
1770 2011-05-22  Bruno Haible  <bruno@clisp.org>
1771
1772         wcscasecmp: Move AC_LIBOBJ invocations to module description.
1773         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
1774         here...
1775         * modules/wcscasecmp (configure.ac): ... to here.
1776
1777 2011-05-22  Bruno Haible  <bruno@clisp.org>
1778
1779         wcrtomb: Move AC_LIBOBJ invocations to module description.
1780         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
1781         invocations from here...
1782         * modules/wcrtomb (configure.ac): ... to here.
1783
1784 2011-05-22  Bruno Haible  <bruno@clisp.org>
1785
1786         wcpncpy: Move AC_LIBOBJ invocations to module description.
1787         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
1788         here...
1789         * modules/wcpncpy (configure.ac): ... to here.
1790
1791 2011-05-22  Bruno Haible  <bruno@clisp.org>
1792
1793         wcpcpy: Move AC_LIBOBJ invocations to module description.
1794         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
1795         * modules/wcpcpy (configure.ac): ... to here.
1796
1797 2011-05-22  Bruno Haible  <bruno@clisp.org>
1798
1799         waitpid: Move AC_LIBOBJ invocations to module description.
1800         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
1801         invocation from here...
1802         * modules/waitpid (configure.ac): ... to here.
1803
1804 2011-05-22  Bruno Haible  <bruno@clisp.org>
1805
1806         utimensat: Move AC_LIBOBJ invocations to module description.
1807         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
1808         here...
1809         * modules/utimensat (configure.ac): ... to here.
1810
1811 2011-05-22  Bruno Haible  <bruno@clisp.org>
1812
1813         usleep: Move AC_LIBOBJ invocations to module description.
1814         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
1815         here...
1816         * modules/usleep (configure.ac): ... to here.
1817
1818 2011-05-22  Bruno Haible  <bruno@clisp.org>
1819
1820         unlockpt: Move AC_LIBOBJ invocations to module description.
1821         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
1822         gl_PREREQ_UNLOCKPT invocations from here...
1823         * modules/unlockpt (configure.ac): ... to here.
1824
1825 2011-05-22  Bruno Haible  <bruno@clisp.org>
1826
1827         unlink: Respect rules for use of AC_LIBOBJ.
1828         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
1829         * modules/unlink (configure.ac): ... to here.
1830
1831 2011-05-22  Bruno Haible  <bruno@clisp.org>
1832
1833         uname: Move AC_LIBOBJ invocations to module description.
1834         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
1835         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
1836         here...
1837         * modules/uname (configure.ac): ... to here.
1838
1839 2011-05-22  Bruno Haible  <bruno@clisp.org>
1840
1841         ttyname_r: Move AC_LIBOBJ invocations to module description.
1842         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
1843         gl_PREREQ_TTYNAME_R invocations from here...
1844         * modules/ttyname_r (configure.ac): ... to here.
1845
1846 2011-05-22  Bruno Haible  <bruno@clisp.org>
1847
1848         tsearch: Move AC_LIBOBJ invocations to module description.
1849         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
1850         invocations from here...
1851         * modules/tsearch (configure.ac): ... to here.
1852
1853 2011-05-22  Bruno Haible  <bruno@clisp.org>
1854
1855         towctrans: Move AC_LIBOBJ invocations to module description.
1856         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
1857         AC_LIBOBJ invocation from here...
1858         * modules/towctrans (configure.ac): ... to here.
1859
1860 2011-05-22  Bruno Haible  <bruno@clisp.org>
1861
1862         tmpfile: Move AC_LIBOBJ invocations to module description.
1863         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
1864         invocations from here...
1865         * modules/tmpfile (configure.ac): ... to here.
1866
1867 2011-05-22  Bruno Haible  <bruno@clisp.org>
1868
1869         times: Move AC_LIBOBJ invocations to module description.
1870         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
1871         * modules/times (configure.ac): ... to here.
1872
1873 2011-05-22  Bruno Haible  <bruno@clisp.org>
1874
1875         time_r: Move AC_LIBOBJ invocations to module description.
1876         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
1877         invocations from here...
1878         * modules/time_r (configure.ac): ... to here.
1879
1880 2011-05-22  Bruno Haible  <bruno@clisp.org>
1881
1882         timegm: Move AC_LIBOBJ invocations to module description.
1883         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
1884         invocations from here...
1885         * modules/timegm (configure.ac): ... to here.
1886
1887 2011-05-22  Bruno Haible  <bruno@clisp.org>
1888
1889         tcgetsid: Move AC_LIBOBJ invocations to module description.
1890         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
1891         and gl_PREREQ_TCGETSID invocations from here...
1892         * modules/tcgetsid (configure.ac): ... to here.
1893         (Depends-on): Update conditions.
1894
1895 2011-05-22  Bruno Haible  <bruno@clisp.org>
1896
1897         symlinkat: Move AC_LIBOBJ invocations to module description.
1898         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
1899         here...
1900         * modules/symlinkat (configure.ac): ... to here.
1901
1902 2011-05-22  Bruno Haible  <bruno@clisp.org>
1903
1904         symlink: Move AC_LIBOBJ invocations to module description.
1905         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
1906         here...
1907         * modules/symlink (configure.ac): ... to here.
1908
1909 2011-05-22  Bruno Haible  <bruno@clisp.org>
1910
1911         strverscmp: Move AC_LIBOBJ invocations to module description.
1912         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
1913         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
1914         from here...
1915         * modules/strverscmp (configure.ac): ... to here.
1916
1917 2011-05-22  Bruno Haible  <bruno@clisp.org>
1918
1919         strtok_r: Move AC_LIBOBJ invocations to module description.
1920         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
1921         and gl_PREREQ_STRTOK_R invocations from here...
1922         * modules/strtok_r (configure.ac): ... to here.
1923         (Depends-on): Update conditions.
1924
1925 2011-05-22  Bruno Haible  <bruno@clisp.org>
1926
1927         strtoumax: Move AC_LIBOBJ invocations to module description.
1928         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
1929         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
1930         from here...
1931         * modules/strtoumax (configure.ac): ... to here.
1932
1933 2011-05-22  Bruno Haible  <bruno@clisp.org>
1934
1935         strtoimax: Move AC_LIBOBJ invocations to module description.
1936         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
1937         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
1938         from here...
1939         * modules/strtoimax (configure.ac): ... to here.
1940
1941 2011-05-22  Bruno Haible  <bruno@clisp.org>
1942
1943         strtoull: Move AC_LIBOBJ invocations to module description.
1944         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
1945         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
1946         from here...
1947         * modules/strtoull (configure.ac): ... to here.
1948
1949 2011-05-22  Bruno Haible  <bruno@clisp.org>
1950
1951         strtoll: Move AC_LIBOBJ invocations to module description.
1952         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
1953         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
1954         here...
1955         * modules/strtoll (configure.ac): ... to here.
1956
1957 2011-05-22  Bruno Haible  <bruno@clisp.org>
1958
1959         strtoul: Move AC_LIBOBJ invocations to module description.
1960         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
1961         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
1962         * modules/strtoul (configure.ac): ... to here.
1963
1964 2011-05-22  Bruno Haible  <bruno@clisp.org>
1965
1966         strtol: Move AC_LIBOBJ invocations to module description.
1967         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
1968         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
1969         * modules/strtol (configure.ac): ... to here.
1970
1971 2011-05-22  Bruno Haible  <bruno@clisp.org>
1972
1973         strtod: Move AC_LIBOBJ invocations to module description.
1974         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
1975         invocations from here...
1976         * modules/strtod (configure.ac): ... to here.
1977
1978 2011-05-22  Bruno Haible  <bruno@clisp.org>
1979
1980         strstr*: Move AC_LIBOBJ invocations to module description.
1981         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
1982         invocations from here...
1983         * modules/strstr-simple (configure.ac): ... to here.
1984         * modules/strstr (configure.ac): ... and here.
1985
1986 2011-05-22  Bruno Haible  <bruno@clisp.org>
1987
1988         strsignal: Move AC_LIBOBJ invocations to module description.
1989         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
1990         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
1991         * modules/strsignal (configure.ac): ... to here.
1992         (Depends-on): Update conditions.
1993
1994 2011-05-22  Bruno Haible  <bruno@clisp.org>
1995
1996         strsep: Move AC_LIBOBJ invocations to module description.
1997         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
1998         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
1999         here...
2000         * modules/strsep (configure.ac): ... to here.
2001
2002 2011-05-22  Bruno Haible  <bruno@clisp.org>
2003
2004         strptime: Move AC_LIBOBJ invocations to module description.
2005         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
2006         gl_PREREQ_STRPTIME invocations from here...
2007         * modules/strptime (configure.ac): ... to here.
2008
2009 2011-05-22  Bruno Haible  <bruno@clisp.org>
2010
2011         strpbrk: Move AC_LIBOBJ invocations to module description.
2012         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
2013         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
2014         here...
2015         * modules/strpbrk (configure.ac): ... to here.
2016
2017 2011-05-22  Bruno Haible  <bruno@clisp.org>
2018
2019         strnlen: Move AC_LIBOBJ invocations to module description.
2020         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
2021         invocations from here...
2022         * modules/strnlen (configure.ac): ... to here.
2023
2024 2011-05-22  Bruno Haible  <bruno@clisp.org>
2025
2026         strndup: Move AC_LIBOBJ invocations to module description.
2027         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
2028         invocations from here...
2029         * modules/strndup (configure.ac): ... to here.
2030         (Depends-on): Update conditions.
2031
2032 2011-05-22  Bruno Haible  <bruno@clisp.org>
2033
2034         strncat: Move AC_LIBOBJ invocations to module description.
2035         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
2036         invocations from here...
2037         * modules/strncat (configure.ac): ... to here.
2038
2039 2011-05-22  Bruno Haible  <bruno@clisp.org>
2040
2041         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
2042         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
2043         invocations from here...
2044         * modules/strdup (configure.ac): ... to here.
2045         * modules/strdup-posix (configure.ac): ... and here.
2046
2047 2011-05-22  Bruno Haible  <bruno@clisp.org>
2048
2049         strcspn: Move AC_LIBOBJ invocations to module description.
2050         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
2051         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
2052         here...
2053         * modules/strcspn (configure.ac): ... to here.
2054
2055 2011-05-22  Bruno Haible  <bruno@clisp.org>
2056
2057         strchrnul: Move AC_LIBOBJ invocations to module description.
2058         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
2059         gl_PREREQ_STRCHRNUL invocations from here...
2060         * modules/strchrnul (configure.ac): ... to here.
2061
2062 2011-05-22  Bruno Haible  <bruno@clisp.org>
2063
2064         strcasestr*: Move AC_LIBOBJ invocations to module description.
2065         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2066         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
2067         * modules/strcasestr-simple (configure.ac): ... to here.
2068         * modules/strcasestr (configure.ac): ... and here.
2069
2070 2011-05-22  Bruno Haible  <bruno@clisp.org>
2071
2072         strcase: Move AC_LIBOBJ invocations to module description.
2073         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
2074         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
2075         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
2076         gl_PREREQ_STRNCASECMP invocations from here...
2077         * modules/strcase (configure.ac): ... to here.
2078
2079 2011-05-22  Bruno Haible  <bruno@clisp.org>
2080
2081         stpncpy: Move AC_LIBOBJ invocations to module description.
2082         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
2083         here...
2084         * modules/stpncpy (configure.ac): ... to here.
2085
2086 2011-05-22  Bruno Haible  <bruno@clisp.org>
2087
2088         stpcpy: Move AC_LIBOBJ invocations to module description.
2089         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
2090         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
2091         here...
2092         * modules/stpcpy (configure.ac): ... to here.
2093
2094 2011-05-21  Bruno Haible  <bruno@clisp.org>
2095
2096         stat: Move AC_LIBOBJ invocations to module description.
2097         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
2098         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
2099         here...
2100         * modules/stat (configure.ac): ... to here.
2101
2102 2011-05-21  Bruno Haible  <bruno@clisp.org>
2103
2104         sleep: Move AC_LIBOBJ invocations to module description.
2105         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
2106         * modules/sleep (configure.ac): ... to here.
2107
2108 2011-05-21  Bruno Haible  <bruno@clisp.org>
2109
2110         signbit: Move AC_LIBOBJ invocations to module description.
2111         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
2112         * modules/signbit (configure.ac): ... to here.
2113
2114 2011-05-21  Bruno Haible  <bruno@clisp.org>
2115
2116         sigprocmask: Move AC_LIBOBJ invocations to module description.
2117         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
2118         gl_PREREQ_SIGPROMASK invocations from here...
2119         * modules/sigprocmask (configure.ac): ... to here.
2120
2121 2011-05-21  Bruno Haible  <bruno@clisp.org>
2122
2123         sigaction: Move AC_LIBOBJ invocations to module description.
2124         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
2125         gl_PREREQ_SIGACTION invocations from here...
2126         * modules/sigaction (configure.ac): ... to here.
2127
2128 2011-05-21  Bruno Haible  <bruno@clisp.org>
2129
2130         sig2str: Move AC_LIBOBJ invocations to module description.
2131         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
2132         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
2133         here...
2134         * modules/sig2str (configure.ac): ... to here.
2135
2136 2011-05-21  Bruno Haible  <bruno@clisp.org>
2137
2138         setlocale: Move AC_LIBOBJ invocations to module description.
2139         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
2140         gl_PREREQ_SETLOCALE invocations from here...
2141         * modules/setlocale (configure.ac): ... to here.
2142
2143 2011-05-21  Bruno Haible  <bruno@clisp.org>
2144
2145         unsetenv: Move AC_LIBOBJ invocations to module description.
2146         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
2147         and gl_PREREQ_UNSETENV invocations from here...
2148         * modules/unsetenv (configure.ac): ... to here.
2149         (Depends-on): Update.
2150
2151 2011-05-21  Bruno Haible  <bruno@clisp.org>
2152
2153         setenv: Move AC_LIBOBJ invocations to module description.
2154         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
2155         here...
2156         * modules/setenv (configure.ac): ... to here.
2157
2158 2011-05-21  Bruno Haible  <bruno@clisp.org>
2159
2160         selinux-h: Move AC_LIBOBJ invocations to module description.
2161         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
2162         AC_LIBOBJ invocation from here...
2163         * modules/selinux-h (configure.ac): ... to here.
2164
2165 2011-05-21  Bruno Haible  <bruno@clisp.org>
2166
2167         select: Respect rules for use of AC_LIBOBJ.
2168         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
2169         here...
2170         * modules/select (configure.ac): ... to here.
2171
2172 2011-05-21  Bruno Haible  <bruno@clisp.org>
2173
2174         scandir: Move AC_LIBOBJ invocations to module description.
2175         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
2176         invocations from here...
2177         * modules/scandir (configure.ac): ... to here.
2178
2179 2011-05-21  Bruno Haible  <bruno@clisp.org>
2180
2181         rpmatch: Move AC_LIBOBJ invocations to module description.
2182         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
2183         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
2184         here...
2185         * modules/rpmatch (configure.ac): ... to here.
2186
2187 2011-05-21  Bruno Haible  <bruno@clisp.org>
2188
2189         rmdir: Respect rules for use of AC_LIBOBJ.
2190         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
2191         * modules/rmdir (configure.ac): ... to here.
2192
2193 2011-05-21  Bruno Haible  <bruno@clisp.org>
2194
2195         renameat: Move AC_LIBOBJ invocations to module description.
2196         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
2197         here...
2198         * modules/renameat (configure.ac): ... to here.
2199
2200 2011-05-21  Bruno Haible  <bruno@clisp.org>
2201
2202         rename: Respect rules for use of AC_LIBOBJ.
2203         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
2204         here...
2205         * modules/rename (configure.ac): ... to here.
2206
2207 2011-05-21  Bruno Haible  <bruno@clisp.org>
2208
2209         remove: Move AC_LIBOBJ invocations to module description.
2210         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
2211         here...
2212         * modules/remove (configure.ac): ... to here.
2213
2214 2011-05-21  Bruno Haible  <bruno@clisp.org>
2215
2216         relocatable-lib: Move AC_LIBOBJ invocations to module description.
2217         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
2218         macro.
2219         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
2220         * modules/relocatable-lib (configure.ac): ... to here.
2221         * modules/relocatable-prog-wrapper (configure.ac): Invoke
2222         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
2223
2224 2011-05-21  Bruno Haible  <bruno@clisp.org>
2225
2226         relocatable-prog: Move AC_LIBOBJ invocations to module description.
2227         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
2228         here...
2229         * modules/relocatable-prog (configure.ac): ... to here.
2230
2231 2011-05-21  Bruno Haible  <bruno@clisp.org>
2232
2233         regex: Move AC_LIBOBJ invocations to module description.
2234         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
2235         invocations from here...
2236         * modules/regex (configure.ac): ... to here.
2237
2238 2011-05-21  Bruno Haible  <bruno@clisp.org>
2239
2240         realloc-*: Move AC_LIBOBJ invocations to module description.
2241         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
2242         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
2243         AC_LIBOBJ invocations from here...
2244         * modules/realloc-gnu (configure.ac): ... to here.
2245         * modules/realloc-posix (configure.ac): ... and here.
2246
2247 2011-05-21  Bruno Haible  <bruno@clisp.org>
2248
2249         readutmp: Move AC_LIBOBJ invocations to module description.
2250         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
2251         * modules/readutmp (configure.ac): ... to here.
2252
2253 2011-05-21  Bruno Haible  <bruno@clisp.org>
2254
2255         readlinkat: Move AC_LIBOBJ invocations to module description.
2256         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
2257         here...
2258         * modules/readlinkat (configure.ac): ... to here.
2259
2260 2011-05-21  Bruno Haible  <bruno@clisp.org>
2261
2262         readlink: Move AC_LIBOBJ invocations to module description.
2263         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
2264         gl_PREREQ_READLINK invocations from here...
2265         * modules/readlink (configure.ac): ... to here.
2266
2267 2011-05-21  Bruno Haible  <bruno@clisp.org>
2268
2269         readline: Move AC_LIBOBJ invocations to module description.
2270         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
2271         gl_PREREQ_READLINE invocations from here...
2272         * modules/readline (configure.ac): ... to here.
2273
2274 2011-05-21  Bruno Haible  <bruno@clisp.org>
2275
2276         read: Move AC_LIBOBJ invocations to module description.
2277         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
2278         * modules/read (configure.ac): ... to here.
2279
2280 2011-05-21  Bruno Haible  <bruno@clisp.org>
2281
2282         rawmemchr: Move AC_LIBOBJ invocations to module description.
2283         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
2284         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
2285         from here...
2286         * modules/rawmemchr (configure.ac): ... to here.
2287
2288 2011-05-21  Bruno Haible  <bruno@clisp.org>
2289
2290         random_r: Move AC_LIBOBJ invocations to module description.
2291         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
2292         gl_PREREQ_RANDOM_R invocations from here...
2293         * modules/random_r (configure.ac): ... to here.
2294
2295 2011-05-21  Bruno Haible  <bruno@clisp.org>
2296
2297         pwrite: Move AC_LIBOBJ invocations to module description.
2298         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
2299         * modules/pwrite (configure.ac): ... to here.
2300
2301 2011-05-21  Bruno Haible  <bruno@clisp.org>
2302
2303         putenv: Move AC_LIBOBJ invocations to module description.
2304         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
2305         * modules/putenv (configure.ac): ... to here.
2306
2307 2011-05-21  Bruno Haible  <bruno@clisp.org>
2308
2309         login_tty: Move AC_LIBOBJ invocations to module description.
2310         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
2311         * modules/login_tty (configure.ac): ... to here.
2312
2313 2011-05-21  Bruno Haible  <bruno@clisp.org>
2314
2315         openpty: Move AC_LIBOBJ invocations to module description.
2316         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
2317         * modules/openpty (configure.ac): ... to here.
2318
2319 2011-05-21  Bruno Haible  <bruno@clisp.org>
2320
2321         forkpty: Move AC_LIBOBJ invocations to module description.
2322         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
2323         * modules/forkpty (configure.ac): ... to here.
2324
2325 2011-05-21  Bruno Haible  <bruno@clisp.org>
2326
2327         ptsname: Move AC_LIBOBJ invocations to module description.
2328         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
2329         invocations from here...
2330         * modules/ptsname (configure.ac): ... to here.
2331
2332 2011-05-21  Bruno Haible  <bruno@clisp.org>
2333
2334         pread: Move AC_LIBOBJ invocations to module description.
2335         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
2336         * modules/pread (configure.ac): ... to here.
2337
2338 2011-05-21  Bruno Haible  <bruno@clisp.org>
2339
2340         posix_spawn*: Move AC_LIBOBJ invocations to module description.
2341         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
2342         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
2343         * modules/posix_spawn (configure.ac): ... to here.
2344         * modules/posix_spawnp (configure.ac): ... and here.
2345
2346 2011-05-21  Bruno Haible  <bruno@clisp.org>
2347
2348         popen: Move AC_LIBOBJ invocations to module description.
2349         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
2350         invocations from here...
2351         * modules/popen (configure.ac): ... to here.
2352
2353 2011-05-21  Bruno Haible  <bruno@clisp.org>
2354
2355         poll: Move AC_LIBOBJ invocations to module description.
2356         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
2357         invocations from here...
2358         * modules/poll (configure.ac): ... to here.
2359
2360 2011-05-21  Bruno Haible  <bruno@clisp.org>
2361
2362         pipe-posix: Move AC_LIBOBJ invocations to module description.
2363         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
2364         * modules/pipe-posix (configure.ac): ... to here.
2365
2366 2011-05-21  Bruno Haible  <bruno@clisp.org>
2367
2368         openat: Respect rules for use of AC_LIBOBJ.
2369         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
2370         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2371         * modules/openat (configure.ac): ... to here.
2372
2373 2011-05-21  Bruno Haible  <bruno@clisp.org>
2374
2375         obstack-printf*: Move AC_LIBOBJ invocations to module description.
2376         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
2377         invocation from here...
2378         * modules/obstack-printf (configure.ac): ... to here.
2379         * modules/obstack-printf-posix (configure.ac): ... and here.
2380
2381 2011-05-21  Bruno Haible  <bruno@clisp.org>
2382
2383         nl_langinfo: Move AC_LIBOBJ invocations to module description.
2384         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
2385         from here...
2386         * modules/nl_langinfo (configure.ac): ... to here.
2387
2388 2011-05-21  Bruno Haible  <bruno@clisp.org>
2389
2390         nanosleep: Move AC_LIBOBJ invocations to module description.
2391         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
2392         gl_PREREQ_NANOSLEEP invocations from here...
2393         * modules/nanosleep (configure.ac): ... to here.
2394
2395 2011-05-21  Bruno Haible  <bruno@clisp.org>
2396
2397         mountlist: Move AC_LIBOBJ invocations to module description.
2398         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
2399         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
2400         * modules/mountlist (configure.ac): ... to here.
2401
2402 2011-05-21  Bruno Haible  <bruno@clisp.org>
2403
2404         mktime: Respect rules for use of AC_LIBOBJ.
2405         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
2406         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
2407         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
2408         (gl_FUNC_MKTIME_INTERNAL): ... and here...
2409         * modules/mktime (configure.ac): ... to here.
2410         * modules/mktime-internal (configure.ac): ... and here.
2411         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
2412
2413 2011-05-21  Bruno Haible  <bruno@clisp.org>
2414
2415         mkstemps: Move AC_LIBOBJ invocations to module description.
2416         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
2417         here...
2418         * modules/mkstemps (configure.ac): ... to here.
2419
2420 2011-05-21  Bruno Haible  <bruno@clisp.org>
2421
2422         mkstemp: Move AC_LIBOBJ invocations to module description.
2423         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
2424         gl_PREREQ_MKSTEMP invocations from here...
2425         * modules/mkstemp (configure.ac): ... to here.
2426
2427 2011-05-21  Bruno Haible  <bruno@clisp.org>
2428
2429         mkostemps: Move AC_LIBOBJ invocations to module description.
2430         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
2431         here...
2432         * modules/mkostemps (configure.ac): ... to here.
2433
2434 2011-05-21  Bruno Haible  <bruno@clisp.org>
2435
2436         mkostemp: Move AC_LIBOBJ invocations to module description.
2437         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
2438         gl_PREREQ_MKOSTEMP invocations from here...
2439         * modules/mkostemp (configure.ac): ... to here.
2440
2441 2011-05-21  Bruno Haible  <bruno@clisp.org>
2442
2443         mknod: Move AC_LIBOBJ invocations to module description.
2444         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
2445         * modules/mknod (configure.ac): ... to here.
2446
2447 2011-05-21  Bruno Haible  <bruno@clisp.org>
2448
2449         mkfifoat: Move AC_LIBOBJ invocations to module description.
2450         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
2451         here...
2452         * modules/mkfifoat (configure.ac): ... to here.
2453
2454 2011-05-21  Bruno Haible  <bruno@clisp.org>
2455
2456         mkfifo: Respect rules for use of AC_LIBOBJ.
2457         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
2458         here...
2459         * modules/mkfifo (configure.ac): ... to here.
2460
2461 2011-05-21  Bruno Haible  <bruno@clisp.org>
2462
2463         mkdtemp: Move AC_LIBOBJ invocations to module description.
2464         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
2465         invocations from here...
2466         * modules/mkdtemp (configure.ac): ... to here.
2467
2468 2011-05-21  Bruno Haible  <bruno@clisp.org>
2469
2470         mkdir: Move AC_LIBOBJ invocations to module description.
2471         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
2472         * modules/mkdir (configure.ac): ... to here.
2473
2474 2011-05-21  Bruno Haible  <bruno@clisp.org>
2475
2476         memset: Move AC_LIBOBJ invocations to module description.
2477         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
2478         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
2479         here...
2480         * modules/memset (configure.ac): ... to here.
2481
2482 2011-05-21  Bruno Haible  <bruno@clisp.org>
2483
2484         memrchr: Move AC_LIBOBJ invocations to module description.
2485         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
2486         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
2487         here...
2488         * modules/memrchr (configure.ac): ... to here.
2489
2490 2011-05-21  Bruno Haible  <bruno@clisp.org>
2491
2492         mempcpy: Move AC_LIBOBJ invocations to module description.
2493         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
2494         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
2495         here...
2496         * modules/mempcpy (configure.ac): ... to here.
2497
2498 2011-05-21  Bruno Haible  <bruno@clisp.org>
2499
2500         memmove: Move AC_LIBOBJ invocations to module description.
2501         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
2502         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
2503         here...
2504         * modules/memmove (configure.ac): ... to here.
2505
2506 2011-05-21  Bruno Haible  <bruno@clisp.org>
2507
2508         memmem*: Move AC_LIBOBJ invocations to module description.
2509         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
2510         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
2511         here...
2512         (gl_FUNC_MEMMEM): ... and here...
2513         * modules/memmem-simple (configure.ac): ... to here.
2514         * modules/memmem (configure.ac): ... and here.
2515
2516 2011-05-21  Bruno Haible  <bruno@clisp.org>
2517
2518         memcpy: Move AC_LIBOBJ invocations to module description.
2519         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
2520         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
2521         here...
2522         * modules/memcpy (configure.ac): ... to here.
2523
2524 2011-05-21  Bruno Haible  <bruno@clisp.org>
2525
2526         memcmp: Simplify autoconf macro.
2527         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
2528         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
2529         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
2530
2531 2011-05-21  Bruno Haible  <bruno@clisp.org>
2532
2533         memcmp: Move AC_LIBOBJ invocations to module description.
2534         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
2535         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
2536         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
2537         * modules/memcmp (configure.ac): ... to here.
2538         (Depends-on): Update conditions.
2539
2540 2011-05-21  Bruno Haible  <bruno@clisp.org>
2541
2542         memchr: Respect rules for use of AC_LIBOBJ.
2543         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
2544         invocations from here...
2545         * modules/memchr (configure.ac): ... to here.
2546
2547 2011-05-21  Bruno Haible  <bruno@clisp.org>
2548
2549         mbtowc: Move AC_LIBOBJ invocations to module description.
2550         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
2551         invocations from here...
2552         * modules/mbtowc (configure.ac): ... to here.
2553
2554 2011-05-21  Bruno Haible  <bruno@clisp.org>
2555
2556         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
2557         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
2558         gl_PREREQ_MBSRTOWCS invocations from here...
2559         * modules/mbsrtowcs (configure.ac): ... to here.
2560
2561 2011-05-21  Bruno Haible  <bruno@clisp.org>
2562
2563         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
2564         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
2565         gl_PREREQ_MBSNRTOWCS invocations from here...
2566         * modules/mbsnrtowcs (configure.ac): ... to here.
2567
2568 2011-05-21  Bruno Haible  <bruno@clisp.org>
2569
2570         mbsinit: Move AC_LIBOBJ invocations to module description.
2571         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
2572         invocations from here...
2573         * modules/mbsinit (configure.ac): ... to here.
2574
2575 2011-05-21  Bruno Haible  <bruno@clisp.org>
2576
2577         mbrlen: Move AC_LIBOBJ invocations to module description.
2578         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
2579         invocations from here...
2580         * modules/mbrlen (configure.ac): ... to here.
2581
2582 2011-05-21  Bruno Haible  <bruno@clisp.org>
2583
2584         mbrtowc: Respect rules for use of AC_LIBOBJ.
2585         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
2586         invocations from here...
2587         * modules/mbrtowc (configure.ac): ... to here.
2588
2589 2011-05-21  Bruno Haible  <bruno@clisp.org>
2590
2591         malloc-*: Move AC_LIBOBJ invocations to module description.
2592         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
2593         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
2594         AC_LIBOBJ invocations from here...
2595         * modules/malloc-gnu (configure.ac): ... to here.
2596         * modules/malloc-posix (configure.ac): ... and here.
2597
2598 2011-05-21  Bruno Haible  <bruno@clisp.org>
2599
2600         lstat, openat: Respect rules for use of AC_LIBOBJ.
2601         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
2602         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
2603         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
2604         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
2605         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
2606         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
2607         here.
2608         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2609
2610 2011-05-21  Bruno Haible  <bruno@clisp.org>
2611
2612         lseek: Move AC_LIBOBJ invocations to module description.
2613         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
2614         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2615         * modules/lseek (configure.ac): ... to here.
2616
2617 2011-05-21  Bruno Haible  <bruno@clisp.org>
2618
2619         linkat: Move AC_LIBOBJ invocations to module description.
2620         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
2621         here...
2622         * modules/linkat (configure.ac): ... to here.
2623
2624 2011-05-21  Bruno Haible  <bruno@clisp.org>
2625
2626         link: Respect rules for use of AC_LIBOBJ.
2627         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
2628         * modules/link (configure.ac): ... to here.
2629
2630 2011-05-21  Bruno Haible  <bruno@clisp.org>
2631
2632         lchown: Move AC_LIBOBJ invocations to module description.
2633         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2634         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2635         * modules/lchown (configure.ac): ... to here.
2636
2637 2011-05-21  Bruno Haible  <bruno@clisp.org>
2638
2639         iswctype: Move AC_LIBOBJ invocations to module description.
2640         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
2641         here...
2642         * modules/iswctype (configure.ac): ... to here.
2643
2644 2011-05-21  Bruno Haible  <bruno@clisp.org>
2645
2646         iswblank: Move AC_LIBOBJ invocations to module description.
2647         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
2648         here...
2649         * modules/iswblank (configure.ac): ... to here.
2650
2651 2011-05-21  Bruno Haible  <bruno@clisp.org>
2652
2653         atanl: Move AC_LIBOBJ invocations to module description.
2654         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
2655         * modules/atanl (configure.ac): ... to here.
2656
2657 2011-05-21  Bruno Haible  <bruno@clisp.org>
2658
2659         acosl: Move AC_LIBOBJ invocations to module description.
2660         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
2661         * modules/acosl (configure.ac): ... to here.
2662
2663 2011-05-21  Bruno Haible  <bruno@clisp.org>
2664
2665         asinl: Respect rules for use of AC_LIBOBJ.
2666         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
2667         * modules/asinl (configure.ac): ... to here.
2668
2669 2011-05-21  Bruno Haible  <bruno@clisp.org>
2670
2671         tanl: Move AC_LIBOBJ invocations to module description.
2672         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
2673         * modules/tanl (configure.ac): ... to here.
2674
2675 2011-05-21  Bruno Haible  <bruno@clisp.org>
2676
2677         cosl: Move AC_LIBOBJ invocations to module description.
2678         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
2679         * modules/cosl (configure.ac): ... to here.
2680
2681 2011-05-21  Bruno Haible  <bruno@clisp.org>
2682
2683         sinl: Move AC_LIBOBJ invocations to module description.
2684         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
2685         * modules/sinl (configure.ac): ... to here.
2686
2687 2011-05-21  Bruno Haible  <bruno@clisp.org>
2688
2689         logl: Move AC_LIBOBJ invocations to module description.
2690         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
2691         * modules/logl (configure.ac): ... to here.
2692
2693 2011-05-21  Bruno Haible  <bruno@clisp.org>
2694
2695         expl: Move AC_LIBOBJ invocations to module description.
2696         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
2697         * modules/expl (configure.ac): ... to here.
2698
2699 2011-05-21  Bruno Haible  <bruno@clisp.org>
2700
2701         roundl: Move AC_LIBOBJ invocations to module description.
2702         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
2703         * modules/roundl (configure.ac): ... to here.
2704
2705 2011-05-21  Bruno Haible  <bruno@clisp.org>
2706
2707         round: Move AC_LIBOBJ invocations to module description.
2708         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
2709         * modules/round (configure.ac): ... to here.
2710
2711 2011-05-21  Bruno Haible  <bruno@clisp.org>
2712
2713         roundf: Move AC_LIBOBJ invocations to module description.
2714         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
2715         * modules/roundf (configure.ac): ... to here.
2716
2717 2011-05-21  Bruno Haible  <bruno@clisp.org>
2718
2719         truncl: Move AC_LIBOBJ invocations to module description.
2720         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
2721         * modules/truncl (configure.ac): ... to here.
2722
2723 2011-05-21  Bruno Haible  <bruno@clisp.org>
2724
2725         trunc: Move AC_LIBOBJ invocations to module description.
2726         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
2727         * modules/trunc (configure.ac): ... to here.
2728
2729 2011-05-21  Bruno Haible  <bruno@clisp.org>
2730
2731         truncf: Move AC_LIBOBJ invocations to module description.
2732         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
2733         * modules/truncf (configure.ac): ... to here.
2734
2735 2011-05-21  Bruno Haible  <bruno@clisp.org>
2736
2737         ceill: Move AC_LIBOBJ invocations to module description.
2738         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
2739         * modules/ceill (configure.ac): ... to here.
2740
2741 2011-05-21  Bruno Haible  <bruno@clisp.org>
2742
2743         ceil: Move AC_LIBOBJ invocations to module description.
2744         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
2745         * modules/ceil (configure.ac): ... to here.
2746
2747 2011-05-21  Bruno Haible  <bruno@clisp.org>
2748
2749         ceilf: Move AC_LIBOBJ invocations to module description.
2750         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
2751         * modules/ceilf (configure.ac): ... to here.
2752
2753 2011-05-21  Bruno Haible  <bruno@clisp.org>
2754
2755         floorl: Respect rules for use of AC_LIBOBJ.
2756         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
2757         * modules/floorl (configure.ac): ... to here.
2758
2759 2011-05-21  Bruno Haible  <bruno@clisp.org>
2760
2761         floor: Respect rules for use of AC_LIBOBJ.
2762         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
2763         * modules/floor (configure.ac): ... to here.
2764
2765 2011-05-21  Bruno Haible  <bruno@clisp.org>
2766
2767         floorf: Move AC_LIBOBJ invocations to module description.
2768         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
2769         * modules/floorf (configure.ac): ... to here.
2770
2771 2011-05-20  Bruno Haible  <bruno@clisp.org>
2772
2773         sqrtl: Respect rules for use of AC_LIBOBJ.
2774         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
2775         * modules/sqrtl (configure.ac): ... to here.
2776
2777 2011-05-20  Bruno Haible  <bruno@clisp.org>
2778
2779         ldexpl: Respect rules for use of AC_LIBOBJ.
2780         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
2781         * modules/ldexpl (configure.ac): ... to here.
2782
2783 2011-05-20  Bruno Haible  <bruno@clisp.org>
2784
2785         frexpl*: Respect rules for use of AC_LIBOBJ.
2786         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
2787         invocation from here...
2788         * modules/frexpl (configure.ac): ... to here.
2789         * modules/frexpl-nolibm (configure.ac): ... and here.
2790
2791 2011-05-20  Bruno Haible  <bruno@clisp.org>
2792
2793         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
2794         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
2795         invocation from here...
2796         * modules/frexp (configure.ac): ... to here.
2797         * modules/frexp-nolibm (configure.ac): ... and here.
2798
2799 2011-05-20  Bruno Haible  <bruno@clisp.org>
2800
2801         isnan: Respect rules for use of AC_LIBOBJ.
2802         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
2803         invocations here.
2804         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
2805         REPLACE_ISNAN.
2806         * modules/isnand (configure.ac): Likewise.
2807         * modules/isnanl (configure.ac): Likewise.
2808
2809 2011-05-20  Bruno Haible  <bruno@clisp.org>
2810
2811         isnanl*: Respect rules for use of AC_LIBOBJ.
2812         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
2813         invocation from here...
2814         * modules/isnanl (configure.ac): ... to here.
2815         * modules/isnanl-nolibm (configure.ac): ... and here.
2816
2817 2011-05-20  Bruno Haible  <bruno@clisp.org>
2818
2819         isnand*: Move AC_LIBOBJ invocations to module description.
2820         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
2821         invocation from here...
2822         * modules/isnand (configure.ac): ... to here.
2823         * modules/isnand-nolibm (configure.ac): ... and here.
2824
2825 2011-05-20  Bruno Haible  <bruno@clisp.org>
2826
2827         isnanf*: Move AC_LIBOBJ invocations to module description.
2828         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
2829         invocation from here...
2830         * modules/isnanf (configure.ac): ... to here.
2831         * modules/isnanf-nolibm (configure.ac): ... and here.
2832
2833 2011-05-20  Bruno Haible  <bruno@clisp.org>
2834
2835         isnan*: Separate the AC_LIBOBJ invocations.
2836         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
2837         AC_LIBOBJ invocation.
2838         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
2839         here.
2840         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
2841         AC_LIBOBJ invocation.
2842         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
2843         here.
2844         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
2845         AC_LIBOBJ invocation.
2846         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
2847         here.
2848         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
2849
2850 2011-05-08  Bruno Haible  <bruno@clisp.org>
2851
2852         isinf: Move AC_LIBOBJ invocations to module description.
2853         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
2854         * modules/isinf (configure.ac): ... to here.
2855
2856 2011-05-08  Bruno Haible  <bruno@clisp.org>
2857
2858         isfinite: Move AC_LIBOBJ invocations to module description.
2859         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
2860         * modules/isfinite (configure.ac): ... to here.
2861
2862 2011-05-08  Bruno Haible  <bruno@clisp.org>
2863
2864         isblank: Move AC_LIBOBJ invocations to module description.
2865         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
2866         here...
2867         * modules/isblank (configure.ac): ... to here.
2868
2869 2011-05-08  Bruno Haible  <bruno@clisp.org>
2870
2871         isapipe: Move AC_LIBOBJ invocations to module description.
2872         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
2873         gl_PREREQ_ISAPIPE invocations from here...
2874         * modules/isapipe (configure.ac): ... to here.
2875         (Depends-on): Update condition.
2876
2877 2011-05-08  Bruno Haible  <bruno@clisp.org>
2878
2879         ioctl: Move AC_LIBOBJ invocations to module description.
2880         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
2881         invocations from here...
2882         * modules/ioctl (configure.ac): ... to here.
2883         (Depends-on): Update condition.
2884
2885 2011-05-08  Bruno Haible  <bruno@clisp.org>
2886
2887         imaxdiv: Move AC_LIBOBJ invocations to module description.
2888         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
2889         invocations from here...
2890         * modules/imaxdiv (configure.ac): ... to here.
2891
2892 2011-05-08  Bruno Haible  <bruno@clisp.org>
2893
2894         imaxabs: Move AC_LIBOBJ invocations to module description.
2895         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
2896         invocations from here...
2897         * modules/imaxabs (configure.ac): ... to here.
2898
2899 2011-05-08  Bruno Haible  <bruno@clisp.org>
2900
2901         getaddrinfo: Move AC_LIBOBJ invocations to module description.
2902         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
2903         AC_LIBOBJ invocations from here...
2904         * modules/getaddrinfo (configure.ac): ... to here.
2905         (Depends-on): Add conditions.
2906
2907 2011-05-08  Bruno Haible  <bruno@clisp.org>
2908
2909         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
2910         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
2911         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
2912         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
2913         (gl_PREREQ_INET_PTON): ... from here.
2914         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
2915         gl_PREREQ_INET_PTON here.
2916         (Depends-on): Update condition.
2917
2918 2011-05-08  Bruno Haible  <bruno@clisp.org>
2919
2920         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
2921         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
2922         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
2923         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
2924         (gl_PREREQ_INET_NTOP): ... from here.
2925         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
2926         gl_PREREQ_INET_NTOP here.
2927         (Depends-on): Update condition.
2928
2929 2011-05-08  Bruno Haible  <bruno@clisp.org>
2930
2931         iconv_open: Move AC_LIBOBJ invocations to module description.
2932         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
2933         AC_LIBOBJ invocations from here...
2934         * modules/iconv_open (configure.ac): ... to here.
2935
2936 2011-05-08  Bruno Haible  <bruno@clisp.org>
2937
2938         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
2939         If module 'iconv_open' is among the main modules and module
2940         'iconv_open-utf' is among the tests dependencies, then
2941         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
2942         return the special iconv_t values. Therefore iconv() and iconv_close()
2943         must support these special iconv_t values, already in lib, not only in
2944         tests.
2945         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
2946         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
2947         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
2948         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
2949         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
2950         (Depends-on): Add the dependencies of iconv_open-utf.
2951         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
2952         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
2953         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
2954
2955 2011-05-08  Bruno Haible  <bruno@clisp.org>
2956
2957         group-member: Move AC_LIBOBJ invocations to module description.
2958         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
2959         gl_PREREQ_GROUP_MEMBER invocations from here...
2960         * modules/group-member (configure.ac): ... to here.
2961
2962 2011-05-08  Bruno Haible  <bruno@clisp.org>
2963
2964         grantpt: Move AC_LIBOBJ invocations to module description.
2965         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
2966         invocations from here...
2967         * modules/grantpt (configure.ac): ... to here.
2968
2969 2011-05-08  Bruno Haible  <bruno@clisp.org>
2970
2971         glob: Move AC_LIBOBJ invocations to module description.
2972         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
2973         from here...
2974         * modules/glob (configure.ac): ... to here.
2975
2976 2011-05-08  Bruno Haible  <bruno@clisp.org>
2977
2978         getusershell: Move AC_LIBOBJ invocations to module description.
2979         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
2980         Move AC_LIBOBJ invocation from here...
2981         * modules/getusershell (configure.ac): ... to here.
2982         (Depends-on): Update condition.
2983
2984 2011-05-08  Bruno Haible  <bruno@clisp.org>
2985
2986         gettimeofday: Move AC_LIBOBJ invocations to module description.
2987         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
2988         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
2989         gl_PREREQ_GETTIMEOFDAY invocations from here...
2990         * modules/gettimeofday (configure.ac): ... to here.
2991
2992 2011-05-08  Bruno Haible  <bruno@clisp.org>
2993
2994         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
2995         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
2996         just gl_FUNC_TZSET.
2997         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
2998         (gl_FUNC_TZSET_CLOBBER): Remove actions.
2999         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
3000         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
3001
3002 2011-05-08  Bruno Haible  <bruno@clisp.org>
3003
3004         getsubopt: Move AC_LIBOBJ invocations to module description.
3005         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
3006         gl_PREREQ_GETSUBOPT invocations from here...
3007         * modules/getsubopt (configure.ac): ... to here.
3008
3009 2011-05-08  Bruno Haible  <bruno@clisp.org>
3010
3011         getpass-gnu: Move AC_LIBOBJ invocations to module description.
3012         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
3013         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
3014         * modules/getpass-gnu (configure.ac): ... to here.
3015
3016 2011-05-08  Bruno Haible  <bruno@clisp.org>
3017
3018         getpass: Move AC_LIBOBJ invocations to module description.
3019         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
3020         gl_PREREQ_GETPASS invocations from here...
3021         * modules/getpass (configure.ac): ... to here.
3022
3023 2011-05-08  Bruno Haible  <bruno@clisp.org>
3024
3025         getpagesize: Move AC_LIBOBJ invocations to module description.
3026         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
3027         from here...
3028         * modules/getpagesize (configure.ac): ... to here.
3029
3030 2011-05-08  Bruno Haible  <bruno@clisp.org>
3031
3032         getopt: Move AC_LIBOBJ invocations to module description.
3033         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
3034         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
3035         invocations from here...
3036         * modules/getopt-gnu (configure.ac): ... to here.
3037         * modules/getopt-posix (configure.ac): ... and here.
3038         (Depends-on): Update condition.
3039
3040 2011-05-08  Bruno Haible  <bruno@clisp.org>
3041
3042         getopt, argp: Respect rules for use of AC_LIBOBJ.
3043         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
3044         (gl_REPLACE_GETOPT_ALWAYS): New macro.
3045         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
3046         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
3047
3048 2011-05-08  Bruno Haible  <bruno@clisp.org>
3049
3050         getlogin_r: Move AC_LIBOBJ invocations to module description.
3051         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
3052         gl_PREREQ_GETLOGIN_R invocations from here...
3053         * modules/getlogin_r (configure.ac): ... to here.
3054
3055 2011-05-08  Bruno Haible  <bruno@clisp.org>
3056
3057         getlogin: Move AC_LIBOBJ invocations to module description.
3058         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
3059         here...
3060         * modules/getlogin (configure.ac): ... to here.
3061
3062 2011-05-08  Bruno Haible  <bruno@clisp.org>
3063
3064         getloadavg: Move AC_LIBOBJ invocations to module description.
3065         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
3066         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
3067         * modules/getloadavg (configure.ac): ... to here.
3068
3069 2011-05-08  Bruno Haible  <bruno@clisp.org>
3070
3071         gethrxtime: Move AC_LIBOBJ invocations to module description.
3072         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
3073         LIB_GETHRXTIME from here...
3074         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
3075         invocations from here...
3076         * modules/gethrxtime (configure.ac): ... to here.
3077
3078 2011-05-08  Bruno Haible  <bruno@clisp.org>
3079
3080         gethostname: Move AC_LIBOBJ invocations to module description.
3081         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
3082         gl_PREREQ_GETHOSTNAME invocations from here...
3083         * modules/gethostname (configure.ac): ... to here.
3084
3085 2011-05-08  Bruno Haible  <bruno@clisp.org>
3086
3087         getgroups: Move AC_LIBOBJ invocations to module description.
3088         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
3089         here...
3090         * modules/getgroups (configure.ac): ... to here.
3091
3092 2011-05-08  Bruno Haible  <bruno@clisp.org>
3093
3094         getdtablesize: Move AC_LIBOBJ invocations to module description.
3095         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
3096         invocation from here...
3097         * modules/getdtablesize (configure.ac): ... to here.
3098
3099 2011-05-08  Bruno Haible  <bruno@clisp.org>
3100
3101         getdomainname: Move AC_LIBOBJ invocations to module description.
3102         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
3103         gl_PREREQ_GETDOMAINNAME invocations from here...
3104         * modules/getdomainname (configure.ac): ... to here.
3105
3106 2011-05-08  Bruno Haible  <bruno@clisp.org>
3107
3108         getline: Move AC_LIBOBJ invocations to module description.
3109         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
3110         invocations from here...
3111         * modules/getline (configure.ac): ... to here.
3112
3113 2011-05-08  Bruno Haible  <bruno@clisp.org>
3114
3115         getline: Simplify.
3116         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
3117         It's already handled through the module dependency.
3118
3119 2011-05-08  Bruno Haible  <bruno@clisp.org>
3120
3121         getdelim: Move AC_LIBOBJ invocations to module description.
3122         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
3123         and gl_PREREQ_GETDELIM invocations from here...
3124         * modules/getdelim (configure.ac): ... to here.
3125         (Depends-on): Fix condition.
3126
3127 2011-05-08  Bruno Haible  <bruno@clisp.org>
3128
3129         getcwd: Move AC_LIBOBJ invocations to module description.
3130         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
3131         invocations from here...
3132         * modules/getcwd (configure.ac): ... to here.
3133
3134 2011-05-08  Bruno Haible  <bruno@clisp.org>
3135
3136         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
3137         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
3138         here...
3139         * modules/getcwd-lgpl (configure.ac): ... to here.
3140
3141 2011-05-07  Bruno Haible  <bruno@clisp.org>
3142
3143         crypto/gc: Move AC_LIBOBJ invocations to module description.
3144         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
3145         * modules/crypto/gc (configure.ac): ... to here.
3146
3147 2011-05-07  Bruno Haible  <bruno@clisp.org>
3148
3149         fwriting: Move AC_LIBOBJ invocations to module description.
3150         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
3151         here...
3152         * modules/fwriting (configure.ac): ... to here.
3153
3154 2011-05-07  Bruno Haible  <bruno@clisp.org>
3155
3156         fwritable: Move AC_LIBOBJ invocations to module description.
3157         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
3158         here...
3159         * modules/fwritable (configure.ac): ... to here.
3160
3161 2011-05-07  Bruno Haible  <bruno@clisp.org>
3162
3163         futimens: Move AC_LIBOBJ invocations to module description.
3164         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
3165         here...
3166         * modules/futimens (configure.ac): ... to here.
3167
3168 2011-05-07  Bruno Haible  <bruno@clisp.org>
3169
3170         ftruncate: Move AC_LIBOBJ invocations to module description.
3171         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
3172         gl_PREREQ_FTRUNCATE invocations from here...
3173         * modules/ftruncate (configure.ac): ... to here.
3174
3175 2011-05-07  Bruno Haible  <bruno@clisp.org>
3176
3177         fsync: Move AC_LIBOBJ invocations to module description.
3178         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
3179         invocations from here...
3180         * modules/fsync (configure.ac): ... to here.
3181
3182 2011-05-07  Bruno Haible  <bruno@clisp.org>
3183
3184         fsusage: Move AC_LIBOBJ invocations to module description.
3185         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
3186         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
3187         * modules/fsusage (configure.ac): ... to here.
3188
3189 2011-05-07  Bruno Haible  <bruno@clisp.org>
3190
3191         freopen: Move AC_LIBOBJ invocations to module description.
3192         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
3193         invocations from here...
3194         * modules/freopen (configure.ac): ... to here.
3195
3196 2011-05-07  Bruno Haible  <bruno@clisp.org>
3197
3198         free: Move AC_LIBOBJ invocations to module description.
3199         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
3200         invocations from here...
3201         * modules/free (configure.ac): ... to here.
3202
3203 2011-05-07  Bruno Haible  <bruno@clisp.org>
3204
3205         freadable: Move AC_LIBOBJ invocations to module description.
3206         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
3207         here...
3208         * modules/freadable (configure.ac): ... to here.
3209
3210 2011-05-07  Bruno Haible  <bruno@clisp.org>
3211
3212         fpurge: Move AC_LIBOBJ invocations to module description.
3213         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
3214         invocations from here...
3215         * modules/fpurge (configure.ac): ... to here.
3216
3217 2011-05-07  Bruno Haible  <bruno@clisp.org>
3218
3219         fpending: Move AC_LIBOBJ invocations to module description.
3220         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
3221         gl_FUNC_FPENDING.
3222         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
3223         invocations from here...
3224         * modules/fpending (configure.ac): ... to here.
3225
3226 2011-05-07  Bruno Haible  <bruno@clisp.org>
3227
3228         fopen: Move AC_LIBOBJ invocations to module description.
3229         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
3230         invocations from here...
3231         * modules/fopen (configure.ac): ... to here.
3232
3233 2011-05-07  Bruno Haible  <bruno@clisp.org>
3234
3235         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
3236         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
3237         gl_FUNC_FNMATCH_POSIX.
3238         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
3239         invocations from here...
3240         * modules/fnmatch (configure.ac): ... to here.
3241         * modules/fnmatch-gnu (configure.ac): ... and here.
3242
3243 2011-05-07  Bruno Haible  <bruno@clisp.org>
3244
3245         flock: Move AC_LIBOBJ invocations to module description.
3246         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
3247         invocations from here...
3248         * modules/flock (configure.ac): ... to here.
3249
3250 2011-05-07  Bruno Haible  <bruno@clisp.org>
3251
3252         fileblocks: Move AC_LIBOBJ invocations to module description.
3253         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
3254         gl_PREREQ_FILEBLOCKS invocations from here...
3255         * modules/fileblocks (configure.ac): ... to here.
3256
3257 2011-05-06  Bruno Haible  <bruno@clisp.org>
3258
3259         fflush: Move AC_LIBOBJ invocations to module description.
3260         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
3261         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
3262         invocations from here...
3263         * modules/fflush (configure.ac): ... to here.
3264
3265 2011-05-06  Bruno Haible  <bruno@clisp.org>
3266
3267         fdopendir: Move AC_LIBOBJ invocations to module description.
3268         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
3269         here...
3270         * modules/fdopendir (configure.ac): ... to here.
3271         (Depends-on): Improve conditions.
3272
3273 2011-05-06  Bruno Haible  <bruno@clisp.org>
3274
3275         _Exit: Move AC_LIBOBJ invocations to module description.
3276         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
3277         invocations from here...
3278         * modules/_Exit (configure.ac): ... to here.
3279
3280 2011-05-21  Bruno Haible  <bruno@clisp.org>
3281
3282         euidaccess: Respect rules for use of AC_LIBOBJ.
3283         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3284         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
3285         from here...
3286         * modules/euidaccess (configure.ac): ... to here.
3287
3288 2011-05-06  Bruno Haible  <bruno@clisp.org>
3289
3290         error: Move AC_LIBOBJ invocations to module description.
3291         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
3292         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
3293         invocations from here...
3294         * modules/error (configure.ac): ... to here.
3295
3296 2011-05-06  Bruno Haible  <bruno@clisp.org>
3297
3298         duplocale: Move AC_LIBOBJ invocations to module description.
3299         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
3300         gl_PREREQ_DUPLOCALE invocations from here...
3301         * modules/duplocale (configure.ac): ... to here.
3302
3303 2011-05-05  Bruno Haible  <bruno@clisp.org>
3304
3305         dirfd: Move AC_LIBOBJ invocations to module description.
3306         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
3307         gl_FUNC_DIRFD.
3308         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
3309         here...
3310         * modules/dirfd (configure.ac): ... to here.
3311         (Depends-on): Fix condition.
3312
3313 2011-05-05  Bruno Haible  <bruno@clisp.org>
3314
3315         chown: Respect rules for use of AC_LIBOBJ.
3316         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
3317         * modules/chown (configure.ac): ... to here.
3318
3319 2011-05-05  Bruno Haible  <bruno@clisp.org>
3320
3321         chdir-long: Move AC_LIBOBJ invocations to module description.
3322         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
3323         gl_PREREQ_CHDIR_LONG invocations from here...
3324         * modules/chdir-long (configure.ac): ... to here.
3325
3326 2011-05-05  Bruno Haible  <bruno@clisp.org>
3327
3328         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
3329         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
3330         from here...
3331         * modules/canonicalize-lgpl (configure.ac): ... to here.
3332
3333 2011-05-05  Bruno Haible  <bruno@clisp.org>
3334
3335         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
3336         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
3337         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
3338         REPLACE_CALLOC.
3339         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
3340         * modules/calloc-gnu (configure.ac): Likewise.
3341
3342 2011-05-05  Bruno Haible  <bruno@clisp.org>
3343
3344         btowc: Move AC_LIBOBJ invocations to module description.
3345         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
3346         invocations from here...
3347         * modules/btowc (configure.ac): ... to here.
3348
3349 2011-05-21  Bruno Haible  <bruno@clisp.org>
3350
3351         atexit: Move AC_LIBOBJ invocations to module description.
3352         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
3353         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
3354         here...
3355         * modules/atexit (configure.ac): ... to here.
3356
3357 2011-05-05  Bruno Haible  <bruno@clisp.org>
3358
3359         atoll: Move AC_LIBOBJ invocations to module description.
3360         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
3361         invocations from here...
3362         * modules/atoll (configure.ac): ... to here.
3363
3364 2011-05-05  Bruno Haible  <bruno@clisp.org>
3365
3366         argz: Move AC_LIBOBJ invocations to module description.
3367         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
3368         * modules/argz (configure.ac): ... to here.
3369
3370 2011-05-05  Bruno Haible  <bruno@clisp.org>
3371
3372         alphasort: Move AC_LIBOBJ invocations to module description.
3373         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
3374         gl_PREREQ_ALPHASORT invocations from here...
3375         * modules/alphasort (configure.ac): ... to here.
3376
3377 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
3378
3379         verify: new macro verify_expr; verify_true deprecated
3380         * NEWS: Mention this.
3381         * doc/verify.texi (Compile-time Assertions): Document this.
3382         * lib/verify.h (verify_true): Deprecate.
3383         (verify_expr): New macro.
3384         * tests/test-verify.c (function): Test verify_expr.
3385
3386 2011-06-14  Jim Meyering  <meyering@redhat.com>
3387
3388         init.sh: give more portable redirection-related advice in a comment
3389         * tests/init.sh (stderr_fileno_): Update the advice in comments.
3390         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
3391         for lots of discussion.  Stefano Lattarini suggested the solution
3392         of putting "9>&2" after the command.  Reported by Bruno Haible.
3393
3394 2011-06-13  Bruno Haible  <bruno@clisp.org>
3395
3396         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
3397         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
3398         'none'.
3399
3400 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
3401
3402         ftoastr: use strtof only if HAVE_STRTOF
3403         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
3404         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
3405         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
3406         * modules/ftoastr (configure.ac): Check for strtof.
3407
3408 2011-06-13  Bruno Haible  <bruno@clisp.org>
3409
3410         gnulib-tool: Addendum to 2011-06-08 commit.
3411         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
3412         and --witness-c-macro have been given, augment AM_CPPFLAGS.
3413
3414 2011-06-13  Bruno Haible  <bruno@clisp.org>
3415
3416         fseeko: Provide a non-inline replacement of fseek().
3417         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
3418         * modules/fseeko (Depends-on): Add fseek.
3419         * modules/fseek (License): Change to LGPLv2+.
3420
3421 2011-06-13  Bruno Haible  <bruno@clisp.org>
3422
3423         ftello: Provide a non-inline replacement of ftell().
3424         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
3425         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
3426         not have ftello() (such as on mingw).
3427         * modules/ftello (Depends-on): Add ftell.
3428         * modules/ftell (License): Change to LGPLv2+.
3429
3430 2011-05-07  Bruno Haible  <bruno@clisp.org>
3431
3432         ftell: Move AC_LIBOBJ invocations to module description.
3433         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
3434         * modules/ftell (configure.ac): ... to here.
3435
3436 2011-05-07  Bruno Haible  <bruno@clisp.org>
3437
3438         ftello: Respect rules for use of AC_LIBOBJ.
3439         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
3440         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
3441         here...
3442         * modules/ftello (configure.ac): ... to here.
3443
3444 2011-05-07  Bruno Haible  <bruno@clisp.org>
3445
3446         fseeko: Simplify.
3447         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
3448         (gl_FUNC_FSEEKO): Inline it here.
3449
3450 2011-05-07  Bruno Haible  <bruno@clisp.org>
3451
3452         fseek: Move AC_LIBOBJ invocations to module description.
3453         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
3454         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3455         * modules/fseek (configure.ac): ... to here.
3456
3457 2011-05-07  Bruno Haible  <bruno@clisp.org>
3458
3459         fseek: Respect rules for use of AC_LIBOBJ.
3460         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
3461         here...
3462         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
3463
3464 2011-05-07  Bruno Haible  <bruno@clisp.org>
3465
3466         fseeko: Respect rules for use of AC_LIBOBJ.
3467         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
3468         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
3469         here...
3470         * modules/fseeko (configure.ac): ... to here.
3471
3472 2011-06-13  Bruno Haible  <bruno@clisp.org>
3473
3474         gnulib-tool: Allow comments in the 'Depends-on' section.
3475         * doc/gnulib.texi (Module description): Mention comment syntax in the
3476         Depends-on section.
3477         * gnulib-tool (func_get_dependencies): Filter out comment lines.
3478
3479 2011-06-13  Bruno Haible  <bruno@clisp.org>
3480
3481         file-set.h: guard __attibute__ use, now that it's not always defined
3482         * lib/file-set.h (record_file): Use __attribute__ only with compiler
3483         versions that support it.  This fixes a coreutils build failure with
3484         the vendor cc on HP-UX 11.31.
3485
3486 2011-06-12  Bruno Haible  <bruno@clisp.org>
3487
3488         acl: Add support for HP-UX >= 11.11 JFS ACLs.
3489         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
3490         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
3491         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
3492         (acl, aclsort): New declarations.
3493         (aclv_nontrivial): New declaration.
3494         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
3495         (file_has_acl): Read also the second kind of HP-UX ACLs.
3496         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
3497         kind of HP-UX ACLs if the first kind fails.
3498         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
3499         second kind of HP-UX ACLs.
3500         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
3501         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
3502         agree.
3503         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3504         hpuxjfs.
3505         Handle hpuxjfs.
3506         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3507         hpuxjfs.
3508         Handle hpuxjfs.
3509         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3510         (func_test_same_acls): Use both lsacl and getacl.
3511         Handle hpuxjfs.
3512         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3513         (func_test_same_acls): Use both lsacl and getacl.
3514         Handle hpuxjfs.
3515
3516 2011-06-12  Bruno Haible  <bruno@clisp.org>
3517
3518         acl: Complete the 2010-08-10 fix.
3519         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
3520         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
3521         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
3522         explicitly.
3523         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
3524         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
3525
3526 2011-06-12  Bruno Haible  <bruno@clisp.org>
3527
3528         spawn-pipe tests: Comments.
3529         * tests/test-spawn-pipe-child.c (main): Update comment.
3530         Reported by James Youngman <jay@gnu.org>.
3531
3532 2011-06-11  James Youngman  <jay@gnu.org>
3533
3534         New module 'stat-size'.
3535         * modules/stat-size: New module.  Provides macros for accessing
3536         file size information in instances of struct stat.  Depends on the
3537         fileblocks module because it calls st_blocks.
3538         * lib/stat-size.h: New file, adapted from coreutils' system.h.
3539         * doc/gnulib.texi: Include stat-size.texi.
3540         * doc/stat-size.texi: Documentation for this module.
3541         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
3542         * m4/fileblocks.m4: Mention that stat-size depends on the call to
3543         AC_STRUCT_ST_BLOCKS.
3544
3545 2011-06-09  Bruno Haible  <bruno@clisp.org>
3546
3547         thread: Support pthreads-win32.
3548         * lib/glthread/thread.h (gl_thread_self): Define differently on
3549         pthreads-win32.
3550         (gl_null_thread): New declaration.
3551         (gl_thread_self_pointer): New macro.
3552         * lib/glthread/thread.c (gl_null_thread): New constant.
3553         * tests/test-lock.c: Use gl_thread_self_pointer instead of
3554         gl_thread_self.
3555         * tests/test-tls.c: Likewise.
3556         Suggested by Paul Eggert. Reported by Eric Blake.
3557
3558 2011-06-09  Bruno Haible  <bruno@clisp.org>
3559
3560         thread: Fix confusion between NULL and 0.
3561         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
3562         Reported by Paul Eggert.
3563
3564 2011-06-09  Bruno Haible  <bruno@clisp.org>
3565
3566         spawn-pipe tests: Avoid test failure on HP-UX 11.
3567         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
3568         is closed.
3569
3570 2011-06-09  Bruno Haible  <bruno@clisp.org>
3571
3572         acl tests: Fix compilation error on HP-UX 11.
3573         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
3574
3575 2011-06-09  Bruno Haible  <bruno@clisp.org>
3576
3577         rmdir: Avoid test failure on HP-UX 10.20.
3578         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
3579         EEXIST.
3580
3581 2011-06-08  Eric Blake  <eblake@redhat.com>
3582
3583         perror: fix test on mingw
3584         * modules/perror-tests (Depends-on): Add dup2.
3585
3586         strerror_r-posix: fix on MacOS
3587         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
3588         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
3589         logic bug.
3590         * lib/strerror_r.c (strerror_r): Fix the bug.
3591         * lib/strerror.c (strerror): Likewise.
3592         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3593         problem.
3594         * doc/posix-functions/strerror.texi (strerror): Likewise.
3595         * doc/posix-functions/perror.texi (perror): Likewise.
3596         * tests/test-strerror.c (main): Enhance test.
3597         * tests/test-strerror_r.c (main): Likewise.
3598
3599 2011-06-08  Bruno Haible  <bruno@clisp.org>
3600
3601         gnulib-tool: Better isolation between different gnulib-tool invocations.
3602         * gnulib-tool: New option --witness-c-macro.
3603         (witness_c_macro): New variable.
3604         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
3605         AM_CPPFLAGS define it as a C macro.
3606         (func_emit_tests_Makefile_am): Likewise.
3607         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
3608         read it from there.
3609         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
3610         m4_define, not AC_DEFUN.
3611         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
3612         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
3613         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
3614         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
3615         s|...|...|, to substitute the values of the GNULIB_* module indicator
3616         variables.
3617         * modules/dirent (Makefile.am): Likewise.
3618         * modules/fcntl-h (Makefile.am): Likewise.
3619         * modules/iconv-h (Makefile.am): Likewise.
3620         * modules/langinfo (Makefile.am): Likewise.
3621         * modules/locale (Makefile.am): Likewise.
3622         * modules/math (Makefile.am): Likewise.
3623         * modules/netdb (Makefile.am): Likewise.
3624         * modules/poll-h (Makefile.am): Likewise.
3625         * modules/pty (Makefile.am): Likewise.
3626         * modules/search (Makefile.am): Likewise.
3627         * modules/signal (Makefile.am): Likewise.
3628         * modules/spawn (Makefile.am): Likewise.
3629         * modules/stdio (Makefile.am): Likewise.
3630         * modules/stdlib (Makefile.am): Likewise.
3631         * modules/string (Makefile.am): Likewise.
3632         * modules/sys_ioctl (Makefile.am): Likewise.
3633         * modules/sys_select (Makefile.am): Likewise.
3634         * modules/sys_socket (Makefile.am): Likewise.
3635         * modules/sys_stat (Makefile.am): Likewise.
3636         * modules/sys_times (Makefile.am): Likewise.
3637         * modules/sys_utsname (Makefile.am): Likewise.
3638         * modules/sys_wait (Makefile.am): Likewise.
3639         * modules/termios (Makefile.am): Likewise.
3640         * modules/time (Makefile.am): Likewise.
3641         * modules/unistd (Makefile.am): Likewise.
3642         * modules/wchar (Makefile.am): Likewise.
3643
3644 2011-06-08  Eric Blake  <eblake@redhat.com>
3645
3646         strerror: simplify replacement
3647         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
3648         * modules/strerror (configure.ac): No prereqs needed here...
3649         * modules/strerror-override (configure.ac): ...but this needs it.
3650         (Files): Add file for needed prereq macro.
3651
3652 2011-06-08  Bruno Haible  <bruno@clisp.org>
3653
3654         strerror_r-posix: Tweaks.
3655         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
3656         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
3657         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
3658         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
3659         (gl_FUNC_STRERROR_R): ... to here.
3660         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
3661
3662 2011-06-07  Eric Blake  <eblake@redhat.com>
3663
3664         perror: document fixed bugs
3665         * doc/posix-functions/perror.texi (perror): Document recent
3666         patches.
3667
3668 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
3669
3670         stat-time: get_stat_birthtime failure is better-defined
3671         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
3672         return a timestamp whose tv_sec and tv_nsec values are both -1.
3673         Previously, the spec said only that the tv_nsec value was negative.
3674         This upward-compatible change simplifies GNU tar a bit.
3675
3676 2011-06-07  Eric Blake  <eblake@redhat.com>
3677
3678         strerror_r-posix: work around cygwin 1.7.9
3679         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
3680         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
3681         bug without replacing strerror_r.
3682         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
3683         strerror_r is buggy, but without requiring strerror_r compilation.
3684         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
3685
3686         test-perror: relax test to ignore cygwin bug
3687         * tests/test-perror2.c (main): Relax test on requiring detection
3688         of stream errors, and use unbuffered stream.
3689         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
3690         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
3691         * doc/posix-functions/fputc.texi (fputc): Likewise.
3692         * doc/posix-functions/fputs.texi (fputs): Likewise.
3693         * doc/posix-functions/fputws.texi (fputws): Likewise.
3694         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
3695         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
3696         * doc/posix-functions/getopt.texi (getopt): Likewise.
3697         * doc/posix-functions/perror.texi (perror): Likewise.
3698         * doc/posix-functions/printf.texi (printf): Likewise.
3699         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
3700         * doc/posix-functions/psignal.texi (psignal): Likewise.
3701         * doc/posix-functions/putc.texi (putc): Likewise.
3702         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
3703         Likewise.
3704         * doc/posix-functions/putchar.texi (putchar): Likewise.
3705         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
3706         Likewise.
3707         * doc/posix-functions/puts.texi (puts): Likewise.
3708         * doc/posix-functions/putwc.texi (putwc): Likewise.
3709         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
3710         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
3711         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3712         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
3713         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3714         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
3715         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
3716         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
3717
3718 2011-05-22  Bruno Haible  <bruno@clisp.org>
3719
3720         strerror: Move AC_LIBOBJ invocations to module description.
3721         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
3722         gl_PREREQ_STRERROR invocations from here...
3723         * modules/strerror (configure.ac): ... to here.
3724
3725 2011-05-21  Bruno Haible  <bruno@clisp.org>
3726
3727         perror: Use common idiom.
3728         * modules/perror (configure.ac): Reorder statements.
3729
3730 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3731
3732         tests: fix usage message in 'mktempd_'
3733         * tests/init.sh (mktempd_): In the usage message, use literal
3734         'mktempd_', not '$ME' (which is even undefined), as the name of
3735         the subroutine.
3736
3737 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3738
3739         tests init: new function 'fatal_', for hard errors
3740         Before this patch, the only way offered by tests/init.sh to
3741         properly signal a hard error was the `framework_failure_'
3742         function.  But the error message issued by that function,
3743         as its name would suggest, refers to a set-up failure in the
3744         testsuite, while hard errors can obviously also be due to
3745         other reasons.  The best way to fix this inconsistency is to
3746         introduce a new function with a more general error message.
3747         * tests/init.sh (fatal_): New function.
3748
3749 2011-06-06  Eric Blake  <eblake@redhat.com>
3750
3751         canonicalize-lgpl: use common idiom
3752         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
3753         over newer POSIX -Rf.
3754         Reported by Bruno Haible.
3755
3756         canonicalize-lgpl: work around AIX realpath bug
3757         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
3758         * doc/posix-functions/realpath.texi (realpath): Document it.
3759         Reported by Bruno Haible.
3760
3761         strerror: work around FreeBSD bug
3762         * lib/strerror.c (strerror): Special case 0.
3763         Reported by Bruno Haible.
3764
3765         strerror-override: avoid bloating errno module
3766         * modules/errno (Files, configure.ac): Move replacement strings...
3767         * modules/strerror-override: ...to new module.
3768         * modules/strerror (Depends-on): Add strerror-override.
3769         * modules/strerror_r-posix (Depends-on): Likewise.
3770         * MODULES.html.sh: Document new module.
3771         Reported by Bruno Haible.
3772
3773 2011-06-06  Bruno Haible  <bruno@clisp.org>
3774
3775         spawn-pipe tests: Rename program.
3776         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
3777         * tests/test-spawn-pipe-child.c: Update comment.
3778         * tests/test-spawn-pipe.sh: Update.
3779         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
3780
3781         spawn-pipe tests: Link the child program only against libc.
3782         * tests/test-spawn-pipe-child.c: New file, extracted from
3783         tests/test-spawn-pipe.c.
3784         (main): Expect only one argument.
3785         (is_open): New function, copied from tests/test-pipe.c.
3786         * tests/test-spawn-pipe.c: Don't include <errno.h>.
3787         (child_main): Remove function.
3788         (test_pipe): Pass only one argument to the child program.
3789         (main): Remove child process code. Expect the child program's name as
3790         first argument.
3791         * tests/test-spawn-pipe.sh: Pass the child program's name as first
3792         argument.
3793         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
3794         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
3795         test-spawn-pipe-child against no libraries.
3796
3797 2011-06-06  Bruno Haible  <bruno@clisp.org>
3798
3799         careadlinkat: Avoid mismatch between ssize_t and int.
3800         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
3801         * lib/careadlinkat.c (careadlinkatcwd): Define always.
3802
3803 2011-06-06  Jim Meyering  <meyering@redhat.com>
3804
3805         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
3806         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
3807         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
3808
3809 2011-06-05  Bruno Haible  <bruno@clisp.org>
3810
3811         ansi-c++-opt: Interoperability with libtool.
3812         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
3813         set the variable to "no", not to ":".
3814         * NEWS: Mention the change.
3815
3816 2011-06-05  Bruno Haible  <bruno@clisp.org>
3817
3818         acl: Fix test failure on AIX 7.
3819         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
3820         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
3821
3822 2011-06-05  Bruno Haible  <bruno@clisp.org>
3823
3824         pipe-filter-ii: Fix test failure on AIX and IRIX.
3825         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
3826         with EAGAIN, retry with a smaller buffer size.
3827
3828 2011-06-05  Bruno Haible  <bruno@clisp.org>
3829
3830         localename: Fix link dependencies.
3831         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
3832         * modules/localename-tests (Makefile.am): Link test-localename with
3833         $(LIBTHREAD).
3834
3835 2011-06-05  Bruno Haible  <bruno@clisp.org>
3836
3837         error: Avoid gcc warning.
3838         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
3839
3840 2011-06-05  Bruno Haible  <bruno@clisp.org>
3841
3842         unsetenv: Avoid gcc warning.
3843         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
3844
3845 2011-06-05  Bruno Haible  <bruno@clisp.org>
3846
3847         setenv: Avoid gcc warning.
3848         * lib/setenv.c (setenv): Provide declaration if system lacks it.
3849
3850 2011-06-05  Bruno Haible  <bruno@clisp.org>
3851
3852         sys_select: Ensure memset is declared also on AIX 7.
3853         * lib/sys_select.in.h: Include <string.h> also on AIX.
3854         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
3855         self-contained also on AIX 7.1.
3856
3857 2011-06-04  Jim Meyering  <meyering@redhat.com>
3858
3859         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
3860         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
3861         function name, "error".
3862         (_gl_translatable_diag_func_re): New configurable variable.
3863
3864 2011-06-04  Bruno Haible  <bruno@clisp.org>
3865
3866         getopt: Avoid gcc warning.
3867         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
3868
3869 2011-06-04  Bruno Haible  <bruno@clisp.org>
3870
3871         strerror_r: Fix comments.
3872         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
3873         commit.
3874
3875 2011-06-04  Bruno Haible  <bruno@clisp.org>
3876
3877         perror: Fix compilation error.
3878         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
3879         Undefine fprintf, not sprintf.
3880         * modules/perror (Depends-on): Remove intprops, verify.
3881
3882 2011-06-04  Bruno Haible  <bruno@clisp.org>
3883
3884         setlocale: Enable replacement on Cygwin 1.5.
3885         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
3886         Cygwin 1.5.x.
3887         * doc/posix-functions/setlocale.texi: Mention that the problem with the
3888         LC_CTYPE category also exists on Cygwin 1.5.x.
3889
3890 2011-06-04  Bruno Haible  <bruno@clisp.org>
3891
3892         strerror-override: Don't disable symbol renamings.
3893         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
3894         * lib/strerror-override.c: Include config.h.
3895         (strerror_override): Don't undefine.
3896
3897 2011-06-03  Bruno Haible  <bruno@clisp.org>
3898
3899         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
3900         * lib/localename.h: Update copyright header.
3901         * lib/localename.c: Likewise.
3902         * lib/relocatable.h: Likewise.
3903         * lib/relocatable.c: Likewise.
3904
3905 2011-06-02  Bruno Haible  <bruno@clisp.org>
3906
3907         doc: Fix a module name.
3908         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
3909
3910 2011-06-02  Bruno Haible  <bruno@clisp.org>
3911
3912         pipe2: Remove dependency on 'nonblocking' module.
3913         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
3914         O_NONBLOCK is defined by gnulib.
3915         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
3916         is zero.
3917         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
3918         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
3919         defined by gnulib.
3920         (get_nonblocking_flag): New function.
3921         (main): Test O_NONBLOCK flag only if it is nonzero.
3922         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
3923
3924 2011-06-03  Jim Meyering  <meyering@redhat.com>
3925
3926         maint: three new prohibit-header-without-use rules
3927         Prohibit use of cloexec.h, posixver.h, same.h without use.
3928         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
3929         (sc_prohibit_posixver_without_use): Likewise.
3930         (sc_prohibit_same_without_use): Likewise.
3931
3932 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
3933
3934         allocator: 'die' routine is now given requested size
3935         * lib/allocator.h (struct allocator.die): New size arg.
3936         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
3937         If the actual problem is an ssize_t limitation, not a size_t or
3938         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
3939
3940 2011-06-01  Eric Blake  <eblake@redhat.com>
3941
3942         strerror: drop strerror_r dependency
3943         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
3944         * lib/strerror-override.c (strerror_override): ...to new file.
3945         * lib/strerror-override.h: Add prototype.
3946         * lib/strerror-impl.h: Delete.
3947         * lib/strerror.c (strerror): New implementation.
3948         * modules/errno (Files): Add new files.
3949         (configure.ac): Compile new file as appropriate.
3950         * modules/strerror (Files): Drop unused file.
3951         (Depends-on): Drop strerror_r-posix.
3952         * MODULES.html.sh: Document strerror_r-posix.
3953         Requested by Sam Steingold.
3954
3955         perror: call strerror_r directly
3956         * modules/perror (Files): Drop strerror-impl.h.
3957         * lib/perror.c (perror): Use our own stack buffer, rather than
3958         calling a wrapper that uses static storage.
3959         * doc/posix-functions/perror.texi (perror): Document a limitation
3960         of our replacement.
3961
3962         strerror_r: fix includes for FreeBSD
3963         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
3964         since we use abort on some platforms.
3965         Reported by Matthias Bolte.
3966
3967 2011-05-31  Bruno Haible  <bruno@clisp.org>
3968
3969         Fix link errors in tests: openat-die uses gettext-h.
3970         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
3971         against $(LIBINTL).
3972         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
3973         against $(LIBINTL).
3974         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
3975         $(LIBINTL).
3976         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
3977         against $(LIBINTL).
3978         * modules/linkat-tests (Makefile.am): Link test-linkat against
3979         $(LIBINTL).
3980         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
3981         $(LIBINTL).
3982         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
3983         against $(LIBINTL).
3984         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
3985         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
3986         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
3987         $(LIBINTL).
3988         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
3989         $(LIBINTL).
3990         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
3991         $(LIBINTL).
3992         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3993
3994 2011-05-31  Bruno Haible  <bruno@clisp.org>
3995
3996         Fix link errors in tests: wait-process uses gettext-h.
3997         * modules/nonblocking-pipe-tests (Makefile.am): Set
3998         test_nonblocking_pipe_main_LDADD.
3999         * modules/nonblocking-socket-tests (Makefile.am): Link
4000         test-nonblocking-socket-main against $(LIBINTL).
4001         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4002
4003 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4004
4005         assert-h: work around 'verify' incompatibility
4006         * lib/verify.h: Use @...@ directives, not ifdef.
4007         * modules/assert-h (assert.h): Implement the directives.
4008         (assert.h): Substitute the symbol-prefix more consistently.
4009
4010 2011-05-29  Jim Meyering  <meyering@redhat.com>
4011
4012         trim: remove three superfluous assignments
4013         * lib/trim.c (trim2): Remove three superfluous assignments
4014         and correct brace positioning.
4015
4016 2011-05-29  Bruno Haible  <bruno@clisp.org>
4017
4018         wctype-h: Avoid namespace pollution on Solaris 2.6.
4019         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
4020         identifiers.
4021         * doc/posix-headers/wctype.texi: Mention the problem.
4022         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4023
4024 2011-05-28  Jim Meyering  <meyering@redhat.com>
4025
4026         parse-datetime.y: accommodate -Wstrict-overflow
4027         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
4028         placate -Wstrict-overflow.
4029
4030         trim: avoid a warning from -O2 -Wstrict-overflow
4031         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
4032
4033 2011-05-29  Bruno Haible  <bruno@clisp.org>
4034
4035         gnulib-tool: Fix bug in yesterday's commit.
4036         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
4037         twice.
4038
4039 2011-05-29  Bruno Haible  <bruno@clisp.org>
4040
4041         Allow multiple gnulib generated include files to be combined.
4042         * gnulib-tool (func_compute_include_guard_prefix): New function.
4043         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
4044         ${gl_include_guard_prefix} references.
4045         (func_import, func_create_testdir): Invoke
4046         func_compute_include_guard_prefix.
4047         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
4048         * lib/ctype.in.h: Likewise.
4049         * lib/dirent.in.h: Likewise.
4050         * lib/errno.in.h: Likewise.
4051         * lib/fcntl.in.h: Likewise.
4052         * lib/float.in.h: Likewise.
4053         * lib/getopt.in.h: Likewise.
4054         * lib/iconv.in.h: Likewise.
4055         * lib/langinfo.in.h: Likewise.
4056         * lib/locale.in.h: Likewise.
4057         * lib/math.in.h: Likewise.
4058         * lib/netdb.in.h: Likewise.
4059         * lib/netinet_in.in.h: Likewise.
4060         * lib/poll.in.h: Likewise.
4061         * lib/pthread.in.h: Likewise.
4062         * lib/pty.in.h: Likewise.
4063         * lib/sched.in.h: Likewise.
4064         * lib/se-selinux.in.h: Likewise.
4065         * lib/search.in.h: Likewise.
4066         * lib/signal.in.h: Likewise.
4067         * lib/spawn.in.h: Likewise.
4068         * lib/stdarg.in.h: Likewise.
4069         * lib/stddef.in.h: Likewise.
4070         * lib/stdint.in.h: Likewise.
4071         * lib/stdio.in.h: Likewise.
4072         * lib/stdlib.in.h: Likewise.
4073         * lib/string.in.h: Likewise.
4074         * lib/strings.in.h: Likewise.
4075         * lib/sys_file.in.h: Likewise.
4076         * lib/sys_ioctl.in.h: Likewise.
4077         * lib/sys_select.in.h: Likewise.
4078         * lib/sys_socket.in.h: Likewise.
4079         * lib/sys_stat.in.h: Likewise.
4080         * lib/sys_time.in.h: Likewise.
4081         * lib/sys_times.in.h: Likewise.
4082         * lib/sys_uio.in.h: Likewise.
4083         * lib/sys_utsname.in.h: Likewise.
4084         * lib/sys_wait.in.h: Likewise.
4085         * lib/sysexits.in.h: Likewise.
4086         * lib/termios.in.h: Likewise.
4087         * lib/time.in.h: Likewise.
4088         * lib/unistd.in.h: Likewise.
4089         * lib/wchar.in.h: Likewise.
4090         * lib/wctype.in.h: Likewise.
4091         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
4092         * modules/ctype (Makefile.am): Likewise.
4093         * modules/dirent (Makefile.am): Likewise.
4094         * modules/errno (Makefile.am): Likewise.
4095         * modules/fcntl-h (Makefile.am): Likewise.
4096         * modules/float (Makefile.am): Likewise.
4097         * modules/getopt-posix (Makefile.am): Likewise.
4098         * modules/iconv-h (Makefile.am): Likewise.
4099         * modules/langinfo (Makefile.am): Likewise.
4100         * modules/locale (Makefile.am): Likewise.
4101         * modules/math (Makefile.am): Likewise.
4102         * modules/netdb (Makefile.am): Likewise.
4103         * modules/netinet_in (Makefile.am): Likewise.
4104         * modules/poll-h (Makefile.am): Likewise.
4105         * modules/pthread (Makefile.am): Likewise.
4106         * modules/pty (Makefile.am): Likewise.
4107         * modules/sched (Makefile.am): Likewise.
4108         * modules/search (Makefile.am): Likewise.
4109         * modules/selinux-h (Makefile.am): Likewise.
4110         * modules/signal (Makefile.am): Likewise.
4111         * modules/spawn (Makefile.am): Likewise.
4112         * modules/stdarg (Makefile.am): Likewise.
4113         * modules/stddef (Makefile.am): Likewise.
4114         * modules/stdint (Makefile.am): Likewise.
4115         * modules/stdio (Makefile.am): Likewise.
4116         * modules/stdlib (Makefile.am): Likewise.
4117         * modules/string (Makefile.am): Likewise.
4118         * modules/strings (Makefile.am): Likewise.
4119         * modules/sys_file (Makefile.am): Likewise.
4120         * modules/sys_ioctl (Makefile.am): Likewise.
4121         * modules/sys_select (Makefile.am): Likewise.
4122         * modules/sys_socket (Makefile.am): Likewise.
4123         * modules/sys_stat (Makefile.am): Likewise.
4124         * modules/sys_time (Makefile.am): Likewise.
4125         * modules/sys_times (Makefile.am): Likewise.
4126         * modules/sys_uio (Makefile.am): Likewise.
4127         * modules/sys_utsname (Makefile.am): Likewise.
4128         * modules/sys_wait (Makefile.am): Likewise.
4129         * modules/sysexits (Makefile.am): Likewise.
4130         * modules/termios (Makefile.am): Likewise.
4131         * modules/time (Makefile.am): Likewise.
4132         * modules/unistd (Makefile.am): Likewise.
4133         * modules/wchar (Makefile.am): Likewise.
4134         * modules/wctype-h (Makefile.am): Likewise.
4135         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
4136
4137 2011-05-29  Bruno Haible  <bruno@clisp.org>
4138
4139         assert-h: Allow multiple gnulib generated replacements to coexist.
4140         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
4141
4142 2011-05-29  Bruno Haible  <bruno@clisp.org>
4143
4144         argp: Allow coexistence with strerror_r-posix module.
4145         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
4146         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
4147         by gnulib's <string.h> replacement), assume it has the POSIX signature,
4148         not the glibc signature.
4149
4150 2011-05-28  Bruno Haible  <bruno@clisp.org>
4151
4152         gnulib-tool: Alternative structure of testdirs, similar to --import.
4153         * gnulib-tool: New option --single-configure.
4154         (func_usage): Document it.
4155         (single_configure): New variable.
4156         (func_modules_transitive_closure_separately,
4157         func_modules_transitive_closure_separately,
4158         func_determine_use_libtests, func_modules_add_dummy_separately,
4159         func_modules_to_filelist_separately): New functions, extracted from
4160         func_import.
4161         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
4162         (func_import): Use the new functions.
4163         (func_create_testdir): Set final_modules. Handle $single_configure =
4164         true case.
4165
4166 2011-05-28  Bruno Haible  <bruno@clisp.org>
4167
4168         getloadavg: Remove an unreliable safety check.
4169         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
4170         getloadavg.c is in place.
4171         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
4172         Reported by Sam Steingold <sds@gnu.org>.
4173
4174 2011-05-28  Bruno Haible  <bruno@clisp.org>
4175
4176         doc: Cleanup yet another file produced by texinfo.tex.
4177         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
4178
4179 2011-05-28  Bruno Haible  <bruno@clisp.org>
4180
4181         Finish the conditional dependencies mechanism.
4182         * gnulib-tool: New option --no-conditional-dependencies.
4183         (func_usage): Document it. Don't mark --conditional-dependencies as
4184         experimental.
4185         (cond_dependencies): The possible values can now be true, false, empty.
4186         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
4187         (func_import): Store setting in gnulib-cache.m4 and read it from there.
4188         * doc/gnulib-tool.texi (Conditional dependencies): New section.
4189
4190 2011-05-28  Bruno Haible  <bruno@clisp.org>
4191
4192         doc: Use a recent texinfo.tex.
4193         * doc/Makefile (tex_opts): New variable.
4194         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
4195
4196 2011-05-28  Jim Meyering  <meyering@redhat.com>
4197
4198         intprops.h: adjust comment to match code change
4199         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
4200         only once, it *may* have side effects.  Also fix an unrelated typo.
4201         (_GL_INT_SIGNED): Likewise.
4202
4203 2011-05-26  Simon Josefsson  <simon@josefsson.org>
4204
4205         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
4206
4207 2011-05-26  Bruno Haible  <bruno@clisp.org>
4208
4209         mbsrchr: Avoid collision with system function on Interix.
4210         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
4211         Reported by Markus Duft <mduft@gentoo.org>.
4212
4213 2011-05-15  James Youngman  <jay@gnu.org>
4214
4215         getopt: for ambiguous options, enumerate the possibilities.
4216         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
4217         the ambiguous options when an ambiguous prefix is given. This was
4218         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
4219         glibc change was
4220         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
4221
4222 2011-05-25  Eric Blake  <eblake@redhat.com>
4223
4224         getcwd: work around mingw bug
4225         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
4226         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4227         Reported by Matthias Bolte.
4228
4229 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4230
4231         test-intprops: disable -Wtype-limits diagnostics
4232         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
4233         diagnostics.  Otherwise, the integer overflow macros generate many
4234         diagnostics.  Reported by Jim Meyering in
4235         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4236
4237         intprops: shorten, to pacify gcc -Woverlength-strings
4238         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
4239         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
4240         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
4241         likely to run afoul of C compiler limits for string constant lengths.
4242         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4243
4244 2011-05-24  Eric Blake  <eblake@redhat.com>
4245
4246         docs: document recently fixed glibc printf bug
4247         * doc/posix-functions/fprintf.texi (fprintf): Document it.
4248         * doc/posix-functions/printf.texi (printf): Likewise.
4249         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4250         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4251
4252         closein-tests: convert to init.sh
4253         * modules/closein-tests (Files): Add init.sh
4254         * tests/test-closein.sh Use it.
4255
4256         yesno-tests: convert to init.sh
4257         * modules/yesno-tests (Files): Add init.sh.
4258         * tests/test-yesno.sh: Use it.
4259
4260         atexit-tests: ensure reliable exit status
4261         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
4262         Reported by Bruno Haible.
4263
4264 2011-05-24  Bruno Haible  <bruno@clisp.org>
4265
4266         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
4267         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
4268         gl_PREREQ_STRERROR_R invocations from here...
4269         * modules/strerror_r-posix (configure.ac): ... to here.
4270
4271 2011-05-24  Eric Blake  <eblake@redhat.com>
4272
4273         strerror_r: fix missing header
4274         * lib/strerror_r.c: Avoid compiler warning about snprintf.
4275
4276         strerror_r: fix AIX test failures
4277         * lib/strerror_r.c (strerror_r): Convert silent truncation to
4278         ERANGE failure.
4279
4280         strerror_r: fix Solaris test failures
4281         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
4282         failures.
4283         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4284
4285         strerror_r: enforce POSIX recommendations
4286         * lib/strerror_r.c (safe_copy): New helper method.
4287         (strerror_r): Guarantee a non-empty string.
4288         * tests/test-strerror_r.c (main): Enhance tests to incorporate
4289         recent POSIX rulings and to match our strerror guarantees.
4290         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4291
4292 2011-05-24  Jim Meyering  <meyering@redhat.com>
4293
4294         test-perror2.c: avoid warning about unused variable
4295         * tests/test-perror2.c (main): Remove declaration of unused "fp".
4296
4297 2011-05-24  Eric Blake  <eblake@redhat.com>
4298
4299         perror: avoid spurious test failure on HP-UX
4300         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
4301
4302         tests: fix logic bug in init.sh
4303         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
4304         shell.
4305
4306 2011-05-24  Jim Meyering  <meyering@redhat.com>
4307
4308         utimensat: do not reference an out-of-scope buffer
4309         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
4310         declared in an inner scope, yet "times" would be dereferenced outside
4311         the scope in which "ts" was valid.
4312         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
4313         of ts[2] "out/up", so that the use of aliased "times" (via
4314         "times = ts;") does not end up referencing an out-of-scope "ts"
4315
4316         opendir-safer.c: don't clobber errno; don't close negative FD
4317         * lib/opendir-safer.c (opendir_safer):
4318         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
4319         file descriptor, and more importantly, don't clobber the
4320         offending errno value with EINVAL.  Before, upon failure
4321         of dup_safer, we would pass the negative file descriptor to
4322         fdopendir, which would clobber errno.
4323
4324 2011-05-23  Bruno Haible  <bruno@clisp.org>
4325
4326         idcache: Fix module description.
4327         * modules/idcache (Include): Set to "idcache.h".
4328
4329 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4330
4331         gnulib-tool: fix portability problem with MacOS sed
4332         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
4333         before the "}".  Problem reported by Leo in
4334         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
4335         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
4336         sed_extract_condition1, sed_extract_condition2.
4337
4338 2011-05-23  Bruno Haible  <bruno@clisp.org>
4339
4340         hash: Simplify autoconf macro.
4341         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
4342
4343 2011-05-23  Bruno Haible  <bruno@clisp.org>
4344
4345         getugroups: Fix module description.
4346         * modules/getugroups (Include): Set to "getugroups.h".
4347
4348 2011-05-23  Bruno Haible  <bruno@clisp.org>
4349
4350         linkat: Simplify autoconf macro.
4351         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
4352
4353 2011-05-23  Bruno Haible  <bruno@clisp.org>
4354             Eric Blake  <eblake@redhat.com>
4355
4356         linkat, renameat: Update dependencies.
4357         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
4358         * modules/linkat (Depends-on): Likewise. Remove also readlink,
4359         symlinkat.
4360
4361 2011-05-23  Jim Meyering  <meyering@redhat.com>
4362
4363         maint.mk: more tight_scope improvements
4364         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
4365         (_gl_TS_headers): Define only in if-0'd block.
4366         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
4367         sometimes we must *not* use it.  Adjust uses accordingly.
4368         (sc_tight_scope): Use much simpler grep-based test to determine
4369         whether we skip this rule.
4370
4371         maint.mk: generalize/improve the tight-scope rule
4372         * top/maint.mk: Emit a warning when the test is skipped.
4373         (_gl_TS_dir): Add $(srcdir)/ prefix.
4374         (_gl_TS_function_match): Simplify, rather than trying
4375         to enumerate common types.  Otherwise, it would fail to match an
4376         "extern unsigned char const *" declaration in idutils.
4377         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
4378         a way to support use of that type of macro.
4379         (_gl_TS_var_match): Simplify regexp.
4380         (_gl_TS_obj_files): New configurable variable.
4381         (_gl_TS_headers): Likewise.
4382
4383 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4384
4385         verify: fix bug when gnulib <assert.h> is also included
4386         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
4387         is defined, not if _GL_STATIC_ASSERT_H is not defined.
4388         Perhaps there's a better way, but this fixes the immediate problem.
4389         Problem reported by Bruno Haible in
4390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
4391
4392 2011-05-22  Bruno Haible  <bruno@clisp.org>
4393
4394         xgetcwd: Simplify autoconf macro.
4395         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
4396
4397 2011-05-22  Bruno Haible  <bruno@clisp.org>
4398
4399         New module 'mktime-internal'.
4400         * modules/mktime-internal: New file.
4401         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
4402         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
4403         mktime_internal as a C macro if libc has __mktime_internal.
4404         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
4405         conditions.
4406         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
4407
4408 2011-05-22  Bruno Haible  <bruno@clisp.org>
4409
4410         timegm: Correct mktime replacement statements.
4411         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
4412         defining mktime as a C macro. This completes a 2009-07-28 commit.
4413
4414 2011-05-22  Bruno Haible  <bruno@clisp.org>
4415
4416         timegm: Simplify autoconf macro.
4417         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
4418
4419 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
4420
4421         clock-time: change to LGPLv2+.
4422         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
4423         BSD-like but we have no mark for that; this is good enough for now.
4424
4425 2011-05-21  Bruno Haible  <bruno@clisp.org>
4426
4427         strerror_r: Fix comments.
4428         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
4429
4430 2011-05-21  Bruno Haible  <bruno@clisp.org>
4431
4432         relocatable-prog-wrapper: Fix possible link error.
4433         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
4434         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
4435         (gl_FUNC_SETENV): ... to here.
4436         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
4437         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
4438
4439 2011-05-21  Bruno Haible  <bruno@clisp.org>
4440
4441         relocatable-prog-wrapper: Assume strerror() exists.
4442         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
4443         m4/strerror.m4.
4444         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
4445         * lib/relocwrapper.c: Remove mention of strerror module.
4446         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
4447         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
4448         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
4449         C macro.
4450
4451 2011-05-21  Bruno Haible  <bruno@clisp.org>
4452
4453         select: Simplify replacement idiom.
4454         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
4455         Win32 platforms.
4456         * lib/sys_select.in.h (select): Simplify accordingly.
4457         * modules/select (Depends-on): Likewise.
4458
4459 2011-05-21  Bruno Haible  <bruno@clisp.org>
4460
4461         mkdir-p: Simplify autoconf macro.
4462         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
4463         gl_FUNC_LCHOWN.
4464
4465 2011-05-21  Eric Blake  <eblake@redhat.com>
4466
4467         strerror_r: avoid clobbering strerror on cygwin
4468         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
4469         fall back instead to sys_errlist.
4470         * modules/strerror (configure.ac): Add witness.
4471         * tests/test-strerror_r.c (main): Enhance test.
4472         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4473         * tests/test-perror2.c (main): Free memory before exit.
4474
4475 2011-05-21  Bruno Haible  <bruno@clisp.org>
4476
4477         mkdtemp: Use gnulib naming conventions.
4478         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
4479         * modules/mkdtemp (configure.ac): Update.
4480
4481 2011-05-20  Eric Blake  <eblake@redhat.com>
4482
4483         strerror_r: avoid corrupting errno on Solaris
4484         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
4485         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4486
4487         strerror_r: avoid compiler warning
4488         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
4489
4490         strerror_r: simplify AIX code
4491         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
4492
4493         test-perror: avoid spurious failure on FreeBSD
4494         * modules/perror-tests (Depends-on): Add strerror, now that
4495         strerror_r no longer pulls it in.
4496
4497 2011-05-20  Bruno Haible  <bruno@clisp.org>
4498
4499         strerror_r-posix: Remove unused dependencies.
4500         * modules/strerror_r-posix (Depends-on): Remove strerror.
4501         Reported by Eric Blake.
4502
4503 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
4504
4505         intprops: remove assumption about A|B representation
4506         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
4507         is a valid integer if both A and B are.  Although this is true for
4508         all known practical hosts, the C standard doesn't guarantee it,
4509         and the code need not assume it.  Also, this change may work around
4510         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
4511         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
4512
4513 2011-05-20  Eric Blake  <eblake@redhat.com>
4514
4515         perror: work around FreeBSD bug
4516         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
4517         is broken.  Move AC_LIBOBJ...
4518         * modules/perror (configure.ac): Here.
4519         * doc/posix-functions/perror.texi (perror): Document this.
4520         * tests/test-perror2.c (main): Enhance test.
4521
4522         test-perror: check for strerror interactions
4523         * tests/macros.h (STREQ): Add macro.
4524         * modules/perror-tests (Files): Add second test.
4525         * tests/test-perror2.c (main): New file.
4526         * doc/posix-functions/perror.texi (perror): Document glibc bug.
4527
4528         test-perror: rewrite to use init script
4529         * modules/perror-tests (Files): Add init.sh.
4530         * tests/test-perror.sh: Use temporary directory.
4531
4532 2011-05-20  Jim Meyering  <meyering@redhat.com>
4533
4534         maint: replace misused "a" with "an"
4535         * doc/intprops.texi: "a integer"
4536         * doc/regex.texi: "a explanation"
4537         * lib/alignof.h: "a object"
4538         * lib/argmatch.h: "a explanation"
4539         * lib/argp-help.c: "a option" and "a OPTION_DOC"
4540         * lib/stdint.in.h: "a integer"
4541         * lib/userspec.c: "a owner"
4542         * doc/gnulib.texi: Fix "a idea", and reword.
4543
4544 2011-05-19  Jim Meyering  <meyering@redhat.com>
4545
4546         maint: correct misuse of "a" and "an"
4547         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
4548         * lib/argp-help.c: "an docum...": s/an/a/
4549         * lib/argp-parse.c: "An vector": s/An/A/
4550         * lib/execute.c: "an native": s/an/a/
4551         * lib/spawn-pipe.c: Likewise.
4552         * lib/gc.h: "an Gc_rc": s/an/a/
4553         * lib/unigbrk.in.h: "an grapheme": s/an/a/
4554         * lib/fts.c: "an stat.st_dev": s/an/a/
4555
4556 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4557
4558         intprops-tests: work around HP-UX 11.23 cc bug with constants
4559         * tests/test-intprops.c (VERIFY): New macro.
4560         (main): Use it, instead of verify, to work around the compiler bug; see
4561         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4562
4563         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
4564         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
4565         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
4566         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
4567         (_GL_REMAINDER_OVERFLOW): Use it.
4568
4569         intprops-tests: revert unsigned part of previous change
4570         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
4571         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
4572         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
4573         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
4574
4575 2011-05-19  Bruno Haible  <bruno@clisp.org>
4576
4577         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
4578         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
4579         strerror_r() returned without filling the buffer.
4580         Reported by Eric Blake.
4581
4582 2011-05-19  Eric Blake  <eblake@redhat.com>
4583
4584         strerror_r: guarantee unchanged errno
4585         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
4586         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
4587         failure.
4588         * tests/test-strerror_r.c (main): Enhance test.
4589
4590 2011-05-19  Bruno Haible  <bruno@clisp.org>
4591
4592         strerror_r: Reorder #if blocks.
4593         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
4594         for consistency with the previous commit.
4595
4596 2011-05-19  Bruno Haible  <bruno@clisp.org>
4597
4598         perror: Avoid clobbering the strerror buffer when possible.
4599         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
4600         * lib/strerror.c: Include it.
4601         * modules/strerror (Files): Add lib/strerror-impl.h.
4602         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
4603         (my_strerror): New function, defined through lib/strerror-impl.h.
4604         (perror): Use it instead of strerror.
4605         * modules/perror (Files): Add lib/strerror-impl.h.
4606         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
4607
4608 2011-05-19  Eric Blake  <eblake@redhat.com>
4609
4610         strerror_r: fix on newer cygwin
4611         * lib/strerror_r.c (strerror_r): Cygwin now has
4612         __xpg_strerror_r, use it.
4613
4614 2011-05-19  Bruno Haible  <bruno@clisp.org>
4615
4616         strerror_r: Avoid clobbering the strerror buffer when possible.
4617         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
4618         (sys_nerr, sys_errlist): New declarations.
4619         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
4620         HP-UX, native Win32, IRIX, and 32-bit Solaris.
4621         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
4622
4623 2011-05-19  Bruno Haible  <bruno@clisp.org>
4624
4625         strerror_r: Fix test failure on mingw.
4626         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
4627         EXTEND_STRERROR_R.
4628         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
4629         macros from errno.in.h instead.
4630
4631 2011-05-19  Eric Blake  <eblake@redhat.com>
4632
4633         strerror: relax test for Solaris
4634         * tests/test-strerror.c (main): Permit Solaris behavior.
4635         * tests/test-strerror_r.c (main): Likewise.
4636
4637         strerror: enforce POSIX ruling on strerror(0)
4638         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
4639         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
4640         * lib/strerror_r.c (rpl_strerror_r): Work around it.
4641         * doc/posix-functions/strerror.texi (strerror): Document it.
4642         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
4643         * tests/test-strerror.c (main): Strengthen test.
4644         * tests/test-strerror_r.c (main): Likewise.
4645
4646 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4647
4648         intprop-tests: port to older and more-pedantic compilers
4649         * modules/intprops-tests (Files): Add tests/macros.h.
4650         * tests/test-intprops.c: Include macros.h.
4651         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
4652         it's no longer documented to expand to an integer constant expression.
4653         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
4654         argument is floating point, as it's no longer documented to expand
4655         to an integer constant expression in that case.
4656         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
4657         compiler bugs reported by Bruno Haible.  See
4658         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4659         (U0, U1): New constants, to work around the same bugs.  Also,
4660         in tests, use e.g., "(unsigned int) 39" rather than "39u".
4661
4662         intprops: work around C compiler bugs
4663         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
4664         bug in Sun C 5.11 2010/08/13 and other compilers; see
4665         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4666
4667         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
4668         * doc/intprops.texi (Integer Type Determination): Fix
4669         documentation for TYPE_IS_INTEGER: it returns an constant
4670         expression, not an integer constant expression.  Fix doc for
4671         TYPE_SIGNED: it returns an integer constant expression only if its
4672         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
4673         hardly worth documented that way....)
4674
4675 2011-05-18  Bruno Haible  <bruno@clisp.org>
4676
4677         strerror_r: Avoid clobbering the strerror buffer when possible.
4678         * lib/strerror_r.c (strerror_r): Merge the three implementations.
4679         Handle gnulib defined errno values here. When strerror() returns NULL
4680         or an empty string, return EINVAL.
4681         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
4682         gnulib defined errno values here.
4683         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
4684
4685 2011-05-18  Eric Blake  <eblake@redhat.com>
4686
4687         fnmatch: avoid compiler warning
4688         * lib/fnmatch_loop.c (FCT): Use correct type.
4689         Reported by Matthias Bolte.
4690
4691 2011-05-13  Jim Meyering  <meyering@redhat.com>
4692
4693         maint.mk: three new prohibit_<HDR>_without_use rules
4694         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
4695         (sc_prohibit_stdio-safer_without_use): Likewise.
4696         (sc_prohibit_xfreopen_without_use): Likewise.
4697
4698 2011-05-17  Jim Meyering  <meyering@redhat.com>
4699
4700         announce-gen: fail if the NEWS delta is empty
4701         If there's nothing noteworthy in NEWS, then either you forgot
4702         or you shouldn't be releasing.
4703         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
4704
4705 2011-05-17  Pádraig Brady <P@draigBrady.com>
4706
4707         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
4708         reserved symbols starting with double underscore from the check.
4709
4710 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
4711
4712         intprops: add doc
4713         * doc/intprops.texi: New file, documenting intprops.
4714         * doc/gnulib.texi (Particular Modules): Include it.
4715
4716         verify: add doc to gnulib manual and fix example
4717         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
4718         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
4719         (Compile-time Assertions): Fix example so it can't overflow.
4720
4721 2011-05-17  Jim Meyering  <meyering@redhat.com>
4722
4723         warnings.m4: don't usurp save_CPPFLAGS variable name
4724         * m4/warnings.m4: Prefix local temporary variable name with gl_.
4725
4726         doc: fix typo
4727         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
4728
4729 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4730             Bruno Haible  <bruno@clisp.org>
4731
4732         doc: Tweak recent change.
4733         * README (Portability guidelines): Tweak new text.
4734         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
4735         Interix 6.1.
4736
4737 2011-05-16  Eric Blake  <eblake@redhat.com>
4738
4739         inttypes: avoid autoconf warning
4740         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
4741         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4742
4743 2011-05-16  Sam Steingold <sds@gnu.org>
4744         and Eric Blake  <eblake@redhat.com>
4745
4746         vc-list-files: accept multiple directory operands
4747         * build-aux/vc-list-files: Iterate over all remaining operands.
4748
4749 2011-05-16  Bruno Haible  <bruno@clisp.org>
4750
4751         Fix confusion regarding deprecated modules.
4752         * modules/calloc (Status, Notice): Mark module as deprecated, not
4753         obsolete.
4754         * modules/fnmatch-posix (Status, Notice): Likewise.
4755         * modules/getdate (Status, Notice): Likewise.
4756         * modules/getopt (Status, Notice): Likewise.
4757         * modules/malloc (Status, Notice): Likewise.
4758         * modules/pipe (Status, Notice): Likewise.
4759         * modules/realloc (Status, Notice): Likewise.
4760         * modules/rename-dest-slash (Status, Notice): Likewise.
4761         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
4762         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
4763         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
4764         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
4765         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
4766
4767 2011-05-16  Bruno Haible  <bruno@clisp.org>
4768
4769         doc: List the target platforms.
4770         * doc/gnulib-intro.texi (Target Platforms): New section.
4771         * doc/gnulib.texi (Introduction): Update menu.
4772         * README (Portability guidelines): Refer to the new section. Update
4773         statement about oldest supported environment. Remove rationale why
4774         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
4775         unportable C89 function.
4776         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
4777         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
4778
4779 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4780
4781         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
4782
4783 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
4784
4785         intprops-tests: new module
4786         * modules/intprops-tests, tests/test-intprops.c: New files.
4787
4788         intprops: add safe, portable integer overflow checking
4789         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
4790         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
4791         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
4792         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
4793         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
4794         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
4795         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
4796         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
4797         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
4798         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
4799         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
4800
4801 2011-05-12  James Youngman  <jay@gnu.org>
4802
4803         Add a test for glibc's Bugzilla bug #12378.
4804         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
4805         doesn't allow the literal matching of a lone "[" (which is
4806         required by POSIX).
4807         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
4808
4809 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
4810
4811         Sync glibc change fixing Bugzilla bug #12378.
4812         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
4813         beginning and fall back to matching as normal character if the
4814         string ends before the matching ']' is found.  This is what POSIX
4815         requires.
4816
4817 2011-05-13  Eric Blake  <eblake@redhat.com>
4818
4819         getcwd-lgpl: relax test for FreeBSD
4820         * doc/posix-functions/getcwd.texi (getcwd): Document portability
4821         issue.
4822         * tests/test-getcwd-lgpl.c (main): Relax test.
4823         Reported by Matthias Bolte.
4824
4825 2011-05-11  Eric Blake  <eblake@redhat.com>
4826
4827         test-fflush: silence compiler warning
4828         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
4829
4830 2011-05-11  Bruno Haible  <bruno@clisp.org>
4831
4832         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
4833         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
4834         * modules/canonicalize (Depends-on): Add 'nocrash'.
4835         * modules/canonicalize-lgpl (Depends-on): Likewise.
4836         * doc/posix-functions/realpath.texi: Update platforms list.
4837         Reported by Ryan Schmidt <ryandesign@macports.org>.
4838
4839 2011-05-11  Bruno Haible  <bruno@clisp.org>
4840
4841         group-member: Declare function in <unistd.h>.
4842         * lib/unistd.in.h (group_member): New declaration.
4843         * lib/group-member.h: Remove file.
4844         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
4845         * tests/test-unistd-c++.cc: Check signature of group_member.
4846         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
4847         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
4848         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
4849         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
4850         HAVE_GROUP_MEMBER.
4851         * modules/group-member (Files): Remove lib/group-member.h.
4852         (Depends-on): Add unistd. Specify conditions.
4853         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4854         (Include): Change to <unistd.h>.
4855         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
4856         HAVE_GROUP_MEMBER.
4857         * NEWS: Mention the change.
4858         * lib/euidaccess.c: Don't include group-member.h.
4859
4860 2011-05-11  Bruno Haible  <bruno@clisp.org>
4861
4862         group-member: Document module.
4863         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
4864         module.
4865
4866 2011-05-11  Bruno Haible  <bruno@clisp.org>
4867
4868         fclose: Fix mistake earlier today.
4869         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
4870
4871 2011-05-11  Eric Blake  <eblake@redhat.com>
4872
4873         fclose: preserve fflush errors
4874         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
4875         Reported by Jim Meyering.
4876
4877         bootstrap: support a prereq of 'rpcgen -' on RHEL5
4878         * build-aux/bootstrap (check_versions): When no specific version
4879         is required, merely check that the app produces an exit status
4880         that indicates its existence.
4881
4882         maint.mk: drop redundant check
4883         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
4884         the same but better.
4885
4886 2011-05-11  Bruno Haible  <bruno@clisp.org>
4887
4888         fclose: Fix possible link error.
4889         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
4890         unregister_shadow_fd. Improve comments.
4891         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
4892         Eric Blake.
4893
4894 2011-05-11  Jim Meyering  <meyering@redhat.com>
4895
4896         maint.mk: improve "can not" detection and generalize rule name
4897         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
4898         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
4899         Use the same technique as in sc_prohibit_doubled_word, so that
4900         we recognize "can not" also when the words are separated by a newline.
4901         Suggested by Eric Blake.
4902         (perl_filename_lineno_text_): Define.  Factored out of...
4903         (prohibit_doubled_word_): ...here.  Use the new definition.
4904         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
4905         (prohibit_undesirable_word_seq_RE_): New overridable variable.
4906         (ignore_undesirable_word_sequence_RE_): New overridable variable.
4907
4908 2011-05-10  Eric Blake  <eblake@redhat.com>
4909
4910         fclose: avoid double close race when possible
4911         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
4912         all but WINDOWS_SOCKETS.
4913
4914 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
4915
4916         openat: correct new comment
4917         * lib/openat-proc.c (openat_proc_name): Correct the comment.
4918
4919 2011-05-10  Jim Meyering  <meyering@redhat.com>
4920
4921         openat: add comments
4922         * lib/openat-proc.c (openat_proc_name): Add comments,
4923         mostly from Eric Blake.
4924
4925 2011-05-09  Eric Blake  <eblake@redhat.com>
4926
4927         openat: reduce syscalls in first probe of /proc
4928         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
4929         be a directory.  Simplify the probe for .. bugs.
4930         * modules/openat (Depends-on): Drop same-inode.
4931         Reported by Bastien ROUCARIES.
4932
4933 2011-05-09  Jim Meyering  <meyering@redhat.com>
4934
4935         maint.mk: change semantics/name of tight_scope variables
4936         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
4937         Rename variables to align with semantics that make them more useful.
4938
4939         maint.mk: tweak new rule's name not to impinge
4940         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
4941         (sc_tight_scope): Use new rule name rather than $@-0.
4942
4943         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
4944         * top/maint.mk (sc_tight_scope): New rule.
4945         (sc_tight_scope-0): New rule, ifdef'd out.
4946         (_gl_TS_dir): Default.
4947         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
4948         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
4949
4950 2011-05-09  Simon Josefsson  <simon@josefsson.org>
4951
4952         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
4953         Haible <bruno@clisp.org>.
4954
4955 2011-05-08  Bruno Haible  <bruno@clisp.org>
4956
4957         Comments.
4958         * m4/isnanf.m4: Add comment.
4959         * m4/isnanl.m4: Likewise.
4960
4961 2011-05-08  Bruno Haible  <bruno@clisp.org>
4962
4963         glob: Remove obsolete macro.
4964         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
4965
4966 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
4967
4968         intprops: Sun C 5.11 supports __typeof__
4969         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
4970         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
4971         which is new.
4972         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
4973
4974         intprops: switch to usual gnulib indenting and naming
4975         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
4976         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
4977
4978         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
4979
4980 2011-05-08  Jim Meyering  <meyering@redhat.com>
4981
4982         maint.mk: suppress "Entering/Leaving directory" diag in announcement
4983         * top/maint.mk (release-prep): Use make's --no-print-directory
4984         option when generating the announcement.  This eliminates the
4985         pesky "make[2]: Entering/Leaving directory" diagnostics in the
4986         generated announcement template.
4987
4988 2011-05-08  Bruno Haible  <bruno@clisp.org>
4989
4990         tzset: Fix gettimeofday wrapper on Solaris 2.6.
4991         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
4992         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
4993
4994 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
4995
4996         ignore-value, verify: Omit include files from lib_SOURCES.
4997         * modules/ignore-value, modules/verify (Makefile.am):
4998         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
4999         that leads Automake to duplicate use of am__objects_... variables
5000         in Makefile.in.  See
5001         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
5002
5003 2011-05-07  Bruno Haible  <bruno@clisp.org>
5004
5005         fclose: Simplify autoconf macro.
5006         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
5007         defined.
5008
5009 2011-05-07  Bruno Haible  <bruno@clisp.org>
5010
5011         canonicalize-lgpl: Fix autoconf macro ordering bug.
5012         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
5013         gl_STDLIB_H_DEFAULTS.
5014
5015 2011-05-06  Eric Blake  <eblake@redhat.com>
5016
5017         maintainer-makefile: make sc_po_check easier to tune
5018         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
5019         to probe for strings, such as an alternate location for gnulib.
5020
5021         fclose: guarantee behavior on seekable stdin
5022         * modules/fclose (Depends-on): Add fflush.
5023         * doc/posix-functions/fclose.texi (fclose): Document this.
5024         * tests/test-fclose.c (main): Make test for this unconditional.
5025
5026 2011-05-06  Bruno Haible  <bruno@clisp.org>
5027
5028         fflush, fpurge: Relicense under LGPLv2+.
5029         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
5030         * modules/fpurge (License): Likewise.
5031         With permission from Eric Blake and Jim Meyering.
5032         Suggested by Eric Blake.
5033
5034 2011-05-06  Karl Berry  <karl@gnu.org>
5035
5036         * MODULES.html.sh (func_all_modules): remove exit.
5037
5038 2011-05-06  Jim Meyering  <meyering@redhat.com>
5039
5040         maint.mk: use info-gnu@ as the default only for a stable release
5041         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
5042         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
5043         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
5044         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
5045
5046 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5047
5048         assert-h: new module, which supports C1X-style static_assert
5049         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
5050         * lib/verify.h: Revamp so that this can be copied into assert.h,
5051         while retaining the ability to use it standalone as before.
5052         Rename private identifiers so as not to encroach on the
5053         standard C namespace, since this is now used by assert.h.
5054         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
5055         the old verify_true.
5056         (_GL_VERIFY_TRUE): New macro, with much of the contents of
5057         the old verify_true.  Use _GL_VERIFY_TYPE.
5058         (_GL_VERIFY): New macro, with much of the contents of the old verify.
5059         (static_assert): New macro, if _GL_STATIC_ASSERT_H
5060         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
5061         defined when this file is copied into the replacement assert.h.
5062         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
5063         and _Static_assert is not built in.
5064         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
5065         defined, and use the new macros mentioned above.
5066         * doc/posix-headers/assert.texi: Document this.
5067
5068 2011-05-05  Bruno Haible  <bruno@clisp.org>
5069
5070         fclose, fflush: Respect rules for use of AC_LIBOBJ.
5071         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
5072         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
5073         gl_REPLACE_FCLOSE here.
5074         * modules/fflush (Depends-on): Remove fclose.
5075         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
5076         combination with module 'fclose'.
5077
5078 2011-05-05  Bruno Haible  <bruno@clisp.org>
5079
5080         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
5081         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
5082         gl_FUNC_FFLUSH.
5083         (gl_FUNC_FFLUSH): Use it.
5084         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
5085         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
5086         gl_REPLACE_FSEEKO here.
5087
5088 2011-05-05  Bruno Haible  <bruno@clisp.org>
5089
5090         tzset: Relicense under LGPL.
5091         * modules/tzset (License): Change to LGPL.
5092         No agreement needed; it's a no-op.
5093
5094         strtoimax, strtoumax: Relicense under LGPL.
5095         * modules/strtoimax (License): Change to LGPL.
5096         * modules/strtoumax (License): Likewise.
5097         With permission from Jim Meyering, Paul Eggert:
5098         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
5099         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
5100
5101         getgroups: Relicense under LGPL.
5102         * modules/getgroups (License): Change to LGPL.
5103         With permission from Jim Meyering, Paul Eggert, Eric Blake:
5104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5105         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5106         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5107
5108         nanosleep: Relicense under LGPL.
5109         * modules/nanosleep (License): Change to LGPL.
5110         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
5111         Haible:
5112         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5113         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5115         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5116
5117         futimens: Relicense under LGPL.
5118         * modules/futimens (License): Change to LGPL.
5119         With permission from Eric Blake:
5120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5121
5122         fflush: Relicense under LGPL.
5123         * modules/fflush (License): Change to LGPL.
5124         With permission from Eric Blake, Bruno Haible, Jim Meyering:
5125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5126         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
5128
5129         tmpfile: Relicense under LGPL.
5130         * modules/tmpfile (License): Change to LGPL.
5131         With permission from Ben Pfaff:
5132         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5133
5134         isfinite: Relicense under LGPL.
5135         * modules/isfinite (License): Change to LGPL.
5136         With permission from Ben Pfaff, Bruno Haible:
5137         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
5139
5140         acosl..tanl: Relicense under LGPL.
5141         * modules/acosl (License): Change to LGPL.
5142         * modules/asinl (License): Likewise.
5143         * modules/atanl (License): Likewise.
5144         * modules/cosl (License): Likewise.
5145         * modules/expl (License): Likewise.
5146         * modules/logl (License): Likewise.
5147         * modules/sinl (License): Likewise.
5148         * modules/sqrtl (License): Likewise.
5149         * modules/tanl (License): Likewise.
5150         Source code originally from glibc and Paolo Bonzini. Agreements:
5151         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
5152         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
5153
5154 2011-05-05  Bruno Haible  <bruno@clisp.org>
5155
5156         signal: Define sighandler_t.
5157         * lib/signal.in.h (sighandler_t): New type.
5158         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
5159         whether sighandler_t is defined.
5160         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
5161         * modules/signal (Depends-on): Add extensions.
5162         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
5163         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
5164         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
5165
5166 2011-05-05  Eric Blake  <eblake@redhat.com>
5167
5168         maint: remove useless REPLACE_*_H macros
5169         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
5170         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5171         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5172         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
5173         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5174         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5175         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
5176         * m4/btowc.m4: Update callers.
5177         * m4/dirfd.m4: Likewise.
5178         * m4/duplocale.m4: Likewise.
5179         * m4/fchdir.m4: Likewise.
5180         * m4/fdopendir.m4: Likewise.
5181         * m4/inet_ntop.m4: Likewise.
5182         * m4/inet_pton.m4: Likewise.
5183         * m4/ioctl.m4: Likewise.
5184         * m4/mbrlen.m4: Likewise.
5185         * m4/mbrtowc.m4: Likewise.
5186         * m4/mbsinit.m4: Likewise.
5187         * m4/mbsnrtowcs.m4: Likewise.
5188         * m4/mbsrtowcs.m4: Likewise.
5189         * m4/poll.m4: Likewise.
5190         * m4/setlocale.m4: Likewise.
5191         * m4/wcrtomb.m4: Likewise.
5192         * m4/wcsnrtombs.m4: Likewise.
5193         * m4/wcsrtombs.m4: Likewise.
5194         * m4/wctob.m4: Likewise.
5195         * m4/wcwidth.m4: Likewise.
5196         * modules/posix_spawn: Likewise.
5197         * modules/posix_spawn_file_actions_addclose: Likewise.
5198         * modules/posix_spawn_file_actions_adddup2: Likewise.
5199         * modules/posix_spawn_file_actions_addopen: Likewise.
5200         * modules/posix_spawn_file_actions_destroy: Likewise.
5201         * modules/posix_spawn_file_actions_init: Likewise.
5202         * modules/posix_spawnattr_destroy: Likewise.
5203         * modules/posix_spawnattr_getflags: Likewise.
5204         * modules/posix_spawnattr_getpgroup: Likewise.
5205         * modules/posix_spawnattr_getschedparam: Likewise.
5206         * modules/posix_spawnattr_getschedpolicy: Likewise.
5207         * modules/posix_spawnattr_getsigdefault: Likewise.
5208         * modules/posix_spawnattr_getsigmask: Likewise.
5209         * modules/posix_spawnattr_init: Likewise.
5210         * modules/posix_spawnattr_setflags: Likewise.
5211         * modules/posix_spawnattr_setpgroup: Likewise.
5212         * modules/posix_spawnattr_setschedparam: Likewise.
5213         * modules/posix_spawnattr_setschedpolicy: Likewise.
5214         * modules/posix_spawnattr_setsigdefault: Likewise.
5215         * modules/posix_spawnattr_setsigmask: Likewise.
5216         * modules/posix_spawnp: Likewise.
5217
5218 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
5219
5220         Add option to do-release-commit-and-tag to specify branch.
5221         * build-aux/do-release-commit-and-tag: Add --branch.
5222
5223 2011-05-03  Bruno Haible  <bruno@clisp.org>
5224
5225         Avoid unnecessary compilation units, through conditional dependencies.
5226         * modules/accept (Depends-on): Add conditions to the dependencies.
5227         * modules/acosl (Depends-on): Likewise.
5228         * modules/argz (Depends-on): Likewise.
5229         * modules/asinl (Depends-on): Likewise.
5230         * modules/atanl (Depends-on): Likewise.
5231         * modules/atoll (Depends-on): Likewise.
5232         * modules/bind (Depends-on): Likewise.
5233         * modules/btowc (Depends-on): Likewise.
5234         * modules/canonicalize-lgpl (Depends-on): Likewise.
5235         * modules/ceil (Depends-on): Likewise.
5236         * modules/ceilf (Depends-on): Likewise.
5237         * modules/ceill (Depends-on): Likewise.
5238         * modules/chdir-long (Depends-on): Likewise.
5239         * modules/chown (Depends-on): Likewise.
5240         * modules/close (Depends-on): Likewise.
5241         * modules/connect (Depends-on): Likewise.
5242         * modules/cosl (Depends-on): Likewise.
5243         * modules/dirfd (Depends-on): Likewise.
5244         * modules/dprintf (Depends-on): Likewise.
5245         * modules/dprintf-posix (Depends-on): Likewise.
5246         * modules/error (Depends-on): Likewise.
5247         * modules/euidaccess (Depends-on): Likewise.
5248         * modules/expl (Depends-on): Likewise.
5249         * modules/faccessat (Depends-on): Likewise.
5250         * modules/fchdir (Depends-on): Likewise.
5251         * modules/fclose (Depends-on): Likewise.
5252         * modules/fcntl (Depends-on): Likewise.
5253         * modules/fdopendir (Depends-on): Likewise.
5254         * modules/fflush (Depends-on): Likewise.
5255         * modules/floor (Depends-on): Likewise.
5256         * modules/floorf (Depends-on): Likewise.
5257         * modules/floorl (Depends-on): Likewise.
5258         * modules/fnmatch (Depends-on): Likewise.
5259         * modules/fopen (Depends-on): Likewise.
5260         * modules/fprintf-posix (Depends-on): Likewise.
5261         * modules/frexp (Depends-on): Likewise.
5262         * modules/frexp-nolibm (Depends-on): Likewise.
5263         * modules/frexpl (Depends-on): Likewise.
5264         * modules/frexpl-nolibm (Depends-on): Likewise.
5265         * modules/fseek (Depends-on): Likewise.
5266         * modules/fsusage (Depends-on): Likewise.
5267         * modules/ftell (Depends-on): Likewise.
5268         * modules/ftello (Depends-on): Likewise.
5269         * modules/futimens (Depends-on): Likewise.
5270         * modules/getcwd (Depends-on): Likewise.
5271         * modules/getcwd-lgpl (Depends-on): Likewise.
5272         * modules/getdelim (Depends-on): Likewise.
5273         * modules/getdomainname (Depends-on): Likewise.
5274         * modules/getgroups (Depends-on): Likewise.
5275         * modules/gethostname (Depends-on): Likewise.
5276         * modules/getline (Depends-on): Likewise.
5277         * modules/getlogin_r (Depends-on): Likewise.
5278         * modules/getopt-posix (Depends-on): Likewise.
5279         * modules/getpeername (Depends-on): Likewise.
5280         * modules/getsockname (Depends-on): Likewise.
5281         * modules/getsockopt (Depends-on): Likewise.
5282         * modules/getsubopt (Depends-on): Likewise.
5283         * modules/getusershell (Depends-on): Likewise.
5284         * modules/glob (Depends-on): Likewise.
5285         * modules/grantpt (Depends-on): Likewise.
5286         * modules/iconv_open (Depends-on): Likewise.
5287         * modules/iconv_open-utf (Depends-on): Likewise.
5288         * modules/inet_ntop (Depends-on): Likewise.
5289         * modules/inet_pton (Depends-on): Likewise.
5290         * modules/ioctl (Depends-on): Likewise.
5291         * modules/isapipe (Depends-on): Likewise.
5292         * modules/isfinite (Depends-on): Likewise.
5293         * modules/isinf (Depends-on): Likewise.
5294         * modules/lchown (Depends-on): Likewise.
5295         * modules/ldexpl (Depends-on): Likewise.
5296         * modules/link (Depends-on): Likewise.
5297         * modules/linkat (Depends-on): Likewise.
5298         * modules/listen (Depends-on): Likewise.
5299         * modules/logl (Depends-on): Likewise.
5300         * modules/lstat (Depends-on): Likewise.
5301         * modules/mbrlen (Depends-on): Likewise.
5302         * modules/mbrtowc (Depends-on): Likewise.
5303         * modules/mbsinit (Depends-on): Likewise.
5304         * modules/mbsnrtowcs (Depends-on): Likewise.
5305         * modules/mbsrtowcs (Depends-on): Likewise.
5306         * modules/mbtowc (Depends-on): Likewise.
5307         * modules/memcmp (Depends-on): Likewise.
5308         * modules/mkdir (Depends-on): Likewise.
5309         * modules/mkdtemp (Depends-on): Likewise.
5310         * modules/mkfifo (Depends-on): Likewise.
5311         * modules/mkfifoat (Depends-on): Likewise.
5312         * modules/mknod (Depends-on): Likewise.
5313         * modules/mkostemp (Depends-on): Likewise.
5314         * modules/mkostemps (Depends-on): Likewise.
5315         * modules/mkstemp (Depends-on): Likewise.
5316         * modules/mkstemps (Depends-on): Likewise.
5317         * modules/mktime (Depends-on): Likewise.
5318         * modules/nanosleep (Depends-on): Likewise.
5319         * modules/open (Depends-on): Likewise.
5320         * modules/openat (Depends-on): Likewise.
5321         * modules/perror (Depends-on): Likewise.
5322         * modules/poll (Depends-on): Likewise.
5323         * modules/popen (Depends-on): Likewise.
5324         * modules/posix_spawn (Depends-on): Likewise.
5325         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
5326         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
5327         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
5328         * modules/posix_spawnp (Depends-on): Likewise.
5329         * modules/pread (Depends-on): Likewise.
5330         * modules/printf-posix (Depends-on): Likewise.
5331         * modules/ptsname (Depends-on): Likewise.
5332         * modules/putenv (Depends-on): Likewise.
5333         * modules/pwrite (Depends-on): Likewise.
5334         * modules/readline (Depends-on): Likewise.
5335         * modules/readlink (Depends-on): Likewise.
5336         * modules/readlinkat (Depends-on): Likewise.
5337         * modules/recv (Depends-on): Likewise.
5338         * modules/recvfrom (Depends-on): Likewise.
5339         * modules/regex (Depends-on): Likewise.
5340         * modules/remove (Depends-on): Likewise.
5341         * modules/rename (Depends-on): Likewise.
5342         * modules/renameat (Depends-on): Likewise.
5343         * modules/rmdir (Depends-on): Likewise.
5344         * modules/round (Depends-on): Likewise.
5345         * modules/roundf (Depends-on): Likewise.
5346         * modules/roundl (Depends-on): Likewise.
5347         * modules/rpmatch (Depends-on): Likewise.
5348         * modules/select (Depends-on): Likewise.
5349         * modules/send (Depends-on): Likewise.
5350         * modules/sendto (Depends-on): Likewise.
5351         * modules/setenv (Depends-on): Likewise.
5352         * modules/setlocale (Depends-on): Likewise.
5353         * modules/setsockopt (Depends-on): Likewise.
5354         * modules/shutdown (Depends-on): Likewise.
5355         * modules/sigaction (Depends-on): Likewise.
5356         * modules/signbit (Depends-on): Likewise.
5357         * modules/sigprocmask (Depends-on): Likewise.
5358         * modules/sinl (Depends-on): Likewise.
5359         * modules/sleep (Depends-on): Likewise.
5360         * modules/snprintf (Depends-on): Likewise.
5361         * modules/snprintf-posix (Depends-on): Likewise.
5362         * modules/socket (Depends-on): Likewise.
5363         * modules/sprintf-posix (Depends-on): Likewise.
5364         * modules/sqrtl (Depends-on): Likewise.
5365         * modules/stat (Depends-on): Likewise.
5366         * modules/strchrnul (Depends-on): Likewise.
5367         * modules/strdup-posix (Depends-on): Likewise.
5368         * modules/strerror (Depends-on): Likewise.
5369         * modules/strerror_r-posix (Depends-on): Likewise.
5370         * modules/strndup (Depends-on): Likewise.
5371         * modules/strnlen (Depends-on): Likewise.
5372         * modules/strptime (Depends-on): Likewise.
5373         * modules/strsep (Depends-on): Likewise.
5374         * modules/strsignal (Depends-on): Likewise.
5375         * modules/strstr-simple (Depends-on): Likewise.
5376         * modules/strtod (Depends-on): Likewise.
5377         * modules/strtoimax (Depends-on): Likewise.
5378         * modules/strtok_r (Depends-on): Likewise.
5379         * modules/strtoumax (Depends-on): Likewise.
5380         * modules/symlink (Depends-on): Likewise.
5381         * modules/symlinkat (Depends-on): Likewise.
5382         * modules/tanl (Depends-on): Likewise.
5383         * modules/tcgetsid (Depends-on): Likewise.
5384         * modules/tmpfile (Depends-on): Likewise.
5385         * modules/trunc (Depends-on): Likewise.
5386         * modules/truncf (Depends-on): Likewise.
5387         * modules/truncl (Depends-on): Likewise.
5388         * modules/uname (Depends-on): Likewise.
5389         * modules/unlink (Depends-on): Likewise.
5390         * modules/unlockpt (Depends-on): Likewise.
5391         * modules/unsetenv (Depends-on): Likewise.
5392         * modules/usleep (Depends-on): Likewise.
5393         * modules/utimensat (Depends-on): Likewise.
5394         * modules/vasprintf (Depends-on): Likewise.
5395         * modules/vdprintf (Depends-on): Likewise.
5396         * modules/vdprintf-posix (Depends-on): Likewise.
5397         * modules/vfprintf-posix (Depends-on): Likewise.
5398         * modules/vprintf-posix (Depends-on): Likewise.
5399         * modules/vsnprintf (Depends-on): Likewise.
5400         * modules/vsnprintf-posix (Depends-on): Likewise.
5401         * modules/vsprintf-posix (Depends-on): Likewise.
5402         * modules/wcrtomb (Depends-on): Likewise.
5403         * modules/wcscasecmp (Depends-on): Likewise.
5404         * modules/wcscspn (Depends-on): Likewise.
5405         * modules/wcsdup (Depends-on): Likewise.
5406         * modules/wcsncasecmp (Depends-on): Likewise.
5407         * modules/wcsnrtombs (Depends-on): Likewise.
5408         * modules/wcspbrk (Depends-on): Likewise.
5409         * modules/wcsrtombs (Depends-on): Likewise.
5410         * modules/wcsspn (Depends-on): Likewise.
5411         * modules/wcsstr (Depends-on): Likewise.
5412         * modules/wcstok (Depends-on): Likewise.
5413         * modules/wcswidth (Depends-on): Likewise.
5414         * modules/wctob (Depends-on): Likewise.
5415         * modules/wctomb (Depends-on): Likewise.
5416         * modules/wctype (Depends-on): Likewise.
5417         * modules/wcwidth (Depends-on): Likewise.
5418         * modules/write (Depends-on): Likewise.
5419
5420 2011-05-03  Bruno Haible  <bruno@clisp.org>
5421
5422         Support for conditional dependencies.
5423         * doc/gnulib.texi (Module description): Document the syntax of
5424         conditional dependencies.
5425         * gnulib-tool: New option --conditional-dependencies.
5426         (func_usage): Document it.
5427         (cond_dependencies): New variable.
5428         (func_get_automake_snippet_conditional,
5429         func_get_automake_snippet_unconditional): New functions, extracted from
5430         func_get_automake_snippet.
5431         (func_get_automake_snippet): Use them.
5432         (sed_first_32_chars): New variable.
5433         (func_module_shellfunc_name): New function.
5434         (func_module_shellvar_name): New function.
5435         (func_module_conditional_name): New function.
5436         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
5437         func_cond_module_condition): New functions.
5438         (func_modules_transitive_closure): Add support for conditional
5439         dependencies.
5440         (func_emit_lib_Makefile_am): For a conditional module, enclose the
5441         conditional automake snippet in an automake conditional.
5442         (func_emit_autoconf_snippets): Emit shell functions that contain the
5443         code for conditional modules.
5444         (func_import, func_create_testdir): Update specification.
5445
5446 2011-05-03  Eric Blake  <eblake@redhat.com>
5447
5448         test-getaddrinfo: report error information
5449         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
5450
5451 2011-05-03  Jim Meyering  <meyering@redhat.com>
5452
5453         bootstrap: avoid build failure when $GZIP is set
5454         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
5455         program name.  If defined at all, it is supposed to list gzip options.
5456         Reported by Alan Curry in http://debbugs.gnu.org/8609
5457
5458 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
5459
5460         readme-release: new module with release instructions
5461         * modules/readme-release: New module.
5462         * top/README-release: New file, from coreutils, grep, diffutils.
5463         * MODULES.html.sh (Support for maintaining and releasing): Add it.
5464
5465 2011-05-02  Eric Blake  <eblake@redhat.com>
5466
5467         fflush: also replace fclose when fixing fflush
5468         * modules/fflush (Depends-on): Add fclose.
5469         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
5470         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
5471         memstreams with no backing fd.
5472         * doc/posix-functions/fclose.texi (fclose): Document the use of
5473         fflush module to fix the bug.
5474         * tests/test-fclose.c (main): Relax test when fclose is used in
5475         isolation.
5476
5477         fclose: add some tests
5478         * modules/fclose-tests: New test module.
5479         * tests/test-fclose.c: New file.
5480         * doc/posix-functions/fclose.texi (fclose): Document the bug.
5481
5482         fclose: reduced dependencies
5483         * modules/fclose (Depends-on): Switch from fflush/fseeko to
5484         simpler lseek.
5485         * lib/fclose.c (rpl_fclose): Likewise.
5486         Reported by Simon Josefsson.
5487
5488         exit: drop remaining clients
5489         * modules/argmatch (Depends-on): Replace exit with stdlib.
5490         * modules/copy-file (Depends-on): Likewise.
5491         * modules/execute (Depends-on): Likewise.
5492         * modules/exitfail (Depends-on): Likewise.
5493         * modules/obstack (Depends-on): Likewise.
5494         * modules/pagealign_alloc (Depends-on): Likewise.
5495         * modules/pipe-filter-gi (Depends-on): Likewise.
5496         * modules/pipe-filter-ii (Depends-on): Likewise.
5497         * modules/savewd (Depends-on): Likewise.
5498         * modules/spawn-pipe (Depends-on): Likewise.
5499         * modules/wait-process (Depends-on): Likewise.
5500         * modules/xsetenv (Depends-on): Likewise.
5501         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
5502         * modules/git-merge-changelog (Depends-on): Likewise.
5503         * modules/long-options (Depends-on): Likewise.
5504         * modules/pt_chown (Depends-on): Likewise.
5505         * modules/sysexits (Depends-on): Likewise.
5506
5507         freading: relax license from LGPLv3+ to LGPLv2+
5508         * modules/freading (License): Relax LGPL version.
5509
5510 2011-05-02  Bruno Haible  <bruno@clisp.org>
5511
5512         fchdir: Remove unused dependencies.
5513         * modules/fchdir (Depends-on): Remove include_next.
5514
5515 2011-05-02  Bruno Haible  <bruno@clisp.org>
5516
5517         gnulib-tool: Refactor.
5518         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
5519         from func_emit_autoconf_snippets.
5520         (func_emit_autoconf_snippets): Use it.
5521
5522 2011-05-02  Simon Josefsson  <simon@josefsson.org>
5523
5524         * NEWS: Document removal of 'exit'.
5525         * modules/exit: Remove file.
5526
5527 2011-05-01  Bruno Haible  <bruno@clisp.org>
5528
5529         Update DEPENDENCIES.
5530         * DEPENDENCIES (gettext): Recommend the newest release.
5531         Reported by Simon Josefsson.
5532
5533 2011-05-01  Bruno Haible  <bruno@clisp.org>
5534
5535         gnulib-tool: Reduce code duplication.
5536         * gnulib-tool (func_emit_autoconf_snippets): New function.
5537         (func_import, func_create_testdir): Use it.
5538
5539 2011-04-30  Eric Blake  <eblake@redhat.com>
5540
5541         fclose: don't fail on non-seekable input stream
5542         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
5543         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
5544         since fflush is allowed to fail in that case.
5545
5546 2011-04-30  Bruno Haible  <bruno@clisp.org>
5547
5548         dup3: cleanup
5549         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
5550
5551 2011-04-30  Bruno Haible  <bruno@clisp.org>
5552
5553         netdb: Make it work in C++ mode.
5554         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
5555         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
5556         module.
5557         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
5558         gl_MODULE_INDICATOR_FOR_TESTS.
5559         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
5560         * modules/netdb-c++-tests: New file.
5561         * tests/test-netdb-c++.cc: New file.
5562
5563 2011-04-30  Bruno Haible  <bruno@clisp.org>
5564
5565         New modules 'vfscanf', 'vscanf'.
5566         * modules/vfscanf: New file.
5567         * modules/vscanf: New file.
5568         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
5569         here.
5570         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
5571         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
5572
5573 2011-04-30  Bruno Haible  <bruno@clisp.org>
5574
5575         passfd: Add comments.
5576         * lib/passfd.c: Add comments about platforms.
5577
5578 2011-04-30  Bruno Haible  <bruno@clisp.org>
5579
5580         sys_uio: Make <sys/uio.h> self-contained.
5581         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
5582         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
5583
5584 2011-04-30  Bruno Haible  <bruno@clisp.org>
5585
5586         sys_socket: Ensure 'struct iovec' definition.
5587         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
5588         <sys/socket.h>.
5589         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
5590
5591 2011-04-30  Bruno Haible  <bruno@clisp.org>
5592
5593         sys_uio: Protect definition of 'struct iovec'.
5594         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
5595         it as a C struct.
5596
5597 2011-04-30  Bruno Haible  <bruno@clisp.org>
5598
5599         manywarnings: fix indentation
5600         * m4/manywarnings.m4: Indent by 2 spaces consistently.
5601
5602 2011-04-30  Pádraig Brady <P@draigBrady.com>
5603
5604         manywarnings: add -Wno-missing-field-initializers if needed.
5605         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
5606         option if it's needed to allow initialization with { 0, }
5607
5608 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
5609
5610         announce-gen: cosmetic improvement
5611         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
5612
5613 2011-04-29  Jim Meyering  <meyering@redhat.com>
5614
5615         vc-list-files: indent with spaces, not TABs
5616         * build-aux/vc-list-files: Convert leading TABs to spaces,
5617         to match the style of most other files in gnulib.
5618
5619         announce-gen: indent with spaces, not TABs
5620         * build-aux/announce-gen: Convert all TABs to spaces, to match
5621         the style of most other files in gnulib.
5622
5623 2011-04-29  Eric Blake  <eblake@redhat.com>
5624
5625         quotearg: avoid uninitialized variable use
5626         * lib/quotearg.c (quoting_options_from_style): Initialize
5627         remaining fields, and ensure that custom styles are only used via
5628         quoting_options rather than quoting_style.
5629
5630 2011-04-29  Jim Meyering  <meyering@redhat.com>
5631
5632         maint.mk: remove unused VC-tag variable
5633         * top/maint.mk (VC-tag): Remove unused variable.
5634
5635 2011-04-29  Bruno Haible  <bruno@clisp.org>
5636
5637         netdb: fix gai_strerror replacements
5638         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
5639         * modules/netdb: Substitute it.
5640
5641 2011-04-29  Jim Meyering  <meyering@redhat.com>
5642
5643         test-getcwd.c: avoid new set-but-not-used warning
5644         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
5645         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
5646         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
5647         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
5648
5649         test-hash.c: avoid a new shadowing warning
5650         * tests/test-hash.c (main): Don't shadow "dup".
5651
5652 2011-04-28  Eric Blake  <eblake@redhat.com>
5653
5654         getaddrinfo: fix gai_strerror signature
5655         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
5656         and work around mingw with UNICODE defined.
5657         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
5658         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
5659         * modules/netdb (Makefile.am): Substitute it.
5660         * lib/netdb.in.h (gai_strerror): Declare replacement.
5661         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
5662         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
5663         the fix.
5664
5665         getsockopt: avoid compiler warning
5666         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
5667         Reported by Matthias Bolte.
5668
5669         tests: drop unused link dependency
5670         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
5671         * modules/dirent-safer-tests (Makefile.am): Likewise.
5672         * modules/fdopendir-tests (Makefile.am): Likewise.
5673         * modules/mkfifoat-tests (Makefile.am): Likewise.
5674         * modules/openat-safer-tests (Makefile.am): Likewise.
5675         * modules/openat-tests (Makefile.am): Likewise.
5676         * modules/readlinkat-tests (Makefile.am): Likewise.
5677         * modules/symlinkat-tests (Makefile.am): Likewise.
5678         * modules/linkat-tests (Makefile.am): Likewise.
5679         (Depends-on): Switch to filenamecat-lgpl.
5680         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
5681         LIBINTL.
5682         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
5683         * tests/test-linkat.c (main): Don't require xalloc.
5684
5685         hash, mgetgroups: drop xalloc dependency
5686         * lib/hash.c (includes): Adjust includes.
5687         * lib/mgetgroups.c (includes): Likewise.
5688         (xgetgroups): Move...
5689         * lib/xgetgroups.c: ...to new file.
5690         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
5691         * modules/xgetgroups: New file, split from...
5692         * modules/mgetgroups: ...here.
5693         (Depends-on): Add xalloc-oversized.
5694         * modules/hash (Depends-on): Likewise.
5695         * modules/hash-tests (Depends-on): Drop xalloc.
5696         (test_hash_LDADD): Drop unused library.
5697         * tests/test-hash.c (main): Break xalloc dependency.
5698         (includes): Drop unused include.
5699
5700         xalloc-oversized: new module
5701         * modules/xalloc-oversized: New module.
5702         * modules/xalloc (Depends-on): Add it.
5703         * lib/xalloc.h (xalloc_oversized): Move...
5704         * lib/xalloc-oversized.h: ...into new file.
5705
5706         utimecmp: drop dependency on xmalloc
5707         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
5708         due to memory pressure.
5709         * modules/utimecmp (Depends-on): Drop xalloc.
5710
5711 2011-04-27  Eric Blake  <eblake@redhat.com>
5712
5713         getcwd: fix mingw bugs
5714         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
5715         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
5716         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
5717
5718 2011-04-27  Bruno Haible  <bruno@clisp.org>
5719
5720         mkstemps: Ensure declaration on MacOS X 10.5.
5721         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
5722         * doc/glibc-functions/mkstemps.texi: Document header file problem on
5723         MacOS X.
5724
5725 2011-04-27  Bruno Haible  <bruno@clisp.org>
5726
5727         mkstemp: More documentation.
5728         * doc/posix-functions/mkstemp.texi: Document header file problem on
5729         MacOS X.
5730
5731 2011-04-27  Bruno Haible  <bruno@clisp.org>
5732
5733         mkstemp: Tweak configure message when cross-compiling.
5734         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
5735         result as a guess.
5736
5737 2011-04-27  Bruno Haible  <bruno@clisp.org>
5738
5739         clean-temp: Clarify what it does.
5740         * lib/clean-temp.h: Add more comments.
5741         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
5742         module.
5743         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
5744         * doc/glibc-functions/mkstemps.texi: Likewise.
5745         * doc/glibc-functions/mkostemps.texi: Likewise.
5746
5747 2011-04-27  Eric Blake  <eblake@redhat.com>
5748
5749         fchdir: avoid extra chdir and fix test
5750         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
5751         getcwd-lgpl.
5752         * lib/fchdir.c (get_name): Any absolute name will do; it does not
5753         have to be canonical.
5754         (canonicalize_file_name): Drop unused macro.
5755         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
5756
5757         filenamecat-lgpl: fix licence
5758         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
5759         when it was first created.
5760
5761         linkat, renameat: add missing dependency
5762         * modules/linkat (Depends-on): Require getcwd-lgpl.
5763         * modules/renameat (Depends-on): Likewise.
5764
5765         tests: reduce dependencies
5766         * tests/test-linkat.c (main): Use lighter-weight getcwd.
5767         * tests/test-renameat.c (main): Likewise.
5768         * modules/linkat-tests (Depends-on): Relax dependency.
5769         * modules/renameat-tests (Depends-on): Likewise.
5770         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
5771         dependency explicit.
5772
5773         save-cwd: reduce default dependency
5774         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
5775         * lib/save-cwd.c: Update comments.
5776         * NEWS: Document the semantic change.
5777
5778         getcwd: enhance tests
5779         * tests/test-getcwd-lgpl.c: New file, taken from...
5780         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
5781         repeat long path stress tests from m4 probe.
5782         * modules/getcwd-lgpl-tests: New module.
5783         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
5784         * m4/getcwd-abort-bug.m4: Update comment.
5785         * m4/getcwd-path-max.m4: Likewise.
5786
5787         getcwd-lgpl: new module
5788         * modules/getcwd-lgpl: New module.
5789         * lib/getcwd-lgpl.c: New file.
5790         * doc/posix-functions/getcwd.texi (getcwd): Document it.
5791         * MODULES.html.sh (lacking POSIX:2008): Likewise.
5792         * modules/getcwd (configure.ac): Set C witness.
5793         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
5794
5795         getcwd: tweak comments
5796         * m4/getcwd-abort-bug.m4: Fix comments.
5797         * m4/getcwd-path-max.m4: Likewise.
5798         * m4/getcwd.m4: Likewise.
5799
5800 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
5801         and Eric Blake  <eblake@redhat.com>
5802
5803         mkstemp: replace if system version uses wrong permissions
5804         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
5805         read/write mode bits set in file created by mkstemp.
5806         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
5807
5808 2011-04-27  Eric Blake  <eblake@redhat.com>
5809
5810         passfd: avoid compiler warning
5811         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
5812         Reported by Laine Stump.
5813
5814 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
5815
5816         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
5817         required by the NetBSD (and perhaps other 4.4BSD derived) join.
5818
5819 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
5820         and Eric Blake  <eblake@redhat.com>
5821
5822         mkstemp: mention clean-temp module
5823         * lib/mkstemp.c: Add comment.
5824         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
5825
5826 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
5827
5828         inttypes: also provide default values for 32-bit tests
5829         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
5830         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
5831
5832 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
5833
5834         strtoumax: remove dependency on strtoimax
5835         This is like the strtoull change of yesterday.
5836         * modules/strtoumax (Files): Add lib/strtoimax.c.
5837         (Depends-on): Remove strtoimax and add verify.
5838
5839         inttypes-incomplete: new module
5840         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
5841         all but the PRI* and SCN* parts of gl_INTTYPES_H.
5842         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
5843         of gl_INTTYPES_H.
5844         (gl_INTTYPES_H): Rewrite in terms of these new macros.
5845         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
5846         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
5847         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
5848         * modules/strtoumax, modules/xstrtol (Depends-on):
5849         Depend on inttypes-incomplete, not inttypes.
5850         * modules/inttypes-incomplete: New module, containing the contents
5851         of the old modules/inttypes module, except that the Files: section
5852         omits m4/inttypes-pri.m4, and the configure.ac section invokes
5853         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
5854         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
5855         (Depends-on): Depend only on inttypes-incomplete.
5856         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
5857
5858         inttypes: omit now-redundant strtoimax and strtoumax work
5859         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
5860         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
5861
5862         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
5863         This supports apps that need pointers to strtoimax and strtoumax,
5864         and ports to HP-UX 11.00 64.bit, which has macros that expand to
5865         nonexistent functions.  See
5866         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
5867         et seq.
5868         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
5869         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
5870         a macro.
5871         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
5872
5873 2011-04-25  Simon Josefsson  <simon@josefsson.org>
5874
5875         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
5876
5877 2011-04-25  Bruno Haible  <bruno@clisp.org>
5878
5879         strtol, strtoul: Mark modules as obsolete.
5880         * modules/strtol (Status, Notice): New sections.
5881         * modules/strtoul (Status, Notice): New sections.
5882
5883 2011-04-25  Bruno Haible  <bruno@clisp.org>
5884
5885         strtod: Remove check for strtod, unless supporting old platforms.
5886         * modules/strtod-obsolete: New file.
5887         * m4/strtod-obsolete.m4: New file.
5888         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
5889         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
5890         * modules/strtod (Depends-on): Add strtod-obsolete.
5891         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
5892
5893 2011-04-25  Bruno Haible  <bruno@clisp.org>
5894
5895         strcase: Make module obsolete.
5896         * modules/strcase (Status, Notice): New sections.
5897
5898 2011-04-25  Bruno Haible  <bruno@clisp.org>
5899
5900         dup2: Remove check for dup2, unless supporting old obsolete platforms.
5901         * modules/dup2-obsolete: New file.
5902         * m4/dup2-obsolete.m4: New file.
5903         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
5904         gl_FUNC_DUP2_OBSOLETE is not also defined.
5905         * modules/dup2 (Depends-on): Add dup2-obsolete.
5906         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
5907
5908 2011-04-25  Bruno Haible  <bruno@clisp.org>
5909
5910         strnlen: Avoid memchr related link error on old obsolete platforms.
5911         * modules/memchr-obsolete: New file.
5912         * m4/memchr-obsolete.m4: New file.
5913         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
5914         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
5915         * modules/memchr (Depends-on): Add memchr-obsolete.
5916         * modules/strnlen (Depends-on): Likewise.
5917         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
5918
5919 2011-04-25  Jim Meyering  <meyering@redhat.com>
5920
5921         maint.mk: makefile_at_at_check extend and clean up
5922         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
5923         in addition to */Makefile.am.
5924         Exempt legitimate uses of @VAR@ notation, e.g.,
5925         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
5926         Remove obsolete coreutils-specific comment.
5927         Prompted by discussion here:
5928         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
5929
5930 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
5931
5932         strtoul: remove dependency on strtol
5933         This is so that 'configure' need not check for strtol merely because
5934         the application needs strtoul.
5935         * modules/strtoul (Files): Add lib/strtol.c.
5936         (Depends-on): Remove strtol.
5937
5938         strtoull: remove dependency on strtoul
5939         This is like the strtoll change.
5940         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
5941         (Depends-on): Remove strtoul.
5942
5943         strtoll: remove dependency on strtol
5944         This is so that 'configure' need not check for strtol merely because
5945         the application needs strtoll.
5946         * modules/strtoll (Files): Add lib/strtol.c.
5947         (Depends-on): Remove strtol.
5948
5949 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5950
5951         inttypes: Move some configure check to module 'imaxdiv'.
5952         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
5953         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
5954         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
5955
5956 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5957
5958         inttypes: Move some configure check to module 'imaxabs'.
5959         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
5960         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
5961         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
5962
5963 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5964
5965         inttypes: Remove configure tests that are not needed since 2009-12-31.
5966         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
5967         gl_cv_header_working_inttypes_h.
5968
5969 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5970
5971         * modules/strnlen (Depends-on): Remove memchr.
5972         The strnlen implementation doesn't need the memchr module's fixes; see
5973         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
5974
5975         strtol: remove dependency on wchar
5976         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
5977         * modules/strtol (Depends-on): Remove wchar.
5978
5979 2011-04-21  Eric Blake  <eblake@redhat.com>
5980
5981         passfd: fix test regression on Linux
5982         * modules/passfd-tests (configure.ac): Correct socketpair check.
5983
5984         passfd: speed up configure and drop unused code
5985         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
5986         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
5987         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
5988         Instead of probing at configure for unix_scm_rights_bsd44_way,
5989         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
5990         check to a struct member probe.
5991         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
5992         (sendfd, recvfd): Update preprocessor checks.
5993         * modules/passfd (Files): Reflect rename, and drop unused file.
5994         (Depends-on): Drop unused dependency.
5995
5996         passfd: allow compilation on mingw
5997         * modules/sys_socket (Depends-on): Add sys_uio.
5998         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
5999         iovec and a minimal struct msghdr.
6000         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
6001         * tests/test-sys_socket.c (main): Enhance test.
6002         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
6003         guaranteed to provide what we need.
6004         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
6005         * modules/passfd-tests (Depends-on): Add sys_wait.
6006         * tests/test-passfd.c (main): Skip test on mingw, for now.
6007         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
6008         partial 'struct msghdr' implementation.
6009
6010         sys_uio: new module
6011         * modules/sys_uio: New module.
6012         * modules/sys_uio-tests: Likewise.
6013         * lib/sys_uio.in.h: New file.
6014         * m4/sys_uio_h.m4: Likewise.
6015         * tests/test-sys_uio.c: Likewise.
6016         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
6017         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
6018
6019 2011-04-20  Jim Meyering  <meyering@redhat.com>
6020
6021         useless-if-before-free: avoid false-positive
6022         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
6023         disjunct so that it too requires a terminating ";".  Without that,
6024         this script would identify as useless one statement from gcc that
6025         was not:
6026           if (aligned_ptr)
6027             free (((void **) aligned_ptr) [-1]);
6028
6029 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
6030
6031         doc: update users.txt.
6032         * users.txt: Add barcode.
6033
6034 2011-04-19  Bruno Haible  <bruno@clisp.org>
6035
6036         ioctl: Remove link dependency on native Windows.
6037         * lib/fd-hook.h: Renamed from lib/close-hook.h.
6038         (gl_close_fn, gl_ioctl_fn): New types.
6039         (struct fd_hook): Renamed from struct close_hook. Change type of
6040         private_close_fn field. Add private_ioctl_fn field.
6041         (close_hook_fn): Add parameter for primary close method.
6042         (execute_close_hooks, execute_all_close_hooks): Likewise.
6043         (ioctl_hook_fn): New type.
6044         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
6045         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6046         argument.
6047         (unregister_fd_hook): Renamed from unregister_close_hook.
6048         * lib/fd-hook.c: Renamed from lib/close-hook.c.
6049         Don't include <unistd.h>.
6050         (close): Remove undef.
6051         (anchor): Update.
6052         (execute_close_hooks): Add argument for primary close method.
6053         (execute_all_close_hooks): Likewise.
6054         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
6055         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6056         argument. Allow each argument to be NULL.
6057         (unregister_fd_hook): Renamed from unregister_close_hook.
6058         * lib/close.c (rpl_close): Pass 'close' function pointer to
6059         execute_all_close_hooks.
6060         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
6061         (primary_ioctl): New function.
6062         (ioctl): Don't call ioctlsocket here. Instead, call
6063         execute_all_ioctl_hooks.
6064         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
6065         close method.
6066         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
6067         (fd_sockets_hook): Renamed from close_sockets_hook.
6068         (gl_sockets_startup, gl_sockets_cleanup): Update.
6069         * modules/fd-hook: Renamed from modules/close-hook. Update.
6070         * modules/close (Depends-on): Add fd-hook, remove close-hook.
6071         * modules/sockets (Depends-on): Likewise.
6072         * modules/ioctl (Depends-on): Add fd-hook.
6073         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
6074         GNULIB_SOCKET.
6075
6076 2011-04-19  Bruno Haible  <bruno@clisp.org>
6077
6078         Move the support of O_NONBLOCK in open() to the 'open' module.
6079         * modules/nonblocking (Depends-on): Remove 'open'.
6080         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
6081         gl_cv_have_open_O_NONBLOCK.
6082         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
6083         O_NONBLOCK support.
6084         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
6085
6086 2011-04-17  Bruno Haible  <bruno@clisp.org>
6087
6088         pipe2: Simplify code.
6089         * lib/pipe2.c (pipe2): Reduce code duplication.
6090
6091 2011-04-17  Bruno Haible  <bruno@clisp.org>
6092
6093         nonblocking: Add comment.
6094         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
6095
6096 2011-04-17  Bruno Haible  <bruno@clisp.org>
6097
6098         nonblocking: Add tests for sockets.
6099         * tests/test-nonblocking-socket.sh: New file.
6100         * tests/test-nonblocking-socket-main.c: New file.
6101         * tests/test-nonblocking-socket-child.c: New file.
6102         * tests/test-nonblocking-socket.h: New file.
6103         * tests/socket-server.h: New file.
6104         * tests/socket-client.h: New file.
6105         * modules/nonblocking-socket-tests: New file.
6106         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
6107
6108 2011-04-17  Bruno Haible  <bruno@clisp.org>
6109
6110         nonblocking: Add tests for pipes.
6111         * tests/test-nonblocking-pipe.sh: New file.
6112         * tests/test-nonblocking-pipe-main.c: New file.
6113         * tests/test-nonblocking-pipe-child.c: New file.
6114         * tests/test-nonblocking-pipe.h: New file.
6115         * tests/test-nonblocking-writer.h: New file.
6116         * tests/test-nonblocking-reader.h: New file.
6117         * tests/test-nonblocking-misc.h: New file.
6118         * modules/nonblocking-pipe-tests: New file.
6119         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
6120
6121 2011-04-16  Bruno Haible  <bruno@clisp.org>
6122
6123         gettext: Clarify the needed programmer actions.
6124         * modules/gettext (Notice): New field.
6125         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6126
6127 2011-04-16  Bruno Haible  <bruno@clisp.org>
6128
6129         strchrnul: Tweak last commit.
6130         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
6131         bug.
6132         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
6133         as in _GL_FUNCDECL_SYS.
6134         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
6135         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
6136
6137 2011-04-15  Eric Blake  <eblake@redhat.com>
6138
6139         strchrnul: work around cygwin bug
6140         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
6141         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
6142         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
6143         * modules/string (Makefile.am): Substitute it.
6144         * lib/string.in.h (strchrnul): Use it.
6145
6146 2011-04-15  Bruno Haible  <bruno@clisp.org>
6147
6148         Don't require lib/stdio-write.c when only module 'stdio' is used.
6149         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
6150         invocation.
6151         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
6152
6153 2011-04-14  Bruno Haible  <bruno@clisp.org>
6154
6155         Support non-blocking pipe I/O in read() on native Windows.
6156         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
6157         (read): New declaration.
6158         * lib/read.c: New file.
6159         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
6160         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
6161         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
6162         vscanf): New declarations.
6163         * lib/stdio-read.c: New file.
6164         * m4/read.m4: New file.
6165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
6166         REPLACE_READ.
6167         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
6168         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6169         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
6170         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
6171         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
6172         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6173         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6174         * modules/read: New file.
6175         * modules/nonblocking (Files): Add lib/stdio-read.c.
6176         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
6177         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
6178         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6179         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6180         * modules/pread (Depends-on): Add read.
6181         * modules/safe-read (Depends-on): Likewise.
6182         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
6183         gets, scanf, vfscanf, vscanf): Verify signatures.
6184         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
6185         problem with non-blocking pipes.
6186         * doc/posix-functions/fgetc.texi: Likewise.
6187         * doc/posix-functions/fgets.texi: Likewise.
6188         * doc/posix-functions/fread.texi: Likewise.
6189         * doc/posix-functions/fscanf.texi: Likewise.
6190         * doc/posix-functions/getc.texi: Likewise.
6191         * doc/posix-functions/getchar.texi: Likewise.
6192         * doc/posix-functions/gets.texi: Likewise.
6193         * doc/posix-functions/scanf.texi: Likewise.
6194         * doc/posix-functions/vfscanf.texi: Likewise.
6195         * doc/posix-functions/vscanf.texi: Likewise.
6196
6197 2011-04-14  Bruno Haible  <bruno@clisp.org>
6198
6199         Support non-blocking pipe I/O in write() on native Windows.
6200         * lib/write.c (rpl_write): Split a write request that failed merely
6201         because the byte count was larger than the pipe buffer's size.
6202         * doc/posix-functions/write.texi: Mention the problem with large byte
6203         counts.
6204
6205 2011-04-14  Bruno Haible  <bruno@clisp.org>
6206
6207         wchar: Ensure that wchar_t gets defined on uClibc.
6208         * lib/wchar.in.h: On uClibc, include <stddef.h>.
6209         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
6210
6211 2011-04-13  Bruno Haible  <bruno@clisp.org>
6212
6213         safe-write, full-read: Avoid unnecessary compilation units.
6214         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
6215         (Depends-on): Remove safe-read. Add ssize_t.
6216         * modules/full-read (Files): Add lib/full-write.c.
6217         (Depends-on): Add full-write.
6218
6219 2011-04-13  Bruno Haible  <bruno@clisp.org>
6220
6221         Support non-blocking pipe I/O and SIGPIPE in pwrite().
6222         * modules/pwrite (Depends-on): Add 'write'.
6223
6224 2011-04-13  Bruno Haible  <bruno@clisp.org>
6225
6226         Support non-blocking pipe I/O in write() on native Windows.
6227         * lib/unistd.in.h (write): Enable replacement also if
6228         GNULIB_UNISTD_H_NONBLOCKING is 1.
6229         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
6230         (rpl_write): When failing to write on a non-blocking pipe, change
6231         errno from ENOSPC to EAGAIN.
6232         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
6233         putchar, puts, vfprintf, vprintf): Enable replacement also if
6234         GNULIB_STDIO_H_NONBLOCKING is 1.
6235         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
6236         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
6237         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
6238         CALL_WITH_SIGPIPE_EMULATION.
6239         (CALL_WITH_SIGPIPE_EMULATION): Use them.
6240         * m4/nonblocking.m4: New file.
6241         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
6242         for non-blocking I/O support.
6243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6244         GNULIB_UNISTD_H_NONBLOCKING.
6245         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
6246         required for non-blocking I/O support.
6247         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
6248         * modules/nonblocking (Files): Add m4/nonblocking.m4,
6249         lib/stdio-write.c, m4/asm-underscore.m4.
6250         (Depends-on): Add stdio, unistd.
6251         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
6252         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
6253         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
6254         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
6255         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
6256         problem with non-blocking pipes.
6257         * doc/posix-functions/fputc.texi: Likewise.
6258         * doc/posix-functions/fputs.texi: Likewise.
6259         * doc/posix-functions/fwrite.texi: Likewise.
6260         * doc/posix-functions/printf.texi: Likewise.
6261         * doc/posix-functions/putc.texi: Likewise.
6262         * doc/posix-functions/putchar.texi: Likewise.
6263         * doc/posix-functions/puts.texi: Likewise.
6264         * doc/posix-functions/vfprintf.texi: Likewise.
6265         * doc/posix-functions/vprintf.texi: Likewise.
6266         * doc/posix-functions/write.texi: Likewise.
6267
6268 2011-04-10  Jim Meyering  <meyering@redhat.com>
6269
6270         maint.mk: prohibit doubled words
6271         Detect them also when they're separated by a newline.
6272         There are 3 ways to customize it:
6273           - disable the test on a per file basis, as usual with rules using
6274             $(VC_LIST_EXCEPT)
6275           - replace the default doubled-word-selecting regexp (affects all files)
6276           - ignore a particular file-vs-doubled-word match
6277         I nearly used that last one to ignore the "is is" match in
6278         coreutils' NEWS file, since the text was "ls -is is ..."
6279         To do that, I would have added this line to cfg.mk:
6280           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
6281         but it would have ignored any "is is" match in NEWS.
6282         Low probability, but still...
6283         Instead, I changed the text, slightly:
6284           -  ls -is is now consistent with ls -lis in ignoring values returned
6285           +  "ls -is" is now consistent with ls -lis in ignoring values returned
6286         * top/maint.mk (prohibit_double_word_RE_): Provide default.
6287         (prohibit_doubled_word_): Define.
6288         (sc_prohibit_doubled_word): New rule.
6289         (sc_prohibit_the_the): Remove.  Subsumed by the above.
6290
6291 2011-04-10  Jim Meyering  <meyering@redhat.com>
6292
6293         maint: fix doubled-word typo in comment
6294         * m4/gethostname.m4: s/is is/it is/
6295         * m4/getdomainname.m4: Likewise.
6296
6297 2011-04-10  Jim Meyering  <meyering@redhat.com>
6298
6299         maint: remove doubled word: s/it it/it/
6300         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
6301
6302 2011-04-10  Jim Meyering  <meyering@redhat.com>
6303
6304         maint.mk: remove useless semicolon and backslash
6305         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
6306         semicolon and backslash.
6307
6308 2011-04-10  Bruno Haible  <bruno@clisp.org>
6309
6310         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
6311         * modules/stdint-tests (Depends-on): Add wchar.
6312
6313 2011-04-10  Jim Meyering  <meyering@redhat.com>
6314
6315         maint: remove doubled words in comments, e.g., s/a a/a/
6316         * lib/strptime.c (day_of_the_week): s/the the/the/
6317         * tests/test-chown.h (test_chown): s/a a/a/
6318
6319         test-chown.h: correct a cast
6320         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
6321         when the destination is a stat.st_gid.
6322
6323 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
6324
6325         getaddrinfo: Fix test for sa_len member.
6326         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
6327         include <sys/types.h> before <sys/socket.h>.
6328
6329 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6330
6331         maint: change "can not" to "cannot"
6332         * doc/posix-functions/iconv.texi (iconv): This one crossed line
6333         boundaries.
6334
6335 2011-04-09  Jim Meyering  <meyering@redhat.com>
6336
6337         maint: change "a a" to "a"
6338         * tests/test-lchown.h (test_lchown): s/a a/a/
6339
6340         maint.mk: prohibit \<the the\>
6341         * top/maint.mk (sc_prohibit_the_the): New rule.
6342
6343         maint: fix "the the" in comment
6344         * lib/count-one-bits.h: s/the the/the/
6345
6346         maint: change "can not" to "cannot"
6347         But do not change the occurrences in maintain.texi or in
6348         build-aux/po/Makefile.in.in, which I presume comes from gettext.
6349         * doc/gnulib-tool.texi: s/can not/cannot/
6350         * doc/posix-functions/accept.texi (accept): Likewise.
6351         * doc/posix-functions/socket.texi (socket): Likewise.
6352         * lib/mbrtowc.c: Likewise.
6353
6354         maint.mk: prohibit use of "can not"
6355         * top/maint.mk (sc_prohibit_can_not): New rule.
6356         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
6357
6358 2011-04-09  Bruno Haible  <bruno@clisp.org>
6359
6360         careadlinkat: Guard against misuse of careadlinkatcwd.
6361         * lib/careadlinkat.c: Include <stdlib.h>.
6362         (careadlinkatcwd): Check that the fd argument is as expected.
6363
6364 2011-04-09  Bruno Haible  <bruno@clisp.org>
6365
6366         careadlinkat: Use common coding style.
6367         * lib/careadlinkat.c: Move gnulib includes after system includes.
6368
6369 2011-04-09  Bruno Haible  <bruno@clisp.org>
6370
6371         careadlinkat: Clarify specification.
6372         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
6373         (careadlinkatcwd): Add comment.
6374         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
6375
6376 2011-04-09  Bruno Haible  <bruno@clisp.org>
6377
6378         areadlinkat: Avoid link error on many platforms.
6379         * modules/areadlinkat (Depends-on): Add areadlink.
6380
6381 2011-04-09  Bruno Haible  <bruno@clisp.org>
6382
6383         allocator, careadlinkat: Fix double-inclusion guard.
6384         * lib/allocator.h: Fix double-inclusion guard.
6385         * lib/careadlinkat.h: Likewise.
6386
6387 2011-04-09  Bruno Haible  <bruno@clisp.org>
6388
6389         relocatable-prog-wrapper: Update after module 'areadlink' changed.
6390         * lib/relocwrapper.c: Update dependencies hierarchy.
6391         * build-aux/install-reloc: Update list of files to be compiled.
6392         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
6393         lib/allocator.[hc].
6394
6395 2011-04-08  Eric Blake  <eblake@redhat.com>
6396
6397         strftime: silence gnulib-tool warning
6398         * modules/strftime-tests (Depends-on): Drop automatic dependency.
6399
6400 2011-04-08  Bruno Haible  <bruno@clisp.org>
6401
6402         verify: Fix syntax error with GCC 4.6 in C++ mode.
6403         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
6404         (HAVE_STATIC_ASSERT): New macro.
6405         (verify_true, verify): Use 'static_assert' if it is supported and
6406         '_Static_assert' is not supported.
6407
6408 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6409
6410         allocator: New module.
6411         * modules/allocator, lib/allocator.c: New files.
6412         * lib/allocator.h (stdlib_allocator): New decl.
6413         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
6414         Remove.  Do not include <stdlib.h>.
6415         (careadlinkat): Use stdlib_allocator instead of rolling our own.
6416         * modules/careadlinkat (Files): Remove lib/allocator.h.
6417         (Depends-on): Add allocator.
6418
6419         stdlib: let modules use system malloc, realloc
6420         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
6421         if !_GL_USE_STDLIB_ALLOC.
6422         (malloc, realloc): Limit this change to a smaller scope.
6423
6424         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
6425         (malloc, realloc): Don't #undef; no longer needed.
6426         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6427         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6428         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6429         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6430         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6431         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6432         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6433         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6434
6435         careadlinkat: rename members to avoid problem
6436         * lib/allocator.h (struct allocator): Rename members from
6437         malloc/realloc to allocate/reallocate, to avoid problems if malloc
6438         and realloc are #define'd.  Reported by Eric Blake in
6439         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
6440         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
6441
6442 2011-04-08  Eric Blake  <eblake@redhat.com>
6443
6444         nonblocking: reduce dependency
6445         * tests/test-nonblocking.c: Only test sockets when in use.
6446         * modules/nonblocking-tests (Depends-on): Drop socket.
6447         (Makefile.am): Link even if sockets are not present.
6448         * modules/pipe2-tests (Makefile.am): Likewise.
6449         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
6450
6451         pipe2: fix O_NONBLOCK support on mingw
6452         * modules/pipe2 (Depends-on): Add nonblocking.
6453         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
6454         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
6455         * tests/test-nonblocking.c (main): Likewise.
6456         * modules/pipe2-tests (Makefile.am): Avoid link failure.
6457
6458         fcntl-h: fix O_ACCMODE on cygwin
6459         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
6460         * lib/fcntl.in.h (O_ACCMODE): Fix it.
6461
6462         pipe-filter: drop O_NONBLOCK workarounds
6463         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
6464         * modules/pipe-filter-ii (Depends-on): Likewise.
6465         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
6466
6467         nonblocking: provide O_NONBLOCK for mingw
6468         * modules/nonblocking (Depends-on): Add open.
6469         (configure.ac): Set new witness macro.
6470         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
6471         * modules/fcntl-h (Makefile.am): Substitute it.
6472         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
6473         nonblocking module is in use.
6474         * lib/nonblocking.c: Adjust portability test.
6475         * lib/open.c (open): Don't let native open see gnulib flag.
6476         * tests/test-fcntl-h.c (main): Enhance test.
6477         * tests/test-open.h (test_open): Likewise.
6478         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
6479
6480         careadlinkat: fix compilation error on mingw
6481         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
6482         within struct allocator.
6483
6484 2011-04-06  Eric Blake  <eblake@redhat.com>
6485
6486         binary-io: relicense under LGPLv2+
6487         * modules/binary-io (License): Relax to LGPLv2+.
6488         Requested for libvirt, and required by pipe2.
6489
6490 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6491
6492         verify: use _Static_assert if available
6493         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
6494         (verify_true, verify): Use it if available.  This generates better
6495         diagnostics with GCC 4.6.0 and later.
6496
6497 2011-04-05  Bruno Haible  <bruno@clisp.org>
6498
6499         Remove leftover generated .h files after config.status changed.
6500
6501         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
6502         GL_GENERATE_ALLOCA_H.
6503         * modules/alloca-opt (Makefile.am): Remove alloca.h if
6504         GL_GENERATE_ALLOCA_H evaluates to false.
6505
6506         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
6507         GL_GENERATE_ARGZ_H.
6508         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
6509         evaluates to false.
6510
6511         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
6512         GL_GENERATE_BYTESWAP_H.
6513         * modules/byteswap (Makefile.am): Remove byteswap.h if
6514         GL_GENERATE_BYTESWAP_H evaluates to false.
6515
6516         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
6517         GL_GENERATE_ERRNO_H.
6518         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
6519         evaluates to false.
6520
6521         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
6522         GL_GENERATE_FLOAT_H.
6523         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
6524         evaluates to false.
6525
6526         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
6527         GL_GENERATE_FNMATCH_H.
6528         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
6529         GL_GENERATE_FNMATCH_H evaluates to false.
6530
6531         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
6532         GL_GENERATE_GLOB_H.
6533         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
6534         evaluates to false.
6535
6536         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
6537         automake conditional GL_GENERATE_ICONV_H.
6538         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
6539         evaluates to false.
6540
6541         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
6542         GL_GENERATE_NETINET_IN_H.
6543         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
6544         GL_GENERATE_NETINET_IN_H evaluates to false.
6545
6546         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
6547         conditional GL_GENERATE_PTHREAD_H.
6548         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
6549         * modules/pthread (Makefile.am): Remove pthread.h if
6550         GL_GENERATE_PTHREAD_H evaluates to false.
6551
6552         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
6553         GL_GENERATE_SCHED_H.
6554         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
6555         evaluates to false.
6556
6557         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
6558         conditional GL_GENERATE_SELINUX_CONTEXT_H.
6559         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
6560         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
6561
6562         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
6563         GL_GENERATE_STDARG_H.
6564         * modules/stdarg (Makefile.am): Remove stdarg.h if
6565         GL_GENERATE_STDARG_H evaluates to false.
6566
6567         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
6568         GL_GENERATE_STDBOOL_H.
6569         * modules/stdbool (Makefile.am): Remove stdbool.h if
6570         GL_GENERATE_STDBOOL_H evaluates to false.
6571
6572         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
6573         conditional GL_GENERATE_STDDEF_H.
6574         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
6575         * modules/stddef (Makefile.am): Remove stddef.h if
6576         GL_GENERATE_STDDEF_H evaluates to false.
6577
6578         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
6579         GL_GENERATE_STDINT_H.
6580         * modules/stdint (Makefile.am): Remove stdint.h if
6581         GL_GENERATE_STDINT_H evaluates to false.
6582
6583         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
6584         GL_GENERATE_SYSEXITS_H.
6585         * modules/sysexits (Makefile.am): Remove sysexits.h if
6586         GL_GENERATE_SYSEXITS_H evaluates to false.
6587
6588         Reported by Karl Berry and Ralf Wildenhues.
6589
6590 2011-04-05  Bruno Haible  <bruno@clisp.org>
6591
6592         Ensure to rebuild generated .h files when config.status has changed.
6593         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
6594         config.status.
6595         * modules/ctype (Makefile.am): Likewise.
6596         * modules/dirent (Makefile.am): Likewise.
6597         * modules/errno (Makefile.am): Likewise.
6598         * modules/fcntl-h (Makefile.am): Likewise.
6599         * modules/float (Makefile.am): Likewise.
6600         * modules/getopt-posix (Makefile.am): Likewise.
6601         * modules/glob (Makefile.am): Likewise.
6602         * modules/iconv-h (Makefile.am): Likewise.
6603         * modules/inttypes (Makefile.am): Likewise.
6604         * modules/langinfo (Makefile.am): Likewise.
6605         * modules/locale (Makefile.am): Likewise.
6606         * modules/math (Makefile.am): Likewise.
6607         * modules/netdb (Makefile.am): Likewise.
6608         * modules/netinet_in (Makefile.am): Likewise.
6609         * modules/poll-h (Makefile.am): Likewise.
6610         * modules/pthread (Makefile.am): Likewise.
6611         * modules/pty (Makefile.am): Likewise.
6612         * modules/sched (Makefile.am): Likewise.
6613         * modules/search (Makefile.am): Likewise.
6614         * modules/selinux-h (Makefile.am): Likewise.
6615         * modules/signal (Makefile.am): Likewise.
6616         * modules/spawn (Makefile.am): Likewise.
6617         * modules/stdarg (Makefile.am): Likewise.
6618         * modules/stdbool (Makefile.am): Likewise.
6619         * modules/stddef (Makefile.am): Likewise.
6620         * modules/stdint (Makefile.am): Likewise.
6621         * modules/stdio (Makefile.am): Likewise.
6622         * modules/stdlib (Makefile.am): Likewise.
6623         * modules/string (Makefile.am): Likewise.
6624         * modules/strings (Makefile.am): Likewise.
6625         * modules/sys_file (Makefile.am): Likewise.
6626         * modules/sys_ioctl (Makefile.am): Likewise.
6627         * modules/sys_select (Makefile.am): Likewise.
6628         * modules/sys_socket (Makefile.am): Likewise.
6629         * modules/sys_stat (Makefile.am): Likewise.
6630         * modules/sys_time (Makefile.am): Likewise.
6631         * modules/sys_times (Makefile.am): Likewise.
6632         * modules/sys_utsname (Makefile.am): Likewise.
6633         * modules/sys_wait (Makefile.am): Likewise.
6634         * modules/sysexits (Makefile.am): Likewise.
6635         * modules/termios (Makefile.am): Likewise.
6636         * modules/time (Makefile.am): Likewise.
6637         * modules/unistd (Makefile.am): Likewise.
6638         * modules/wchar (Makefile.am): Likewise.
6639         * modules/wctype-h (Makefile.am): Likewise.
6640         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
6641
6642 2011-04-05  Bruno Haible  <bruno@clisp.org>
6643
6644         pipe2: Relicense under LGPLv2+.
6645         * modules/pipe2 (License): Change to LGPLv2+.
6646         Requested by Eric Blake, for libvirt.
6647
6648 2011-04-05  Bruce Korb  <bkorb@gnu.org>
6649
6650         bootstrap: compute gnulib_extra_files after updating build_aux
6651         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
6652         change build_aux or also supply gnulib_extra_files.  Handle correctly.
6653
6654 2011-04-05  Eric Blake  <eblake@redhat.com>
6655
6656         bootstrap: preserve git whitelist item sorting
6657         * build-aux/bootstrap (sort_patterns): New function.
6658         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
6659
6660 2011-04-05  Simon Josefsson  <simon@josefsson.org>
6661
6662         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
6663         sc_space_tab check.
6664
6665 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
6666
6667         areadlink, areadlinkat: rewrite in terms of careadlinkat
6668         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
6669         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
6670         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
6671         (malloc, realloc): Remove #undefs.
6672         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
6673         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
6674         readlink, ssize_t, stdint, unistd.
6675         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
6676         areadlink, stdint.
6677
6678         careadlinkat: new module
6679         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
6680         * modules/careadlinkat: New files, written by me with
6681         a review and feedback from Ben Pfaff in
6682         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
6683
6684 2011-04-01  Bruno Haible  <bruno@clisp.org>
6685
6686         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
6687         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
6688         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
6689         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
6690         Reported by Bruce Korb <bruce.korb@gmail.com>.
6691
6692 2011-04-01  Bruno Haible  <bruno@clisp.org>
6693
6694         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
6695         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
6696         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
6697         * modules/wcpcpy (Depends-on): Add extensions.
6698         * modules/wcpncpy (Depends-on): Likewise.
6699         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
6700         systems.
6701         * doc/posix-functions/wcpncpy.texi: Likewise.
6702         * doc/posix-functions/wcwidth.texi: Likewise.
6703
6704 2011-03-31  Eric Blake  <eblake@redhat.com>
6705
6706         nonblocking: fix mingw test failures
6707         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
6708         non-blocking flag on regular file.
6709         (get_nonblocking_flag): Set errno on invalid fd.
6710         * tests/test-nonblocking.c (main): Avoid test failure on
6711         directories if fchdir is not active.
6712         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
6713
6714 2011-03-31  Bruno Haible  <bruno@clisp.org>
6715
6716         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
6717         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
6718         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
6719         Reported by Simon Josefsson <simon@josefsson.org>.
6720
6721 2011-03-31  Bruno Haible  <bruno@clisp.org>
6722         and Eric Blake  <eblake@redhat.com>
6723
6724         nonblocking: new module
6725         * modules/nonblocking: New module.
6726         * modules/nonblocking-tests: Likewise.
6727         * lib/nonblocking.h: New file.
6728         * lib/nonblocking.c: Likewise.
6729         * tests/test-nonblocking.c: New test.
6730         * lib/ioctl.c (ioctl) [mingw]: Update comment.
6731
6732 2011-03-30  Bruno Haible  <bruno@clisp.org>
6733
6734         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
6735         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
6736         instead of 'printf' format for GCC >= 4.4.
6737         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
6738         (fprintf, printf, vfprintf, vprintf): Declare with
6739         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
6740         the system's vfprintf() function.
6741         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
6742
6743 2011-03-30  Eric Blake  <eblake@redhat.com>
6744
6745         passfd: fix scoping bug
6746         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
6747         before sendmsg/recvmsg.
6748
6749         passfd: standardize coding conventions
6750         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
6751         can be learned at compile time.
6752         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
6753         ifdefs.
6754         (sendfd, recvfd): Follow gnulib code conventions.
6755
6756         passfd: fix incorrect sendmsg arguments
6757         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
6758         incorrect msg_controllen value.
6759         * modules/passfd-tests (Depends-on): Check for alarm.
6760         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
6761         Reported by Bastien ROUCARIES.
6762
6763 2011-03-30  Bruno Haible  <bruno@clisp.org>
6764
6765         c-strcasestr: Relicense under LGPLv2+.
6766         * modules/c-strcasestr (License): Change to LGPLv2+.
6767         Requested by Eric Blake, for libvirt.
6768
6769 2011-03-30  Simon Josefsson  <simon@josefsson.org>
6770
6771         * users.txt: Add libidn2.  Fix libtasn1 link.
6772
6773 2011-03-30  Jim Meyering  <meyering@redhat.com>
6774
6775         tests: readlink* ("",... fails with EINVAL on newer kernels
6776         readlink and readlinkat have typically failed with ENOENT for
6777         the invalid, empty file name,  "".  However, with the advent
6778         of linux-2.6.39, they fail with EINVAL.
6779         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
6780         when operating on the empty file name.
6781         * tests/test-readlink.h (test_readlink): Likewise.
6782
6783 2011-03-29  Bruno Haible  <bruno@clisp.org>
6784
6785         Relicense some modules under LGPLv2+, for libidn2.
6786         * modules/array-mergesort (License): Change to LGPLv2+.
6787         * modules/c-strcaseeq (License): Likewise.
6788         * modules/striconveh (License): Likewise.
6789         * modules/striconveha (License): Likewise.
6790         * modules/uniconv/base (License): Likewise.
6791         * modules/uniconv/u8-conv-from-enc (License): Likewise.
6792         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
6793         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
6794         * modules/unictype/base (License): Likewise.
6795         * modules/unictype/bidiclass-of (License): Likewise.
6796         * modules/unictype/category-M (License): Likewise.
6797         * modules/unictype/category-none (License): Likewise.
6798         * modules/unictype/category-of (License): Likewise.
6799         * modules/unictype/category-test (License): Likewise.
6800         * modules/unictype/category-test-withtable (License): Likewise.
6801         * modules/unictype/combining-class (License): Likewise.
6802         * modules/unictype/joiningtype-of (License): Likewise.
6803         * modules/unictype/scripts (License): Likewise.
6804         * modules/uninorm/base (License): Likewise.
6805         * modules/uninorm/canonical-decomposition (License): Likewise.
6806         * modules/uninorm/composition (License): Likewise.
6807         * modules/uninorm/decompose-internal (License): Likewise.
6808         * modules/uninorm/decomposition-table (License): Likewise.
6809         * modules/uninorm/nfc (License): Likewise.
6810         * modules/uninorm/nfd (License): Likewise.
6811         * modules/uninorm/u32-normalize (License): Likewise.
6812         * modules/unistr/base (License): Likewise.
6813         * modules/unistr/u32-cpy (License): Likewise.
6814         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
6815         * modules/unistr/u32-to-u8 (License): Likewise.
6816         * modules/unistr/u32-uctomb (License): Likewise.
6817         * modules/unistr/u8-check (License): Likewise.
6818         * modules/unistr/u8-mblen (License): Likewise.
6819         * modules/unistr/u8-mbtouc (License): Likewise.
6820         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
6821         * modules/unistr/u8-mbtoucr (License): Likewise.
6822         * modules/unistr/u8-prev (License): Likewise.
6823         * modules/unistr/u8-strlen (License): Likewise.
6824         * modules/unistr/u8-to-u32 (License): Likewise.
6825         * modules/unistr/u8-uctomb (License): Likewise.
6826         * modules/unitypes (License): Likewise.
6827         Requested by Simon Josefsson.
6828
6829 2011-03-29  Simon Josefsson  <simon@josefsson.org>
6830
6831         lib-symbol-visibility: Add a notice.
6832         * modules/lib-symbol-visibility (Notice): New field.
6833
6834 2011-03-29  Bruno Haible  <bruno@clisp.org>
6835
6836         getaddrinfo: Doc fix.
6837         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
6838         section "fixed in Gnulib".
6839
6840 2011-03-28  Simon Josefsson  <simon@josefsson.org>
6841
6842         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
6843         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
6844
6845 2011-03-26  Bruno Haible  <bruno@clisp.org>
6846
6847         unictype/property-byname: Reduce the number of load-time relocations.
6848         * lib/unictype/pr_byname.c: Include <stdlib.h>.
6849         (UC_PROPERTY_INDEX_*): New enumeration values.
6850         (uc_property_byname): Convert an index from the lookup table to an
6851         uc_property_t.
6852         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
6853         values.
6854
6855 2011-03-26  Bruno Haible  <bruno@clisp.org>
6856
6857         unictype/property-byname: Allow omitted word separators and aliases.
6858         * lib/unictype/pr_byname.gperf: Add property names without word
6859         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
6860         for 'space'.
6861
6862 2011-03-26  Bruno Haible  <bruno@clisp.org>
6863
6864         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
6865         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
6866         also hyphens to space.
6867         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
6868         without spaces.
6869         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
6870
6871 2011-03-26  Bruno Haible  <bruno@clisp.org>
6872
6873         unictype/joiningtype-byname: Recognize long names as well.
6874         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
6875         a long name.
6876         * lib/unictype/joiningtype_byname.c: Include <string.h>,
6877         unictype/joiningtype_byname.h.
6878         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
6879         * lib/unictype/joiningtype_byname.gperf: New file.
6880         * modules/unictype/joiningtype-byname (Files): Add
6881         lib/unictype/joiningtype_byname.gperf.
6882         (Depends-on): Add gperf.
6883         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
6884         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
6885         long names.
6886
6887         Tests for module 'unictype/joiningtype-longname'.
6888         * modules/unictype/joiningtype-longname-tests: New file.
6889         * tests/unictype/test-joiningtype_longname.c: New file.
6890
6891         New module 'unictype/joiningtype-longname'.
6892         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
6893         * lib/unictype/joiningtype_longname.c: New file.
6894         * modules/unictype/joiningtype-longname: New file.
6895         * modules/unictype/joiningtype-all (Depends-on): Add
6896         unictype/joiningtype-longname.
6897
6898 2011-03-26  Bruno Haible  <bruno@clisp.org>
6899
6900         unictype/bidiclass-byname: Recognize long names as well.
6901         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
6902         name.
6903         * lib/unictype/bidi_byname.c: Include <string.h>,
6904         unictype/bidi_byname.h.
6905         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
6906         * lib/unictype/bidi_byname.gperf: New file.
6907         * modules/unictype/bidiclass-byname (Files): Add
6908         lib/unictype/bidi_byname.gperf.
6909         (Depends-on): Add gperf.
6910         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
6911         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
6912         long names.
6913
6914         Tests for module 'unictype/bidiclass-longname'.
6915         * modules/unictype/bidiclass-longname-tests: New file.
6916         * tests/unictype/test-bidi_longname.c: New file.
6917
6918         New module 'unictype/bidiclass-longname'.
6919         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
6920         * lib/unictype/bidi_longname.c: New file.
6921         * modules/unictype/bidiclass-longname: New file.
6922         * modules/unictype/bidiclass-all (Depends-on): Add
6923         unictype/bidiclass-longname.
6924
6925 2011-03-26  Bruno Haible  <bruno@clisp.org>
6926
6927         unictype/bidi*: Rename modules.
6928         * modules/unictype/bidiclass-all: Renamed from
6929         modules/unictype/bidicategory-all.
6930         * modules/unictype/bidiclass-name: Renamed from
6931         modules/unictype/bidiclass-name.
6932         (Description): Update.
6933         * modules/unictype/bidiclass-name-tests: Renamed from
6934         modules/unictype/bidicategory-name-tests.
6935         * modules/unictype/bidiclass-byname: Renamed from
6936         modules/unictype/bidicategory-byname.
6937         (Description): Update.
6938         * modules/unictype/bidiclass-byname-tests: Renamed from
6939         modules/unictype/bidicategory-byname-tests.
6940         * modules/unictype/bidiclass-of: Renamed from
6941         modules/unictype/bidicategory-of.
6942         (Description): Update.
6943         * modules/unictype/bidiclass-of-tests: Renamed from
6944         modules/unictype/bidicategory-of-tests.
6945         * modules/unictype/bidiclass-test: Renamed from
6946         modules/unictype/bidicategory-test.
6947         (Description): Update.
6948         * modules/unictype/bidiclass-test-tests: Renamed from
6949         modules/unictype/bidicategory-test-tests.
6950         * modules/unictype/bidicategory-all: New file, a simple redirection.
6951         * modules/unictype/bidicategory-name: Likewise.
6952         * modules/unictype/bidicategory-byname: Likewise.
6953         * modules/unictype/bidicategory-of: Likewise.
6954         * modules/unictype/bidicategory-test: Likewise.
6955         * modules/unictype/property-bidi-* (Dependencies): Update.
6956         * lib/unictype/bidi_*.c: Update comment.
6957
6958 2011-03-26  Bruno Haible  <bruno@clisp.org>
6959
6960         unictype/bidi*: Rename functions, part 2.
6961         * modules/unictype/bidicategory-name (configure.ac): Update required
6962         libunistring version.
6963         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
6964
6965 2011-03-25  Bruno Haible  <bruno@clisp.org>
6966
6967         New module 'unictype/combining-class-all'.
6968         * modules/unictype/combining-class-all: New file.
6969
6970         Tests for module 'unictype/combining-class-byname'.
6971         * modules/unictype/combining-class-byname-tests: New file.
6972         * tests/unictype/test-combiningclass_byname.c: New file.
6973
6974         New module 'unictype/combining-class-byname'.
6975         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
6976         * lib/unictype/combiningclass_byname.c: New file.
6977         * lib/unictype/combiningclass_byname.gperf: New file.
6978         * modules/unictype/combining-class-byname: New file.
6979
6980         Tests for module 'unictype/combining-class-longname'.
6981         * modules/unictype/combining-class-longname-tests: New file.
6982         * tests/unictype/test-combiningclass_longname.c: New file.
6983
6984         New module 'unictype/combining-class-longname'.
6985         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
6986         * lib/unictype/combiningclass_longname.c: New file.
6987         * modules/unictype/combining-class-longname: New file.
6988
6989         Tests for module 'unictype/combining-class-name'.
6990         * modules/unictype/combining-class-name-tests: New file.
6991         * tests/unictype/test-combiningclass_name.c: New file.
6992
6993         New module 'unictype/combining-class-name'.
6994         * lib/unictype.in.h (uc_combining_class_name): New declaration.
6995         * lib/unictype/combiningclass_name.c: New file.
6996         * modules/unictype/combining-class-name: New file.
6997
6998 2011-03-25  Bruno Haible  <bruno@clisp.org>
6999
7000         unictype/combining-class: Rename source files.
7001         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
7002         of unictype/combining.h.
7003         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
7004         Update.
7005         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
7006         * modules/unictype/combining-class (Description): Fix.
7007         (Files, Makefile.am): Update.
7008         * tests/unictype/test-combiningclass.c: Renamed from
7009         tests/unictype/test-combining.c.
7010         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
7011
7012 2011-03-25  Bruno Haible  <bruno@clisp.org>
7013
7014         unictype: Update list of canonical combining classes.
7015         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
7016
7017 2011-03-25  Bruno Haible  <bruno@clisp.org>
7018
7019         unictype/category-byname: Recognize long names as well.
7020         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
7021         a long name.
7022         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
7023         unictype/categ_byname.h.
7024         (UC_CATEGORY_INDEX_*): New enumeration values.
7025         (uc_general_category_byname): Use uc_general_category_lookup and
7026         convert from index to value.
7027         * lib/unictype/categ_byname.gperf: New file.
7028         * modules/unictype/category-byname (Files): Add
7029         lib/unictype/categ_byname.gperf.
7030         (Depends-on): Add gperf.
7031         (Makefile.am): Add rule for generating unictype/categ_byname.h.
7032         * tests/unictype/test-categ_byname.c (main): Test the recognition of
7033         long names.
7034
7035         Tests for module 'unictype/category-longname'.
7036         * modules/unictype/category-longname-tests: New file.
7037         * tests/unictype/test-categ_longname.c: New file.
7038
7039         New module 'unictype/category-longname'.
7040         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
7041         * lib/unictype/categ_longname.c: New file.
7042         * modules/unictype/category-longname: New file.
7043         * modules/unictype/category-all (Depends-on): Add it.
7044
7045 2011-03-25  Bruno Haible  <bruno@clisp.org>
7046
7047         Tests for module 'unictype/category-LC'.
7048         * modules/unictype/category-LC-tests: New file.
7049         * tests/unictype/test-categ_LC.c: New file, automatically generated.
7050
7051         New module 'unictype/category-LC'.
7052         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
7053         (UC_CATEGORY_LC): New declaration.
7054         (UC_CASED_LETTER): New macro.
7055         * lib/gen-uni-tables.c (is_category_LC): New function.
7056         (output_categories): Also handle category LC.
7057         (UC_CATEGORY_MASK_LC): New enumeration value.
7058         (general_category_byname): Also handle category LC.
7059         * lib/unictype/categ_LC.c: New file.
7060         * lib/unictype/categ_LC.h: New file, automatically generated.
7061         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
7062         category LC.
7063         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
7064         * modules/unictype/category-LC: New file.
7065         * modules/unictype/category-byname (Depends-on): Add
7066         unictype/category-LC.
7067         * modules/unictype/category-all (Depends-on): Likewise.
7068
7069 2011-03-25  Eric Blake  <eblake@redhat.com>
7070
7071         xmalloc: revert yesterday's regression
7072         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
7073         realloc's underlying behavior (allowing allocation of zero-size
7074         objects, especially if malloc-gnu is also in use).
7075
7076 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
7077
7078         maint.mk: add missing version to VC-tag
7079         * top/maint.mk: git tag was missing actual tag name; add it.
7080
7081         valgrind: do leak checking, and exit with code 1 on error (not 0)
7082         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
7083         to VALGRIND.
7084
7085 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
7086
7087         posix-modules: say what it does.
7088         * posix-modules: Add a line to the --help output saying what it does.
7089
7090 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
7091
7092         xmalloc: Do not leak if underlying realloc is C99 compatible.
7093         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
7094         This avoids a leak on C99-based systems.  See
7095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
7096
7097 2011-03-24  Eric Blake  <eblake@redhat.com>
7098
7099         realloc: document portability problem
7100         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
7101         passing 0 size to realloc.
7102
7103 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
7104
7105         doc: update users.txt
7106         * users.txt: Add cvsps, tmpwatch
7107
7108 2011-03-23  Matt Rice  <ratmice@gmail.com>
7109
7110         doc: update users.txt
7111         * users.txt: Add gdb.
7112
7113 2011-03-23  Jim Meyering  <meyering@redhat.com>
7114
7115         doc: update users.txt
7116         Looking through matches up to the following URL (there are still
7117         several more pages), I found several projects that use gnulib:
7118         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
7119         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
7120         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
7121
7122 2011-03-22  Bruno Haible  <bruno@clisp.org>
7123
7124         unictype/bidi*: Rename functions.
7125         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
7126         uc_bidi_class, uc_is_bidi_class): New declarations.
7127         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
7128         uc_bidi_category_byname.
7129         (uc_bidi_category_byname): New function.
7130         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
7131         u_bidi_category_name.
7132         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
7133         (uc_bidi_category_name): New function.
7134         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
7135         uc_bidi_category.
7136         (uc_bidi_category): New function.
7137         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
7138         uc_is_bidi_category. Invoke uc_bidi_class.
7139         (uc_is_bidi_category): New function.
7140         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
7141         instead of uc_bidi_category_byname.
7142         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
7143         instead of uc_bidi_category_name.
7144         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
7145         uc_bidi_category.
7146         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
7147         instead of uc_is_bidi_category.
7148
7149 2011-03-21  Bruno Haible  <bruno@clisp.org>
7150
7151         New module 'unictype/joininggroup-all'.
7152         * modules/unictype/joininggroup-all: New file.
7153
7154         Tests for module 'unictype/joininggroup-of'.
7155         * modules/unictype/joininggroup-of-tests: New file.
7156         * tests/unictype/test-joininggroup_of.c: New file.
7157         * tests/unictype/test-joininggroup_of.h: New file, automatically
7158         generated by gen-uni-tables.
7159
7160         New module 'unictype/joininggroup-of'.
7161         * modules/unictype/joininggroup-of: New file.
7162         * lib/unictype/joininggroup_of.c: New file.
7163         * lib/unictype/joininggroup_of.h: New file, automatically generated by
7164         gen-uni-tables.
7165
7166         Tests for module 'unictype/joininggroup-byname'.
7167         * modules/unictype/joininggroup-byname-tests: New file.
7168         * tests/unictype/test-joininggroup_byname.c: New file.
7169
7170         New module 'unictype/joininggroup-byname'.
7171         * modules/unictype/joininggroup-byname: New file.
7172         * lib/unictype/joininggroup_byname.c: New file.
7173         * lib/unictype/joininggroup_byname.gperf: New file.
7174
7175         Tests for module 'unictype/joininggroup-name'.
7176         * modules/unictype/joininggroup-name-tests: New file.
7177         * tests/unictype/test-joininggroup_name.c: New file.
7178
7179         New module 'unictype/joininggroup-name'.
7180         * modules/unictype/joininggroup-name: New file.
7181         * lib/unictype/joininggroup_name.c: New file.
7182         * lib/unictype/joininggroup_name.h: New file.
7183
7184         New module 'unictype/joiningtype-all'.
7185         * modules/unictype/joiningtype-all: New file.
7186
7187         Tests for module 'unictype/joiningtype-of'.
7188         * modules/unictype/joiningtype-of-tests: New file.
7189         * tests/unictype/test-joiningtype_of.c: New file.
7190         * tests/unictype/test-joiningtype_of.h: New file, automatically
7191         generated by gen-uni-tables.
7192
7193         New module 'unictype/joiningtype-of'.
7194         * modules/unictype/joiningtype-of: New file.
7195         * lib/unictype/joiningtype_of.c: New file.
7196         * lib/unictype/joiningtype_of.h: New file, automatically generated by
7197         gen-uni-tables.
7198
7199         Tests for module 'unictype/joiningtype-byname'.
7200         * modules/unictype/joiningtype-byname-tests: New file.
7201         * tests/unictype/test-joiningtype_byname.c: New file.
7202
7203         New module 'unictype/joiningtype-byname'.
7204         * modules/unictype/joiningtype-byname: New file.
7205         * lib/unictype/joiningtype_byname.c: New file.
7206
7207         Tests for module 'unictype/joiningtype-name'.
7208         * modules/unictype/joiningtype-name-tests: New file.
7209         * tests/unictype/test-joiningtype_name.c: New file.
7210
7211         New module 'unictype/joiningtype-name'.
7212         * modules/unictype/joiningtype-name: New file.
7213         * lib/unictype/joiningtype_name.c: New file.
7214
7215         unictype: Add support for Arabic shaping properties.
7216         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
7217         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
7218         declarations.
7219         (UC_JOINING_GROUP_*): New enumeration values.
7220         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
7221         declarations.
7222         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
7223         (unicode_joining_type): New variable.
7224         (UC_JOINING_GROUP_*): New enumeration values.
7225         (unicode_joining_group): New variable.
7226         (fill_arabicshaping, joining_type_as_c_identifier,
7227         output_joining_type_test, output_joining_type,
7228         joining_group_as_c_identifier, output_joining_group_test,
7229         output_joining_group): New functions.
7230         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
7231         fill_arabicshaping and output_joining_type_test, output_joining_type,
7232         output_joining_group_test, output_joining_group.
7233         Reported by Simon Josefsson.
7234
7235 2011-03-21  Jim Meyering  <meyering@redhat.com>
7236
7237         strftime: fix a bug in yesterday's change
7238         * lib/strftime.c (add): Accommodate width's initial value of -1.
7239         Otherwise, nstrftime would copy uninitialized data into
7240         the result buffer.
7241
7242 2011-03-21  Jim Meyering  <meyering@redhat.com>
7243
7244         tests: add strftime-tests module
7245         * tests/test-strftime.c: New file.
7246         * modules/strftime-tests: New module.
7247
7248 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7249
7250         strftime: don't assume a byte count fits in 'int'
7251         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
7252         found this problem by static analysis, using gcc -Wstrict-overflow
7253         (GCC 4.5.2, x86-64).  This reported an optimization that depended
7254         on an integer overflow having undefined behavior, but it turns out
7255         that the argument is a size, which might not fit in 'int' anyway,
7256
7257 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7258
7259         stdio: don't require ignore_value around fwrite
7260
7261         This patch works around libc bug 11959
7262         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
7263         Without this patch, applications must often write
7264         ignore_value (fwrite (...)) even though the ignore_value is
7265         not helpful here.  It's common to write many objects, using
7266         fwrite/printf/etc., and then use ferror to detect output error.
7267
7268         I considered making this patch optional, but decided against it,
7269         because libc is obviously being inconsistent here: there is no
7270         reason libc should insist that user code must inspect fwrite
7271         return's value without also insisting that it inspect printf's,
7272         putchar's, etc.  If user code wants to have a strict style where
7273         all these functions' values are checked (so that ferror need not
7274         be checked), we could add support for that style in a new gnulib
7275         module, but in the meantime it's better to be consistent and to
7276         support common usage.
7277
7278         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
7279         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
7280         that we are compiling in checking mode, and if not C++, and
7281         if not already wrapping fwrite for some other reason.
7282         (fwrite): #define to rpl_fwrite if the latter is defined.
7283
7284 2011-03-20  Bruno Haible  <bruno@clisp.org>
7285
7286         verror: Fix compilation error introduced on 2011-02-13.
7287         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
7288         instead of __attribute__.
7289         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7290
7291 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7292             Bruno Haible  <bruno@clisp.org>
7293
7294         socklen: do not depend on sys_socket
7295         While trying to modify Emacs to use gnulib's socklen module,
7296         I discovered a circular dependency: socklen depends on sys_socket
7297         and vice versa.  Emacs can use socklen, but it does not need
7298         sys_socket because it has its own substitute for sys/socket.h.
7299         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
7300         gl_TYPE_SOCKLEN_T.
7301         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
7302         gl_PREREQ_SYS_H_SOCKET.
7303         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
7304         gl_PREREQ_SYS_H_SOCKET.
7305         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
7306         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
7307         * modules/socklen (Depends-on): Do not depend on sys_socket.
7308         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
7309
7310 2011-03-20  Jim Meyering  <meyering@redhat.com>
7311
7312         maint.mk: sort file names *after* new transformation
7313         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
7314         prefix would have led to an unwarranted failure in GNU parted.
7315         Sort after that transformation.
7316
7317 2011-03-19  Jim Meyering  <meyering@redhat.com>
7318
7319         maint.mk: fix po-file syntax-check rule
7320         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
7321         Patch by Bruno Haible.
7322
7323 2011-03-19  Bruno Haible  <bruno@clisp.org>
7324
7325         socklen: Update comment.
7326         * m4/socklen.m4: Update comment about platforms.
7327
7328 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7329             Bruno Haible  <bruno@clisp.org>
7330
7331         inet_ntop, inet_pton: Simplify.
7332         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
7333         documented to provide socklen_t and we already depend on sys_socket.
7334         * modules/inet_pton (Depends-on): Likewise.
7335         * lib/arpa_inet.in.h: Adjust comment.
7336
7337 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7338             Bruno Haible  <bruno@clisp.org>
7339
7340         netdb: Simplify.
7341         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
7342         documented to provide socklen_t and we already depend on sys_socket.
7343         * lib/netdb.in.h: Adjust comment.
7344
7345 2011-03-19  Bruno Haible  <bruno@clisp.org>
7346
7347         sys_socket, netdb: Document problem with socklen_t.
7348         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
7349         platforms.
7350         * doc/posix-headers/netdb.texi: Likewise.
7351
7352 2011-03-18  Eric Blake  <eblake@redhat.com>
7353
7354         maint.mk: let po check work in VPATH build
7355         * top/maint.mk (po_file): Allow cfg.mk override.
7356         (sc_po_check): Allow VPATH use.
7357         Reported by Jiri Denemark.
7358
7359 2011-03-16  Jim Meyering  <meyering@redhat.com>
7360
7361         maint.mk: allow fine-grained syntax-check exclusion via Make variables
7362         Before, you would have had to create one .x-sc_ file per rule in order
7363         to exempt offending files.  Now, you may instead use a Make variable --
7364         usually defined in cfg.mk -- whose name identifies the affected rule.
7365         * top/maint.mk (_sc_excl): Define.
7366         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
7367         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
7368
7369 2011-03-13  Bruno Haible  <bruno@clisp.org>
7370
7371         ignore-value tests: Avoid warnings.
7372         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
7373         empty for gcc < 3.4.
7374
7375 2011-03-13  Bruno Haible  <bruno@clisp.org>
7376
7377         passfd: Fix link error on Solaris.
7378         * modules/passfd (Description): Correct.
7379         (Depends-on): Add socketlib.
7380         (Link): New section.
7381         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
7382
7383 2011-03-13  Bruno Haible  <bruno@clisp.org>
7384
7385         passfd: Fix link error on AIX 5.2.
7386         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
7387
7388 2011-03-13  Bruno Haible  <bruno@clisp.org>
7389
7390         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
7391         * lib/sys_socket.in.h: Include <stddef.h>.
7392         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
7393         CMSG_FIRSTHDR. Remove unused variable.
7394
7395 2011-03-13  Bruno Haible  <bruno@clisp.org>
7396
7397         passfd: Fix compilation error on OpenBSD.
7398         * lib/passfd.c: Include <sys/uio.h>.
7399
7400 2011-03-13  Bruno Haible  <bruno@clisp.org>
7401
7402         passfd test: Fix warnings.
7403         * tests/test-passfd.c: Include <sys/wait.h>.
7404         (main): Fix typo.
7405
7406 2011-03-13  Bruno Haible  <bruno@clisp.org>
7407
7408         passfd module, part 4, tweaks.
7409         * tests/test-passfd.c: Reorder includes.
7410         (main): Fix perror and printf calls.
7411
7412 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7413
7414         passfd module, part 4.
7415         * modules/passfd-tests: New file.
7416         * tests/test-passfd.c: New file.
7417
7418 2011-03-13  Jim Meyering  <meyering@redhat.com>
7419
7420         Makefile: rely on GNU make; derive syntax-check rule names
7421         Rather than requiring that each sc_ rule be listed as a dependent
7422         of "check", use features of GNU make to derive the list.
7423         * Makefile (syntax-check-rules): Define.
7424         (check): Depend on the new variable, not the hard-coded list.
7425
7426 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
7427             Bruno Haible  <bruno@clisp.org>
7428
7429         passfd module, part 3.
7430         * lib/passfd.h (recvfd): Add a flags argument.
7431         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
7432         (recvfd): Add a flags argument.
7433         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
7434         exists.
7435         * modules/passfd (Depends-on): Add cloexec.
7436         Suggested by Eric Blake.
7437
7438 2011-03-13  Bruno Haible  <bruno@clisp.org>
7439
7440         passfd module, part 2, tweaks.
7441         * modules/passfd (Files): Reorder.
7442         (Depends-on): Remove errno.
7443         (Include): Remove <sys/socket.h>, <sys/un.h>.
7444         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
7445         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
7446         specification header. Include <sys/socket.h> always. Don't include
7447         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
7448         (sendfd): Clarify that it sets errno when it fails.
7449         (recvfd): Fix specification.
7450
7451 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7452
7453         passfd module, part 2.
7454         * modules/passfd: New file.
7455         * lib/passfd.h: New file.
7456         * lib/passfd.c: New file.
7457
7458 2011-03-12  Bruno Haible  <bruno@clisp.org>
7459
7460         wcswidth, mbswidth: Avoid integer overflow.
7461         * lib/wcswidth.c: Include <limits.h>.
7462         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
7463         * lib/mbswidth.c: Include <limits.h>.
7464         (mbsnwidth): Avoid 'int' overflow.
7465         Reported by Jim Meyering.
7466
7467 2011-03-12  Bruno Haible  <bruno@clisp.org>
7468
7469         futimens, utimensat: Avoid endless recursion on Solaris 10.
7470         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
7471         Solaris.
7472         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
7473         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
7474
7475 2011-03-11  Jim Meyering  <meyering@redhat.com>
7476
7477         maint.mk: relax a regexp to accommodate other formatting styles
7478         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
7479         between "ngettext" and the following "(".
7480
7481 2011-03-11  Pádraig Brady <P@draigBrady.com>
7482
7483         maint.mk: suppress a false positive warning
7484         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
7485         diagnostics are marked with ngettext.
7486
7487 2011-03-10  Eric Blake  <eblake@redhat.com>
7488
7489         wchar: add explicit dependencies, for Tru64
7490         * modules/mbmemcasecoll (Depends-on): Add wchar.
7491         * modules/mbtowc (Depends-on): Likewise.
7492         * modules/vasnprintf (Depends-on): Likewise.
7493         * modules/unistdio/u-printf-args (Depends-on): Likewise.
7494         * modules/wctomb (Depends-on): Likewise.
7495         Reported by Peter O'Gorman.
7496
7497 2011-03-08  Bruno Haible  <bruno@clisp.org>
7498
7499         passfd module, part 1, tweaks.
7500         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
7501         Improve indentation. Improve AC_MSG_CHECKING messages.
7502         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
7503         gl_SOCKET_FAMILIES.
7504
7505 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7506
7507         passfd module, part 1.
7508         * m4/afunix.m4: New file.
7509         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
7510         sockets.
7511
7512 2011-03-08  Bruno Haible  <bruno@clisp.org>
7513
7514         regex-quote: New API.
7515         * lib/regex-quote.h: Include <stdbool.h>.
7516         (struct regex_quote_spec): New type.
7517         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7518         New declarations.
7519         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7520         'const struct regex_quote_spec *' argument.
7521         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
7522         (pcre_special): New constant.
7523         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7524         New functions.
7525         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7526         'const struct regex_quote_spec *' argument.
7527         * modules/regex-quote (Depends-on): Add stdbool.
7528         * tests/test-regex-quote.c (check): Update for new API. Add test for
7529         anchored results.
7530         * NEWS: Mention the API change.
7531         Reported by Reuben Thomas and Eric Blake.
7532
7533 2011-03-06  Bruno Haible  <bruno@clisp.org>
7534
7535         regex-quote: Fix creation of POSIX extended regular expressions.
7536         * lib/regex-quote.c (ere_special): Add grouping and alternation
7537         operators.
7538
7539 2011-03-05  Bruno Haible  <bruno@clisp.org>
7540
7541         doc: Improve doc regarding autopoint vs. gnulib.
7542         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
7543         disable autopoint while running autoreconf.
7544         Suggested by Ralf Wildenhues.
7545
7546 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7547
7548         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
7549         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
7550
7551 2011-03-03  Bruce Korb  <bkorb@gnu.org>
7552
7553         parse-duration: remove xalloc.h dependency
7554         * lib/parse-duration.c (parse_period): handle NULL return from
7555         strdup instead of calling xstrdup().
7556         * modules/parse-duration: remove "xalloc" dependency
7557
7558 2011-03-03  Matthew Booth  <mbooth@redhat.com>
7559
7560         bootstrap: honor m4_base when running aclocal
7561         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
7562
7563 2011-03-02  Jim Meyering  <meyering@redhat.com>
7564
7565         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
7566         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
7567         on request from Matt Booth.
7568
7569 2011-03-01  Eric Blake  <eblake@redhat.com>
7570
7571         test-link: work on Hurd
7572         * tests/test-link.h (test_link): Hurd rejects linking directories
7573         with EISDIR instead of the POSIX-mandated EPERM.
7574
7575 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
7576
7577         stdio: simplify by moving files to printf-posix, sigpipe
7578         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
7579         since this symbol is needed only if printf is replaced.
7580         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
7581         Require gl_ASM_SYMBOL_PREFIX.
7582         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
7583         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
7584         (Depends-on): Add 'raise'.
7585         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
7586         * modules/stdio (Files): Remove lib/stdio-write.c,
7587         m4/asm-underscore.m4.
7588         (Depends-on): Remove 'raise'.
7589
7590         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
7591         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
7592         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
7593         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
7594
7595 2011-02-28  Bruno Haible  <bruno@clisp.org>
7596
7597         localcharset: Assume ANSI C behaviour of free().
7598         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
7599         calling free().
7600         Suggested by Simon Josefsson <simon@josefsson.org>.
7601
7602 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
7603             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
7604             Bruno Haible  <bruno@clisp.org>  (tiny change)
7605
7606         On Cygwin, use /proc file system instead of win32 API.
7607         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
7608         Win32 file names.
7609         (DllMain): Simplify by removing Cygwin specific code.
7610         (find_shared_library_fullname): Use Linux specific implementation also
7611         for Cygwin.
7612         (get_shared_library_fullname): Update accordingly.
7613         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
7614         Win32 file names.
7615         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
7616         Cygwin specific code.
7617
7618 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
7619             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
7620
7621         Fix OpenMP flag detection for various Fortran compilers.
7622         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
7623         OpenMP-conditional compilation construct, to force compile
7624         failure with missing OpenMP flag.
7625         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
7626
7627 2011-02-25  Eric Blake  <eblake@redhat.com>
7628
7629         strstr: expand test coverage
7630         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
7631         compilation.
7632         * tests/test-memmem.c (main): Duplicate tests.
7633         * tests/test-strcasestr.c (main): Likewise.
7634         * tests/test-c-strcasestr.c (main): Likewise.
7635
7636 2011-02-25  Jim Meyering  <meyering@redhat.com>
7637
7638         maint.mk: detect missing-NL-at-EOF, too
7639         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
7640         it also detects when a file lacks a newline at EOF.
7641         (require_exactly_one_NL_at_EOF_): Renamed from
7642         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
7643         since people may well have .x-sc_... file names tied to the
7644         existing name.  Suggested by Eric Blake.
7645
7646 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
7647
7648         dirname: move m4/dos.m4 functionality into lib/dosname.h
7649
7650         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
7651         extracts symbols from it, puts them into config.h; but it's much
7652         easier to use the symbols directly.  filename.h already does this,
7653         but it disagrees with dos.m4 in some respects.  This patch
7654         introduces a different include file dosname.h that packages up
7655         dos.m4, and then later we can work on merging filename.h and
7656         dosname.h.  Applications that need only the easy-to-configure
7657         symbols should consider including dosname.h rather than dirname.h.
7658         * NEWS: Mention incompatible changes.
7659         * m4/dos.m4: Remove.
7660         * lib/dosname.h, modules/dosname: New files.
7661         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
7662         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
7663         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
7664         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
7665         Include dosname.h, not dirname.h.
7666         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
7667         Include dosname.h, for definitions of symbols like ISSLASH
7668         that used to be in config.h.
7669         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
7670         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7671         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7672         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7673         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
7674         * modules/rmdir (Files): Likewise.
7675         * modules/stat (Files): Likewise.
7676         * modules/unlink (Files): Likewise.
7677         * modules/dirname-lgpl (Depends-on): Add dosname.
7678         * modules/lstat (Depends-on): Likewise.
7679         * modules/openat (Depends-on): Likewise.
7680         * modules/rmdir (Depends-on): Likewise.
7681         * modules/savewd (Depends-on): Likewise.
7682         * modules/stat (Depends-on): Likewise.
7683         * modules/unlink (Depends-on): Likewise.
7684         * modules/openat (Depends-on): Remove dirname-lgpl.
7685         * modules/savewd (Depends-on): Likewise.
7686         * tests/test-dirname.c: Do not use removed symbols like
7687         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
7688         the remaining symbols, e.g., ISSLASH ('\\').
7689
7690 2011-02-25  Eric Blake  <eblake@redhat.com>
7691
7692         strstr: revert patches that introduced bug and pessimization
7693         * lib/str-two-way.h: Add another reference.
7694         (two_way_short_needle, two_way_long_needle): Revert changes from
7695         2011-02-24; they pessimize search speed.
7696         (critical_factorization): Partially revert changes from
7697         2010-06-22; they violate the requirement that the left half of the
7698         needle be smaller than the period of the needle.
7699
7700 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7701
7702         filenamecat: remove unnecessary dependency on dirname-lgpl
7703         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
7704         is no direct dependency, just an indirect one via filenamecat-lgpl.
7705
7706         remove: remove unnecessary use of m4/dos.m4
7707         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
7708         * modules/remove (FILES): Remove m4/dos.m4.
7709
7710         * lib/openat-proc.c: Don't include dirname.h; not needed.
7711
7712         backupfile: remove unnecessary use of m4/dos.m4
7713         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
7714         of its symbols are used by the backupfile code.  backupfile.c does
7715         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
7716         for the rare case of programs that want all their backup file
7717         names to live within 8+3 limits, and dos.m4 doesn't address that.
7718         * modules/backupfile (Files): Remove m4/dos.m4.
7719
7720 2011-02-24  Jim Meyering  <meyering@redhat.com>
7721
7722         strstr: fix a bug whereby strstr would mistakenly return NULL
7723         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
7724         in period calculation.
7725         (two_way_long_needle): Likewise.
7726         The original problem was reported by Mike Stump in
7727         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
7728         Ralf Wildenhues provided the short needle and haystack.
7729         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
7730         Add a more involved test to trigger the bug in two_way_long_needle.
7731
7732 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7733
7734         gnulib-tool: remove use of bold display in help screen
7735         * gnulib-tool (func_usage): Do not use bold display anymore in the
7736         help screen.  That was just meant to be a temporary emphasis for a
7737         backward-incompatible change.
7738
7739 2011-02-23  Bruno Haible  <bruno@clisp.org>
7740
7741         Fix misindentation of preprocessor directives.
7742         * lib/argp-namefrob.h: Reindent preprocessor directives.
7743         * lib/getopt_int.h (struct _getopt_data): Likewise.
7744         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
7745         * lib/vasnprintf.c (decode_long_double): Likewise.
7746         * tests/test-argmatch.c: Insert blank lines, for clarity.
7747         * tests/test-exclude.c: Likewise.
7748
7749 2011-02-22  Bruno Haible  <bruno@clisp.org>
7750
7751         ioctl: Fix for MacOS X in 64-bit mode.
7752         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
7753         value.
7754         Suggested by Eric Blake.
7755         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
7756
7757 2011-02-22  Jim Meyering  <meyering@redhat.com>
7758
7759         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
7760         * Makefile (sc_cpp_indent_check): Don't limit the check to files
7761         in lib/.
7762
7763 2011-02-22  Eric Blake  <eblake@redhat.com>
7764
7765         maint: avoid any CDPATH issue
7766         * Makefile (sc_cpp_indent_check): Anchor cd argument.
7767
7768         maint: adjust cpp indentation for my modules, as well
7769         * Makefile (sc_cpp_indent_check): Add my name.
7770         * lib/fbufmode.c: Filter through cppi.
7771         * lib/fpurge.c: Likewise.
7772         * lib/freadable.c: Likewise.
7773         * lib/freading.c: Likewise.
7774         * lib/fwritable.c: Likewise.
7775         * lib/fwriting.c: Likewise.
7776         * lib/sigaction.c: Likewise.
7777
7778 2011-02-22  Jim Meyering  <meyering@redhat.com>
7779
7780         maint: adjust cpp indentation to reflect nesting depth
7781         I.e., in a block of code that begins with an unnested "#if",
7782         put one space between the "#" in column 1 and following token.
7783         For example,
7784         -#include <sys/vfs.h>
7785         +# include <sys/vfs.h>
7786         Do this only in .c files that are part of a module I maintain.
7787         * lib/linkat.c: Filter through cppi.
7788         * lib/nanosleep.c: Likewise.
7789         * lib/openat.c: Likewise.
7790         * lib/openat-die.c: Likewise.
7791         * lib/dup3.c: Likewise.
7792         * lib/fchownat.c: Likewise.
7793         * lib/flock.c: Likewise.
7794         * lib/fsync.c: Likewise.
7795         * lib/fts.c: Likewise.
7796         * lib/getpass.c: Likewise.
7797         * lib/gettimeofday.c: Likewise.
7798         * lib/userspec.c: Likewise.
7799         * Makefile (sc_cpp_indent_check): New rule, to check this.
7800
7801 2011-02-22  Bruno Haible  <bruno@clisp.org>
7802
7803         New module 'wctomb'.
7804         * lib/stdlib.in.h (wctomb): New declaration.
7805         * lib/wctomb.c: New file.
7806         * lib/wctomb-impl.h: New file.
7807         * m4/wctomb.m4: New file.
7808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
7809         REPLACE_WCTOMB.
7810         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
7811         REPLACE_WCTOMB.
7812         * modules/wctomb: New file.
7813         * tests/test-stdlib-c++.cc: Test signature of wctomb.
7814         * doc/posix-functions/wctomb.texi: Mention the new module.
7815         * modules/wctob (Depends-on): Add wctomb.
7816
7817 2011-02-22  Bruno Haible  <bruno@clisp.org>
7818
7819         New module 'mbtowc'.
7820         * lib/stdlib.in.h (mbtowc): New declaration.
7821         * lib/mbtowc.c: New file.
7822         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
7823         * m4/mbtowc.m4: New file.
7824         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
7825         REPLACE_MBTOWC.
7826         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
7827         REPLACE_MBTOWC.
7828         * modules/mbtowc: New file.
7829         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
7830         * doc/posix-functions/mbtowc.texi: Mention the new module.
7831         * modules/btowc (Depends-on): Add mbtowc.
7832
7833 2011-02-22  Bruno Haible  <bruno@clisp.org>
7834
7835         wcrtomb: Add more tests for native Windows platforms.
7836         * tests/test-wcrtomb-w32-1.sh: New file.
7837         * tests/test-wcrtomb-w32-2.sh: New file.
7838         * tests/test-wcrtomb-w32-3.sh: New file.
7839         * tests/test-wcrtomb-w32-4.sh: New file.
7840         * tests/test-wcrtomb-w32-5.sh: New file.
7841         * tests/test-wcrtomb-w32.c: New file.
7842         * modules/wcrtomb-tests (Files): Add them.
7843         (Makefile.am): Arrange to run these tests.
7844         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
7845         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
7846
7847 2011-02-20  Bruno Haible  <bruno@clisp.org>
7848
7849         wcrtomb: Enhance test.
7850         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
7851
7852 2011-02-20  Bruno Haible  <bruno@clisp.org>
7853
7854         mbrtowc: Tiny optimization.
7855         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
7856
7857 2011-02-20  Jim Meyering  <meyering@redhat.com>
7858
7859         test-exclude.c: remove unmatched #endif
7860         * tests/test-exclude.c: Remove stray #endif, left over from
7861         the change of a week ago.
7862
7863 2011-02-19  Jim Meyering  <meyering@redhat.com>
7864
7865         git-version-gen: skip "-dirty" check when appropriate
7866         * build-aux/git-version-gen: Don't run any git commands when the
7867         version string comes from .tarball-version.  Prior to this, we
7868         would run git update-index --refresh even from a just-unpacked
7869         tarball directory, and that could affect a .git/ directory in a
7870         parent of the build directory.  Reported by Mike Frysinger.
7871
7872 2011-02-19  Bruno Haible  <bruno@clisp.org>
7873
7874         unictype/property-byname: Reduce the size of the 'data' segment.
7875         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
7876
7877 2011-02-19  Bruno Haible  <bruno@clisp.org>
7878
7879         unictype/scripts: Reduce the size of the 'data' segment.
7880         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
7881         '%pic'.
7882         * lib/unictype/scripts_byname.gperf: Regenerated.
7883
7884 2011-02-19  Bruno Haible  <bruno@clisp.org>
7885
7886         stdint: Update documentation.
7887         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
7888
7889 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
7890
7891         stdint: omit redundant check for wchar.h
7892         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
7893         always tests whether wchar.h exists, so remove the now-redundant test.
7894
7895 2011-02-18  Bruno Haible  <bruno@clisp.org>
7896
7897         stdint: Cut dependency to module 'wchar'.
7898         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
7899         include the necessary prerequisites.
7900         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
7901         * modules/stdint (Depends-on): Remove wchar.
7902         (Makefile.am): Substitute HAVE_WCHAR_H.
7903         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
7904
7905 2011-02-18  Eric Blake  <eblake@redhat.com>
7906
7907         longlong: skip, rather than fail, on cross-compilation
7908         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
7909         when cross-compiling; regression from 2011-02-16.
7910
7911 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
7912
7913         * NEWS: Mention 2011-02-08 change to stdlib.
7914
7915 2011-02-17  Bruno Haible  <bruno@clisp.org>
7916
7917         getloadavg: Add comments about platforms.
7918         * m4/getloadavg.m4: Add comment.
7919         * lib/getloadavg.c: Likewise.
7920
7921 2011-02-17  Bruno Haible  <bruno@clisp.org>
7922
7923         getloadavg: Fix link error on Solaris 2.6.
7924         * modules/getloadavg (Link): New section.
7925         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
7926         linking test-getloadavg.
7927         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
7928         getloadavg.
7929
7930 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
7931
7932         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
7933         It was 'int', but this doesn't match the IRIX 6.5 manual.
7934         Suggested by Bruno Haible in
7935         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
7936
7937 2011-02-17  Bruno Haible  <bruno@clisp.org>
7938
7939         havelib: Fix comments.
7940         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
7941         change.
7942
7943 2011-02-17  Bruno Haible  <bruno@clisp.org>
7944
7945         havelib: Update config.rpath.
7946         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
7947
7948 2011-02-17  Bruno Haible  <bruno@clisp.org>
7949
7950         getloadavg test: Add some plausibility checks.
7951         * tests/test-getloadavg.c (check_avg): Print a warning when the value
7952         is improbable.
7953
7954 2011-02-16  Eric Blake  <eblake@redhat.com>
7955
7956         maintainer-makefile: make syntax-check a no-op from tarballs
7957         * top/maint.mk (no-vc-detected): New rule.
7958         (local-checks-available): Use it to avoid hanging if someone tries
7959         'make syntax-check' from a tarball.  Also append to any non-syntax
7960         checks already defined in cfg.mk.
7961
7962 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
7963
7964         longlong: tune, particularly for common case of c99
7965
7966         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
7967         or running anything if c99, or if unsigned long long int does not
7968         work.  In either case, we know the answer without further tests.
7969         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
7970         it at most once, and use its results for both long long int and
7971         unsigned long long int.  This is more likely to be efficient in
7972         the common case where the program wants to check for both long
7973         long int and unsigned long long int.
7974         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
7975         since the answer is already known.
7976
7977 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
7978
7979         getloadavg: set errno
7980         * lib/getloadavg.c: Set errno when returning -1.  If no other
7981         error number looks appropriate, set it to ENOSYS if the getloadavg
7982         looks like it can't possibly ever work, ENOTSUP otherwise.
7983         Suggested by Bruno Haible in
7984         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
7985
7986         getloadavg: trim unused parts and speed up 'configure'
7987         * NEWS: Document this.
7988         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
7989         always compiled if getloadavg is absent.
7990         Move test code to ...
7991         * tests/test-getloadavg.c: New file, containing previous
7992         contents of test from lib/getloadavg.c.  It also contains
7993         suggestions by Bruno Haible in
7994         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
7995         * modules/getloadavg-tests: New file.
7996         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
7997         Do tests in the same order as they're needed for getloadavg.c.
7998         Omit setgid-related tests that generate symbols KMEM_GROUP,
7999         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
8000         Do only the tests that are needed to see whether the system has
8001         getloadavg, moving the other tests into ...
8002         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
8003         NLIST_NAME_UNION; nobody should be using it.  Do not define
8004         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
8005         relevant, as the user of this module shouldn't care how getloadavg
8006         is implemented.
8007
8008         getloadavg: omit unused var
8009         * lib/getloadavg.c (getloadavg): Omit unused local variable.
8010
8011 2011-02-15  Jim Meyering  <meyering@redhat.com>
8012
8013         doc: update users.txt
8014         * users.txt: Update iwhd's URL.
8015
8016 2011-02-13  Bruno Haible  <bruno@clisp.org>
8017
8018         Consistent macro naming for macros that use GCC __attribute__.
8019         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
8020         _ATTRIBUTE_NONNULL_.
8021         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
8022         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
8023         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
8024         ATTRIBUTE_DEPRECATED.
8025         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
8026         ATTRIBUTE_NORETURN.
8027         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8028         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8029         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8030         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8031         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
8032         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
8033         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
8034         ATTRIBUTE_SENTINEL.
8035         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
8036         ATTRIBUTE_RETURN_CHECK.
8037         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
8038         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
8039         ATTRIBUTE_NORETURN.
8040         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
8041         Reported by Paul Eggert.
8042
8043 2011-02-13  Bruno Haible  <bruno@clisp.org>
8044
8045         Don't interfere with a program's definition of __attribute__.
8046         * lib/argp.h (__attribute__): Remove definition.
8047         (_GL_ATTRIBUTE_FORMAT): New macro.
8048         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
8049         * lib/argp-fmtstream.h (__attribute__): Remove definition.
8050         (_GL_ATTRIBUTE_FORMAT): New macro.
8051         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
8052         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
8053         GCC 3 or newer.
8054         * lib/error.h (__attribute__): Remove definition.
8055         (_GL_ATTRIBUTE_FORMAT): New macro.
8056         (error, error_at_line): Use it.
8057         * lib/hash.h (__attribute__): Remove definition.
8058         (ATTRIBUTE_WUR): Update definition. Define always.
8059         * lib/openat.h (__attribute__): Remove definition.
8060         (ATTRIBUTE_NORETURN): Update definition. Define always.
8061         * lib/sigpipe-die.h (__attribute__): Remove definition.
8062         (ATTRIBUTE_NORETURN): Update definition. Define always.
8063         * lib/vasnprintf.h (__attribute__): Remove definition.
8064         (_GL_ATTRIBUTE_FORMAT): New macro.
8065         (asnprintf, vasnprintf): Use it.
8066         * lib/xalloc.h (__attribute__): Remove definition.
8067         (ATTRIBUTE_NORETURN): Update definition. Define always.
8068         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
8069         * lib/xmemdup0.h (__attribute__): Remove definition.
8070         (ATTRIBUTE_NORETURN): Update definition. Define always.
8071         * lib/xprintf.h (__attribute__): Remove definition.
8072         (_GL_ATTRIBUTE_FORMAT): New macro.
8073         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
8074         * lib/xstrtol.h (__attribute__): Remove definition.
8075         (ATTRIBUTE_NORETURN): Update definition. Define always.
8076         * lib/xvasprintf.h (__attribute__): Remove definition.
8077         (_GL_ATTRIBUTE_FORMAT): New macro.
8078         (xasprintf, xvasprintf): Use it.
8079         * tests/test-argmatch.c (__attribute__): Remove definition.
8080         (ATTRIBUTE_NORETURN): Update definition. Define always.
8081         * tests/test-exclude.c (__attribute__): Remove definition.
8082         (ATTRIBUTE_NORETURN): Update definition. Define always.
8083         Reported by Paul Eggert.
8084
8085 2011-02-13  Bruno Haible  <bruno@clisp.org>
8086
8087         mbrtowc: Add more tests for native Windows platforms.
8088         * tests/test-mbrtowc-w32-1.sh: New file.
8089         * tests/test-mbrtowc-w32-2.sh: New file.
8090         * tests/test-mbrtowc-w32-3.sh: New file.
8091         * tests/test-mbrtowc-w32-4.sh: New file.
8092         * tests/test-mbrtowc-w32-5.sh: New file.
8093         * tests/test-mbrtowc-w32.c: New file.
8094         * modules/mbrtowc-tests (Files): Add them.
8095         (Makefile.am): Arrange to run these tests.
8096         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
8097         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
8098
8099 2011-02-13  Bruno Haible  <bruno@clisp.org>
8100
8101         mbrtowc: Work around native Windows bug.
8102         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
8103         guess when no suitable locale for testing was found.
8104         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
8105
8106 2011-02-13  Bruno Haible  <bruno@clisp.org>
8107
8108         mbsinit: Work around mingw bug.
8109         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
8110         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
8111         Windows.
8112         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
8113
8114 2011-02-13  Bruno Haible  <bruno@clisp.org>
8115
8116         mbsinit: Don't crash for a NULL argument.
8117         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
8118         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
8119
8120 2011-02-13  Bruno Haible  <bruno@clisp.org>
8121
8122         Don't interfere with a program's definition of __attribute__.
8123         * lib/stdio.in.h (__attribute__): Remove definition.
8124         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
8125         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
8126         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
8127         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
8128         * lib/string.in.h (__attribute__): Remove definition.
8129         Reported by Paul Eggert.
8130
8131 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8132
8133         stdlib: don't get in the way of non-GCC __attribute__
8134         See thread starting at
8135         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
8136         Revert previous stdlib change, installing the following instead:
8137         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
8138         to get in the way of a non-GCC compiler that supports __attribute__.
8139         (_GL_ATTRIBUTE_RETURN): New macro.
8140         (_Exit): Use it instead of __attribute__.
8141
8142 2011-02-12  Bruno Haible  <bruno@clisp.org>
8143
8144         quotearg test: Avoid test failure on mingw.
8145         * tests/test-quotearg.sh: Convert the locale identifier from native
8146         Windows syntax to Unix syntax.
8147
8148 2011-02-12  Bruno Haible  <bruno@clisp.org>
8149
8150         setlocale: Prefer gnulib's override over libintl's override.
8151         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
8152         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
8153         GNULIB_defined_setlocale is set.
8154
8155 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8156
8157         stdlib: support non-GCC __attribute__
8158
8159         Fix a serious and tricky problem encountered when attempting to
8160         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
8161         5.5, but it crashed due to memory corruption on Solaris 10 with
8162         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
8163         bits that are otherwise zero.  This tagging is optional inside
8164         Emacs but is preferred and is used when __attribute__ ((__aligned
8165         (8))) works, as it does with both recent-enough GCC and with Sun C
8166         5.11.  However, Sun C 5.11 is not GCC and does not #define
8167         __GNUC__ and __GNUC_MINOR__.
8168
8169         When I added the getloadavg module to Emacs, it brought in
8170         stdlib.in.h, which contained this fragment:
8171
8172            #ifndef __attribute__
8173            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
8174            #  define __attribute__(Spec)   /* empty */
8175            # endif
8176            #endif
8177
8178         When files that include <stdlib.h> were compiled with Sun C 5.11,
8179         the above code disabled __attribute__ ((__aligned (8))), which
8180         caused variables to not be properly aligned, which eventually led
8181         to the pointer corruption mentioned above.  (This was a bit hard
8182         to diagnose, unfortunately.)
8183
8184         Several "#define __attribute__(X) /* empty */" code snippets need
8185         to be eradicated from Gnulib to work with non-GCC compilers that
8186         support __attribute__.  The Autoconf way to do this is to test for
8187         each kind of attribute that we want support for, and selectively
8188         enable that in source code.
8189
8190         Fix this problem just for stdlib.h, by adding a test for the
8191         __noreturn__ attribute, and change stdlib.in.h to use that test
8192         when needed.  This technique can be easily generalized to the
8193         other *.in.h files and attributes, and a similar technique can be
8194         used for *.h and *.c files.  This patch is enough to solve the
8195         problem for Emacs + getloadavg, and I thought I'd publish it for
8196         feedback before undertaking further, similar fixes in other
8197         modules.
8198
8199         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
8200         because it's not needed for stdlib.h.  It merely substitutes the
8201         value directly into stdlib.h.  We may well need to #define it, or
8202         similar symbols, for other modules, but it's nice to also have an
8203         option to not #define it for applications like Emacs that do not
8204         need it.
8205
8206         * lib/stdlib.in.h (__attribute__): Do not #define.
8207         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
8208         be defined only if the _Exit module is also used.
8209         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
8210         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
8211         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
8212         platforms.
8213         * modules/_Exit (Files): Add m4/attribute.m4.
8214         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
8215         * m4/attribute.m4: New file.
8216
8217 2011-02-12  Bruno Haible  <bruno@clisp.org>
8218
8219         wcsrtombs: Work around bug on native Windows.
8220         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
8221         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
8222         instead of len.
8223         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
8224
8225 2011-02-12  Bruno Haible  <bruno@clisp.org>
8226
8227         mbsrtowcs: Work around bug on native Windows.
8228         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
8229         against mingw bug.
8230         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
8231
8232 2011-02-12  Bruno Haible  <bruno@clisp.org>
8233
8234         Avoid setlocale bugs in tests.
8235         * modules/btowc (Dependencies): Add setlocale.
8236         * modules/c-strcase (Dependencies): Likewise.
8237         * modules/mbmemcasecmp (Dependencies): Likewise.
8238         * modules/mbmemcasecoll (Dependencies): Likewise.
8239         * modules/mbrtowc (Dependencies): Likewise.
8240         * modules/mbscasecmp (Dependencies): Likewise.
8241         * modules/mbscasestr (Dependencies): Likewise.
8242         * modules/mbschr (Dependencies): Likewise.
8243         * modules/mbscspn (Dependencies): Likewise.
8244         * modules/mbsinit (Dependencies): Likewise.
8245         * modules/mbsncasecmp (Dependencies): Likewise.
8246         * modules/mbsnrtowcs (Dependencies): Likewise.
8247         * modules/mbspbrk (Dependencies): Likewise.
8248         * modules/mbspcasecmp (Dependencies): Likewise.
8249         * modules/mbsrchr (Dependencies): Likewise.
8250         * modules/mbsrtowcs (Dependencies): Likewise.
8251         * modules/mbsspn (Dependencies): Likewise.
8252         * modules/mbsstr (Dependencies): Likewise.
8253         * modules/nl_langinfo (Dependencies): Likewise.
8254         * modules/quotearg (Dependencies): Likewise.
8255         * modules/unicase/locale-language (Dependencies): Likewise.
8256         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
8257         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
8258         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
8259         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
8260         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
8261         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
8262         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
8263         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
8264         * modules/vasnprintf-posix (Dependencies): Likewise.
8265         * modules/wcrtomb (Dependencies): Likewise.
8266         * modules/wcsnrtombs (Dependencies): Likewise.
8267         * modules/wcsrtombs (Dependencies): Likewise.
8268
8269 2011-02-12  Bruno Haible  <bruno@clisp.org>
8270
8271         setlocale: Workaround native Windows bug.
8272         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
8273         succeeds but sets LC_CTYPE to "C", report a failure.
8274         * tests/test-setlocale2.sh: New file.
8275         * tests/test-setlocale2.c: New file.
8276         * modules/setlocale-tests (Files): Add the new files.
8277         (Makefile.am): Enable test-setlocale2.sh test.
8278         * doc/posix-functions/setlocale.texi: Mention workaround.
8279
8280 2011-02-11  Bruno Haible  <bruno@clisp.org>
8281
8282         Tests for module 'setlocale'.
8283         * modules/setlocale-tests: New file.
8284         * tests/test-setlocale1.sh: New file.
8285         * tests/test-setlocale1.c: New file.
8286
8287         New module 'setlocale'.
8288         * lib/locale.in.h (setlocale): New declaration.
8289         * lib/setlocale.c: New file, based on
8290         gettext/gettext-runtime/intl/setlocale.c.
8291         * m4/setlocale.m4: New file.
8292         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
8293         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
8294         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
8295         REPLACE_SETLOCALE.
8296         * modules/setlocale: New file.
8297         * tests/test-locale-c++.cc: Test the declaration of setlocale.
8298         * doc/posix-functions/setlocale.texi: Mention the new module.
8299
8300 2011-02-11  Bruno Haible  <bruno@clisp.org>
8301
8302         Prepare for locale dependent tests on mingw.
8303         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
8304         because it has the wrong locale encoding.
8305         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
8306         French_France.1252 instead of "fr".
8307         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
8308         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
8309         because it has the wrong locale encoding.
8310         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
8311         native Windows, try Turkish_Turkey.65001.
8312         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
8313         Chinese_China.54936.
8314
8315         Prepare for locale dependent tests on mingw.
8316         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
8317         differently.
8318         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
8319         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
8320         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8321         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8322
8323 2011-02-11  Eric Blake  <eblake@redhat.com>
8324
8325         strptime: avoid compiler warnings
8326         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
8327         compiler warnings about dead code.
8328         Reported by Daniel P. Berrange.
8329
8330 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
8331
8332         doc: update users.txt
8333         * users.txt: Add rcs.
8334
8335 2011-02-10  John W. Eaton  <jwe@gnu.org>
8336
8337         doc: update users.txt
8338         * users.txt: Add octave.
8339
8340 2011-02-10  Jim Meyering  <meyering@redhat.com>
8341
8342         doc: update users.txt
8343         * users.txt: Add iwhd.
8344
8345 2011-02-09  Bruno Haible  <bruno@clisp.org>
8346
8347         gnulib-tool: Make copyright notice adjustment more robust.
8348         * gnulib-tool (func_import): In sed_transform_main_lib_file,
8349         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
8350         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
8351         License".
8352         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
8353
8354 2011-02-06  Bruno Haible  <bruno@clisp.org>
8355
8356         New module 'towctrans'.
8357         * modules/towctrans: New file.
8358         * lib/wctype.in.h (towctrans): New declaration.
8359         * lib/towctrans.c: New file.
8360         * lib/towctrans-impl.h: New file.
8361         * m4/towctrans.m4: New file.
8362         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
8363         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
8364         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
8365         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
8366         * doc/posix-functions/towctrans.texi: Mention the new module.
8367
8368 2011-02-06  Bruno Haible  <bruno@clisp.org>
8369
8370         New module 'wctrans'.
8371         * modules/wctrans: New file.
8372         * lib/wctype.in.h (wctrans): New declaration.
8373         * lib/wctrans.c: New file.
8374         * lib/wctrans-impl.h: New file.
8375         * m4/wctrans.m4: New file.
8376         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
8377         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
8378         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
8379         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
8380         * doc/posix-functions/wctrans.texi: Mention the new module.
8381
8382 2011-02-06  Bruno Haible  <bruno@clisp.org>
8383
8384         New module 'iswctype'.
8385         * modules/iswctype: New file.
8386         * lib/wctype.in.h (iswctype): New declaration.
8387         * lib/iswctype.c: New file.
8388         * lib/iswctype-impl.h: New file.
8389         * m4/iswctype.m4: New file.
8390         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
8391         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
8392         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
8393         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
8394         * doc/posix-functions/iswctype.texi: Mention the new module and the
8395         HP-UX 11.00 problem.
8396
8397 2011-02-06  Bruno Haible  <bruno@clisp.org>
8398
8399         New module 'wctype'.
8400         * modules/wctype: Change to represent the wctype() substitute.
8401         * lib/wctype.in.h (wctype): New declaration.
8402         * lib/wctype.c: New file.
8403         * lib/wctype-impl.h: New file.
8404         * m4/wctype.m4: New file.
8405         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
8406         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
8407         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
8408         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
8409         * doc/posix-functions/wctype.texi: Mention the new module and the
8410         HP-UX 11.00 problem.
8411
8412 2011-02-06  Bruno Haible  <bruno@clisp.org>
8413
8414         wctype-h: Ensure wctype_t and wctrans_t are defined.
8415         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
8416         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8417         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8418         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
8419         HAVE_WCTRANS_T.
8420         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
8421
8422 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8423
8424         flock: fix license typo
8425
8426         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
8427         omitted.
8428
8429 2011-02-08  Bruno Haible  <bruno@clisp.org>
8430
8431         Split large sed scripts, for HP-UX sed.
8432         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
8433         to avoid HP-UX limit of 99 commands, in the near future.
8434         * modules/stdlib (Makefile.am): Likewise.
8435         * modules/unistd (Makefile.am): Likewise.
8436         * modules/wchar (Makefile.am): Likewise.
8437         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8438         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
8439         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
8440
8441 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8442             Bruno Haible  <bruno@clisp.org>
8443
8444         stdlib: improve random_r modularization
8445         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
8446         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
8447         you also need the random_r module to get this material right.
8448         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
8449         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
8450         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
8451
8452 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8453
8454         stdlib: don't depend on stdint
8455         * lib/stdlib.in.h: Don't include <stdint.h> merely because
8456         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
8457         be independent of whether stdint.h is needed.
8458         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
8459         here, instead of ...
8460         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
8461         struct random_data should be using the random_r module, not just
8462         the stdlib module (which wouldn't make sense: what package needs
8463         just struct random_data without also needing random_r?).
8464         * modules/stdlib (Depends-on): Remove stdint.
8465
8466         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
8467         See the thread rooted at
8468         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
8469         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
8470         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
8471         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
8472         __VMS)); previously it was always included (via fcntl--.h).
8473         (getloadavg): Do not use c_strtod.  Instead, approximate it by
8474         hand; this is good enough for load averages.  Also, do not use
8475         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
8476         flags directly if available and don't bother otherwise.  (Packages
8477         that need the extra reliability should use the modules that define
8478         these flags on older platforms that lack them.)
8479         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
8480         fcntl-safer.
8481
8482 2011-02-08  Jim Meyering  <meyering@redhat.com>
8483
8484         di-set.h, ino-map.h: add multiple-inclusion guard
8485         Technically, the guard is required only for ino-map.h, due to its
8486         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
8487         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
8488         * lib/ino-map.h: Likewise.
8489
8490 2011-02-06  Bruno Haible  <bruno@clisp.org>
8491
8492         iswblank: Ensure declaration on glibc systems.
8493         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
8494         * modules/iswblank (Dependencies): Add 'extensions'.
8495         * doc/posix-functions/iswblank.texi: Document the glibc problem.
8496
8497 2011-02-06  Bruno Haible  <bruno@clisp.org>
8498
8499         New module 'iswblank'.
8500         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
8501         * modules/iswblank: New file.
8502         * modules/wctype-h (Files): Remove lib/iswblank.c.
8503         (Makefile.am): Substitute GNULIB_ISWBLANK.
8504         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
8505         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
8506         (gl_WCTYPE_H_DEFAULTS): New macro.
8507         (gl_WCTYPE_H): Require it. Remove iswblank related code.
8508         * modules/iswblank-tests: New file.
8509         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
8510         * tests/test-wctype-h.c (main): Remove iswblank tests.
8511         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
8512         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
8513         of 'wctype-h'.
8514         * NEWS: Mention the change.
8515         * modules/mbchar (Depends-on): Add iswblank.
8516
8517 2011-02-08  Bruno Haible  <bruno@clisp.org>
8518
8519         di-set tests: Refactor.
8520         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
8521         unnecessary includes.
8522         (ASSERT): Remove macro.
8523         (main): Make C90 compliant by avoiding variable declaration after
8524         statement.
8525         * modules/di-set-tests (Files): Add tests/macros.h.
8526
8527 2011-02-08  Bruno Haible  <bruno@clisp.org>
8528
8529         ino-map tests: Refactor.
8530         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
8531         unnecessary includes.
8532         (ASSERT): Remove macro.
8533         (main): Make C90 compliant by avoiding variable declaration after
8534         statement.
8535         * modules/ino-map-tests (Files): Add tests/macros.h.
8536
8537 2011-02-08  Jim Meyering  <meyering@redhat.com>
8538
8539         di-set: add "const" to a cast
8540         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
8541         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
8542
8543 2011-02-06  Bruno Haible  <bruno@clisp.org>
8544
8545         Rename module 'wctype' to 'wctype-h'.
8546         * modules/wctype-h: Renamed from modules/wctype.
8547         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
8548         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
8549         (Files, Depends-on, Makefile.am): Update.
8550         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
8551         (Files, Makefile.am): Update.
8552         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
8553         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
8554         * doc/posix-headers/wctype.texi: Update.
8555         * doc/posix-functions/iswalnum.texi: Update.
8556         * doc/posix-functions/iswalpha.texi: Update.
8557         * doc/posix-functions/iswblank.texi: Update.
8558         * doc/posix-functions/iswcntrl.texi: Update.
8559         * doc/posix-functions/iswdigit.texi: Update.
8560         * doc/posix-functions/iswgraph.texi: Update.
8561         * doc/posix-functions/iswlower.texi: Update.
8562         * doc/posix-functions/iswprint.texi: Update.
8563         * doc/posix-functions/iswpunct.texi: Update.
8564         * doc/posix-functions/iswspace.texi: Update.
8565         * doc/posix-functions/iswupper.texi: Update.
8566         * doc/posix-functions/iswxdigit.texi: Update.
8567         * doc/posix-functions/towlower.texi: Update.
8568         * doc/posix-functions/towupper.texi: Update.
8569         * NEWS: Mention the change.
8570         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
8571         * modules/mbchar (Dependencies): Likewise.
8572         * modules/mbswidth (Dependencies): Likewise.
8573         * modules/quotearg (Dependencies): Likewise.
8574         * modules/regex (Dependencies): Likewise.
8575         * modules/wcscasecmp (Dependencies): Likewise.
8576         * modules/wcsncasecmp (Dependencies): Likewise.
8577         * modules/wcwidth (Dependencies): Likewise.
8578
8579 2011-02-06  Bruno Haible  <bruno@clisp.org>
8580
8581         New module 'wcswidth'.
8582         * modules/wcswidth: New file.
8583         * lib/wchar.in.h (wcswidth): New declaration.
8584         * lib/wcswidth.c: New file.
8585         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
8586         * m4/wcswidth.m4: New file.
8587         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
8588         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
8589         REPLACE_WCSWIDTH.
8590         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
8591         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
8592         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
8593         * doc/posix-functions/wcswidth.texi: Mention the new module.
8594
8595 2011-02-06  Bruno Haible  <bruno@clisp.org>
8596
8597         New module 'wcstok'.
8598         * modules/wcstok: New file.
8599         * lib/wchar.in.h (wcstok): New declaration.
8600         * lib/wcstok.c: New file.
8601         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
8602         * m4/wcstok.m4: New file.
8603         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
8604         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
8605         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
8606         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
8607         * doc/posix-functions/wcstok.texi: Mention the new module.
8608
8609 2011-02-06  Bruno Haible  <bruno@clisp.org>
8610
8611         New module 'wcsstr'.
8612         * modules/wcsstr: New file.
8613         * lib/wchar.in.h (wcsstr): New declaration.
8614         * lib/wcsstr.c: New file.
8615         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
8616         * m4/wcsstr.m4: New file.
8617         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
8618         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
8619         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
8620         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
8621         * doc/posix-functions/wcsstr.texi: Mention the new module.
8622
8623 2011-02-06  Bruno Haible  <bruno@clisp.org>
8624
8625         New module 'wcspbrk'.
8626         * modules/wcspbrk: New file.
8627         * lib/wchar.in.h (wcspbrk): New declaration.
8628         * lib/wcspbrk.c: New file.
8629         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
8630         * m4/wcspbrk.m4: New file.
8631         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
8632         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
8633         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
8634         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
8635         * doc/posix-functions/wcspbrk.texi: Mention the new module.
8636
8637 2011-02-06  Bruno Haible  <bruno@clisp.org>
8638
8639         New module 'wcsspn'.
8640         * modules/wcsspn: New file.
8641         * lib/wchar.in.h (wcsspn): New declaration.
8642         * lib/wcsspn.c: New file.
8643         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
8644         * m4/wcsspn.m4: New file.
8645         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
8646         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
8647         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
8648         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
8649         * doc/posix-functions/wcsspn.texi: Mention the new module.
8650
8651 2011-02-06  Bruno Haible  <bruno@clisp.org>
8652
8653         New module 'wcscspn'.
8654         * modules/wcscspn: New file.
8655         * lib/wchar.in.h (wcscspn): New declaration.
8656         * lib/wcscspn.c: New file.
8657         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
8658         * m4/wcscspn.m4: New file.
8659         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
8660         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
8661         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
8662         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
8663         * doc/posix-functions/wcscspn.texi: Mention the new module.
8664
8665 2011-02-06  Bruno Haible  <bruno@clisp.org>
8666
8667         New module 'wcsrchr'.
8668         * modules/wcsrchr: New file.
8669         * lib/wchar.in.h (wcsrchr): New declaration.
8670         * lib/wcsrchr.c: New file.
8671         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
8672         * m4/wcsrchr.m4: New file.
8673         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
8674         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
8675         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
8676         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
8677         * doc/posix-functions/wcsrchr.texi: Mention the new module.
8678
8679 2011-02-06  Bruno Haible  <bruno@clisp.org>
8680
8681         New module 'wcschr'.
8682         * modules/wcschr: New file.
8683         * lib/wchar.in.h (wcschr): New declaration.
8684         * lib/wcschr.c: New file.
8685         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
8686         * m4/wcschr.m4: New file.
8687         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
8688         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
8689         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
8690         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
8691         * doc/posix-functions/wcschr.texi: Mention the new module.
8692
8693 2011-02-06  Bruno Haible  <bruno@clisp.org>
8694
8695         New module 'wcsdup'.
8696         * modules/wcsdup: New file.
8697         * lib/wchar.in.h (wcsdup): New declaration.
8698         * lib/wcsdup.c: New file.
8699         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
8700         * m4/wcsdup.m4: New file.
8701         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
8702         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
8703         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
8704         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
8705         * doc/posix-functions/wcsdup.texi: Mention the new module.
8706
8707 2011-02-06  Bruno Haible  <bruno@clisp.org>
8708
8709         New module 'wcsxfrm'.
8710         * modules/wcsxfrm: New file.
8711         * lib/wchar.in.h (wcsxfrm): New declaration.
8712         * lib/wcsxfrm.c: New file.
8713         * lib/wcsxfrm-impl.h: New file.
8714         * m4/wcsxfrm.m4: New file.
8715         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
8716         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
8717         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
8718         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
8719         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
8720
8721 2011-02-06  Bruno Haible  <bruno@clisp.org>
8722
8723         New module 'wcscoll'.
8724         * modules/wcscoll: New file.
8725         * lib/wchar.in.h (wcscoll): New declaration.
8726         * lib/wcscoll.c: New file.
8727         * lib/wcscoll-impl.h: New file.
8728         * m4/wcscoll.m4: New file.
8729         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
8730         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
8731         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
8732         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
8733         * doc/posix-functions/wcscoll.texi: Mention the new module.
8734
8735 2011-02-06  Bruno Haible  <bruno@clisp.org>
8736
8737         New module 'wcsncasecmp'.
8738         * modules/wcsncasecmp: New file.
8739         * lib/wchar.in.h (wcsncasecmp): New declaration.
8740         * lib/wcsncasecmp.c: New file.
8741         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
8742         * m4/wcsncasecmp.m4: New file.
8743         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
8744         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
8745         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
8746         HAVE_WCSNCASECMP.
8747         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
8748         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
8749
8750 2011-02-06  Bruno Haible  <bruno@clisp.org>
8751
8752         New module 'wcscasecmp'.
8753         * modules/wcscasecmp: New file.
8754         * lib/wchar.in.h (wcscasecmp): New declaration.
8755         * lib/wcscasecmp.c: New file.
8756         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
8757         * m4/wcscasecmp.m4: New file.
8758         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
8759         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
8760         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
8761         HAVE_WCSCASECMP.
8762         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
8763         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
8764
8765 2011-02-05  Bruno Haible  <bruno@clisp.org>
8766
8767         New module 'wcsncmp'.
8768         * modules/wcsncmp: New file.
8769         * lib/wchar.in.h (wcsncmp): New declaration.
8770         * lib/wcsncmp.c: New file.
8771         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
8772         * m4/wcsncmp.m4: New file.
8773         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
8774         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
8775         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
8776         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
8777         * doc/posix-functions/wcsncmp.texi: Mention the new module.
8778
8779 2011-02-05  Bruno Haible  <bruno@clisp.org>
8780
8781         New module 'wcscmp'.
8782         * modules/wcscmp: New file.
8783         * lib/wchar.in.h (wcscmp): New declaration.
8784         * lib/wcscmp.c: New file.
8785         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
8786         * m4/wcscmp.m4: New file.
8787         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
8788         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
8789         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
8790         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
8791         * doc/posix-functions/wcscmp.texi: Mention the new module.
8792
8793 2011-02-05  Bruno Haible  <bruno@clisp.org>
8794
8795         New module 'wcsncat'.
8796         * modules/wcsncat: New file.
8797         * lib/wchar.in.h (wcsncat): New declaration.
8798         * lib/wcsncat.c: New file.
8799         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
8800         * m4/wcsncat.m4: New file.
8801         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
8802         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
8803         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
8804         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
8805         * doc/posix-functions/wcsncat.texi: Mention the new module.
8806
8807 2011-02-05  Bruno Haible  <bruno@clisp.org>
8808
8809         New module 'wcscat'.
8810         * modules/wcscat: New file.
8811         * lib/wchar.in.h (wcscat): New declaration.
8812         * lib/wcscat.c: New file.
8813         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
8814         * m4/wcscat.m4: New file.
8815         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
8816         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
8817         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
8818         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
8819         * doc/posix-functions/wcscat.texi: Mention the new module.
8820
8821 2011-02-05  Bruno Haible  <bruno@clisp.org>
8822
8823         New module 'wcpncpy'.
8824         * modules/wcpncpy: New file.
8825         * lib/wchar.in.h (wcpncpy): New declaration.
8826         * lib/wcpncpy.c: New file.
8827         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
8828         * m4/wcpncpy.m4: New file.
8829         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
8830         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
8831         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
8832         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
8833         * doc/posix-functions/wcpncpy.texi: Mention the new module.
8834
8835 2011-02-05  Bruno Haible  <bruno@clisp.org>
8836
8837         New module 'wcsncpy'.
8838         * modules/wcsncpy: New file.
8839         * lib/wchar.in.h (wcsncpy): New declaration.
8840         * lib/wcsncpy.c: New file.
8841         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
8842         * m4/wcsncpy.m4: New file.
8843         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
8844         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
8845         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
8846         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
8847         * doc/posix-functions/wcsncpy.texi: Mention the new module.
8848
8849 2011-02-05  Bruno Haible  <bruno@clisp.org>
8850
8851         New module 'wcpcpy'.
8852         * modules/wcpcpy: New file.
8853         * lib/wchar.in.h (wcpcpy): New declaration.
8854         * lib/wcpcpy.c: New file.
8855         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
8856         * m4/wcpcpy.m4: New file.
8857         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
8858         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
8859         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
8860         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
8861         * doc/posix-functions/wcpcpy.texi: Mention the new module.
8862
8863 2011-02-05  Bruno Haible  <bruno@clisp.org>
8864
8865         New module 'wcscpy'.
8866         * modules/wcscpy: New file.
8867         * lib/wchar.in.h (wcscpy): New declaration.
8868         * lib/wcscpy.c: New file.
8869         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
8870         * m4/wcscpy.m4: New file.
8871         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
8872         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
8873         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
8874         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
8875         * doc/posix-functions/wcscpy.texi: Mention the new module.
8876
8877 2011-02-05  Bruno Haible  <bruno@clisp.org>
8878
8879         New module 'wcsnlen'.
8880         * modules/wcsnlen: New file.
8881         * lib/wchar.in.h (wcsnlen): New declaration.
8882         * lib/wcsnlen.c: New file.
8883         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
8884         * m4/wcsnlen.m4: New file.
8885         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
8886         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
8887         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
8888         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
8889         * doc/posix-functions/wcsnlen.texi: Mention the new module.
8890
8891 2011-02-05  Bruno Haible  <bruno@clisp.org>
8892
8893         New module 'wcslen'.
8894         * modules/wcslen: New file.
8895         * lib/wchar.in.h (wcslen): New declaration.
8896         * lib/wcslen.c: New file.
8897         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
8898         * m4/wcslen.m4: New file.
8899         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
8900         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
8901         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
8902         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
8903         * doc/posix-functions/wcslen.texi: Mention the new module.
8904
8905 2011-02-05  Bruno Haible  <bruno@clisp.org>
8906
8907         New module 'wmemset'.
8908         * modules/wmemset: New file.
8909         * lib/wchar.in.h (wmemset): New declaration.
8910         * lib/wmemset.c: New file.
8911         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
8912         * m4/wmemset.m4: New file.
8913         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
8914         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
8915         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
8916         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
8917         * doc/posix-functions/wmemset.texi: Mention the new module.
8918
8919 2011-02-05  Bruno Haible  <bruno@clisp.org>
8920
8921         New module 'wmemmove'.
8922         * modules/wmemmove: New file.
8923         * lib/wchar.in.h (wmemmove): New declaration.
8924         * lib/wmemmove.c: New file.
8925         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
8926         * m4/wmemmove.m4: New file.
8927         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
8928         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
8929         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
8930         HAVE_WMEMMOVE.
8931         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
8932         * doc/posix-functions/wmemmove.texi: Mention the new module.
8933
8934 2011-02-05  Bruno Haible  <bruno@clisp.org>
8935
8936         New module 'wmemcpy'.
8937         * modules/wmemcpy: New file.
8938         * lib/wchar.in.h (wmemcpy): New declaration.
8939         * lib/wmemcpy.c: New file.
8940         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
8941         * m4/wmemcpy.m4: New file.
8942         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
8943         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
8944         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
8945         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
8946         * doc/posix-functions/wmemcpy.texi: Mention the new module.
8947
8948 2011-02-05  Bruno Haible  <bruno@clisp.org>
8949
8950         New module 'wmemcmp'.
8951         * modules/wmemcmp: New file.
8952         * lib/wchar.in.h (wmemcmp): New declaration.
8953         * lib/wmemcmp.c: New file.
8954         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
8955         * m4/wmemcmp.m4: New file.
8956         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
8957         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
8958         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
8959         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
8960         * doc/posix-functions/wmemcmp.texi: Mention the new module.
8961
8962 2011-02-07  Jim Meyering  <meyering@redhat.com>
8963
8964         di-set, ino-map: new modules, from coreutils
8965         * lib/di-set.c: New file.
8966         * lib/di-set.h: Likewise.
8967         * lib/ino-map.c: Likewise.
8968         * lib/ino-map.h: Likewise.
8969         * modules/di-set: Likewise.
8970         * modules/di-set-tests: Likewise.
8971         * modules/ino-map: Likewise.
8972         * modules/ino-map-tests: Likewise.
8973         * tests/test-di-set.c: Likewise.
8974         * tests/test-ino-map.c: Likewise.
8975
8976 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
8977
8978         getloadavg: merge minor changes from Emacs
8979
8980         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
8981         (getloadavg): Use memset, not bzero.
8982
8983         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
8984         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8985         clash (bug#86).
8986
8987 2010-11-14  Bruno Haible  <bruno@clisp.org>
8988
8989         Allow multiple gnulib generated replacements to coexist.
8990         * lib/getopt.in.h (struct option): Avoid identical redefinition.
8991         * lib/inttypes.in.h (imaxdiv_t): Likewise.
8992         * lib/langinfo.in.h (nl_item): Likewise.
8993         * lib/math.in.h (_NaN, NAN): Likewise.
8994         * lib/netdb.in.h (struct addrinfo): Likewise.
8995         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
8996         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
8997         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
8998         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
8999         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
9000         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
9001         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
9002         pthread_mutexattr_init, pthread_mutexattr_settype,
9003         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
9004         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
9005         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
9006         pthread_spin_trylock, pthread_spin_unlock): Likewise.
9007         * lib/sched.in.h (struct sched_param): Likewise.
9008         * lib/se-selinux.in.h (security_class_t, security_context_t,
9009         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
9010         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
9011         lsetfilecon, fsetfilecon, security_check_context,
9012         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
9013         Likewise.
9014         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
9015         Likewise.
9016         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
9017         _gl_function_taking_int_returning_void_t, union sigval,
9018         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
9019         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
9020         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9021         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
9022         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
9023         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
9024         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
9025         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
9026         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
9027         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
9028         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
9029         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
9030         socklen_t, rpl_fd_isset): Likewise.
9031         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
9032         * lib/sys_time.in.h (struct timeval): Likewise.
9033         * lib/sys_times.in.h (struct tms): Likewise.
9034         * lib/sys_utsname.in.h (struct utsname):
9035         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
9036         * lib/unistd.in.h (getpagesize): Likewise.
9037         * lib/wchar.in.h (mbstate_t): Likewise.
9038         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
9039         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
9040         towlower, towupper): Likewise.
9041         Reported by Sam Steingold <sds@gnu.org>.
9042
9043 2011-02-05  Eric Blake  <eblake@redhat.com>
9044
9045         unsetenv: work around Haiku issues
9046         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
9047         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
9048
9049 2010-12-30  Bruce Korb  <bkorb@gnu.org>
9050
9051         libposix: avoid calling error() within libposix
9052         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
9053         is defined.
9054
9055 2011-02-05  Eric Blake  <eblake@redhat.com>
9056
9057         strerror_r-posix: port to cygwin
9058         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
9059         implementation.
9060         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
9061         * tests/test-strerror_r.c (main): Fix test.
9062         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9063         issue.
9064
9065 2011-02-05  Bruno Haible  <bruno@clisp.org>
9066
9067         New module 'wmemchr'.
9068         * modules/wmemchr: New file.
9069         * lib/wchar.in.h (wmemchr): New declaration.
9070         * lib/wmemchr.c: New file.
9071         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
9072         * m4/wmemchr.m4: New file.
9073         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
9074         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
9075         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
9076         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
9077         * doc/posix-functions/wmemchr.texi: Mention the new module.
9078
9079 2011-02-04  Eric Blake  <eblake@redhat.com>
9080
9081         fdopendir: detect FreeBSD bug
9082         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
9083         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
9084
9085 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9086
9087         stdbool: do not define HAVE_STDBOOL_H
9088         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
9089         AC_HEADER_STDBOOL.  All uses changed.  Do not define
9090         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
9091         imported from the latest Autoconf git.  It was motivated by Emacs,
9092         which uses gnulib but does not need HAVE_STDBOOL_H.
9093
9094 2011-02-04  Bruno Haible  <bruno@clisp.org>
9095
9096         wcsnrtombs: Prepare for new module wwcsnrtombs.
9097         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
9098         * lib/wcsnrtombs.c: Include it.
9099         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
9100
9101         wcsrtombs: Prepare for new module wwcsrtombs.
9102         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
9103         * lib/wcsrtombs.c: Include it.
9104         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
9105
9106         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
9107         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
9108         * lib/mbsnrtowcs.c: Include it.
9109         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
9110
9111         mbsrtowcs: Prepare for new module mbsrtowwcs.
9112         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
9113         * lib/mbsrtowcs.c: Include it.
9114         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
9115
9116 2011-02-04  Bruno Haible  <bruno@clisp.org>
9117
9118         vasnprintf: Reduce use of malloc for small format strings.
9119         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
9120         (arguments): Add room for the first 7 arguments.
9121         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
9122         (char_directives, u8_directives, u16_directives, u32_directives): Add
9123         room for the first 7 directives.
9124         * lib/printf-parse.c: Include <string.h>.
9125         (PRINTF_PARSE): Change memory handling code so that it uses the first
9126         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
9127         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
9128         Reported by Pádraig Brady <P@draigbrady.com>.
9129
9130 2011-01-31  Eric Blake  <eblake@redhat.com>
9131
9132         dup2: work around Haiku bug
9133         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
9134         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
9135         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9136         * tests/test-dup2.c (main): Enhance test.
9137
9138 2011-01-31  Simon Josefsson  <simon@josefsson.org>
9139
9140         doc: off_t is not available in eglibc 2.11.2 stdio.h.
9141         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
9142         declared by eglibc 2.11.2.
9143         * lib/stdio.in.h: Likewise.
9144
9145 2011-01-31  Eric Blake  <eblake@redhat.com>
9146
9147         ignore-value: add missing test dependency
9148         * tests/test-ignore-value.c: Revert previous change; stdio.h
9149         provides off_t.
9150         * modules/ignore-value-tests (Depends-on): Add missing dependency.
9151
9152 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9153
9154         mktime: clarify long_int width checking
9155         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
9156         the top level, to make it clearer that the assumption about
9157         long_int width is being checked.  See
9158         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
9159
9160 2011-01-30  Simon Josefsson  <simon@josefsson.org>
9161
9162         ignore-value: Fix self-test.
9163         * tests/test-ignore-value.c: Include sys/types.h for off_t.
9164
9165 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9166
9167         TYPE_MAXIMUM: avoid theoretically undefined behavior
9168         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
9169         negative number, which the C Standard says has undefined behavior.
9170         In practice this is not a problem, but might as well do it by the book.
9171         Reported by Rich Felker and Eric Blake; see
9172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
9173         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
9174         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9175         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9176         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
9177         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9178         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
9179
9180         mktime: #undef mktime before #defining it
9181         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
9182
9183         mktime: systematically normalize tm_isdst comparisons
9184         * lib/mktime.c (isdst_differ): New function.
9185         (__mktime_internal): Use it systematically for all isdst comparisons.
9186         This completes the fix for libc BZ #6723, and removes the need for
9187         normalizing tm_isdst.  See
9188         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
9189         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
9190
9191         mktime: fix some integer overflow issues and sidestep the rest
9192
9193         This was prompted by a bug report by Benjamin Lindner for MinGW
9194         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
9195         His bug is due to signed integer overflow (0 - INT_MIN), and I
9196         I scanned through mktime.c looking for other integer overflow
9197         problems, fixing all the bugs I found.
9198
9199         Although the C Standard says the resulting code is still not safe
9200         in the presence of integer overflow, in practice it should be good
9201         enough for all real-world two's-complement implementations, except
9202         for debugging environments that deliberately trap on integer
9203         overflow (e.g., gcc -ftrapv).
9204
9205         * lib/mktime.c (WRAPV): New macro.
9206         (SHR): Also check that long_int and time_t shift right in the
9207         usual way, before using the fast-but-unportable method.
9208         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
9209         used.  The code already assumed two's complement, so there's
9210         no need to test for alternatives.  All uses removed.
9211         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
9212         the C standard.  Problem reported by Rich Felker in
9213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
9214         (twos_complement_arithmetic): Also check long_int and time_t.
9215         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
9216         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
9217         (__mktime_internal): Avoid integer overflow with unary subtraction
9218         in two instances where -1 - X is an adequate replacement for -X,
9219         since the calculations are approximate.
9220
9221 2011-01-29  Eric Blake  <eblake@redhat.com>
9222
9223         mktime: avoid infinite loop
9224         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
9225         type; behavior is still undefined but portable to all known targets.
9226         Reported by Rich Felker.
9227
9228 2011-01-29  Simon Josefsson  <simon@josefsson.org>
9229
9230         rename, unlink, same-inode: Relicense.
9231         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
9232         * modules/unlink (License): Likewise.
9233         * modules/same-inode (License): Likewise.
9234
9235 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9236
9237         mktime: avoid problems on NetBSD 5 / i386
9238         * lib/mktime.c (long_int): New type.  This works around a problem
9239         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
9240         but time_t is 64 bits, and where I expect the existing code is
9241         wrong in some cases.
9242         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
9243         (ydhms_diff): Bring back the compile-time check for wide-enough
9244         year and yday.
9245
9246         mktime: fix misspelling in comment
9247         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
9248         This merges all recent glibc changes of importance.
9249
9250 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9251
9252         move-if-change: cope with concurrent mv of identical file.
9253         * build-aux/move-if-change (CMPPROG): Accept environment
9254         variable as an override for `cmp'.
9255         (usage): Document CMPPROG.
9256         Adjust comparison to drop stdout.  Cope with failure of mv if
9257         the target file exists and is identical to the source, for
9258         parallel builds.
9259         Report from H.J. Lu against binutils in PR binutils/12283.
9260
9261 2011-01-28  Bruce Korb  <bkorb@gnu.org>
9262
9263         * users.txt: Mention sharutils.
9264
9265 2011-01-28  Simon Josefsson  <simon@josefsson.org>
9266
9267         * users.txt: Mention OATH Toolkit.
9268
9269 2011-01-27  Bruno Haible  <bruno@clisp.org>
9270
9271         Prepare for supporting FreeBSD 10.
9272         * build-aux/config.libpath: Remove handling of freebsd1*.
9273
9274 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
9275
9276         Prepare for supporting FreeBSD 10.
9277         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
9278         match FreeBSD 10.0.
9279
9280 2011-01-27  Bruno Haible  <bruno@clisp.org>
9281
9282         vma-iter, get-rusage-as: Add OpenBSD support.
9283         * modules/vma-iter (configure.ac): Test for mquery.
9284         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
9285         * lib/vma-iter.c: Include <sys/mman.h>.
9286         (vma_iterate): Add an implementation based on mquery().
9287         * lib/resource-ext.h (get_rusage_as): Update comments.
9288         * lib/get-rusage-as.c: Likewise.
9289         * lib/get-rusage-data.c: Likewise.
9290
9291 2011-01-26  Karl Berry  <karl@gnu.org>
9292
9293         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
9294         variables to make it easier to override the makeinfo program used.
9295
9296 2011-01-26  Eric Blake  <eblake@redhat.com>
9297
9298         fcntl: work around Haiku F_DUPFD bugs
9299         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
9300         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
9301         cloexec bit on duplication.
9302         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
9303
9304 2011-01-26  Bruno Haible  <bruno@clisp.org>
9305
9306         Enable memory leak tests on AIX.
9307         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
9308         * tests/test-fprintf-posix3.c (main): Likewise.
9309
9310 2011-01-26  Bruno Haible  <bruno@clisp.org>
9311
9312         Tests for module 'get-rusage-data'.
9313         * modules/get-rusage-data-tests: New file.
9314         * tests/test-get-rusage-data.c: New file.
9315
9316         New module 'get-rusage-data'.
9317         * lib/resource-ext.h (get_rusage_data): New declaration.
9318         * lib/get-rusage-data.c: New file.
9319         * modules/get-rusage-data: New file.
9320
9321 2011-01-25  Bruno Haible  <bruno@clisp.org>
9322
9323         get-rusage-as: Allow for easier testing.
9324         * lib/resource-ext.h (get_rusage_as): Add comment.
9325         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
9326         (main): New function for interactive testing.
9327
9328 2011-01-25  Bruno Haible  <bruno@clisp.org>
9329
9330         vma-iter: Treat Haiku like BeOS.
9331         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
9332         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
9333
9334 2011-01-25  Eric Blake  <eblake@redhat.com>
9335
9336         c-stack: fix regression on cygwin when libsigsegv is present
9337         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
9338
9339 2011-01-24  Bruno Haible  <bruno@clisp.org>
9340
9341         vma-iter: Avoid empty intervals.
9342         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
9343         on an empty interval.
9344
9345 2011-01-24  Jim Meyering  <meyering@redhat.com>
9346
9347         u64: remove unnecessary #include
9348         * lib/u64.h: Don't include <stddef.h>.  It was not used.
9349
9350 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9351
9352         Allow the user to avoid the HAVE_RAW_DECL_* macros.
9353         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
9354
9355 2011-01-23  Bruno Haible  <bruno@clisp.org>
9356
9357         New module 'vma-iter'.
9358         * lib/vma-iter.h: New file.
9359         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
9360         * modules/vma-iter: New file.
9361         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
9362         for get_rusage_as_via_iterator.
9363         (vma_iterate_callback): New function.
9364         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
9365         * modules/get-rusage-as (Depends-on): Add vma-iter.
9366
9367 2011-01-23  Bruno Haible  <bruno@clisp.org>
9368
9369         uninorm: Tweak includes.
9370         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
9371         Reported by Jim Meyering.
9372
9373 2011-01-23  Bruno Haible  <bruno@clisp.org>
9374
9375         get-rusage-as: Improve on NetBSD.
9376         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
9377         /proc, like on FreeBSD.
9378
9379 2011-01-23  Jim Meyering  <meyering@redhat.com>
9380
9381         xreadlink.h: remove unnecessary #include
9382         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
9383
9384         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
9385         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
9386
9387 2011-01-23  Bruno Haible  <bruno@clisp.org>
9388
9389         get-rusage-as: Fix bug.
9390         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
9391         original limit when aborting the first loop.
9392
9393 2011-01-23  Bruno Haible  <bruno@clisp.org>
9394
9395         wctype: Ensure valid C syntax.
9396         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
9397         unconditionally, instead of gl_NEXT_HEADERS conditionally.
9398
9399 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9400
9401         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
9402         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
9403         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
9404         as they are needed only for configure's test case.
9405         This removes two unnecessary symbols from config.h.
9406
9407         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
9408         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
9409         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
9410         AC_CHECK_HEADERS_ONCE on a header that we also invoke
9411         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
9412         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
9413         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
9414         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9415         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9416         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9417         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9418         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9419         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9420         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9421         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9422         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9423         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9424         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9425
9426 2011-01-21  Eric Blake  <eblake@redhat.com>
9427
9428         maintainer-makefile: work with older git for submodule check
9429         * top/maint.mk (public-submodule-commit): Rewrite to avoid
9430         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
9431         Reported by Matthias Bolte.
9432
9433         bootstrap: minor portability fixes
9434         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
9435         (usage): Omit leading capital and trailing . on help phrases, per
9436         GNU Coding Standards.
9437         (check_versions, top level): Prefix messages with script name.
9438
9439 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
9440
9441         bootstrap: support --no-git option
9442         * build-aux/bootstrap: Add --no-git option, to be used when
9443         --gnulib-srcdir points to the exact desired checkout.
9444
9445 2011-01-21  Eric Blake  <eblake@redhat.com>
9446
9447         strerror_r-posix: work with glibc 2.13
9448         * lib/strerror_r.c (strerror_r): Fix return type.
9449
9450 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9451             Bruno Haible  <bruno@clisp.org>
9452
9453         uN_strstr: New unit tests.
9454         * modules/unistr/u8-strstr-tests: New file.
9455         * modules/unistr/u16-strstr-tests: New file.
9456         * modules/unistr/u32-strstr-tests: New file.
9457         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
9458         * tests/unistr/test-u8-strstr.c: New file.
9459         * tests/unistr/test-u16-strstr.c: New file.
9460         * tests/unistr/test-u32-strstr.c: New file.
9461
9462 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9463             Bruno Haible  <bruno@clisp.org>
9464
9465         Make uN_strstr functions O(n) worst-case.
9466         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
9467         16-bit and 32-bit unit cases, use the unibyte algorithm from
9468         lib/mbsstr.c.
9469         * lib/unistr/u8-strstr.c: Include <string.h>.
9470         (UNIT_IS_UINT8_T): New macro.
9471         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
9472         (U_STRLEN, U_STRNLEN): New macros.
9473         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
9474         (U_STRLEN, U_STRNLEN): New macros.
9475         * modules/unistr/u8-strstr (Depends-on): Add strstr.
9476         (configure.ac): Update required libunistring version.
9477         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
9478         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
9479         malloca.
9480         (configure.ac): Update required libunistring version.
9481         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
9482         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
9483         malloca.
9484         (configure.ac): Update required libunistring version.
9485
9486 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9487             Bruno Haible  <bruno@clisp.org>
9488
9489         Prepare for faster uN_strstr functions.
9490         * lib/str-kmp.h: Support definable UNITs.
9491         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
9492         needle_len argument.
9493         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
9494         * lib/mbscasestr.c (mbscasestr): Likewise.
9495
9496 2011-01-21  Pádraig Brady <P@draigBrady.com>
9497
9498         malloca-tests: make faster by unsetting MALLOC_PERTURB_
9499         * tests/test-malloca.c (main): Unset the environment variable
9500         to greatly speed up the test.
9501         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
9502         * modules/malloca-tests: Depend on unsetenv.
9503
9504 2011-01-21  Pádraig Brady <P@draigBrady.com>
9505
9506         ignore-value: remove stdint dependency
9507         * lib/ignore-value.h: Remove <stdint.h>
9508         * modules/ignore-value: Remove stdint dependency.
9509
9510 2011-01-21  Jim Meyering  <meyering@redhat.com>
9511
9512         maint.mk: adjust variable name to be consistent with other gl_ vars
9513         * top/maint.mk (gl_public_submodule_commit): Rename the variable
9514         to be lower case.
9515
9516 2011-01-20  Jim Meyering  <meyering@redhat.com>
9517
9518         maint.mk: make "check" depend on public-submodule-commit by default
9519         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
9520
9521 2011-01-20  Bruno Haible  <bruno@clisp.org>
9522
9523         mbfile, mbiter: Complete change from 2008-12-21.
9524         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
9525         * m4/mbiter.m4 (gl_MBITER): Likewise.
9526
9527 2011-01-20  Jim Meyering  <meyering@redhat.com>
9528
9529         init.sh: insert space between each function name and "()"
9530         * tests/init.sh: Make it a little easier to see that a function's
9531         name is "warn_", and not "warn" when looking at the first part of
9532         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
9533
9534 2011-01-20  Jim Meyering  <meyering@redhat.com>
9535
9536         mountlist: clean up code formatting
9537         * lib/mountlist.c (read_file_system_list): Split a long line,
9538         correct bracing style, use NULL in place of "(struct statfs *)0",
9539         don't parenthesize return value, add spaces around "=" and after
9540         ";-in-for-stmt".
9541
9542 2011-01-14  Markus Duft <mduft@gentoo.org>
9543
9544         mountlist: add support for Interix
9545         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
9546         Apply statvfs to all entries of /dev/fs.
9547         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
9548         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
9549
9550 2011-01-20  Jim Meyering  <meyering@redhat.com>
9551
9552         maint.mk: improve the public-submodule-commit rule
9553         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
9554         to suppress printing of its commands... unless V=1.
9555         Add git submodule's --quiet option to suppress printing of e.g.,
9556         "Entering gnulib" output.
9557         "cd" into $(srcdir) before running git submodule.
9558
9559 2011-01-20  Bruno Haible  <bruno@clisp.org>
9560
9561         include_next: Fix bug introduced on 2011-01-18.
9562         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
9563         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
9564         ac_cv_header_... variable if the second argument is not 'check'.
9565         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
9566         gl_NEXT_HEADERS_INTERNAL.
9567
9568 2011-01-20  Bruno Haible  <bruno@clisp.org>
9569
9570         Allow the user to avoid the GNULIB_TEST_* macros.
9571         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
9572         Suggested by Paul Eggert.
9573
9574 2011-01-14  Jim Meyering  <meyering@redhat.com>
9575
9576         bootstrap: avoid failure when there is no .gitmodules file
9577         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
9578         has been assigned to, even when its value is the empty string.
9579         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
9580         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
9581         Reported by John W. Eaton <jwe@gnu.org>.
9582
9583 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
9584
9585         assume <ctype.h>, ..., <time.h> exist
9586         For years gnulib has been assuming the existence of the headers
9587         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
9588         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
9589         them, since they don't appear to be needed.
9590         * README (Portability guidelines): Document this.
9591         * lib/flock.c: Assume <fcntl.h> exists.
9592         * lib/regex_internal.h: Assume <locale.h> exists.
9593         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
9594         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
9595         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
9596         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
9597         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
9598         * m4/regex.m4 (gl_REGEX): Likewise.
9599         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
9600         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
9601         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
9602         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
9603         * tests/test-argp.c: Likewise.
9604         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
9605
9606         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
9607         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
9608         AA_APPLE_UNIVERSAL_BUILD.  See
9609         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
9610         * NEWS: Document this.
9611
9612 2011-01-19  Eric Blake  <eblake@redhat.com>
9613
9614         c-stack: assume stack overflow if SA_SIGINFO unsupported
9615         * lib/c-stack.c (SIGACTION_WORKS): Rename...
9616         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
9617         sigaction will work.
9618         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
9619         behavior match Linux.
9620         * tests/test-c-stack.c (main): Prefer NULL for pointers.
9621
9622         stdbool-tests: accomodate Haiku
9623         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
9624
9625         binary-io: fix O_TEXT on Haiku
9626         * modules/binary-io (Depends-on): Add fcntl-h.
9627         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
9628         than blindly undefining O_TEXT.
9629         Reported by Scott McCreary.
9630
9631 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9632
9633         include_next: do not check for standard headers like stddef.h
9634
9635         I found this problem when modifying Emacs to use gnulib.
9636         I noticed that it added HAVE_STDDEF_H to config.h, even though
9637         gnulib always assumes <stddef.h> exists as per README and this
9638         symbol is unnecessary.
9639         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
9640         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
9641         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
9642         faster for headers like stddef.h that are known to exist.
9643         (gl_CHECK_NEXT_HEADERS): Use it.
9644         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
9645         rather than gl_CHECK_NEXT_HEADERS.
9646         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
9647         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
9648
9649 2011-01-18  Eric Blake  <eblake@redhat.com>
9650
9651         ansi-c++-opt: skip C++ dependency style if C++ is unused
9652         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
9653         tests when we know C++ compilation is not desired.
9654         Reported by Scott McCreary.
9655
9656 2011-01-18  Bruno Haible  <bruno@clisp.org>
9657
9658         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
9659         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
9660         (main): Perform test also when getrlimit and setrlimit don't exist or
9661         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
9662         limiting the address space size using setrlimit, compare the address
9663         space size before and after the the test.
9664         * tests/test-dprintf-posix2.c: Likewise.
9665         * tests/test-fprintf-posix3.sh: Update skip messages.
9666         * tests/test-dprintf-posix2.sh: Likewise.
9667         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
9668         * modules/dprintf-posix-tests (Depends-on): Likewise.
9669         Reported by Bruce Korb <bkorb@gnu.org> and
9670         Gary V. Vaughan <gary@gnu.org>.
9671
9672 2011-01-18  Bruno Haible  <bruno@clisp.org>
9673
9674         get-rusage-as: Improvement for Cygwin.
9675         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
9676         areas that are merely reserved.
9677
9678 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9679
9680         strftime: remove dependencies on multibyte modules
9681
9682         strftime depended on mbrlen, mbsinit, and wchar, but these modules
9683         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
9684         only if __osf__ is defined, and I suspect OSF doesn't need these
9685         other modules.  If my guess is wrong, we'll need to come up with a
9686         variant of strftime that doesn't need the multibyte modules.
9687
9688         I discovered this problem when attempting modify Emacs to use the
9689         strftime module.  With the previous gnulib, this caused Emacs to
9690         need 31 new files, ranging from lib/config.charset to
9691         m4/wint_t.m4.  This was overkill and I expect would be offputting
9692         to the Emacs maintainers.  After this change, only 6 new files are
9693         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
9694         stdbool.m4, and tm_gmtoff.m4.
9695
9696         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
9697         Suggested by Bruno Haible in
9698         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
9699         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
9700         and do not check for wchar.h.
9701         * modules/strftime (Files): Remove m4/mbstate_t.m4.
9702         (Depends-on): Remove mbrlen, mbsinit, wchar.
9703
9704 2011-01-18  Bruno Haible  <bruno@clisp.org>
9705
9706         Tests for module 'get-rusage-as'.
9707         * modules/get-rusage-as-tests: New file.
9708         * tests/test-get-rusage-as.c: New file.
9709
9710         New module 'get-rusage-as'.
9711         * modules/get-rusage-as: New file.
9712         * lib/resource-ext.h: New file.
9713         * lib/get-rusage-as.c: New file.
9714
9715 2011-01-17  Eric Blake  <eblake@redhat.com>
9716
9717         sigaction: relax license from LGPLv3+ to LGPLv2+
9718         * modules/sigaction (License): Relax to LGPLv2+.
9719
9720 2011-01-14  Bruno Haible  <bruno@clisp.org>
9721
9722         filemode: Make function declarations usable in C++ mode.
9723         * lib/filemode.h: Enclose function declarations in extern "C" block.
9724         Reported by John W. Eaton <jwe@gnu.org>.
9725
9726 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
9727
9728         save-cwd: no longer include "xgetcwd.h"
9729         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
9730         This avoids a compilation failure in projects that use save-cwd
9731         without also using the xgetcwd module.
9732
9733 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9734
9735         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
9736         This is so that a program like Emacs, which needs only dtoastr,
9737         does not have to bother with distributing and compiling ftoastr
9738         and ldtoastr.
9739         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
9740         * modules/dtoastr, modules/ldtoastr: New files.
9741         * modules/ftoastr: Now works just for 'float'.
9742         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
9743         (Makefile.am): Remove ftoastr.h (not needed and no effect),
9744         dtoastr.c, ldtoastr.c.
9745
9746 2011-01-11  Jim Meyering  <meyering@redhat.com>
9747
9748         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
9749         There is no need to work around the lack of the fchdir function,
9750         since gnulib can now provide a replacement when required.
9751         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
9752         * modules/save-cwd (Depends-on): Add fchdir.
9753
9754 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9755
9756         openat, save-cwd: avoid xmalloc
9757
9758         This removes a direct (but undocumented) dependency of openat on
9759         xalloc, along with an indirect dependency via save-cwd.  It also
9760         removes a dependency of save-cwd on xgetcwd, and thereby
9761         indirectly on xalloc.  This change causes the openat substitute
9762         to fall back on save_cwd when memory is tight, and for save_cwd to
9763         fail instead of dying when memory is tight, but that's good enough.
9764         Problem and initial idea for fix reported by Bastien Roucaries in
9765         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
9766
9767         * lib/openat-proc.c: Include stdlib.h (for malloc), not
9768         xalloc.h (for xmalloc).
9769         (openat_proc_name): Use malloc, not xmalloc.
9770         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
9771         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
9772
9773         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
9774         This avoids heap allocation for file names whose lengths are in
9775         the range 512..1023, with the upper bound increasing to at most
9776         4031 depending on the platform's PATH_MAX.  (We do not want
9777         pathmax.h here as it might supply a non-constant PATH_MAX.)
9778         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
9779         Perhaps they should be moved to malloca.h?
9780         (OPENAT_BUFFER_SIZE): Use them.
9781
9782 2011-01-10  Bruno Haible  <bruno@clisp.org>
9783
9784         doc: Update users.txt.
9785         * users.txt: Add recutils.
9786
9787 2011-01-09  Karl Berry  <karl@gnu.org>
9788
9789         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
9790
9791         * doc/configmake.texi: New file.
9792         * doc/gnulib.texi: Include it.
9793         * modules/configmake: Move documentation from here.
9794
9795 2011-01-09  Bruno Haible  <bruno@clisp.org>
9796
9797         Update to Unicode 6.0.0.
9798         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
9799         (get_lbp): Update for Unicode 6.0.0.
9800         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
9801         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
9802         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
9803         U+11001, U+11038..U+11046. Remove U+06DE.
9804         (uc_width): Fix bounds of planes.
9805         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9806         lib/uniwidth/width.c.
9807         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
9808         trailing whitespace removed.
9809         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
9810         without comments, but with the original copyright notice.
9811         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
9812         * lib/unicase/ignorable.h: Likewise.
9813         * lib/unicase/tocasefold.h: Likewise.
9814         * lib/unicase/tolower.h: Likewise.
9815         * lib/unicase/totitle.h: Likewise.
9816         * lib/unicase/toupper.h: Likewise.
9817         * lib/unictype/bidi_of.h: Likewise.
9818         * lib/unictype/blocks.h: Likewise.
9819         * lib/unictype/categ_C.h: Likewise.
9820         * lib/unictype/categ_Cn.h: Likewise.
9821         * lib/unictype/categ_L.h: Likewise.
9822         * lib/unictype/categ_Ll.h: Likewise.
9823         * lib/unictype/categ_Lm.h: Likewise.
9824         * lib/unictype/categ_Lo.h: Likewise.
9825         * lib/unictype/categ_Lu.h: Likewise.
9826         * lib/unictype/categ_M.h: Likewise.
9827         * lib/unictype/categ_Mc.h: Likewise.
9828         * lib/unictype/categ_Me.h: Likewise.
9829         * lib/unictype/categ_Mn.h: Likewise.
9830         * lib/unictype/categ_N.h: Likewise.
9831         * lib/unictype/categ_Nd.h: Likewise.
9832         * lib/unictype/categ_No.h: Likewise.
9833         * lib/unictype/categ_P.h: Likewise.
9834         * lib/unictype/categ_Po.h: Likewise.
9835         * lib/unictype/categ_S.h: Likewise.
9836         * lib/unictype/categ_Sc.h: Likewise.
9837         * lib/unictype/categ_Sk.h: Likewise.
9838         * lib/unictype/categ_Sm.h: Likewise.
9839         * lib/unictype/categ_So.h: Likewise.
9840         * lib/unictype/categ_of.h: Likewise.
9841         * lib/unictype/combining.h: Likewise.
9842         * lib/unictype/ctype_alnum.h: Likewise.
9843         * lib/unictype/ctype_alpha.h: Likewise.
9844         * lib/unictype/ctype_graph.h: Likewise.
9845         * lib/unictype/ctype_lower.h: Likewise.
9846         * lib/unictype/ctype_print.h: Likewise.
9847         * lib/unictype/ctype_punct.h: Likewise.
9848         * lib/unictype/ctype_upper.h: Likewise.
9849         * lib/unictype/decdigit.h: Likewise.
9850         * lib/unictype/digit.h: Likewise.
9851         * lib/unictype/numeric.h: Likewise.
9852         * lib/unictype/pr_alphabetic.h: Likewise.
9853         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9854         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9855         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9856         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9857         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9858         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9859         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9860         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9861         * lib/unictype/pr_case_ignorable.h: Likewise.
9862         * lib/unictype/pr_cased.h: Likewise.
9863         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
9864         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
9865         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
9866         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
9867         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
9868         * lib/unictype/pr_combining.h: Likewise.
9869         * lib/unictype/pr_composite.h: Likewise.
9870         * lib/unictype/pr_currency_symbol.h: Likewise.
9871         * lib/unictype/pr_decimal_digit.h: Likewise.
9872         * lib/unictype/pr_deprecated.h: Likewise.
9873         * lib/unictype/pr_format_control.h: Likewise.
9874         * lib/unictype/pr_grapheme_base.h: Likewise.
9875         * lib/unictype/pr_grapheme_extend.h: Likewise.
9876         * lib/unictype/pr_grapheme_link.h: Likewise.
9877         * lib/unictype/pr_id_continue.h: Likewise.
9878         * lib/unictype/pr_id_start.h: Likewise.
9879         * lib/unictype/pr_ideographic.h: Likewise.
9880         * lib/unictype/pr_lowercase.h: Likewise.
9881         * lib/unictype/pr_math.h: Likewise.
9882         * lib/unictype/pr_numeric.h: Likewise.
9883         * lib/unictype/pr_other_alphabetic.h: Likewise.
9884         * lib/unictype/pr_other_id_continue.h: Likewise.
9885         * lib/unictype/pr_other_math.h: Likewise.
9886         * lib/unictype/pr_punctuation.h: Likewise.
9887         * lib/unictype/pr_sentence_terminal.h: Likewise.
9888         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9889         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9890         * lib/unictype/pr_unified_ideograph.h: Likewise.
9891         * lib/unictype/pr_uppercase.h: Likewise.
9892         * lib/unictype/pr_xid_continue.h: Likewise.
9893         * lib/unictype/pr_xid_start.h: Likewise.
9894         * lib/unictype/scripts.h: Likewise.
9895         * lib/unictype/scripts_byname.gperf: Likewise.
9896         * lib/unictype/sy_java_ident.h: Likewise.
9897         * lib/unigbrk/gbrkprop.h: Likewise.
9898         * lib/unilbrk/lbrkprop1.h: Likewise.
9899         * lib/unilbrk/lbrkprop2.h: Likewise.
9900         * lib/uninorm/decomposition-table2.h: Likewise.
9901         * lib/uniwbrk/wbrkprop.h: Likewise.
9902         * tests/unicase/test-cased.c: Likewise.
9903         * tests/unicase/test-ignorable.c: Likewise.
9904         * tests/unicase/test-uc_tolower.c: Likewise.
9905         * tests/unicase/test-uc_totitle.c: Likewise.
9906         * tests/unicase/test-uc_toupper.c: Likewise.
9907         * tests/unictype/test-categ_C.c: Likewise.
9908         * tests/unictype/test-categ_Cn.c: Likewise.
9909         * tests/unictype/test-categ_L.c: Likewise.
9910         * tests/unictype/test-categ_Ll.c: Likewise.
9911         * tests/unictype/test-categ_Lm.c: Likewise.
9912         * tests/unictype/test-categ_Lo.c: Likewise.
9913         * tests/unictype/test-categ_Lu.c: Likewise.
9914         * tests/unictype/test-categ_M.c: Likewise.
9915         * tests/unictype/test-categ_Mc.c: Likewise.
9916         * tests/unictype/test-categ_Me.c: Likewise.
9917         * tests/unictype/test-categ_Mn.c: Likewise.
9918         * tests/unictype/test-categ_N.c: Likewise.
9919         * tests/unictype/test-categ_Nd.c: Likewise.
9920         * tests/unictype/test-categ_No.c: Likewise.
9921         * tests/unictype/test-categ_P.c: Likewise.
9922         * tests/unictype/test-categ_Po.c: Likewise.
9923         * tests/unictype/test-categ_S.c: Likewise.
9924         * tests/unictype/test-categ_Sc.c: Likewise.
9925         * tests/unictype/test-categ_Sk.c: Likewise.
9926         * tests/unictype/test-categ_Sm.c: Likewise.
9927         * tests/unictype/test-categ_So.c: Likewise.
9928         * tests/unictype/test-ctype_alnum.c: Likewise.
9929         * tests/unictype/test-ctype_alpha.c: Likewise.
9930         * tests/unictype/test-ctype_graph.c: Likewise.
9931         * tests/unictype/test-ctype_lower.c: Likewise.
9932         * tests/unictype/test-ctype_print.c: Likewise.
9933         * tests/unictype/test-ctype_punct.c: Likewise.
9934         * tests/unictype/test-ctype_upper.c: Likewise.
9935         * tests/unictype/test-decdigit.h: Likewise.
9936         * tests/unictype/test-digit.h: Likewise.
9937         * tests/unictype/test-numeric.h: Likewise.
9938         * tests/unictype/test-pr_alphabetic.c: Likewise.
9939         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9940         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
9941         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
9942         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9943         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9944         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9945         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9946         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9947         * tests/unictype/test-pr_case_ignorable.c: Likewise.
9948         * tests/unictype/test-pr_cased.c: Likewise.
9949         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
9950         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
9951         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
9952         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
9953         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
9954         * tests/unictype/test-pr_combining.c: Likewise.
9955         * tests/unictype/test-pr_composite.c: Likewise.
9956         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9957         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9958         * tests/unictype/test-pr_deprecated.c: Likewise.
9959         * tests/unictype/test-pr_format_control.c: Likewise.
9960         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9961         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9962         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9963         * tests/unictype/test-pr_id_continue.c: Likewise.
9964         * tests/unictype/test-pr_id_start.c: Likewise.
9965         * tests/unictype/test-pr_ideographic.c: Likewise.
9966         * tests/unictype/test-pr_lowercase.c: Likewise.
9967         * tests/unictype/test-pr_math.c: Likewise.
9968         * tests/unictype/test-pr_numeric.c: Likewise.
9969         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9970         * tests/unictype/test-pr_other_id_continue.c: Likewise.
9971         * tests/unictype/test-pr_other_math.c: Likewise.
9972         * tests/unictype/test-pr_punctuation.c: Likewise.
9973         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9974         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9975         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9976         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9977         * tests/unictype/test-pr_uppercase.c: Likewise.
9978         * tests/unictype/test-pr_xid_continue.c: Likewise.
9979         * tests/unictype/test-pr_xid_start.c: Likewise.
9980         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
9981         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
9982         changes.
9983         * lib/unictype/categ_Cc.h: Likewise.
9984         * lib/unictype/categ_Cf.h: Likewise.
9985         * lib/unictype/categ_Co.h: Likewise.
9986         * lib/unictype/categ_Cs.h: Likewise.
9987         * lib/unictype/categ_Lt.h: Likewise.
9988         * lib/unictype/categ_Nl.h: Likewise.
9989         * lib/unictype/categ_Pc.h: Likewise.
9990         * lib/unictype/categ_Pd.h: Likewise.
9991         * lib/unictype/categ_Pe.h: Likewise.
9992         * lib/unictype/categ_Pf.h: Likewise.
9993         * lib/unictype/categ_Pi.h: Likewise.
9994         * lib/unictype/categ_Ps.h: Likewise.
9995         * lib/unictype/categ_Z.h: Likewise.
9996         * lib/unictype/categ_Zl.h: Likewise.
9997         * lib/unictype/categ_Zp.h: Likewise.
9998         * lib/unictype/categ_Zs.h: Likewise.
9999         * lib/unictype/ctype_blank.h: Likewise.
10000         * lib/unictype/ctype_cntrl.h: Likewise.
10001         * lib/unictype/ctype_digit.h: Likewise.
10002         * lib/unictype/ctype_space.h: Likewise.
10003         * lib/unictype/ctype_xdigit.h: Likewise.
10004         * lib/unictype/mirror.h: Likewise.
10005         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10006         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10007         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10008         * lib/unictype/pr_bidi_control.h: Likewise.
10009         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10010         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10011         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10012         * lib/unictype/pr_bidi_pdf.h: Likewise.
10013         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10014         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10015         * lib/unictype/pr_dash.h: Likewise.
10016         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10017         * lib/unictype/pr_diacritic.h: Likewise.
10018         * lib/unictype/pr_extender.h: Likewise.
10019         * lib/unictype/pr_hex_digit.h: Likewise.
10020         * lib/unictype/pr_hyphen.h: Likewise.
10021         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10022         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10023         * lib/unictype/pr_ignorable_control.h: Likewise.
10024         * lib/unictype/pr_iso_control.h: Likewise.
10025         * lib/unictype/pr_join_control.h: Likewise.
10026         * lib/unictype/pr_left_of_pair.h: Likewise.
10027         * lib/unictype/pr_line_separator.h: Likewise.
10028         * lib/unictype/pr_logical_order_exception.h: Likewise.
10029         * lib/unictype/pr_non_break.h: Likewise.
10030         * lib/unictype/pr_not_a_character.h: Likewise.
10031         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10032         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10033         * lib/unictype/pr_other_id_start.h: Likewise.
10034         * lib/unictype/pr_other_lowercase.h: Likewise.
10035         * lib/unictype/pr_other_uppercase.h: Likewise.
10036         * lib/unictype/pr_paired_punctuation.h: Likewise.
10037         * lib/unictype/pr_paragraph_separator.h: Likewise.
10038         * lib/unictype/pr_pattern_syntax.h: Likewise.
10039         * lib/unictype/pr_pattern_white_space.h: Likewise.
10040         * lib/unictype/pr_private_use.h: Likewise.
10041         * lib/unictype/pr_quotation_mark.h: Likewise.
10042         * lib/unictype/pr_radical.h: Likewise.
10043         * lib/unictype/pr_soft_dotted.h: Likewise.
10044         * lib/unictype/pr_space.h: Likewise.
10045         * lib/unictype/pr_titlecase.h: Likewise.
10046         * lib/unictype/pr_variation_selector.h: Likewise.
10047         * lib/unictype/pr_white_space.h: Likewise.
10048         * lib/unictype/pr_zero_width.h: Likewise.
10049         * lib/unictype/sy_c_ident.h: Likewise.
10050         * lib/unictype/sy_c_whitespace.h: Likewise.
10051         * lib/unictype/sy_java_whitespace.h: Likewise.
10052         * lib/uninorm/composition-table.gperf: Likewise.
10053         * lib/uninorm/decomposition-table1.h: Likewise.
10054         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
10055         LB8.
10056         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10057         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10058         * modules/unictype/*: Bump version number of expected libunistring
10059         version.
10060
10061 2011-01-09  Bruno Haible  <bruno@clisp.org>
10062
10063         Update to Unicode 5.2.0.
10064         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
10065         trailing whitespace removed.
10066
10067 2011-01-09  Bruno Haible  <bruno@clisp.org>
10068
10069         New Unicode character properties, from Unicode 5.2.0.
10070         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
10071         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
10072         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
10073         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
10074         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
10075         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
10076         uc_is_property_cased, uc_is_property_case_ignorable,
10077         uc_is_property_changes_when_lowercased,
10078         uc_is_property_changes_when_uppercased,
10079         uc_is_property_changes_when_titlecased,
10080         uc_is_property_changes_when_casefolded,
10081         uc_is_property_changes_when_casemapped): New declarations.
10082         * lib/unictype/pr_byname.gperf: Add the new properties.
10083         * modules/unictype/property-byname (Depends-on): Depend on the new
10084         properties modules.
10085         * modules/unictype/property-all (Depends-on): Likewise.
10086         * MODULES.html.sh (Unicode string functions): Add
10087         unictype/property-case-ignorable, unictype/property-cased,
10088         unictype/property-changes-when-casefolded,
10089         unictype/property-changes-when-casemapped,
10090         unictype/property-changes-when-lowercased,
10091         unictype/property-changes-when-titlecased,
10092         unictype/property-changes-when-uppercased.
10093
10094         New module 'unictype/property-changes-when-casemapped'.
10095         * modules/unictype/property-changes-when-casemapped: New file.
10096         * lib/unictype/pr_changes_when_casemapped.c: New file.
10097         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
10098         generated by gen-uni-tables.
10099         * modules/unictype/property-changes-when-casemapped-tests: New file.
10100         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
10101         automatically generated by gen-uni-tables.
10102
10103         New module 'unictype/property-changes-when-casefolded'.
10104         * modules/unictype/property-changes-when-casefolded: New file.
10105         * lib/unictype/pr_changes_when_casefolded.c: New file.
10106         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
10107         generated by gen-uni-tables.
10108         * modules/unictype/property-changes-when-casefolded-tests: New file.
10109         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
10110         automatically generated by gen-uni-tables.
10111
10112         New module 'unictype/property-changes-when-titlecased'.
10113         * modules/unictype/property-changes-when-titlecased: New file.
10114         * lib/unictype/pr_changes_when_titlecased.c: New file.
10115         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
10116         generated by gen-uni-tables.
10117         * modules/unictype/property-changes-when-titlecased-tests: New file.
10118         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
10119         automatically generated by gen-uni-tables.
10120
10121         New module 'unictype/property-changes-when-uppercased'.
10122         * modules/unictype/property-changes-when-uppercased: New file.
10123         * lib/unictype/pr_changes_when_uppercased.c: New file.
10124         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
10125         generated by gen-uni-tables.
10126         * modules/unictype/property-changes-when-uppercased-tests: New file.
10127         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
10128         automatically generated by gen-uni-tables.
10129
10130         New module 'unictype/property-changes-when-lowercased'.
10131         * modules/unictype/property-changes-when-lowercased: New file.
10132         * lib/unictype/pr_changes_when_lowercased.c: New file.
10133         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
10134         generated by gen-uni-tables.
10135         * modules/unictype/property-changes-when-lowercased-tests: New file.
10136         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
10137         automatically generated by gen-uni-tables.
10138
10139         New module 'unictype/property-case-ignorable'.
10140         * modules/unictype/property-case-ignorable: New file.
10141         * lib/unictype/pr_case_ignorable.c: New file.
10142         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
10143         by gen-uni-tables.
10144         * modules/unictype/property-case-ignorable-tests: New file.
10145         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
10146         generated by gen-uni-tables.
10147
10148         New module 'unictype/property-cased'.
10149         * modules/unictype/property-cased: New file.
10150         * lib/unictype/pr_cased.c: New file.
10151         * lib/unictype/pr_cased.h: New file, automatically generated by
10152         gen-uni-tables.
10153         * modules/unictype/property-cased-tests: New file.
10154         * tests/unictype/test-pr_cased.c: New file, automatically generated by
10155         gen-uni-tables.
10156
10157 2011-01-09  Bruno Haible  <bruno@clisp.org>
10158
10159         Update to Unicode 5.2.0.
10160         * lib/gen-uni-tables.c (output_predicate, output_category,
10161         output_combclass, output_bidi_category, output_decimal_digit_test,
10162         output_decimal_digit, output_digit_test, output_digit,
10163         output_numeric_test, output_numeric, output_mirror, output_scripts,
10164         output_scripts_byname, output_blocks, output_ident_category): Fix
10165         comment header.
10166         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
10167         get_wbp.
10168         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
10169         items.
10170         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
10171         Changes_When_Lowercased, Changes_When_Uppercased,
10172         Changes_When_Titlecased, Changes_When_Casefolded,
10173         Changes_When_Casemapped.
10174         (is_property_alphabetic, is_property_default_ignorable_code_point):
10175         Update for Unicode 5.2.0.
10176         (is_property_cased, is_property_case_ignorable,
10177         is_property_changes_when_lowercased,
10178         is_property_changes_when_uppercased,
10179         is_property_changes_when_titlecased,
10180         is_property_changes_when_casefolded,
10181         is_property_changes_when_casemapped): New functions.
10182         (output_properties): Output also the properties cased, case_ignorable,
10183         changes_when_lowercased, changes_when_uppercased,
10184         changes_when_titlecased, changes_when_casefolded,
10185         changes_when_casemapped.
10186         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
10187         Unicode TR#11 revision 17 -> 19.
10188         (LBP_CP): New enumeration value.
10189         (LBP_*): Adjust values accordingly.
10190         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10191         TR#14 revision 22 -> 24.
10192         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
10193         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
10194         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10195         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
10196         is_WBP_MIDLETTER.
10197         (output_composition_tables): Allow for 24 bits instead of 16 bits in
10198         the code1 and code2 of each composition rule.
10199         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
10200         * lib/unicase/ignorable.h: Likewise.
10201         * lib/unicase/tocasefold.h: Likewise.
10202         * lib/unicase/tolower.h: Likewise.
10203         * lib/unicase/totitle.h: Likewise.
10204         * lib/unicase/toupper.h: Likewise.
10205         * lib/unictype/bidi_of.h: Likewise.
10206         * lib/unictype/blocks.h: Likewise.
10207         * lib/unictype/categ_C.h: Likewise.
10208         * lib/unictype/categ_Cf.h: Likewise.
10209         * lib/unictype/categ_Cn.h: Likewise.
10210         * lib/unictype/categ_L.h: Likewise.
10211         * lib/unictype/categ_Ll.h: Likewise.
10212         * lib/unictype/categ_Lm.h: Likewise.
10213         * lib/unictype/categ_Lo.h: Likewise.
10214         * lib/unictype/categ_Lu.h: Likewise.
10215         * lib/unictype/categ_M.h: Likewise.
10216         * lib/unictype/categ_Mc.h: Likewise.
10217         * lib/unictype/categ_Mn.h: Likewise.
10218         * lib/unictype/categ_N.h: Likewise.
10219         * lib/unictype/categ_Nd.h: Likewise.
10220         * lib/unictype/categ_Nl.h: Likewise.
10221         * lib/unictype/categ_No.h: Likewise.
10222         * lib/unictype/categ_P.h: Likewise.
10223         * lib/unictype/categ_Pd.h: Likewise.
10224         * lib/unictype/categ_Po.h: Likewise.
10225         * lib/unictype/categ_S.h: Likewise.
10226         * lib/unictype/categ_Sc.h: Likewise.
10227         * lib/unictype/categ_So.h: Likewise.
10228         * lib/unictype/categ_of.h: Likewise.
10229         * lib/unictype/combining.h: Likewise.
10230         * lib/unictype/ctype_alnum.h: Likewise.
10231         * lib/unictype/ctype_alpha.h: Likewise.
10232         * lib/unictype/ctype_graph.h: Likewise.
10233         * lib/unictype/ctype_lower.h: Likewise.
10234         * lib/unictype/ctype_print.h: Likewise.
10235         * lib/unictype/ctype_punct.h: Likewise.
10236         * lib/unictype/ctype_upper.h: Likewise.
10237         * lib/unictype/decdigit.h: Likewise.
10238         * lib/unictype/digit.h: Likewise.
10239         * lib/unictype/numeric.h: Likewise.
10240         * lib/unictype/pr_alphabetic.h: Likewise.
10241         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10242         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10243         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10244         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10245         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10246         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10247         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10248         * lib/unictype/pr_combining.h: Likewise.
10249         * lib/unictype/pr_composite.h: Likewise.
10250         * lib/unictype/pr_currency_symbol.h: Likewise.
10251         * lib/unictype/pr_dash.h: Likewise.
10252         * lib/unictype/pr_decimal_digit.h: Likewise.
10253         * lib/unictype/pr_deprecated.h: Likewise.
10254         * lib/unictype/pr_diacritic.h: Likewise.
10255         * lib/unictype/pr_extender.h: Likewise.
10256         * lib/unictype/pr_grapheme_base.h: Likewise.
10257         * lib/unictype/pr_grapheme_extend.h: Likewise.
10258         * lib/unictype/pr_grapheme_link.h: Likewise.
10259         * lib/unictype/pr_id_continue.h: Likewise.
10260         * lib/unictype/pr_id_start.h: Likewise.
10261         * lib/unictype/pr_ideographic.h: Likewise.
10262         * lib/unictype/pr_ignorable_control.h: Likewise.
10263         * lib/unictype/pr_logical_order_exception.h: Likewise.
10264         * lib/unictype/pr_lowercase.h: Likewise.
10265         * lib/unictype/pr_numeric.h: Likewise.
10266         * lib/unictype/pr_other_alphabetic.h: Likewise.
10267         * lib/unictype/pr_punctuation.h: Likewise.
10268         * lib/unictype/pr_sentence_terminal.h: Likewise.
10269         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10270         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10271         * lib/unictype/pr_unified_ideograph.h: Likewise.
10272         * lib/unictype/pr_uppercase.h: Likewise.
10273         * lib/unictype/pr_xid_continue.h: Likewise.
10274         * lib/unictype/pr_xid_start.h: Likewise.
10275         * lib/unictype/pr_zero_width.h: Likewise.
10276         * lib/unictype/scripts.h: Likewise.
10277         * lib/unictype/scripts_byname.gperf: Likewise.
10278         * lib/unictype/sy_java_ident.h: Likewise.
10279         * lib/unigbrk/gbrkprop.h: Likewise.
10280         * lib/unilbrk/lbrkprop1.h: Likewise.
10281         * lib/unilbrk/lbrkprop2.h: Likewise.
10282         * lib/unilbrk/lbrktables.h: Likewise.
10283         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
10284         LBP_CP. Implement rule LB30.
10285         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
10286         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
10287         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
10288         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
10289         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
10290         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
10291         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
10292         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
10293         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
10294         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
10295         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
10296         bits instead of 16 bits in the code1 and code2 of each composition
10297         rule.
10298         (uc_composition): Update for Unicode 5.2.0.
10299         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
10300         * lib/uninorm/decomposition-table2.h: Likewise.
10301         * lib/uniwbrk/wbrkprop.h: Likewise.
10302         * tests/unicase/test-cased.c: Likewise.
10303         * tests/unicase/test-ignorable.c: Likewise.
10304         * tests/unicase/test-uc_tolower.c: Likewise.
10305         * tests/unicase/test-uc_totitle.c: Likewise.
10306         * tests/unicase/test-uc_toupper.c: Likewise.
10307         * tests/unictype/test-categ_C.c: Likewise.
10308         * tests/unictype/test-categ_Cf.c: Likewise.
10309         * tests/unictype/test-categ_Cn.c: Likewise.
10310         * tests/unictype/test-categ_L.c: Likewise.
10311         * tests/unictype/test-categ_Ll.c: Likewise.
10312         * tests/unictype/test-categ_Lm.c: Likewise.
10313         * tests/unictype/test-categ_Lo.c: Likewise.
10314         * tests/unictype/test-categ_Lu.c: Likewise.
10315         * tests/unictype/test-categ_M.c: Likewise.
10316         * tests/unictype/test-categ_Mc.c: Likewise.
10317         * tests/unictype/test-categ_Mn.c: Likewise.
10318         * tests/unictype/test-categ_N.c: Likewise.
10319         * tests/unictype/test-categ_Nd.c: Likewise.
10320         * tests/unictype/test-categ_Nl.c: Likewise.
10321         * tests/unictype/test-categ_No.c: Likewise.
10322         * tests/unictype/test-categ_P.c: Likewise.
10323         * tests/unictype/test-categ_Pd.c: Likewise.
10324         * tests/unictype/test-categ_Po.c: Likewise.
10325         * tests/unictype/test-categ_S.c: Likewise.
10326         * tests/unictype/test-categ_Sc.c: Likewise.
10327         * tests/unictype/test-categ_So.c: Likewise.
10328         * tests/unictype/test-ctype_alnum.c: Likewise.
10329         * tests/unictype/test-ctype_alpha.c: Likewise.
10330         * tests/unictype/test-ctype_graph.c: Likewise.
10331         * tests/unictype/test-ctype_lower.c: Likewise.
10332         * tests/unictype/test-ctype_print.c: Likewise.
10333         * tests/unictype/test-ctype_punct.c: Likewise.
10334         * tests/unictype/test-ctype_upper.c: Likewise.
10335         * tests/unictype/test-decdigit.h: Likewise.
10336         * tests/unictype/test-digit.h: Likewise.
10337         * tests/unictype/test-numeric.h: Likewise.
10338         * tests/unictype/test-pr_alphabetic.c: Likewise.
10339         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10340         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10341         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
10342         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10343         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10344         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10345         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10346         * tests/unictype/test-pr_combining.c: Likewise.
10347         * tests/unictype/test-pr_composite.c: Likewise.
10348         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10349         * tests/unictype/test-pr_dash.c: Likewise.
10350         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10351         * tests/unictype/test-pr_deprecated.c: Likewise.
10352         * tests/unictype/test-pr_diacritic.c: Likewise.
10353         * tests/unictype/test-pr_extender.c: Likewise.
10354         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10355         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10356         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10357         * tests/unictype/test-pr_id_continue.c: Likewise.
10358         * tests/unictype/test-pr_id_start.c: Likewise.
10359         * tests/unictype/test-pr_ideographic.c: Likewise.
10360         * tests/unictype/test-pr_ignorable_control.c: Likewise.
10361         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
10362         * tests/unictype/test-pr_lowercase.c: Likewise.
10363         * tests/unictype/test-pr_numeric.c: Likewise.
10364         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10365         * tests/unictype/test-pr_punctuation.c: Likewise.
10366         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10367         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10368         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10369         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10370         * tests/unictype/test-pr_uppercase.c: Likewise.
10371         * tests/unictype/test-pr_xid_continue.c: Likewise.
10372         * tests/unictype/test-pr_xid_start.c: Likewise.
10373         * tests/unictype/test-pr_zero_width.c: Likewise.
10374         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10375         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
10376         changed behaviour: line breaking is now disallowed between a letter
10377         or '=' and '('.
10378         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10379         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10380         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10381         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
10382         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10383         lib/uniwidth/width.c.
10384         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
10385         without comments, but with the original copyright notice.
10386         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10387         changes.
10388         * lib/unictype/categ_Cc.h: Likewise.
10389         * lib/unictype/categ_Co.h: Likewise.
10390         * lib/unictype/categ_Cs.h: Likewise.
10391         * lib/unictype/categ_Lt.h: Likewise.
10392         * lib/unictype/categ_Me.h: Likewise.
10393         * lib/unictype/categ_Pc.h: Likewise.
10394         * lib/unictype/categ_Pe.h: Likewise.
10395         * lib/unictype/categ_Pf.h: Likewise.
10396         * lib/unictype/categ_Pi.h: Likewise.
10397         * lib/unictype/categ_Ps.h: Likewise.
10398         * lib/unictype/categ_Sk.h: Likewise.
10399         * lib/unictype/categ_Sm.h: Likewise.
10400         * lib/unictype/categ_Z.h: Likewise.
10401         * lib/unictype/categ_Zl.h: Likewise.
10402         * lib/unictype/categ_Zp.h: Likewise.
10403         * lib/unictype/categ_Zs.h: Likewise.
10404         * lib/unictype/ctype_blank.h: Likewise.
10405         * lib/unictype/ctype_cntrl.h: Likewise.
10406         * lib/unictype/ctype_digit.h: Likewise.
10407         * lib/unictype/ctype_space.h: Likewise.
10408         * lib/unictype/ctype_xdigit.h: Likewise.
10409         * lib/unictype/mirror.h: Likewise.
10410         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10411         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10412         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10413         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10414         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10415         * lib/unictype/pr_bidi_control.h: Likewise.
10416         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10417         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10418         * lib/unictype/pr_bidi_pdf.h: Likewise.
10419         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10420         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10421         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10422         * lib/unictype/pr_format_control.h: Likewise.
10423         * lib/unictype/pr_hex_digit.h: Likewise.
10424         * lib/unictype/pr_hyphen.h: Likewise.
10425         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10426         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10427         * lib/unictype/pr_iso_control.h: Likewise.
10428         * lib/unictype/pr_join_control.h: Likewise.
10429         * lib/unictype/pr_left_of_pair.h: Likewise.
10430         * lib/unictype/pr_line_separator.h: Likewise.
10431         * lib/unictype/pr_math.h: Likewise.
10432         * lib/unictype/pr_non_break.h: Likewise.
10433         * lib/unictype/pr_not_a_character.h: Likewise.
10434         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10435         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10436         * lib/unictype/pr_other_id_continue.h: Likewise.
10437         * lib/unictype/pr_other_id_start.h: Likewise.
10438         * lib/unictype/pr_other_lowercase.h: Likewise.
10439         * lib/unictype/pr_other_math.h: Likewise.
10440         * lib/unictype/pr_other_uppercase.h: Likewise.
10441         * lib/unictype/pr_paired_punctuation.h: Likewise.
10442         * lib/unictype/pr_paragraph_separator.h: Likewise.
10443         * lib/unictype/pr_pattern_syntax.h: Likewise.
10444         * lib/unictype/pr_pattern_white_space.h: Likewise.
10445         * lib/unictype/pr_private_use.h: Likewise.
10446         * lib/unictype/pr_quotation_mark.h: Likewise.
10447         * lib/unictype/pr_radical.h: Likewise.
10448         * lib/unictype/pr_soft_dotted.h: Likewise.
10449         * lib/unictype/pr_space.h: Likewise.
10450         * lib/unictype/pr_titlecase.h: Likewise.
10451         * lib/unictype/pr_variation_selector.h: Likewise.
10452         * lib/unictype/pr_white_space.h: Likewise.
10453         * lib/unictype/sy_c_ident.h: Likewise.
10454         * lib/unictype/sy_c_whitespace.h: Likewise.
10455         * lib/unictype/sy_java_whitespace.h: Likewise.
10456         * modules/uni*/*: Bump version number of expected libunistring version.
10457         Reported by Simon Josefsson.
10458
10459 2011-01-09  Karl Heuer  <kwzh@gnu.org>
10460
10461         useless-if-before-free: fix typo in --help and make the internal,
10462         automatic version date update process work once again.
10463         --help output contained a NUL character instead of the
10464         backslash-zero that was intended.  Also, the "must lie within
10465         the first 8 lines" line is on line 9, and hence not getting
10466         automatically updated.
10467         * build-aux/useless-if-before-free: Fix the former by adding a
10468         backslash, and the latter by condensing the three lines of what-it-does
10469         to a single line, leaving one line of slack for the future.
10470
10471 2011-01-09  Bruno Haible  <bruno@clisp.org>
10472
10473         uniwidth/width: Fix width of U+1D173..U+1D17A.
10474         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
10475         symbolic_width, output_width_property_test): New functions.
10476         (main): Invoke output_nonspacing_property, output_width_property_test.
10477         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
10478         U+1D173..U+1D17A.
10479         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
10480         1.
10481         * modules/uniwidth/*: Bump version number of expected libunistring
10482         version.
10483         * modules/unilbrk/*: Likewise.
10484
10485 2011-01-08  Bruno Haible  <bruno@clisp.org>
10486
10487         uninorm tests: Preserve copyright of Unicode data file.
10488         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
10489         Mention modifications.
10490
10491 2011-01-08  Bruno Haible  <bruno@clisp.org>
10492
10493         gen-uni-tables: Prepare for Unicode 5.2.0.
10494         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
10495         (debug_output_lbp, output_lbp): Update.
10496
10497 2011-01-08  Bruno Haible  <bruno@clisp.org>
10498
10499         unilbrk: Clarify gen-uni-tables.c code.
10500         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
10501         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
10502         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
10503
10504 2011-01-07  Bruno Haible  <bruno@clisp.org>
10505
10506         strtod: Restore errno when successfully parsing Infinity or NaN.
10507         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
10508         restore the original errno.
10509
10510 2011-01-07  Bruno Haible  <bruno@clisp.org>
10511
10512         remove test: Avoid failure on HP-UX 11.
10513         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
10514
10515 2011-01-07  Bruno Haible  <bruno@clisp.org>
10516
10517         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
10518         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
10519         error code.
10520
10521 2011-01-07  Pádraig Brady <P@draigBrady.com>
10522
10523         ignore-value: fixup comments, and add Eric Blake
10524         as an author since he rewrote the macros.
10525         * lib/ignore-value.h (ignore_value):  State that
10526         we now support aggregates.  Also specify exactly
10527         when the GCC warn_unused_result feature was added.
10528
10529 2011-01-06  Eric Blake  <eblake@redhat.com>
10530
10531         ignore-value: support aggregate types
10532         * lib/ignore-value.h (ignore_value): Provide separate gcc
10533         definition.
10534         * modules/ignore-value-tests: New test module.
10535         * tests/test-ignore-value.c: New test.
10536
10537         maint.mk: improve sc_prohibit_strcmp regex
10538         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
10539         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
10540         definition of STRNEQ.
10541
10542         signal: work around Haiku issue with SIGBUS
10543         * lib/siglist.h: Add comment.
10544         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
10545         strsignal's favoring of SIGSEGV.
10546         * tests/test-signal.c (main): Avoid test failure.
10547         * doc/posix-headers/signal.texi (signal.h): Document the issue.
10548         Reported by Scott McCreary.
10549
10550         maint.mk: add pre-release check to ensure submodule commits are public
10551         * top/maint.mk (public-submodule-commit): New rule.
10552         (submodule-checks): New variable.
10553         (alpha beta stable): Depend on the variable.
10554
10555 2011-01-05  Pádraig Brady <P@draigBrady.com>
10556         and Jim Meyering  <meyering@redhat.com>
10557
10558         ignore-value: make ignore_value more generic; deprecate ignore_ptr
10559         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
10560         (ATTRIBUTE_DEPRECATED): Define.
10561         (_ignore_case): New function.
10562         (ignore_value): New macro, to replace the old function.
10563         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
10564         * modules/ignore-value (Depends-on): Add stdint.
10565
10566 2011-01-04  Eric Blake  <eblake@redhat.com>
10567
10568         doc: regenerate INSTALL
10569         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
10570         @firstparagraphindent support, now that autoconf dropped it.
10571         (INSTALL_PRELUDE): Reinstate old macro.
10572         * doc/install.texi: Resync from autoconf.
10573         * doc/INSTALL: Reflect recent autoconf update.
10574         * doc/INSTALL.ISO: Likewise.
10575         * doc/INSTALL.UTF-8: Likewise.
10576         Reported by Karl Berry.
10577
10578 2011-01-04  Bruce Korb  <address@hidden>
10579
10580         git-version-gen: avoid a sub-shell
10581         * build-aux/git-version-gen: Redirect stderr in `...` via
10582         "exec 2>...", rather than via an added sub-shell.
10583
10584 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
10585
10586         git-version-gen: use (...) rather than sh -c '...'
10587         * build-aux/git-version-gen: Rather than hard-coding a shell's name
10588         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
10589
10590 2011-01-03  Jim Meyering  <meyering@redhat.com>
10591
10592         git-version-gen: convert leading TABs to spaces
10593         * build-aux/git-version-gen: Expand leading TABs.
10594
10595         git-version-gen: handle failed "git rev-list"
10596         * build-aux/git-version-gen: Rather than leaking a "fatal" error
10597         from git and proceeding as if it had succeeded but printed no SHA1
10598         checksums, suppress the diagnostic and handle the failure.
10599         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
10600
10601         git-version-gen: include command name in one more diagnostic
10602         * build-aux/git-version-gen: When the required .tarball-version file
10603         was missing or unreadable, you might see the diagnostic from "cat",
10604         but no trace of the name of the invoking script.  Now, you still see
10605         the diagnostic from cat, but also get one from "git-version-gen: ".
10606         Inspired by a patch from Bruce Korb.
10607
10608         update-copyright: adjust test to match changed code
10609         * tests/test-update-copyright.sh: Change test's expected output
10610         to match new actual output.
10611
10612 2011-01-02  Bruno Haible  <bruno@clisp.org>
10613
10614         getlogin_r: Avoid test failure on HP-UX 11.
10615         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
10616         ERANGE when the second argument is zero.
10617         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
10618         portability problem.
10619
10620 2011-01-02  Bruce Korb  <bkorb@gnu.org>
10621
10622         * build-aux/update-copyright: doc Simon's changes
10623
10624 2011-01-02  Simon Josefsson  <simon@josefsson.org>
10625
10626         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
10627         environment variable.
10628
10629 2011-01-02  Bruno Haible  <bruno@clisp.org>
10630
10631         unigbrk: Avoid gcc warnings.
10632         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
10633         unused variable.
10634         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
10635         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
10636         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
10637         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
10638         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
10639         Change type of first argument to 'const char *'.
10640         (main): Remove unused variable.
10641         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
10642         type of first argument to 'const char *'.
10643         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
10644         Likewise.
10645         (main): Change type of variable 's'.
10646         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
10647         to 'int'.
10648
10649 2011-01-02  Bruno Haible  <bruno@clisp.org>
10650
10651         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
10652         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
10653         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
10654         bug.
10655         * lib/pwrite.c: Undo 2010-12-31 patch.
10656         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
10657
10658 2011-01-02  Bruno Haible  <bruno@clisp.org>
10659
10660         pread: Fix test whether it works.
10661         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
10662
10663 2011-01-02  Bruno Haible  <bruno@clisp.org>
10664
10665         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
10666         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
10667         ends in "6". Don't require a specific month name. Try also the locale
10668         names found on HP-UX 11 and Solaris 7.
10669
10670 2011-01-02  Bruno Haible  <bruno@clisp.org>
10671
10672         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
10673         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
10674         C linkage.
10675         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
10676
10677 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10678
10679         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
10680         for consistency, since the "cluster" term is not used elsewhere.
10681         * lib/unigbrk.in.h: Update name.
10682         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
10683         * lib/unigbrk/u16-grapheme-next.c: Update name.
10684         * lib/unigbrk/u16-grapheme-prev.c: Update name.
10685         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
10686         * lib/unigbrk/u32-grapheme-next.c: Update name.
10687         * lib/unigbrk/u32-grapheme-prev.c: Update name.
10688         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
10689         * lib/unigbrk/u8-grapheme-next.c: Update name.
10690         * lib/unigbrk/u8-grapheme-prev.c: Update name.
10691         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
10692         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
10693         Suggested by Bruno Haible.
10694
10695 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10696
10697         Remove module 'u8-grapheme-len' as too redundant with
10698         'u8-grapheme-next'.
10699         * modules/unigbrk/u8-grapheme-len: Delete file.
10700         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
10701         * lib/unigbrk.in.h: Remove prototype for deleted function.
10702         * lib/unigbrk/u8-grapheme-len.c: Delete file.
10703         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
10704
10705         Remove module 'u16-grapheme-len' as too redundant with
10706         'u16-grapheme-next'.
10707         * modules/unigbrk/u16-grapheme-len: Delete file.
10708         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
10709         * lib/unigbrk.in.h: Remove prototype for deleted function.
10710         * lib/unigbrk/u16-grapheme-len.c: Delete file.
10711         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
10712
10713         Remove module 'u32-grapheme-len' as too redundant with
10714         'u32-grapheme-next'.
10715         * modules/unigbrk/u32-grapheme-len: Delete file.
10716         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
10717         * lib/unigbrk.in.h: Remove prototype for deleted function.
10718         * lib/unigbrk/u32-grapheme-len.c: Delete file.
10719         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
10720
10721         Suggested by Bruno Haible.
10722
10723 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10724
10725         * unigbrk.in.h: Fix typo: "ben" => "been".
10726         Reported by Bruno Haible.
10727
10728 2011-01-01  Jim Meyering  <meyering@redhat.com>
10729
10730         maint: update almost all copyright ranges to include 2011
10731         Run the new "make update-copyright" rule.
10732
10733 2011-01-01  Jim Meyering  <meyering@redhat.com>
10734
10735         maint: update-copyright: exempt doc/INSTALL*
10736         * Makefile (update-copyright): Also exclude doc/INSTALL*,
10737         since they are generated.  Suggested by Bruno Haible.
10738
10739 2011-01-01  Jim Meyering  <meyering@redhat.com>
10740
10741         maint: refine the update-copyright rule
10742         * Makefile (update-copyright): Also exclude any file that includes
10743         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
10744         code that merely generates the comment.
10745
10746 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
10747
10748         New module 'u8-grapheme-len'.
10749         * modules/unigbrk/u8-grapheme-len: New file.
10750         * modules/unigbrk/u8-grapheme-len-tests: New file.
10751         * lib/unigbrk.in.h: Add prototype for new function.
10752         * lib/unigbrk/u8-grapheme-len.c: New file.
10753         * tests/unigbrk/test-u8-grapheme-len.c: New file.
10754
10755         New module 'u16-grapheme-len'.
10756         * modules/unigbrk/u16-grapheme-len: New file.
10757         * modules/unigbrk/u16-grapheme-len-tests: New file.
10758         * lib/unigbrk.in.h: Add prototype for new function.
10759         * lib/unigbrk/u16-grapheme-len.c: New file.
10760         * tests/unigbrk/test-u16-grapheme-len.c: New file.
10761
10762         New module 'u32-grapheme-len'.
10763         * modules/unigbrk/u32-grapheme-len: New file.
10764         * modules/unigbrk/u32-grapheme-len-tests: New file.
10765         * lib/unigbrk.in.h: Add prototype for new function.
10766         * lib/unigbrk/u32-grapheme-len.c: New file.
10767         * tests/unigbrk/test-u32-grapheme-len.c: New file.
10768
10769         New module 'u8-grapheme-next'.
10770         * modules/unigbrk/u8-grapheme-next: New file.
10771         * modules/unigbrk/u8-grapheme-next-tests: New file.
10772         * lib/unigbrk.in.h: Add prototype for new function.
10773         * lib/unigbrk/u8-grapheme-next.c: New file.
10774         * tests/unigbrk/test-u8-grapheme-next.c: New file.
10775
10776         New module 'u16-grapheme-next'.
10777         * modules/unigbrk/u16-grapheme-next: New file.
10778         * modules/unigbrk/u16-grapheme-next-tests: New file.
10779         * lib/unigbrk.in.h: Add prototype for new function.
10780         * lib/unigbrk/u16-grapheme-next.c: New file.
10781         * tests/unigbrk/test-u16-grapheme-next.c: New file.
10782
10783         New module 'u32-grapheme-next'.
10784         * modules/unigbrk/u32-grapheme-next: New file.
10785         * modules/unigbrk/u32-grapheme-next-tests: New file.
10786         * lib/unigbrk.in.h: Add prototype for new function.
10787         * lib/unigbrk/u32-grapheme-next.c: New file.
10788         * tests/unigbrk/test-u32-grapheme-next.c: New file.
10789
10790         New module 'u8-grapheme-prev'.
10791         * modules/unigbrk/u8-grapheme-prev: New file.
10792         * modules/unigbrk/u8-grapheme-prev-tests: New file.
10793         * lib/unigbrk.in.h: Add prototype for new function.
10794         * lib/unigbrk/u8-grapheme-prev.c: New file.
10795         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
10796
10797         New module 'u16-grapheme-prev'.
10798         * modules/unigbrk/u16-grapheme-prev: New file.
10799         * modules/unigbrk/u16-grapheme-prev-tests: New file.
10800         * lib/unigbrk.in.h: Add prototype for new function.
10801         * lib/unigbrk/u16-grapheme-prev.c: New file.
10802         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
10803
10804         New module 'u32-grapheme-prev'.
10805         * modules/unigbrk/u32-grapheme-prev: New file.
10806         * modules/unigbrk/u32-grapheme-prev-tests: New file.
10807         * lib/unigbrk.in.h: Add prototype for new function.
10808         * lib/unigbrk/u32-grapheme-prev.c: New file.
10809         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
10810
10811         New module 'u8-grapheme-breaks'.
10812         * modules/unigbrk/u8-grapheme-breaks: New file.
10813         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
10814         * lib/unigbrk.in.h: Add prototype for new function.
10815         * lib/unigbrk/u8-grapheme-breaks.c: New file.
10816         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
10817
10818         New module 'u16-grapheme-breaks'.
10819         * modules/unigbrk/u16-grapheme-breaks: New file.
10820         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
10821         * lib/unigbrk.in.h: Add prototype for new function.
10822         * lib/unigbrk/u16-grapheme-breaks.c: New file.
10823         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
10824
10825         New module 'u32-grapheme-breaks'.
10826         * modules/unigbrk/u32-grapheme-breaks: New file.
10827         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
10828         * lib/unigbrk.in.h: Add prototype for new function.
10829         * lib/unigbrk/u32-grapheme-breaks.c: New file.
10830         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
10831
10832         New module 'ulc-grapheme-breaks'.
10833         * modules/unigbrk/ulc-grapheme-breaks: New file.
10834         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
10835         * m4/locale-ar.m4: New file.
10836         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
10837         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
10838         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
10839
10840 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
10841
10842         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
10843         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
10844         modified how this file was generated before I initially submitted
10845         the module, but failed to regenerate it.  This meant that several
10846         of the level2 entries were wrong.
10847         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
10848         Remove the division-by-2 that is folded into the table now that
10849         gbrkprop.h has been regenerated properly.  Now -1 entries are
10850         handled correctly.
10851
10852         New module 'unigbrk/uc-gbrk-prop-tests'.
10853         * modules/unigbrk/uc-gbrk-prop-tests: New file.
10854         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
10855         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
10856         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
10857
10858 2011-01-01  Bruno Haible  <bruno@clisp.org>
10859
10860         Avoid use of hexadecimal escapes.
10861         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
10862         instead of hexadecimal escapes.
10863
10864 2011-01-01  Jim Meyering  <meyering@redhat.com>
10865
10866         maint: new rule to update copyright year ranges
10867         * Makefile (update-copyright): New rule.
10868
10869         maint: indent with TABs in Makefile
10870         * Makefile: Expand leading sequences of spaces to TABs
10871
10872         version-etc: update the copyright year it reports
10873         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
10874
10875 2010-12-31  Bruno Haible  <bruno@clisp.org>
10876
10877         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
10878         * lib/isfinite.c (zerof, zerod, zerol): New variables.
10879         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
10880         zero.
10881
10882 2010-12-31  Bruno Haible  <bruno@clisp.org>
10883
10884         pwrite: Work around HP-UX 11.11 bug.
10885         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
10886         works and set REPLACE_PWRITE if not.
10887         * lib/pwrite.c (pwrite): Add an implementation that uses the system
10888         function.
10889         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
10890
10891 2010-12-31  Bruno Haible  <bruno@clisp.org>
10892
10893         pread: Work around HP-UX 11 bugs.
10894         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
10895         and set REPLACE_PREAD if not.
10896         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
10897
10898 2010-12-31  Eric Blake  <eblake@redhat.com>
10899
10900         nl_langinfo: fix YESEXPR on Irix 6.5
10901         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
10902         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
10903         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
10904         it.
10905
10906 2010-12-31  Bruno Haible  <bruno@clisp.org>
10907
10908         iconv: Document HP-UX 11 bug.
10909         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
10910
10911 2010-12-31  Bruno Haible  <bruno@clisp.org>
10912
10913         ldexpl: Fix link error on HP-UX 11.
10914         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
10915         LDEXPL_LIBM, using $ISNANL_LIBM.
10916
10917 2010-12-31  Eric Blake  <eblake@redhat.com>
10918
10919         ftello: avoid compilation failure with SunStudio c89
10920         * lib/ftello.c (ftello): Use lseek, not llseek.
10921
10922         tests: avoid failing coreutils tests on cygwin
10923         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
10924         (create_exe_shims_): Return 0 when skipping.
10925
10926 2010-12-31  Bruno Haible  <bruno@clisp.org>
10927
10928         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
10929         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
10930
10931 2010-12-31  Bruno Haible  <bruno@clisp.org>
10932
10933         waitpid: Fix link error in C++ mode.
10934         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
10935
10936 2010-12-31  Bruno Haible  <bruno@clisp.org>
10937
10938         isnan: Use GCC built-ins when possible.
10939         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
10940         __builtin_isnan.
10941         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
10942         (isnan): Define using GCC built-ins for GCC >= 4.0.
10943
10944 2010-12-31  Bruno Haible  <bruno@clisp.org>
10945
10946         isnand: Fix mistake.
10947         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
10948         __builtin_isnand.
10949
10950 2010-12-31  Bruno Haible  <bruno@clisp.org>
10951
10952         open: Avoid C++ error on HP-UX 11.
10953         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
10954
10955 2010-12-31  Bruno Haible  <bruno@clisp.org>
10956
10957         time_r: Add missing declarations on HP-UX 11.
10958         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
10959         instead of HAVE_LOCALTIME_R.
10960         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
10961         HAVE_LOCALTIME_R always.
10962         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
10963         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
10964         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
10965         HAVE_LOCALTIME_R.
10966         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
10967         * doc/posix-functions/localtime_r.texi: Likewise.
10968
10969 2010-12-29  Eric Blake  <eblake@redhat.com>
10970
10971         mountlist: tweak previous commit
10972         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
10973         Reported by Paul Eggert.
10974
10975         mountlist: fix local drive detection on cygwin
10976         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
10977         that works for cygwin.
10978
10979 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10980
10981         ftoastr, snprintf: ftoastr + snprintf module
10982         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
10983         since the snprintf module now should be good enough here.
10984         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
10985         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
10986         and gl_MODULE_INDICATOR([snprintf]), but the former enables
10987         GNULIB_SNPRINTF only for the test directory, and the latter
10988         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
10989         seems to suffice by itself.
10990
10991 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
10992
10993         alloca: one step towards thread-safety
10994         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
10995         need for a static variable.  All callers changed.  This does not
10996         make the alloca replacement thread-safe, but it's one step.
10997
10998         tests: minor indenting change
10999         * tests/init.sh: Sync from coreutils housekeeping patch
11000         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
11001         to keep lines within 80 columns.
11002
11003 2010-12-28  Jim Meyering  <meyering@redhat.com>
11004
11005         regex: don't infloop on persistent failing calloc
11006         * lib/regexec.c (build_trtable): Return failure indication upon
11007         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
11008         In glibc, this was fixed for version 2.13:
11009         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
11010
11011 2010-12-28  Bruno Haible  <bruno@clisp.org>
11012             Paul Eggert <eggert@cs.ucla.edu>
11013
11014         linkat: Make implementation robust against system behaviour variations.
11015         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
11016         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
11017         way, and to -2 if it needs a generic runtime test.
11018         * lib/linkat.c (solaris_optimized_link_immediate,
11019         solaris_optimized_link_follow): New functions.
11020         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
11021         (check_same_link): Use it.
11022
11023 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
11024
11025         New module 'unigbrk/base'.
11026         * modules/unigbrk/base: New file.
11027         * lib/unigbrk.in.h: New file.
11028
11029         New module 'unigbrk/uc-gbrk-prop'.
11030         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
11031         * modules/unigbrk/uc-gbrk-prop: New file.
11032         * lib/unigbrk/gbrkprop.h: New file.
11033         * lib/unigbrk/uc-gbrk-prop.c: New file.
11034
11035         New module 'unigbrk/uc-is-grapheme-break'.
11036         * modules/unigbrk/uc-is-grapheme-break: New file.
11037         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
11038         * lib/unigbrk/uc-is-grapheme-break.c: New file.
11039         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
11040         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
11041         * tests/unigbrk/GraphemeBreakTest.txt: New file.
11042
11043         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
11044
11045 2010-12-27  Bruno Haible  <bruno@clisp.org>
11046
11047         linkat test: Avoid failure on Solaris 11 2010-11.
11048         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
11049
11050 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11051
11052         utimens: work around glibc rounding bug on more platforms
11053         * lib/utimens.c (fdutimens): Work around rounding bug even if
11054         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
11055         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
11056
11057 2010-12-27  Bruno Haible  <bruno@clisp.org>
11058
11059         select tests: Improve comments.
11060         * tests/test-select.c (do_select): Add comments.
11061
11062 2010-12-27  Bruno Haible  <bruno@clisp.org>
11063
11064         select tests: Safer way of handling timeout.
11065         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
11066         at every invocation.
11067
11068 2010-12-27  Bruno Haible  <bruno@clisp.org>
11069
11070         select tests: Use 'bool' where appropriate.
11071         * tests/test-select.c (connect_to_socket): Change argument type to
11072         'bool'.
11073
11074 2010-12-27  Bruno Haible  <bruno@clisp.org>
11075
11076         select tests: Use existing modules.
11077         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
11078         (configure.ac): Don't test for unistd.h.
11079         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
11080         declared in <unistd.h>.
11081
11082 2010-12-27  Bruno Haible  <bruno@clisp.org>
11083
11084         mbrtowc: Work around a Solaris 7 bug.
11085         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
11086         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
11087         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
11088         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
11089         MBRTOWC_NULL_ARG1_BUG.
11090         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
11091         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
11092         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
11093         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
11094
11095 2010-12-27  Jim Meyering  <meyering@redhat.com>
11096
11097         read-file.c: tweak syntax
11098         * lib/read-file.c (fread_file): Remove space after "*" in function
11099         definitions.
11100
11101 2010-12-27  Bruno Haible  <bruno@clisp.org>
11102
11103         times test: Avoid gcc warnings on OSF/1.
11104         * tests/test-times.c (main): Cast printf arguments from clock_t to
11105         'long int'.
11106
11107 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11108
11109         utimens: work around glibc rounding bug on older Linux kernels
11110         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
11111         on Linux with a glibc whose utimes might not work, then work
11112         around a longstanding glibc bug involving rounding rather than
11113         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
11114         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11115
11116 2010-12-26  Bruno Haible  <bruno@clisp.org>
11117
11118         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
11119         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
11120         _GL_CXXALIAS_SYS.
11121         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11122
11123 2010-12-26  Bruno Haible  <bruno@clisp.org>
11124
11125         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
11126         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
11127         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11128         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
11129         looking for the declaration.
11130         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11131         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
11132         problem.
11133         * doc/posix-functions/inet_pton.texi: Likewise.
11134
11135 2010-12-26  Bruno Haible  <bruno@clisp.org>
11136
11137         arpa_inet: Use the common idioms with C++ support.
11138         * lib/arpa_inet.in.h: Include c++defs.h.
11139         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
11140         support.
11141         * modules/arpa_inet (Depends-on): Add c++defs.
11142         (Makefile.am): Substitute the contents of c++defs.h.
11143         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
11144         * modules/arpa_inet-c++-tests: New file.
11145         * tests/test-arpa_inet-c++.cc: New file.
11146
11147 2010-12-25  Bruno Haible  <bruno@clisp.org>
11148
11149         Fix more C++ link errors on Solaris 8.
11150         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
11151         $(LIB_EACCESS).
11152         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
11153         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
11154         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
11155         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
11156         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
11157
11158 2010-12-25  Bruno Haible  <bruno@clisp.org>
11159
11160         printf-posix: Fix link error when a non-GCC compiler is used.
11161         * lib/stdio.in.h (printf): When not using GCC, override printf
11162         correctly.
11163         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11164
11165 2010-12-25  Bruno Haible  <bruno@clisp.org>
11166
11167         strerror_r-posix: Update doc.
11168         * doc/posix-functions/strerror_r.texi: Update doc about the return
11169         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
11170
11171 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
11172
11173         utimens: simplify the logic of the previous change
11174         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
11175         This should not affect whether the test succeeds or fails.
11176
11177         utimens: configure better on hosts with NFS clock skew
11178         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
11179         uses the clock of the local host.  It might use the clock of the
11180         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
11181         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11182
11183 2010-12-25  Bruno Haible  <bruno@clisp.org>
11184
11185         ptsname test: Avoid failure on Solaris.
11186         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
11187         open a pseudo-terminal; don't use BSD-style ptys.
11188         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
11189
11190 2010-12-25  Bruno Haible  <bruno@clisp.org>
11191
11192         ptsname: Avoid ERANGE failure on some systems.
11193         * lib/ptsname.c (buffer): Increase size.
11194
11195 2010-12-25  Bruno Haible  <bruno@clisp.org>
11196
11197         rename, renameat: Avoid test failures at NFS mounted locations.
11198         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
11199         so that subsequent mkdir calls succeed.
11200
11201 2010-12-25  Bruno Haible  <bruno@clisp.org>
11202
11203         iswblank: Fix C++ link error on Solaris 8.
11204         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
11205         _GL_FUNCDECL_SYS.
11206
11207 2010-12-25  Bruno Haible  <bruno@clisp.org>
11208
11209         unistd: Fix C++ link error on Solaris 8.
11210         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
11211
11212 2010-12-25  Bruno Haible  <bruno@clisp.org>
11213
11214         readlink doc: Mention an old glibc bug.
11215         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
11216
11217 2010-12-25  Bruno Haible  <bruno@clisp.org>
11218
11219         fcntl-h: Fix for use of C++ on glibc systems.
11220         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11221         also on glibc systems in C++ mode.
11222         Reported by Gary V. Vaughan <gary@gnu.org>.
11223
11224 2010-12-25  Bruno Haible  <bruno@clisp.org>
11225
11226         roundl-ieee: Make it work on OSF/1 5.1 with cc.
11227         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
11228
11229 2010-12-25  Bruno Haible  <bruno@clisp.org>
11230
11231         truncl-ieee: Make it work on OSF/1 5.1 with cc.
11232         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
11233         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
11234         test whether truncl works according to ISO C 99 with IEC 60559.
11235         * m4/truncl-ieee.m4: New file.
11236         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
11237         m4/signbit.m4.
11238         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
11239
11240 2010-12-25  Bruno Haible  <bruno@clisp.org>
11241
11242         ceill-ieee: Make it work on OSF/1 5.1 with cc.
11243         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
11244         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
11245         test whether ceill works according to ISO C 99 with IEC 60559.
11246         * m4/ceill-ieee.m4: New file.
11247         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
11248         m4/signbit.m4.
11249         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
11250
11251 2010-12-25  Bruno Haible  <bruno@clisp.org>
11252
11253         Ensure all prerequisites of <wchar.h> are included.
11254         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
11255         before <wchar.h>.
11256         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11257         gl_MBRLEN_NUL_RETVAL): Likewise.
11258         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11259         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
11260         AC_FUNC_MBRTOWC): Likewise.
11261         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11262         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
11263         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11264         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
11265         Likewise.
11266         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11267         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
11268         (gl_WCHAR_H): Improve comments.
11269         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11270
11271 2010-12-25  Bruno Haible  <bruno@clisp.org>
11272
11273         strtok_r: Fix C syntax error in autoconf macro.
11274         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
11275         characters in test program.
11276
11277 2010-12-24  Bruno Haible  <bruno@clisp.org>
11278
11279         ceil, trunc, round: Fix gcc warnings.
11280         * lib/ceil.c (MIN): Undefine before redefining.
11281         * lib/trunc.c (MIN): Likewise.
11282         * lib/round.c (MIN): Likewise.
11283         Include <math.h> first.
11284
11285 2010-12-24  Bruno Haible  <bruno@clisp.org>
11286
11287         select tests: Avoid failures on OSF/1 5.1.
11288         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
11289         failure of closing the last socket; it may fail with ECONNRESET.
11290
11291 2010-12-24  Eric Blake  <eblake@redhat.com>
11292
11293         stdint: avoid HP-UX 10.20 preprocessor bug
11294         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
11295         than #if.
11296         * tests/test-floor2.c (main): Likewise.
11297         Reported by Peter O'Gorman.
11298
11299         pipe: make obsoletion transition easier
11300         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
11301         * modules/pipe (Files): Include revived file.
11302         (Include): Drop reference, to mirror getdate's behavior.
11303
11304 2010-12-24  Bruno Haible  <bruno@clisp.org>
11305
11306         sys_socket: Hide mismatch of declarations on NonStop Kernel.
11307         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
11308         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11309         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11310
11311 2010-12-24  Bruno Haible  <bruno@clisp.org>
11312
11313         gethostname: Ensure declaration on NonStop Kernel.
11314         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
11315         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11316
11317 2010-12-24  Bruno Haible  <bruno@clisp.org>
11318
11319         sys_select: Ensure all necessary types on NonStop Kernel.
11320         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
11321         include <sys/time.h>.
11322         * doc/posix-headers/sys_select.texi: Mention that it's missing on
11323         NonStop Kernel.
11324         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11325
11326 2010-12-24  Bruno Haible  <bruno@clisp.org>
11327
11328         sys_select: Remove unneeded include.
11329         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
11330         have <sys/select.h>.
11331
11332 2010-12-24  Bruno Haible  <bruno@clisp.org>
11333
11334         gethostname: Provide a fallback for HOST_NAME_MAX.
11335         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
11336         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
11337         instead.
11338         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11339
11340 2010-12-24  Bruno Haible  <bruno@clisp.org>
11341
11342         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
11343         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
11344         (SA_RESTART): Likewise.
11345         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11346
11347 2010-12-24  Bruno Haible  <bruno@clisp.org>
11348
11349         signal: Define NSIG.
11350         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
11351         * tests/test-signal.c (nsig): New variable.
11352         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11353
11354 2010-12-24  Bruno Haible  <bruno@clisp.org>
11355
11356         rename, renameat: Avoid test failures on OSF/1 5.1.
11357         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
11358         alternative error codes.
11359         * tests/test-renameat.c (main): Likewise.
11360
11361 2010-12-24  Bruno Haible  <bruno@clisp.org>
11362
11363         *printf: Detect large precisions bug on Solaris 10/SPARC.
11364         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
11365         by Paul Eggert.
11366         * tests/test-snprintf-posix.h (test_function): Add this test code here
11367         too.
11368         * tests/test-sprintf-posix.h (test_function): Likewise.
11369         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11370         * tests/test-vasprintf-posix.c (test_function): Likewise.
11371         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
11372         around by gnulib.
11373         * doc/posix-functions/printf.texi: Likewise.
11374         * doc/posix-functions/snprintf.texi: Likewise.
11375         * doc/posix-functions/sprintf.texi: Likewise.
11376         * doc/posix-functions/vfprintf.texi: Likewise.
11377         * doc/posix-functions/vprintf.texi: Likewise.
11378         * doc/posix-functions/vsnprintf.texi: Likewise.
11379         * doc/posix-functions/vsprintf.texi: Likewise.
11380         * doc/posix-functions/dprintf.texi: Undo last commit.
11381         * doc/posix-functions/vdprintf.texi: Likewise.
11382
11383 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
11384
11385         tests: port test-fdutimensat.c to Solaris 8
11386         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
11387         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
11388         On Solaris 8, it fails with errno == ENOSYS, because there is no
11389         futimens (so it can't use the fd), and there is no lutimens (so it
11390         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
11391
11392         vsnprintf: make more consistent with snprintf; doc fixes
11393
11394         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
11395         the byte count return problem was promoted from the snprintf-posix
11396         to the snprintf module.
11397         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11398         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
11399         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
11400         * tests/test-snprintf.c (main): Check the byte count returned.
11401         * tests/test-vsnprintf.c (main): Likewise.
11402
11403 2010-12-23  Eric Blake  <eblake@redhat.com>
11404
11405         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
11406         * modules/sigpipe (License): Relax license.
11407
11408 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11409
11410         doc: document Solaris printf bug with large float precisions
11411         * doc/posix-functions/dprintf.texi (dprintf):
11412         * doc/posix-functions/fprintf.texi (fprintf):
11413         * doc/posix-functions/printf.texi (printf):
11414         * doc/posix-functions/snprintf.texi (snprintf):
11415         * doc/posix-functions/sprintf.texi (sprintf):
11416         * doc/posix-functions/vdprintf.texi (vdprintf):
11417         * doc/posix-functions/vfprintf.texi (vfprintf):
11418         * doc/posix-functions/vprintf.texi (vprintf):
11419         * doc/posix-functions/vsnprintf.texi (vsnprintf):
11420         * doc/posix-functions/vsprintf.texi (vsprintf):
11421         Mention that these functions mishandle large floating point
11422         precisions on Solaris 10.  The same bug is also present in Solaris
11423         8, and I assume earlier.  This causes "cd gnulib-tests; make
11424         check" to fail on Solaris 8 (and I assume, later) when building
11425         the latest coreutils, in test-vasprintf-posix's call to
11426         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
11427         the wide flavors (e.g., wprintf) so this patch just updates the
11428         documentation for the narrow ones.
11429
11430         test-posixtm.c: add two tests
11431         * tests/test-posixtm.c: Add two tests, to highlight the
11432         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
11433         around this bug; this is merely to document it.
11434
11435 2010-12-22  Bruno Haible  <bruno@clisp.org>
11436
11437         getlogin_r: Work around portability problem on OSF/1.
11438         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
11439         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
11440         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
11441         test for a truncated result.
11442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
11443         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
11444         * modules/getlogin_r (Depends-on): Add memchr.
11445         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
11446
11447 2010-12-22  Bruno Haible  <bruno@clisp.org>
11448
11449         ptsname: Avoid test failure on OSF/1 5.1.
11450         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
11451         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
11452         (same_slave): New function.
11453         (main): Use it to compare ptsname's result with the expected file name.
11454
11455 2010-12-22  Bruno Haible  <bruno@clisp.org>
11456
11457         Port extended stdio modules to HP NonStop Kernel.
11458         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
11459         macros.
11460         * lib/fbufmode.c: Update comments.
11461         * lib/fflush.c: Likewise.
11462         * lib/fpurge.c: Likewise.
11463         * lib/freadable.c: Likewise.
11464         * lib/freadahead.c: Likewise.
11465         * lib/freading.c: Likewise.
11466         * lib/freadptr.c: Likewise.
11467         * lib/freadseek.c: Likewise.
11468         * lib/fseeko.c: Likewise.
11469         * lib/fseterr.c: Likewise.
11470         * lib/fwritable.c: Likewise.
11471         * lib/fwriting.c: Likewise.
11472         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11473
11474 2010-12-22  Bruno Haible  <bruno@clisp.org>
11475
11476         ttyname_r: Work around bug on OSF/1 5.1.
11477         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
11478         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
11479         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
11480         present.
11481         * lib/ttyname_r.c (ttyname_r): Update comments.
11482
11483 2010-12-22  Bruno Haible  <bruno@clisp.org>
11484
11485         round: Implement result sign according to IEEE 754.
11486         * lib/round.c (MIN, MINUS_ZERO): New macros.
11487         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
11488         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
11489         * tests/test-round-ieee.c (main): Likewise.
11490         * tests/test-roundl-ieee.c (main): Likewise.
11491
11492         trunc: Implement result sign according to IEEE 754.
11493         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
11494         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
11495         * tests/test-trunc2.c: Include minus-zero.h.
11496         (MINUS_ZERO): New macro.
11497         (trunc_reference): Keep in sync with lib/trunc.c.
11498         * tests/test-truncf2.c: Include minus-zero.h.
11499         (MINUS_ZERO): New macro.
11500         (truncf_reference): Keep in sync with lib/trunc.c.
11501         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
11502         * tests/test-trunc-ieee.c (main): Likewise.
11503         * tests/test-truncl-ieee.c (main): Likewise.
11504
11505         ceil: Implement result sign according to IEEE 754.
11506         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
11507         (FUNC): Return -0.0 for -1 < x < 0.
11508         * tests/test-ceil2.c: Include minus-zero.h.
11509         (MINUS_ZERO): New macro.
11510         (ceil_reference): Keep in sync with lib/ceil.c.
11511         * tests/test-ceilf2.c: Include minus-zero.h.
11512         (MINUS_ZERO): New macro.
11513         (ceilf_reference): Keep in sync with lib/ceil.c.
11514         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
11515         * tests/test-ceil-ieee.c (main): Likewise.
11516         * tests/test-ceill-ieee.c (main): Likewise.
11517
11518         floor: Implement result sign according to IEEE 754.
11519         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
11520         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
11521         * tests/test-floorf2.c (floorf_reference): Likewise.
11522         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
11523         * tests/test-floor-ieee.c (main): Likewise.
11524         * tests/test-floorl-ieee.c (main): Likewise.
11525
11526 2010-12-22  Bruno Haible  <bruno@clisp.org>
11527
11528         getaddrinfo: Update doc.
11529         * doc/posix-functions/gai_strerror.texi: Return type is also different
11530         on AIX and HP-UX.
11531
11532 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11533
11534         getaddrinfo, inet_ntop: Update doc for Solaris.
11535         * doc/posix-functions/gai_strerror.texi: Return type is also an
11536         issue on Solaris 9 and earlier.
11537         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
11538         on Solaris 10 and earlier.
11539
11540 2010-12-21  Bruno Haible  <bruno@clisp.org>
11541
11542         New module 'roundl-ieee'.
11543         * modules/roundl-ieee: New file.
11544         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
11545         test whether roundl works according to ISO C 99 with IEC 60559.
11546         * m4/roundl-ieee.m4: New file.
11547         * modules/roundl-ieee-tests: New file.
11548         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
11549         * tests/test-roundl.c (main): Remove signbit tests.
11550         * modules/roundl-tests (Depends-on): Remove signbit.
11551         * doc/posix-functions/roundl.texi: Mention the new module.
11552
11553 2010-12-21  Bruno Haible  <bruno@clisp.org>
11554
11555         New module 'truncl-ieee'.
11556         * modules/truncl-ieee: New file.
11557         * modules/truncl-ieee-tests: New file.
11558         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
11559         * tests/test-truncl.c (main): Remove signbit tests.
11560         * modules/truncl-tests (Depends-on): Remove signbit.
11561         * doc/posix-functions/truncl.texi: Mention the new module.
11562
11563 2010-12-21  Bruno Haible  <bruno@clisp.org>
11564
11565         New module 'ceill-ieee'.
11566         * modules/ceill-ieee: New file.
11567         * modules/ceill-ieee-tests: New file.
11568         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
11569         * tests/test-ceill.c (main): Remove signbit tests.
11570         * modules/ceill-tests (Depends-on): Remove signbit.
11571         * doc/posix-functions/ceill.texi: Mention the new module.
11572
11573 2010-12-21  Bruno Haible  <bruno@clisp.org>
11574
11575         New module 'floorl-ieee'.
11576         * modules/floorl-ieee: New file.
11577         * modules/floorl-ieee-tests: New file.
11578         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
11579         * tests/test-floorl.c (main): Remove signbit tests.
11580         * modules/floorl-tests (Depends-on): Remove signbit.
11581         * doc/posix-functions/floorl.texi: Mention the new module.
11582
11583 2010-12-21  Bruno Haible  <bruno@clisp.org>
11584
11585         New module 'round-ieee'.
11586         * modules/round-ieee: New file.
11587         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
11588         whether round works according to ISO C 99 with IEC 60559.
11589         * m4/round-ieee.m4: New file.
11590         * modules/round-ieee-tests: New file.
11591         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
11592         * tests/test-round1.c (main): Remove signbit tests.
11593         * modules/round-tests (Depends-on): Remove 'signbit'.
11594         * doc/posix-functions/round.texi: Mention the new module.
11595
11596 2010-12-21  Bruno Haible  <bruno@clisp.org>
11597
11598         New module 'trunc-ieee'.
11599         * modules/trunc-ieee: New file.
11600         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
11601         whether trunc works according to ISO C 99 with IEC 60559.
11602         * m4/trunc-ieee.m4: New file.
11603         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
11604         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
11605         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
11606         * modules/trunc-ieee-tests: New file.
11607         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
11608         * tests/test-trunc1.c (main): Remove signbit tests.
11609         * modules/trunc-tests (Depends-on): Remove 'signbit'.
11610         * doc/posix-functions/trunc.texi: Mention the new module.
11611
11612 2010-12-21  Bruno Haible  <bruno@clisp.org>
11613
11614         New module 'ceil-ieee'.
11615         * modules/ceil-ieee: New file.
11616         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
11617         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
11618         ISO C 99 with IEC 60559.
11619         * m4/ceil-ieee.m4: New file.
11620         * modules/ceil (Files): Add lib/ceil.c.
11621         (Depends-on): Add 'float'.
11622         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11623         * lib/math.in.h (ceil): New declaration.
11624         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
11625         REPLACE_CEIL.
11626         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
11627         * modules/ceil-ieee-tests: New file.
11628         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
11629         * tests/test-math-c++.cc: Check the signature of 'ceil'.
11630         * doc/posix-functions/ceil.texi: Mention the new module.
11631
11632 2010-12-21  Bruno Haible  <bruno@clisp.org>
11633
11634         New module 'floor-ieee'.
11635         * modules/floor-ieee: New file.
11636         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
11637         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
11638         ISO C 99 with IEC 60559.
11639         * m4/floor-ieee.m4: New file.
11640         * modules/floor (Files): Add lib/floor.c.
11641         (Depends-on): Add 'float'.
11642         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11643         * lib/math.in.h (floor): New declaration.
11644         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
11645         REPLACE_FLOOR.
11646         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
11647         * modules/floor-ieee-tests: New file.
11648         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
11649         * tests/test-math-c++.cc: Check the signature of 'floor'.
11650         * doc/posix-functions/floor.texi: Mention the new module.
11651
11652 2010-12-21  Bruno Haible  <bruno@clisp.org>
11653
11654         New module 'roundf-ieee'.
11655         * modules/roundf-ieee: New file.
11656         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
11657         test whether roundf works according to ISO C 99 with IEC 60559.
11658         * m4/roundf-ieee.m4: New file.
11659         * modules/roundf-ieee-tests: New file.
11660         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
11661         * tests/test-roundf1.c (main): Remove signbit tests.
11662         * modules/roundf-tests (Depends-on): Remove 'signbit'.
11663         * doc/posix-functions/roundf.texi: Mention the new module.
11664
11665 2010-12-21  Bruno Haible  <bruno@clisp.org>
11666
11667         New module 'truncf-ieee'.
11668         * modules/truncf-ieee: New file.
11669         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
11670         test whether truncf works according to ISO C 99 with IEC 60559.
11671         * m4/truncf-ieee.m4: New file.
11672         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
11673         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
11674         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
11675         * modules/truncf-ieee-tests: New file.
11676         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
11677         * tests/test-truncf1.c (main): Remove signbit tests.
11678         * modules/truncf-tests (Depends-on): Remove 'signbit'.
11679         * doc/posix-functions/truncf.texi: Mention the new module.
11680
11681 2010-12-21  Bruno Haible  <bruno@clisp.org>
11682
11683         New module 'ceilf-ieee'.
11684         * modules/ceilf-ieee: New file.
11685         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
11686         test whether ceilf works according to ISO C 99 with IEC 60559.
11687         * m4/ceilf-ieee.m4: New file.
11688         * modules/ceilf-ieee-tests: New file.
11689         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
11690         * tests/test-ceilf1.c (main): Remove signbit tests.
11691         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
11692         * doc/posix-functions/ceilf.texi: Mention the new module.
11693
11694 2010-12-21  Bruno Haible  <bruno@clisp.org>
11695
11696         New module 'floorf-ieee'.
11697         * modules/floorf-ieee: New file.
11698         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
11699         test whether floorf works according to ISO C 99 with IEC 60559.
11700         * m4/floorf-ieee.m4: New file.
11701         * modules/floorf-ieee-tests: New file.
11702         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
11703         * tests/test-floorf1.c (main): Remove signbit tests.
11704         * modules/floorf-tests (Depends-on): Remove 'signbit'.
11705         * doc/posix-functions/floorf.texi: Mention the new module.
11706
11707 2010-12-21  Bruno Haible  <bruno@clisp.org>
11708
11709         Support for minus zero in autoconf macros.
11710         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
11711         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
11712         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
11713         * tests/minus-zero.h: Update comments.
11714
11715 2010-12-21  Bruno Haible  <bruno@clisp.org>
11716
11717         Tests for module 'ceil'.
11718         * modules/ceil-tests: New file.
11719         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
11720         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
11721
11722 2010-12-21  Bruno Haible  <bruno@clisp.org>
11723
11724         Tests for module 'floor'.
11725         * modules/floor-tests: New file.
11726         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
11727         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
11728
11729 2010-12-21  Bruno Haible  <bruno@clisp.org>
11730
11731         math: Fix indentation.
11732         * lib/math.in.h (floorf): Fix indentation.
11733
11734 2010-12-21  Bruno Haible  <bruno@clisp.org>
11735
11736         Fix cross-compilation guesses on Solaris.
11737         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
11738         not match "solaris2.10".
11739         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11740         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
11741         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
11742
11743 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
11744
11745         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
11746         This fixes a problem observed with the latest coreutils snapshot
11747         that caused a test to fail on Solaris 8.  src/csplit.c's call
11748         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
11749         earlier, instead of returning the number of bytes that would have
11750         been generated; this causes csplit to incorrectly report memory
11751         exhaustion.
11752         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
11753         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
11754         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
11755         comments to match.
11756         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
11757         Fix typo in matching older versions of Solaris: "solaris2.10"
11758         is matched by the shell pattern "solaris2.[0-9]*".  This matters
11759         only for guessing while cross-compiling.
11760         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
11761
11762 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
11763
11764         ftoastr: fix comment again
11765         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
11766         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
11767         Also, simplify example a bit by using flags = 0.
11768
11769 2010-12-20  Bruno Haible  <bruno@clisp.org>
11770
11771         round*, trunc*: Update documentation regarding glibc.
11772         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
11773         * doc/posix-functions/round.texi: Likewise.
11774         * doc/posix-functions/roundl.texi: Likewise.
11775         * doc/posix-functions/truncf.texi: Likewise.
11776         * doc/posix-functions/trunc.texi: Likewise.
11777         * doc/posix-functions/truncl.texi: Likewise.
11778
11779 2010-12-20  Bruno Haible  <bruno@clisp.org>
11780
11781         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
11782         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
11783         * doc/posix-functions/round.texi: Likewise.
11784         * doc/posix-functions/roundl.texi: Likewise.
11785
11786 2010-12-20  Bruno Haible  <bruno@clisp.org>
11787
11788         ttyname_r: Add missing declaration on HP-UX 11.
11789         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
11790         HAVE_TTYNAME_R.
11791         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
11792         declared. Set HAVE_TTYNAME_R always.
11793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11794         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
11795         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
11796         HAVE_TTYNAME_R.
11797         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
11798
11799 2010-12-20  Bruno Haible  <bruno@clisp.org>
11800
11801         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
11802         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
11803         * doc/posix-functions/getlogin_r.texi: Likewise.
11804         * tests/test-getlogin.c: Include <errno.h>.
11805         (main): Avoid test failure on HP-UX 11.11.
11806         * tests/test-getlogin_r.c (main): Likewise.
11807
11808 2010-12-20  Bruno Haible  <bruno@clisp.org>
11809
11810         getlogin_r: Add missing declaration on HP-UX 11.
11811         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
11812         declared also when it exists as a function.
11813         * doc/posix-functions/getlogin_r.texi: Document this workaround.
11814
11815 2010-12-20  Bruno Haible  <bruno@clisp.org>
11816
11817         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
11818         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
11819         through wcrtomb.
11820
11821 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
11822
11823         ftoastr: fix comment
11824         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
11825         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
11826
11827 2010-12-19  Bruno Haible  <bruno@clisp.org>
11828
11829         isnan: Ensure it is a macro.
11830         * lib/math.in.h (isnan): Define as a macro if not already a macro.
11831         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
11832         Solaris.
11833
11834 2010-12-19  Bruno Haible  <bruno@clisp.org>
11835
11836         ldexpl test: Fix link error on OSF/1 5.1.
11837         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
11838
11839 2010-12-19  Bruno Haible  <bruno@clisp.org>
11840
11841         wctype: Make it work in C++ mode on OSF/1 5.1.
11842         * lib/wctype.in.h (iswblank): Declare but not define here.
11843         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
11844         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
11845         * modules/wctype (Files): Add lib/iswblank.c.
11846
11847 2010-12-19  Bruno Haible  <bruno@clisp.org>
11848
11849         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
11850         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
11851         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
11852
11853 2010-12-19  Bruno Haible  <bruno@clisp.org>
11854
11855         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
11856         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
11857         _POSIX_PII_SOCKET.
11858         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
11859         * doc/posix-functions/recvfrom.texi: Likewise.
11860         * doc/posix-functions/send.texi: Likewise.
11861         * doc/posix-functions/sendto.texi: Likewise.
11862
11863 2010-12-19  Bruno Haible  <bruno@clisp.org>
11864
11865         tcgetsid: Add missing declaration on OSF/1 5.1.
11866         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
11867         HAVE_TCGETSID.
11868         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
11869         Don't set HAVE_TCGETSID.
11870         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
11871         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
11872         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
11873         HAVE_TCGETSID.
11874         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
11875
11876 2010-12-19  Bruno Haible  <bruno@clisp.org>
11877
11878         stdio: Fix problem with popen() declaration on OSF/1 5.1.
11879         * lib/stdio.in.h: During the include_next statement, let recursive
11880         includes of this file include only the system header file.
11881
11882 2010-12-19  Bruno Haible  <bruno@clisp.org>
11883
11884         iconv_open: Fix regression from 2010-12-04.
11885         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
11886         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
11887
11888 2010-12-19  Bruno Haible  <bruno@clisp.org>
11889
11890         stdbool test: Avoid a gcc warning.
11891         * tests/test-stdbool.c (main): Fail if e1 is false.
11892         Reported by Jim Meyering.
11893
11894 2010-12-19  Jim Meyering  <meyering@redhat.com>
11895
11896         setenv: restore to working order
11897         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
11898         mistakenly removed.
11899         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
11900         HAVE_SETENV.
11901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
11902         HAVE_SETENV.
11903
11904 2010-12-19  Bruno Haible  <bruno@clisp.org>
11905
11906         Document some different function declarations on OSF/1 5.1.
11907         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
11908         * doc/posix-functions/inet_ntop.texi: Likewise.
11909         * doc/posix-functions/gethostname.texi: Likewise.
11910         * lib/unistd.in.h (gethostname): Update comment.
11911
11912 2010-12-19  Bruno Haible  <bruno@clisp.org>
11913
11914         doc: Mention vasprintf-posix module.
11915         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
11916         the 'vasprintf-posix' module.
11917         * doc/glibc-functions/vasprintf.texi: Likewise.
11918
11919 2010-12-19  Bruno Haible  <bruno@clisp.org>
11920
11921         unsetenv: Add missing declaration on OSF/1 5.1.
11922         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
11923         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
11924         Don't set HAVE_UNSETENV. In the test program, set _BSD.
11925         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
11926         not HAVE_UNSETENV.
11927         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
11928         HAVE_UNSETENV.
11929         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
11930
11931 2010-12-19  Bruno Haible  <bruno@clisp.org>
11932
11933         setenv: Add missing declaration on OSF/1 5.1.
11934         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
11935         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
11936         declared. Don't set HAVE_SETENV.
11937         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
11938         not HAVE_SETENV.
11939         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
11940         HAVE_SETENV.
11941         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
11942
11943 2010-12-19  Bruno Haible  <bruno@clisp.org>
11944
11945         nl_langinfo tests: Avoid gcc warning.
11946         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
11947
11948 2010-12-19  Bruno Haible  <bruno@clisp.org>
11949
11950         mknod: Avoid error in C++ mode on OSF/1 with GCC.
11951         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
11952         _GL_CXXALIAS_SYS.
11953
11954 2010-12-19  Bruno Haible  <bruno@clisp.org>
11955
11956         stdbool: Relax test.
11957         * tests/test-stdbool.c (e): Don't require that casts from a variable's
11958         address to 'bool' work in static initializer, for compilers other than
11959         GCC.
11960
11961 2010-12-19  Bruno Haible  <bruno@clisp.org>
11962
11963         ftello: Add missing declaration on OSF/1 5.1.
11964         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
11965         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
11966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
11967         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
11968         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
11969
11970 2010-12-19  Bruno Haible  <bruno@clisp.org>
11971
11972         fseeko: Add missing declaration on OSF/1 5.1.
11973         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
11974         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
11975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
11976         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
11977         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
11978
11979 2010-12-19  Bruno Haible  <bruno@clisp.org>
11980
11981         fchdir: Add missing declaration on OSF/1 5.1.
11982         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
11983         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
11984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
11985         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
11986         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
11987
11988 2010-12-19  Bruno Haible  <bruno@clisp.org>
11989
11990         relocatable-prog-wrapper: Separate from relocatable-prog.
11991         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
11992         uninstall-relocwrapper rule here.
11993         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
11994         Reported by Ian Beckwith <ianb@erislabs.net>.
11995
11996 2010-12-19  Bruno Haible  <bruno@clisp.org>
11997
11998         unistr/u8-mbsnlen: Add missing dependency.
11999         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
12000         Reported by Ian Beckwith <ianb@erislabs.net>.
12001
12002 2010-12-19  Bruno Haible  <bruno@clisp.org>
12003
12004         iconv: Make it possible again to use this module without 'iconv-h'.
12005         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
12006         if it is not defined.
12007         Reported by Ian Beckwith <ianb@erislabs.net>.
12008
12009 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12010
12011         acl: port to Solaris 8 when copying from tmpfs to ufs
12012         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
12013         error number.  Problem observed on Solaris 8 with latest
12014         coreutils, with "mv A B", where A is on a tmpfs file system and B
12015         is on a ufs file system.  This caused coreutils' mv/part-symlink
12016         test to fail.
12017
12018         tests: set fail=0 at start
12019         * tests/init.sh (setup_): Move fail=0 initialization here ...
12020         (mktempd_): ... from here, so that tests can rely on fail being
12021         set to 0 initially.  This fixes a problem in coreutils; see:
12022         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
12023
12024 2010-12-18  Bruno Haible  <bruno@clisp.org>
12025
12026         memmem-simple: Stylistic changes.
12027         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
12028         Fix preprocessor directive indentation.
12029
12030 2010-12-15  Pádraig Brady <P@draigBrady.com>
12031
12032         memmem, memmem-simple: reorganize and expand empty needle check
12033         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
12034         functional checks to memmem-simple so that one has a fully functional
12035         memmem by using just this module.
12036         Restrict the performance only check to the memmem module.
12037         Also expand the empty needle check to ensure the correct
12038         pointer is returned, not just a non NULL pointer.
12039         * doc/glibc-functions/memmem.texi: Rearrange the portability
12040         documentation to correlate with the rearranged checks.
12041         Clarify exactly how the memmem and memmem-simple modules
12042         relate to each other.
12043
12044 2010-12-15  Pádraig Brady <P@draigBrady.com>
12045             Bruno Haible  <bruno@clisp.org>
12046
12047         Improve cross-compilation guesses for uClibc.
12048         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
12049         that uClibc does not have the glibc bug.
12050         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
12051         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
12052
12053 2010-12-14  Eric Blake  <eblake@redhat.com>
12054
12055         configmake: provide fallbacks for oldest supported autotools
12056         * m4/configmake.m4: New file.
12057         * modules/configmake (Files): Ship it.
12058         (configure.ac): Use it to guarantee fallbacks.
12059
12060 2010-12-13  Pádraig Brady <P@draigBrady.com>
12061
12062         read-file: Improve handling of large files
12063         * lib/read-file.c (fread_file): Minimize realloc()s
12064         for regular files, and better manage sizes around SIZE_MAX.
12065
12066 2010-12-13  Eric Blake  <eblake@redhat.com>
12067
12068         cloexec, fcntl: relax license
12069         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
12070         consent from all contributors.
12071         * modules/fcntl (License): Likewise.
12072
12073 2010-12-10  Bruno Haible  <bruno@clisp.org>
12074
12075         Tests for module 'pipe-posix'.
12076         * modules/pipe-posix-tests: New file.
12077         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
12078
12079 2010-12-10  Bruno Haible  <bruno@clisp.org>
12080
12081         pipe-posix: Make it work in C++ mode.
12082         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
12083         (pipe): Use common idiom, not a macro definition.
12084         * lib/pipe.c: New file.
12085         * m4/pipe.m4: New file.
12086         * modules/pipe-posix (Description): Enhance.
12087         (Files): Add lib/pipe.c, m4/pipe.m4.
12088         (configure.ac): Invoke gl_FUNC_PIPE.
12089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
12090         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
12091         * tests/test-unistd-c++.cc: Check the signature of pipe.
12092
12093 2010-12-10  Bruno Haible  <bruno@clisp.org>
12094
12095         Rename module 'pipe' to 'spawn-pipe'.
12096         * modules/spawn-pipe: New file, renamed from modules/pipe.
12097         (Files, configure.ac, Makefile.am): Update.
12098         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
12099         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
12100         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
12101         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
12102         "spawn-pipe.h" instead of "pipe.h".
12103         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
12104         to gl_SPAWN_PIPE.
12105         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
12106         (Files, Makefile.am): Update.
12107         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
12108         Update.
12109         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
12110         Include "spawn-pipe.h" instead of "pipe.h".
12111         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
12112         * lib/javacomp.c: Likewise.
12113         * lib/javaversion.c: Likewise.
12114         * lib/pipe-filter-gi.c: Likewise.
12115         * lib/pipe-filter-ii.c: Likewise.
12116         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
12117         * modules/javacomp (Depends-on): Likewise.
12118         * modules/javaversion (Depends-on): Likewise.
12119         * modules/pipe-filter-gi (Depends-on): Likewise.
12120         * modules/pipe-filter-ii (Depends-on): Likewise.
12121         * MODULES.html.sh (Executing programs): Update.
12122         * NEWS: Mention the change.
12123
12124 2010-12-10  Eric Blake  <eblake@redhat.com>
12125
12126         pipe-posix: new module
12127         * modules/pipe-posix: New file.
12128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
12129         (gl_UNISTD_H): Check for declaration.
12130         * modules/unistd (Makefile.am): Substitute it.
12131         * lib/unistd.in.h (pipe): Provide it for mingw.
12132         * doc/posix-functions/pipe.texi (pipe): Update documentation.
12133         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
12134
12135 2010-12-07  Bruno Haible  <bruno@clisp.org>
12136
12137         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
12138         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
12139         u8_strcmp_gnu.
12140         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
12141
12142 2010-12-06  Bruno Haible  <bruno@clisp.org>
12143
12144         Update internal documentation.
12145         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
12146
12147 2010-12-04  Bruno Haible  <bruno@clisp.org>
12148
12149         Put more information about failed tests into the test return codes.
12150         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
12151         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
12152         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12153         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12154         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12155         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12156         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12157         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12158         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
12159         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12160         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
12161         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12162         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12163         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12164         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
12165         returns a bit mask.
12166         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12167         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
12168         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
12169         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
12170         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12171         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12172         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12173         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
12174         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12175         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12176         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
12177         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12178         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12179         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12180         * m4/link.m4 (gl_FUNC_LINK): Likewise.
12181         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
12182         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
12183         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
12184         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12185         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
12186         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12187         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12188         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
12189         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12190         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12191         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
12192         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
12193         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12194         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12195         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
12196         gl_PRINTF_PRECISION): Likewise.
12197         * m4/regex.m4 (gl_REGEX): Likewise.
12198         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12199         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12200         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
12201         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12202         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12203         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12204         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12205         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
12206         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12207         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12208         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
12209         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
12210         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12211         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12212         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12213         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12214         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
12215         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12216         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12217         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
12218         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
12219         enumerated value.
12220         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
12221
12222 2010-12-04  Bruno Haible  <bruno@clisp.org>
12223
12224         Update for Solaris 11 2010-11.
12225         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
12226         Express, released in November 2010.
12227
12228 2010-12-04  Bruno Haible  <bruno@clisp.org>
12229
12230         nproc: Relax license.
12231         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
12232         and Paul Eggert.
12233         Requested by Ludovic Courtès <ludo@gnu.org>.
12234
12235 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
12236
12237         utimecmp: fine-grained src to nearby coarse-grained dest
12238
12239         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
12240         and the source is on a file system with higher-resolution time
12241         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
12242         not work, and the time stamps are close together, the algorithm to
12243         determine the exact resolution from the read-back mtime was buggy:
12244         it had a "!=" where it should have had an "==".  This bug has been
12245         in the code ever since it was introduced to gnulib.
12246         Problem reported by Dan Jacobson in
12247         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
12248
12249 2010-11-30  Bruno Haible  <bruno@clisp.org>
12250
12251         strerror_r-posix: Fix autoconf test.
12252         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
12253
12254 2010-11-28  Bruno Haible  <bruno@clisp.org>
12255             Paul Eggert  <eggert@cs.ucla.edu>
12256
12257         Tests for module 'getdomainname'.
12258         * modules/getdomainname-tests: New file.
12259         * tests/test-getdomainname.c: New file, based on
12260         tests/test-gethostname.c.
12261
12262 2010-11-28  Bruno Haible  <bruno@clisp.org>
12263             Paul Eggert  <eggert@cs.ucla.edu>
12264
12265         getdomainname: Use the system function when possible.
12266         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
12267         (getdomainname): Replace if needed. Provide the declaration if it is
12268         missing. Don't use _GL_CXXALIAS_SYS_CAST.
12269         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
12270         (getdomainname): When the system has getdomainname, call the system
12271         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
12272         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
12273         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
12274         found in libnsl. Look for the declaration also in <netdb.h>. Replace
12275         the function if its second argument is of type 'int' or if it is found
12276         in libnsl.
12277         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
12278         <sys/systeminfo.h> and sysinfo().
12279         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
12280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12281         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
12282         HAVE_GETDOMAINNAME.
12283         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
12284         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
12285         * doc/glibc-functions/getdomainname.texi: Document the problems with
12286         the getdomainname declaration.
12287
12288 2010-11-28  Bruno Haible  <bruno@clisp.org>
12289
12290         sys_socket: Ensure ss_family field on AIX.
12291         * lib/sys_socket.in.h (ss_family): New macro definition.
12292         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
12293         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
12294         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12295         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12296         * modules/sys_socket (Makefile.am): Substitute
12297         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12298         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
12299
12300 2010-11-27  Bruno Haible  <bruno@clisp.org>
12301
12302         readline: Improve configure output.
12303         * m4/readline.m4 (gl_FUNC_READLINE): Make the
12304         "checking for readline..." result understandable.
12305
12306 2010-11-27  Bruno Haible  <bruno@clisp.org>
12307
12308         *printf-posix: Detect a bug on Solaris 10/x86.
12309         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
12310         for floating-point output.
12311         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
12312         directive.
12313         * tests/test-snprintf-posix.h (test_function): Likewise.
12314         * tests/test-sprintf-posix.h (test_function): Likewise.
12315         * tests/test-vasprintf-posix.c (test_function): Likewise.
12316         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
12317         * doc/posix-functions/printf.texi: Likewise.
12318         * doc/posix-functions/snprintf.texi: Likewise.
12319         * doc/posix-functions/sprintf.texi: Likewise.
12320         * doc/posix-functions/vfprintf.texi: Likewise.
12321         * doc/posix-functions/vprintf.texi: Likewise.
12322         * doc/posix-functions/vsnprintf.texi: Likewise.
12323         * doc/posix-functions/vsprintf.texi: Likewise.
12324         * doc/glibc-functions/obstack_printf.texi: Likewise.
12325         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12326
12327 2010-11-27  Bruno Haible  <bruno@clisp.org>
12328
12329         Fix link error when module libunistring-optional is in use.
12330         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
12331         * modules/striconveha-tests (Makefile.am): Likewise.
12332
12333 2010-11-27  Bruno Haible  <bruno@clisp.org>
12334
12335         regex: Mention link dependencies.
12336         * modules/regex (Link): New section.
12337         * modules/rpmatch (Link): Likewise.
12338         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
12339
12340 2010-11-27  Bruno Haible  <bruno@clisp.org>
12341
12342         ftoastr: Fix compilation error on Solaris.
12343         * lib/ftoastr.c: Include <config.h>.
12344
12345 2010-11-27  Bruno Haible  <bruno@clisp.org>
12346
12347         getloadavg: Update documentation.
12348         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
12349
12350 2010-11-27  Bruno Haible  <bruno@clisp.org>
12351
12352         sys_socket: Fix test whether the functions are declared.
12353         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
12354         not <sys/select.h>.
12355
12356 2010-11-27  Bruno Haible  <bruno@clisp.org>
12357
12358         getpass: Make sure to get system declaration on some platforms.
12359         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
12360         gl_USE_SYSTEM_EXTENSIONS.
12361         * modules/getpass (Depends-on): Add extensions.
12362
12363 2010-11-26  Bruno Haible  <bruno@clisp.org>
12364
12365         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
12366         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
12367         'iconv' module is present.
12368         (ICONV_CONST): New macro.
12369         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
12370         ICONV_CONST.
12371         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
12372         set ICONV_CONST.
12373         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
12374         here.
12375         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
12376         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
12377         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
12378         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
12379         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
12380         present.
12381
12382 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12383
12384         ftoastr: comment fix
12385         * lib/ftoastr.c: "little" -> "little or no" in comment
12386
12387 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
12388
12389         stdint: port to GCC 4.3 + OSX + Octave
12390         On this platform, stdint.h is buggy and defines int64_t to long
12391         long int.  The replacement defined it to long int, causing
12392         problems with C++ style name mangling.  Instead, trust the system
12393         definition if INT64_MAX is defined, and likewise for the unsigned
12394         variant.   Problem reported by Jarno Rajahalme in
12395         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
12396         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
12397         and don't mess with int64_t and INT64_MAX in this case.
12398         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
12399
12400 2010-11-24  Bruno Haible  <bruno@clisp.org>
12401
12402         doc: Corrections regarding MacOS X 10.4 and 10.5.
12403         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
12404         MacOS X.
12405         Reported by Simon Josefsson.
12406
12407 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
12408
12409         Uninstall ".bin" files installed by relocwrapper.
12410         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
12411         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
12412         unless it is already there.
12413
12414 2010-11-21  Bruno Haible  <bruno@clisp.org>
12415
12416         Update for NetBSD 5.0.
12417         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12418         NetBSD; the test fails on NetBSD 5.0.
12419         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12420         about NetBSD.
12421
12422 2010-11-21  Bruno Haible  <bruno@clisp.org>
12423
12424         Update for HP-UX 11.23 and HP-UX 11.31.
12425         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
12426         HP-UX.
12427
12428 2010-11-21  Bruno Haible  <bruno@clisp.org>
12429
12430         Update for MacOS X 10.5.
12431         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12432         MacOS X; the test fails on MacOS X 10.5.8.
12433         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12434         about MacOS X.
12435
12436 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
12437
12438         bootstrap: add bootstrap_sync option.
12439         See discussion at
12440         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
12441         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
12442         * build-aux/bootstrap: Accept --bootstrap-sync to update
12443         bootstrap if it is not identical to the local gnulib's
12444         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
12445         enable this by default.  Accept --no-bootstrap-sync to disable
12446         it.
12447
12448 2010-11-20  Bruno Haible  <bruno@clisp.org>
12449
12450         Ensure that <features.h> is included before __GLIBC__ is tested.
12451         * lib/printf-parse.h: Include <features.h>.
12452         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
12453         Reported by Mike Frysinger <vapier@gentoo.org>.
12454
12455         Ensure that <features.h> is included before __GLIBC__ is tested.
12456         * lib/wchar.in.h: Include <features.h>.
12457         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
12458         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
12459         Reported by Mike Frysinger <vapier@gentoo.org>.
12460
12461         Ensure that <features.h> is included before __GLIBC__ is tested.
12462         * lib/arpa_inet.in.h: Include <features.h>.
12463         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
12464         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
12465         Reported by Mike Frysinger <vapier@gentoo.org>.
12466
12467         Ensure that <features.h> is included before __GLIBC__ is tested.
12468         * build-aux/link-warning.h: Include <features.h>.
12469         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
12470         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
12471         Reported by Mike Frysinger <vapier@gentoo.org>.
12472
12473         Ensure that <features.h> is included before __GLIBC__ is tested.
12474         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
12475         Reported by Mike Frysinger <vapier@gentoo.org>.
12476
12477 2010-11-20  Bruno Haible  <bruno@clisp.org>
12478
12479         memmem: Fix autoconf test.
12480         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
12481
12482 2010-11-20  Bruno Haible  <bruno@clisp.org>
12483
12484         Port to uClibc.
12485         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
12486         * lib/fcntl.in.h: Likewise.
12487         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
12488         * lib/mbrtowc.c (mbrtowc): Likewise.
12489         * lib/relocatable.c (find_shared_library_fullname): Likewise.
12490         * lib/strerror_r.c: Likewise.
12491         * lib/unistr/u8-strnlen.c: Likewise.
12492         * lib/vasnprintf.c (decimal_point_char): Likewise.
12493         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12494         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12495         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
12496         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
12497         * tests/test-sigaction.c (handler, main): Likewise.
12498         * lib/freading.h: Treat uClibc like a non-glibc platform.
12499         * lib/freading.c: Likewise.
12500         * lib/gettext.h: Likewise.
12501         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
12502         Likewise.
12503         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
12504         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
12505         * lib/propername.c (proper_name_utf8): Likewise.
12506         * lib/spawn.in.h: Likewise.
12507         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
12508         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
12509         mem_cd_iconveh_internal): Likewise.
12510         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
12511         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
12512         strstr, strcasestr): Likewise.
12513         * lib/unicodeio.c (unicode_to_mb): Likewise.
12514         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
12515         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
12516         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
12517         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
12518         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
12519         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
12520         * lib/unistr/u8-stpncpy.c: Likewise.
12521         * lib/vasnprintf.c (VASNPRINTF): Likewise.
12522         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
12523         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12524         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12525         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
12526         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
12527         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
12528         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
12529         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12530         Likewise.
12531         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12532         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12533         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12534         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12535         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12536         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12537         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12538         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12539         * tests/test-getopt.h (OPTIND_MIN): Likewise.
12540         * tests/test-striconveha.c (main): Likewise.
12541         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12542         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
12543         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
12544         * doc/posix-functions/getline.texi: Likewise.
12545         Reported by Mike Frysinger <vapier@gentoo.org>.
12546
12547 2010-11-20  Bruno Haible  <bruno@clisp.org>
12548
12549         nproc: Fix condition.
12550         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
12551         HAVE_PTHREAD_AFFINITY_NP.
12552
12553 2010-11-20  Bruno Haible  <bruno@clisp.org>
12554
12555         Fix a comment.
12556         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
12557
12558 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
12559
12560         ftoastr: don't assume snprintf
12561         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
12562         Implement a subset of snprintf here, by using sprintf safely.
12563         * modules/ftoastr (Depends-on): Remove snprintf.
12564
12565 2010-11-19  Jim Meyering  <meyering@redhat.com>
12566
12567         test-rename.h: fix compilation failure
12568         * tests/test-rename.h (test_rename): Add omitted "}".
12569
12570 2010-11-17  Jim Meyering  <meyering@redhat.com>
12571
12572         maint.mk: add a URL discussing the no-@acronym policy
12573         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
12574
12575 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
12576
12577         ftoastr: depend on snprintf, improve comments
12578         * lib/ftoastr.c: Also mention Loitsch's draft.
12579         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
12580         needed in the current implementation, but it might simplify
12581         speeding up the code later.
12582         * modules/ftoastr: Depend on snprintf; this improves portability.
12583         Suggested by Bruno Haible in the same email.
12584
12585         ftoastr: port to hosts lacking strtof and strtold
12586         Problem reported by Bruno Haible in
12587         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
12588         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
12589         environment and strtold (and presumably strtof) are not available.
12590         * modules/ftoastr (Files): Add m4/c-strtod.m4.
12591         (configure.ac): Require gl_C99_STRTOLD.
12592
12593 2010-11-18  Bruno Haible  <bruno@clisp.org>
12594
12595         c-strtold: Avoid link error on AIX 7.
12596         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
12597         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
12598         (gl_C_STRTOLD): Test whether strtold_l exists.
12599         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12600
12601 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
12602
12603         intprops: new macro INT_BITS_STRLEN_BOUND
12604         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
12605         ftoastr.h.  This exposes an internal of intprops.h that was formerly
12606         not exposed.  Also, it uses a slightly tighter bound than before;
12607         though this makes no practical difference, we might as well be as
12608         tight as we easily can.
12609
12610         ftoastr: new module, for lossless conversion of floats to short strings
12611         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
12612         * modules/ftoastr: New files.
12613
12614 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
12615
12616         bootstrap: port to Solaris sed
12617         * build-aux/bootstrap (get_version): Port to Solaris sed.
12618         See Ralf Wildenhues's note in
12619         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
12620
12621 2010-11-14  Jim Meyering  <meyering@redhat.com>
12622
12623         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
12624         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
12625         and move definition closer to sole use.
12626
12627 2010-11-13  Jim Meyering  <meyering@redhat.com>
12628
12629         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
12630         Now we require at least autoconf-2.59, which means the work-around
12631         is no longer needed.
12632         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
12633         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12634         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12635         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
12636         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12637
12638 2010-11-13  Bruno Haible  <bruno@clisp.org>
12639
12640         rename, renameat: Avoid test failures at NFS mounted locations.
12641         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
12642         functions.
12643         (test_rename): Use assert_nonexistent.
12644         * tests/test-rename.c: Include <dirent.h>.
12645         * tests/test-renameat.c: Likewise.
12646         Reported by Gary V. Vaughan <gary@gnu.org>.
12647
12648         rename, renameat: Document Linux bug with NFS
12649         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
12650         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
12651         * doc/posix-functions/renameat.texi: Likewise.
12652         Suggested by Eric Blake.
12653
12654 2010-11-13  Bruno Haible  <bruno@clisp.org>
12655
12656         rename test: Add comments.
12657         * tests/test-rename.h (test_rename): Add structure and comments.
12658
12659 2010-11-13  Eric Blake  <eblake@redhat.com>
12660
12661         maintainer-makefile: cover a few more files
12662         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
12663         scripts generated within C files, for libvirt.
12664
12665 2010-11-13  Bruno Haible  <bruno@clisp.org>
12666
12667         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
12668         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
12669         character, return the number of bytes that belong together, not always
12670         1.
12671         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
12672         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
12673         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
12674         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
12675         number of bytes of an invalid character.
12676         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
12677         (main): Invoke it.
12678         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
12679         results.
12680         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
12681         malformed byte sequences.
12682         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
12683         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
12684         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
12685         Reported by Ben Pfaff and Paolo Bonzini.
12686
12687 2010-11-13  Bruno Haible  <bruno@clisp.org>
12688
12689         openat: Work around glibc bug with fchownat() and empty file names.
12690         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
12691         (gl_FUNC_FCHOWNAT): Invoke it.
12692         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
12693         * doc/posix-functions/fchownat.texi: Document the glibc bug.
12694         Reported by Gary V. Vaughan <gary@gnu.org>.
12695
12696 2010-11-13  Bruno Haible  <bruno@clisp.org>
12697
12698         openat: Ensure autoconf macro ordering.
12699         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
12700         gl_USE_SYSTEM_EXTENSIONS.
12701         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
12702
12703 2010-11-13  Bruno Haible  <bruno@clisp.org>
12704
12705         Update comments.
12706         * lib/unistr/u8-check.c: Update file name in comments.
12707         * lib/unistr/u8-mblen.c: Likewise.
12708         * lib/unistr/u8-prev.c: Likewise.
12709         * lib/unistr/u8-strmblen.c: Likewise.
12710         * lib/unistr/u8-strmbtouc.c: Likewise.
12711
12712 2010-11-13  Jim Meyering  <meyering@redhat.com>
12713
12714         tests: avoid test failure on Solaris 10 due to lack of PATH export
12715         * tests/test-update-copyright.sh: Don't forget to export PATH.
12716
12717         init.sh: ensure that IFS is defined, just in case...
12718         * tests/init.sh (setup_): Ensure that IFS is defined,
12719         so that saving and restoring it works as expected.  This
12720         appears to be useful at least for an old version of dash
12721         from a long time ago (RH 6).  See here for details:
12722         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
12723
12724         maint.mk: tighten "test a == b" check
12725         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
12726         test to files that contain something like #!/bin/sh.
12727         Without this, coreutils would get two false positives in
12728         the comments of C source files.
12729
12730 2010-11-12  Eric Blake  <eblake@redhat.com>
12731
12732         bootstrap: fix typo in previous attempt
12733         * build-aux/bootstrap (buildreq): Correct the grouping.
12734         Reported by Paul Eggert.
12735
12736         maintainer-makefile: prohibit test x == x
12737         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
12738         Based on a report by Matthias Bolte.
12739
12740         bootstrap: allow FreeBSD gzip
12741         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
12742         which has no '.' and goes to stderr.
12743         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
12744         Reported by Matthias Bolte.
12745
12746         maintainer-makefile: check for i18n setup
12747         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
12748         will likely work.
12749
12750 2010-11-12  Bruno Haible  <bruno@clisp.org>
12751
12752         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
12753         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
12754         * lib/nanosleep.c (nanosleep): Likewise.
12755
12756 2010-11-11  Bruno Haible  <bruno@clisp.org>
12757
12758         fcntl-h: Fix for use of C++ on glibc systems.
12759         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
12760         also on glibc systems in C++ mode.
12761         Reported by Gary V. Vaughan <gary@gnu.org>.
12762
12763 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12764
12765         mknod: avoid false failure with dash
12766         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
12767
12768 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
12769
12770         unlink: Fix "is it should" typo in diagnostic.
12771         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
12772         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
12773
12774 2010-11-11  Bruno Haible  <bruno@clisp.org>
12775
12776         Tests for module 'strerror_r-posix'.
12777         * modules/strerror_r-posix-tests: New file.
12778         * tests/test-strerror_r.c: New file.
12779         * tests/test-string-c++.cc: Check the signature of strerror_r.
12780
12781         New module 'strerror_r-posix'.
12782         * lib/string.in.h (strerror_r): New declaration.
12783         * lib/strerror_r.c: New file.
12784         * m4/strerror_r.m4: New file.
12785         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
12786         of strerror_r.
12787         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
12788         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
12789         * modules/strerror_r-posix: New file.
12790         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
12791         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
12792         * doc/posix-functions/strerror_r.texi: Mention the new module and the
12793         portability problems.
12794
12795 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
12796
12797         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
12798         line is also considered for output. Quoted function name in shell
12799         command, so temporary files for functions like MyClass::operator()
12800         are removed correctly without errors.
12801
12802 2010-11-09  Bruno Haible  <bruno@clisp.org>
12803
12804         * doc/posix-functions/strerror.texi: List more failing platforms.
12805
12806         * doc/posix-functions/strerror.texi: Add a comment.
12807
12808 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
12809
12810         fdopendir: fix bug on MacOS X when low on file descriptors
12811
12812         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
12813         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
12814         All callers changed.
12815         (fdopendir): Invoke save_cwd at the top level, not after using
12816         multiple dup() calls to use up file descriptors.  Then retry
12817         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
12818         less than the maximum number of open file descriptors, because
12819         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
12820         on Mac OS X 10.6.4 for tar 1.24
12821         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
12822         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
12823         and for tar 1.25
12824         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
12825
12826 2010-11-07  Bruno Haible  <bruno@clisp.org>
12827
12828         vasnprintf: Support I flag on glibc systems.
12829         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
12830         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
12831         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
12832         snprintf function.
12833         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
12834         glibc systems.
12835         * tests/test-vasnprintf-posix3.c: New file.
12836         * modules/vasnprintf-posix-tests (Files): Add it.
12837         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
12838
12839 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12840
12841         [html] Fix copy/paste bug: Use unique name for compiler warnings.
12842         * MODULES.html.sh: For compiler warnings, use name
12843         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
12844
12845 2010-11-05  Eric Blake  <eblake@redhat.com>
12846
12847         ceil, floor: avoid spurious failure with icc
12848         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
12849         [denormals-as-zero] when optimizing without -mieee-fp option.
12850         * tests/test-floorf2.c (floorf_reference): Likewise.
12851         * tests/test-ceilf1.c (dummy): New function.
12852         (main): Use it to outsmart icc's optimization.
12853         * tests/test-floorf1.c (dummy, main): Likewise.
12854
12855         tests: require working signbit
12856         * modules/ceilf-tests (Depends-on): Add signbit.
12857         * modules/ceill-tests (Depends-on): Likewise.
12858         * modules/floorf-tests (Depends-on): Likewise.
12859         * modules/floorl-tests (Depends-on): Likewise.
12860         * modules/round-tests (Depends-on): Likewise.
12861         * modules/roundf-tests (Depends-on): Likewise.
12862         * modules/roundl-tests (Depends-on): Likewise.
12863         * modules/trunc-tests (Depends-on): Likewise.
12864         * modules/truncf-tests (Depends-on): Likewise.
12865         * modules/truncl-tests (Depends-on): Likewise.
12866
12867         strtod: work around icc bug
12868         * lib/strtod.c (minus_zero): Define to working value.
12869         (strtod): Use it to avoid icc bug.
12870
12871         copysign: enhance tests
12872         * modules/copysign-tests (Files): Add minus-zero.h.
12873         * tests/test-copysign.c (main): Also test zeros.
12874
12875 2010-11-04  Eric Blake  <eblake@redhat.com>
12876
12877         ceil, floor, round, trunc: enhance tests of -0
12878         * tests/test-ceilf1.c (main): Ensure correct sign of result.
12879         * tests/test-ceill.c (main): Likewise.
12880         * tests/test-floorf1.c (main): Likewise.
12881         * tests/test-floorl.c (main): Likewise.
12882         * tests/test-round1.c (main): Likewise.
12883         * tests/test-roundf1.c (main): Likewise.
12884         * tests/test-roundl.c (main): Likewise.
12885         * tests/test-trunc1.c (main): Likewise.
12886         * tests/test-truncf1.c (main): Likewise.
12887         * tests/test-truncl.c (main): Likewise.
12888
12889 2010-11-04  Eric Blake  <eblake@redhat.com>
12890
12891         frexp, tests: work around ICC bug with -zero
12892         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
12893         works with more compilers.
12894         * tests/minus-zero.h: New file.
12895         * modules/ceilf-tests (Files): Include it.
12896         * modules/ceill-tests (Files): Likewise.
12897         * modules/floorf-tests (Files): Likewise.
12898         * modules/floorl-tests (Files): Likewise.
12899         * modules/frexp-nolibm-tests (Files): Likewise.
12900         * modules/frexp-tests (Files): Likewise.
12901         * modules/frexpl-nolibm-tests (Files): Likewise.
12902         * modules/frexpl-tests (Files): Likewise.
12903         * modules/isnan-tests (Files): Likewise.
12904         * modules/isnand-nolibm-tests (Files): Likewise.
12905         * modules/isnand-tests (Files): Likewise.
12906         * modules/isnanf-nolibm-tests (Files): Likewise.
12907         * modules/isnanf-tests (Files): Likewise.
12908         * modules/isnanl-nolibm-tests (Files): Likewise.
12909         * modules/isnanl-tests (Files): Likewise.
12910         * modules/round-tests (Files): Likewise.
12911         * modules/roundf-tests (Files): Likewise.
12912         * modules/roundl-tests (Files): Likewise.
12913         * modules/ldexpl-tests (Files): Likewise.
12914         * modules/signbit-tests (Files): Likewise.
12915         * modules/snprintf-posix-tests (Files): Likewise.
12916         * modules/sprintf-posix-tests (Files): Likewise.
12917         * modules/strtod-tests (Files): Likewise.
12918         * modules/trunc-tests (Files): Likewise.
12919         * modules/truncf-tests (Files): Likewise.
12920         * modules/truncl-tests (Files): Likewise.
12921         * modules/vsnprintf-posix-tests (Files): Likewise.
12922         * modules/vsprintf-posix-tests (Files): Likewise.
12923         * modules/vasnprintf-posix-tests (Files): Likewise.
12924         * modules/vasprintf-posix-tests (Files): Likewise.
12925         * tests/test-ceilf1.c (main): Use it.
12926         * tests/test-ceill.c (main): Likewise.
12927         * tests/test-floorf1.c (main): Likewise.
12928         * tests/test-floorl.c (main): Likewise.
12929         * tests/test-frexp.c (main): Likewise.
12930         * tests/test-frexpl.c (main): Likewise.
12931         * tests/test-isnan.c (main): Likewise.
12932         * tests/test-isnand.h (main): Likewise.
12933         * tests/test-isnanf.h (main): Likewise.
12934         * tests/test-isnanl.h (main): Likewise.
12935         * tests/test-ldexpl.c (main): Likewise.
12936         * tests/test-round.c (main): Likewise.
12937         * tests/test-roundf.c (main): Likewise.
12938         * tests/test-roundl.c (main): Likewise.
12939         * tests/test-signbit.c (test_signbitf, test_signbitd)
12940         (test_signbitl): Likewise.
12941         * tests/test-snprintf-posix.h (test_function): Likewise.
12942         * tests/test-sprintf-posix.h (test_function): Likewise.
12943         * tests/test-strtod.c (main): Likewise.
12944         * tests/test-trunc1.c (main): Likewise.
12945         * tests/test-truncf1.c (main): Likewise.
12946         * tests/test-truncl.c (main): Likewise.
12947
12948         isnanl: work around icc bug
12949         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
12950
12951 2010-11-03  Eric Blake  <eblake@redhat.com>
12952
12953         tests: fix compiler warnings
12954         * tests/test-getopt.h (test_getopt): Fix condition.
12955         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12956         * tests/test-pipe2.c (main): Likewise.
12957         * tests/test-quotearg-simple.c (main): Avoid icc warning.
12958
12959         utimens: fix broken m4 test
12960         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
12961
12962 2010-10-28  Bruno Haible  <bruno@clisp.org>
12963
12964         posix_spawn*, getdtablesize: Relax license.
12965         * modules/posix_spawn (License): Change to LGPLv2+.
12966         * modules/posix_spawnp (License): Likewise.
12967         * modules/posix_spawn-internal (License): Likewise.
12968         * modules/posix_spawnattr_init (License): Likewise.
12969         * modules/posix_spawnattr_getflags (License): Likewise.
12970         * modules/posix_spawnattr_setflags (License): Likewise.
12971         * modules/posix_spawnattr_getpgroup (License): Likewise.
12972         * modules/posix_spawnattr_setpgroup (License): Likewise.
12973         * modules/posix_spawnattr_getschedparam (License): Likewise.
12974         * modules/posix_spawnattr_setschedparam (License): Likewise.
12975         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
12976         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
12977         * modules/posix_spawnattr_getsigdefault (License): Likewise.
12978         * modules/posix_spawnattr_setsigdefault (License): Likewise.
12979         * modules/posix_spawnattr_getsigmask (License): Likewise.
12980         * modules/posix_spawnattr_setsigmask (License): Likewise.
12981         * modules/posix_spawnattr_destroy (License): Likewise.
12982         * modules/posix_spawn_file_actions_init (License): Likewise.
12983         * modules/posix_spawn_file_actions_addclose (License): Likewise.
12984         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
12985         * modules/posix_spawn_file_actions_addopen (License): Likewise.
12986         * modules/posix_spawn_file_actions_destroy (License): Likewise.
12987         * modules/getdtablesize (License): Likewise.
12988         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
12989
12990 2010-10-26  Bruno Haible  <bruno@clisp.org>
12991
12992         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
12993         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
12994         Cygwin and mingw.
12995         Suggested by Eric Blake.
12996
12997 2010-10-26  Bruno Haible  <bruno@clisp.org>
12998
12999         stdio: Work around compilation error due to renameat() on Solaris 10.
13000         * lib/stdio.in.h: Include <unistd.h> on Solaris.
13001         * lib/renameat.c: Don't include <unistd.h> here.
13002         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
13003         Reported by Paul Eggert and Eric Blake.
13004
13005 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
13006
13007         renameat: port to Solaris 10, which declares renameat in unistd.h
13008
13009         * lib/renameat.c: Include unistd.h before stdio.h, because
13010         Solaris 10 declares renameat in unistd.h.  Problem encountered
13011         when building GNU tar 1.24 on Solaris 10.
13012
13013 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13014
13015         fdopendir: fix C89 compilation
13016         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
13017         compilers.
13018
13019 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13020
13021         inttostr: simplify by removing unnecessary redundancy
13022         * lib/anytostr.c: Don't include verify.h.
13023         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
13024         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
13025         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
13026         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
13027         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
13028         Likewise.
13029         * modules/inttostr (Depends-on): Remove 'verify'.
13030
13031 2010-10-23  Bruno Haible  <bruno@clisp.org>
13032
13033         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
13034         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
13035         Reported by Eric Blake.
13036
13037 2010-10-23  Bruno Haible  <bruno@clisp.org>
13038
13039         Tests: Fix LOCALE_JA on MirBSD 10.
13040         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
13041         to an UTF-8 locale.
13042         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
13043         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13044         Reported by Eric Blake.
13045
13046 2010-10-21  Bruno Haible  <bruno@clisp.org>
13047
13048         nl_langinfo test: Avoid test failure on NetBSD 5.
13049         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
13050         Reported by Eric Blake.
13051
13052 2010-10-21  Eric Blake  <eblake@redhat.com>
13053
13054         c-stack: work around libsigsegv 2.8 bug
13055         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
13056         overflow on at least PowerPC64.
13057
13058 2010-10-17  Bruno Haible  <bruno@clisp.org>
13059
13060         userspec: Drop redundant file.
13061         * modules/userspec (Files): Remove lib/inttostr.h.
13062
13063 2010-10-17  Bruno Haible  <bruno@clisp.org>
13064
13065         nl_langinfo tests: Silence some warnings.
13066         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
13067         Reported by Jim Meyering.
13068
13069 2010-10-17  Bruno Haible  <bruno@clisp.org>
13070
13071         Make use of GCC's attribute __alloc_size__.
13072         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
13073         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
13074         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
13075         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
13076         __alloc_size__.
13077         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
13078         Suggested by Jim Meyering.
13079
13080 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
13081
13082         bootstrap: anchor .gitignore entries.
13083         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
13084         with...
13085         (insert_vc_ignore): ... this new function, which prepends `/' to
13086         all .gitignore entries before passing them to
13087         insert_sorted_if_absent.
13088
13089 2010-10-16  Bruno Haible  <bruno@clisp.org>
13090
13091         nextafter: Fix configure check.
13092         * modules/nextafter (configure.ac): Correct expected prototype.
13093
13094 2010-10-16  Bruno Haible  <bruno@clisp.org>
13095
13096         termios: Update documentation.
13097         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
13098
13099 2010-10-16  Bruno Haible  <bruno@clisp.org>
13100
13101         tests: Make them compile with TinyCC.
13102         * tests/test-strstr.c (main): Remove parentheses around array
13103         initializer.
13104
13105 2010-10-15  Eric Blake  <eblake@redhat.com>
13106
13107         ignore-value: make header idempotent
13108         * lib/ignore-value.h: Add double-inclusion guards.
13109         Reported by Stefan Berger.
13110
13111 2010-10-15  Jim Meyering  <meyering@redhat.com>
13112
13113         GNUmakefile: handle "stable" target, not "major"
13114         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
13115         lists in maint.mk and announce-gen.  Without this, "make stable"
13116         would fail to ensure that $(VERSION) is up to date.
13117
13118 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
13119
13120         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
13121         & co.
13122
13123 2010-10-14  Bruno Haible  <bruno@clisp.org>
13124
13125         vasnprintf: Don't set errno to 0.
13126         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
13127         block that sets it to 0.
13128         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
13129
13130 2010-10-14  Bruno Haible  <bruno@clisp.org>
13131
13132         socketlib: Fix.
13133         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
13134         gl_PREREQ_SYS_H_WINSOCK2.
13135         Reported by Ian Beckwith <ianb@erislabs.net>.
13136
13137 2010-10-13  Jim Meyering  <meyering@redhat.com>
13138
13139         test-select-stdin.c: avoid warn_unused_result warnings
13140         * tests/test-select-stdin.c: Include "macros.h".
13141         ASSERT that read and fflush succeed.
13142
13143 2010-10-13  Jim Meyering  <meyering@redhat.com>
13144
13145         git-version-gen: do require git-VC'd files in cwd
13146         * build-aux/git-version-gen: Reject a git version string
13147         if there are no commits associated with the current directory.
13148         This avoids an unlikely false-positive (unrelated dir whose parent
13149         repository also contains a tag matching v*), as pointed out
13150         by Giuseppe Scrivano in
13151         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
13152
13153 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13154
13155         argv-iter: omit nonconforming declaration
13156         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
13157         enum arg_iter_err declaration, which doesn't conform to C99.
13158         Solaris 10 cc warns about this.
13159
13160 2010-10-13  Eric Blake  <eblake@redhat.com>
13161
13162         termios: fix compilation on mingw
13163         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
13164         (gl_TERMIOS_H): Adjust it on mingw.
13165         * modules/termios (Makefile.am): Substitute new key.
13166         * lib/termios.in.h (includes): Make include_next conditional.
13167         * doc/posix-headers/termios.texi (termios.h): Update
13168         documentation.
13169         Reported by Daniel P. Berrange.
13170
13171 2010-10-13  Jim Meyering  <meyering@redhat.com>
13172
13173         git-version-gen: don't require that .git/ be in the current dir
13174         * build-aux/git-version-gen: Adjust this script so that it works
13175         when run from any working directory beneath the top-level .git/-
13176         containing directory.  Inspired by a patch from Giuseppe Scrivano,
13177         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
13178
13179         test-select: avoid warn_unused_result warnings
13180         * tests/test-select.c: Include "macros.h".
13181         ASSERT that each call to read, write, and pipe succeeds.
13182         While not technically required, also check each "close".
13183         * modules/select-tests (Files): Add tests/macros.h.
13184
13185         test-symlinkat: remove declaration of unused local
13186         * tests/test-symlinkat.c (main): Remove unused local, "buf".
13187
13188         test-inttostr: avoid shadowing warnings
13189         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
13190         and use malloc rather than the stack for the same reason as
13191         mentioned in the comment justifying the other allocation.
13192
13193 2010-10-11  Bruno Haible  <bruno@clisp.org>
13194
13195         stdlib: Allow multiple gnulib generated replacements to coexist.
13196         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
13197         Reported by Sam Steingold <sds@gnu.org>.
13198
13199 2010-10-11  Jim Meyering  <meyering@redhat.com>
13200
13201         fix a documentation typo
13202         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
13203
13204 2010-10-11  Eric Blake  <eblake@redhat.com>
13205
13206         futimens: work around Solaris 11 bug
13207         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
13208         * tests/test-futimens.h (test_futimens): Enhance, rather than
13209         weaken test.
13210         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13211
13212 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
13213
13214         Indentation.
13215         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
13216         higher-level operators more to the left.
13217
13218 2010-10-11  Jim Meyering  <meyering@redhat.com>
13219
13220         test-futimens: avoid unwarranted test failure on Solaris 5.11
13221         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
13222         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
13223         because it tries to dereference the NULL name argument.
13224
13225 2010-10-11  Bruno Haible  <bruno@clisp.org>
13226
13227         Indentation.
13228         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
13229         indentation.
13230
13231 2010-10-11  Jim Meyering  <meyering@redhat.com>
13232
13233         spawn.in.h: make indentation consistent with parentheses
13234         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
13235         Make indentation consistent with parentheses.
13236
13237 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
13238
13239         Fix mismatched parens in previous commit
13240         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
13241         parens.
13242
13243 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13244
13245         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
13246
13247         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
13248         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
13249         * lib/malloca.c: Include "verify.h".
13250         (verify1): Remove, replacing with a verify call.
13251         * lib/relocwrapper.c (verify1): Likewise.
13252         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
13253         Likewise.
13254         * modules/malloca (Depends-on): Add 'verify'.
13255         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
13256         * modules/vasnprintf (Depends-on): Add 'verify'.
13257         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13258         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13259         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13260         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13261         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13262         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13263         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13264
13265         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
13266
13267         Formerly the style was sometimes 2*X - 1, because the C standard
13268         was wrongly thought to disallow ?: in integral constant expressions.
13269         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
13270         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
13271         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13272         * lib/stdint.in.h (_verify_intmax_size): Likewise.
13273         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
13274         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
13275         verify that time_t cannot be floating.
13276
13277 2010-10-08  Eric Blake  <eblake@redhat.com>
13278
13279         time: enforce recent POSIX ruling that time_t is integral
13280         * lib/time.in.h (__time_t_must_be_integral): Detect any
13281         problematic systems, allowing the rest of gnulib to assume POSIX.
13282
13283 2010-10-08  Jim Meyering  <meyering@redhat.com>
13284
13285         fdopendir: fix a bug on systems lacking openat and /proc support
13286         OpenBSD 4.7 is one such system.  The most noticeable effect was
13287         failure of any application making nontrivial use of fts: rm, du,
13288         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
13289           ./rm: traversal failed: `a': Bad file descriptor
13290         Debugging that, you see that even though FD 6 was closed just
13291         prior to the opendir call in fd_clone_opendir, its resulting
13292         dir->dd_fd was 8, rather than the expected value of 6:
13293
13294         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
13295         93                close (fd);
13296         (gdb) n
13297         94                dir = fd_clone_opendir (dupfd);
13298         (gdb) n
13299         95                saved_errno = errno;
13300         (gdb) p dir->dd_fd
13301         $11 = 8
13302
13303         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
13304         The problem is that on OpenBSD, fd_clone_opendir has to resort
13305         to using the old-style save/restore CWD mechanism, due to its
13306         lack of openat/proc support, and *that* would steal the FD (6)
13307         that opendir was supposed to use.
13308
13309         The fix is to squirrel away the desired FD so that save_cwd uses a
13310         different one, and then free the dest FD right before calling opendir.
13311         That guarantees opendir will use the required file descriptor.
13312
13313         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
13314
13315 2010-10-08  Bruno Haible  <bruno@clisp.org>
13316
13317         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
13318         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
13319
13320 2010-10-08  Bruno Haible  <bruno@clisp.org>
13321
13322         nanosleep: Make replacement POSIX compliant.
13323         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
13324         is out of range.
13325         Reported by Jim Meyering.
13326
13327 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13328
13329         bootstrap: add hook for altering gnulib.mk, for Bison
13330         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
13331         the Bison bootstrapping process can rewrite file names and variables
13332         in this file before later parts of 'bootstrap' use the file.
13333         Bison wants to include lib/gnulib.mk from the top-level makefile,
13334         so it needs the file names in this file to be relative to the top
13335         level, not relative to lib; plus it needs variable names to be
13336         rewritten.
13337         (slurp): Use the new function.
13338
13339         bootstrap: reformat for readability
13340         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
13341
13342 2010-10-08  Eric Blake  <eblake@redhat.com>
13343
13344         docs: update cygwin progress
13345         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
13346         1.7.7.
13347         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
13348         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
13349         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
13350         * doc/posix-functions/carg.texi (carg): Likewise.
13351         * doc/posix-functions/cargf.texi (cargf): Likewise.
13352         * doc/posix-functions/casin.texi (casin): Likewise.
13353         * doc/posix-functions/casinf.texi (casinf): Likewise.
13354         * doc/posix-functions/casinh.texi (casinh): Likewise.
13355         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
13356         * doc/posix-functions/catan.texi (catan): Likewise.
13357         * doc/posix-functions/catanf.texi (catanf): Likewise.
13358         * doc/posix-functions/catanh.texi (catanh): Likewise.
13359         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
13360         * doc/posix-functions/ccos.texi (ccos): Likewise.
13361         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
13362         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
13363         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
13364         * doc/posix-functions/cexp.texi (cexp): Likewise.
13365         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
13366         * doc/posix-functions/cimag.texi (cimag): Likewise.
13367         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
13368         * doc/posix-functions/clog.texi (clog): Likewise.
13369         * doc/posix-functions/clogf.texi (clogf): Likewise.
13370         * doc/posix-functions/conj.texi (conj): Likewise.
13371         * doc/posix-functions/conjf.texi (conjf): Likewise.
13372         * doc/posix-functions/cpow.texi (cpow): Likewise.
13373         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
13374         * doc/posix-functions/cproj.texi (cproj): Likewise.
13375         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
13376         * doc/posix-functions/creal.texi (creal): Likewise.
13377         * doc/posix-functions/crealf.texi (crealf): Likewise.
13378         * doc/posix-functions/csin.texi (csin): Likewise.
13379         * doc/posix-functions/csinf.texi (csinf): Likewise.
13380         * doc/posix-functions/csinh.texi (csinh): Likewise.
13381         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
13382         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
13383         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
13384         * doc/posix-functions/ctan.texi (ctan): Likewise.
13385         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
13386         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
13387         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
13388         * doc/posix-headers/complex.texi (complex.h): Likewise.
13389
13390 2010-10-07  Jim Meyering  <meyering@redhat.com>
13391
13392         parse-datetime: avoid compilation failure on OpenBSD 4.7
13393         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
13394         This works around a compilation failure on OpenBSD 4.7:
13395         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
13396
13397 2010-10-07  Eric Blake  <eblake@redhat.com>
13398
13399         docs: update cygwin progress
13400         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
13401         1.7.6.
13402         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13403         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
13404         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
13405         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
13406         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
13407         Likewise.
13408         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
13409         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
13410         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
13411         Likewise.
13412         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
13413         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
13414         Likewise.
13415         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
13416         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
13417         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
13418         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
13419         Likewise.
13420         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
13421         Likewise.
13422         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
13423
13424         docs: update parse-datetime history
13425         * doc/parse-datetime.texi (Authors of parse_datetime): Better
13426         documentation of this function's history and alternatives.
13427
13428         cygwin: use more robust version check
13429         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
13430         exclude an eventual cygwin 1.9.1.
13431         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13432         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13433         (gl_FUNC_STRCASESTR): Likewise.
13434         Reported by Bruno Haible.
13435
13436 2010-10-06  Bruno Haible  <bruno@clisp.org>
13437
13438         string, sys_select: Avoid #including large headers unless necessary.
13439         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
13440         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
13441         OSF/1, BeOS, Haiku.
13442         Reported by Jim Meyering.
13443
13444 2010-10-05  Eric Blake  <eblake@redhat.com>
13445
13446         memmem, strstr, strcasestr: fix bug with long periodic needle
13447         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
13448         periodic needle having false positive.
13449         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
13450         and cygwin 1.7.7.
13451         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
13452         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13453         (gl_FUNC_STRCASESTR): Likewise.
13454         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13455         * tests/test-memmem.c (main): Expose the bug.
13456         * tests/test-strcasestr.c (main): Likewise.
13457         * tests/test-strstr.c (main): Likewise.
13458         * tests/test-c-strcasestr.c (main): Likewise.
13459         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
13460         * doc/posix-functions/strstr.texi (strstr): Likewise.
13461         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13462         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
13463
13464 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13465
13466         parse-datetime: do some more renaming
13467         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
13468         parse_datetime, not get_date.  Mention the renaming.
13469         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
13470         in comments.
13471         * m4/bison.m4: Likewise.
13472
13473 2010-10-05  Eric Blake  <eblake@redhat.com>
13474
13475         parse-datetime: better name than get_date
13476         * NEWS: Reword the deprecation notice.
13477         * modules/get_date: Rename to modules/parse-datetime.
13478         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
13479         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
13480         * lib/get_date.y: Rename to lib/parse-datetime.y.
13481         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
13482         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
13483         * doc/getdate.texi: Provide fallback wrapper.
13484         * lib/getdate.h: Move guts, and wrap...
13485         * lib/parse-datetime.h: ...new file.
13486         * lib/parse-datetime.y (get_date): Rename...
13487         (parse_datetime): ...to this.
13488         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
13489         (gl_PARSE_DATETIME): ...to this.
13490         * doc/posix-functions/getdate.texi (get_date): Provide fallback
13491         documentation.
13492         * modules/getdate (Files): Provide fallback docs and header.
13493         (Notice, Depends-on): Update references.
13494         * tests/test-parse-datetime.c: Likewise.
13495         * DEPENDENCIES: Likewise.
13496         * MODULES.html.sh (Date and time <time.h>): Likewise.
13497         * doc/parse-datetime.texi (Date input formats)
13498         (Authors of parse_datetime): Likewise.
13499         * modules/parse-datetime (Files, configure.ac, Makefile.am)
13500         (Include): Likewise.
13501         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
13502         * gnulib-tool: Likewise.
13503         * m4/bison.m4 (gl_BISON): Likewise.
13504         Suggested by Bruno Haible.
13505
13506 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13507
13508         more ports to Solaris tr, which needs [] around ranges
13509         * gnulib-tool: Solaris tr needs [] around ranges.
13510         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13511         * tests/test-pipe-filter-gi1.c (main): Likewise.
13512         * tests/test-pipe-filter-ii1.c (main): Likewise.
13513
13514 2010-10-05  Eric Blake  <eblake@redhat.com>
13515
13516         bootstrap: fix Solaris regression
13517         * build-aux/bootstrap (check_versions): Solaris tr still needs []
13518         around ranges.
13519         Reported by Pádraig Brady.
13520
13521         bootstrap: work with pkg-config
13522         * build-aux/bootstrap (check_versions): Also transliterate - in
13523         prerequisite name.
13524         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
13525         prerequisites that were already found, to avoid confusion.
13526         Reported by Justin Clift.
13527
13528         faccessat: remove unused wrappers
13529         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
13530         presence of these wrappers dragged in -lgen on Solaris.
13531         Reported by Clemens Brogi; fix suggested by Paul Eggert.
13532
13533 2010-10-05  Jim Meyering  <meyering@redhat.com>
13534
13535         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
13536         * Makefile (sc_pragma_columns): New syntax-check rule.
13537
13538 2010-10-04  Bruno Haible  <bruno@clisp.org>
13539
13540         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
13541         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
13542         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
13543         Reported by Bruce Korb and Eric Blake.
13544
13545 2010-10-04  Bruno Haible  <bruno@clisp.org>
13546
13547         threadlib: Make option --with-libpth-prefix work.
13548         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
13549         use $LIBPTH, not just -lpth.
13550
13551 2010-10-04  Bruno Haible  <bruno@clisp.org>
13552
13553         Avoid line length limitation from HP NonStop system header files.
13554         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
13555         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
13556         * lib/ctype.in.h: Likewise.
13557         * lib/dirent.in.h: Likewise.
13558         * lib/errno.in.h: Likewise.
13559         * lib/fcntl.in.h: Likewise.
13560         * lib/float.in.h: Likewise.
13561         * lib/getopt.in.h: Likewise.
13562         * lib/iconv.in.h: Likewise.
13563         * lib/inttypes.in.h: Likewise.
13564         * lib/langinfo.in.h: Likewise.
13565         * lib/locale.in.h: Likewise.
13566         * lib/math.in.h: Likewise.
13567         * lib/netdb.in.h: Likewise.
13568         * lib/netinet_in.in.h: Likewise.
13569         * lib/poll.in.h: Likewise.
13570         * lib/pthread.in.h: Likewise.
13571         * lib/pty.in.h: Likewise.
13572         * lib/sched.in.h: Likewise.
13573         * lib/se-selinux.in.h: Likewise.
13574         * lib/search.in.h: Likewise.
13575         * lib/signal.in.h: Likewise.
13576         * lib/spawn.in.h: Likewise.
13577         * lib/stdarg.in.h: Likewise.
13578         * lib/stddef.in.h: Likewise.
13579         * lib/stdint.in.h: Likewise.
13580         * lib/stdio.in.h: Likewise.
13581         * lib/stdlib.in.h: Likewise.
13582         * lib/string.in.h: Likewise.
13583         * lib/strings.in.h: Likewise.
13584         * lib/sys_file.in.h: Likewise.
13585         * lib/sys_ioctl.in.h: Likewise.
13586         * lib/sys_select.in.h: Likewise.
13587         * lib/sys_socket.in.h: Likewise.
13588         * lib/sys_stat.in.h: Likewise.
13589         * lib/sys_time.in.h: Likewise.
13590         * lib/sys_times.in.h: Likewise.
13591         * lib/sys_utsname.in.h: Likewise.
13592         * lib/sys_wait.in.h: Likewise.
13593         * lib/sysexits.in.h: Likewise.
13594         * lib/termios.in.h: Likewise.
13595         * lib/time.in.h: Likewise.
13596         * lib/unistd.in.h: Likewise.
13597         * lib/wchar.in.h: Likewise.
13598         * lib/wctype.in.h: Likewise.
13599         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
13600         * modules/ctype (Makefile.am): Likewise.
13601         * modules/dirent (Makefile.am): Likewise.
13602         * modules/errno (Makefile.am): Likewise.
13603         * modules/fcntl-h (Makefile.am): Likewise.
13604         * modules/float (Makefile.am): Likewise.
13605         * modules/getopt-posix (Makefile.am): Likewise.
13606         * modules/iconv-h (Makefile.am): Likewise.
13607         * modules/inttypes (Makefile.am): Likewise.
13608         * modules/langinfo (Makefile.am): Likewise.
13609         * modules/locale (Makefile.am): Likewise.
13610         * modules/math (Makefile.am): Likewise.
13611         * modules/netdb (Makefile.am): Likewise.
13612         * modules/netinet_in (Makefile.am): Likewise.
13613         * modules/poll-h (Makefile.am): Likewise.
13614         * modules/pthread (Makefile.am): Likewise.
13615         * modules/pty (Makefile.am): Likewise.
13616         * modules/sched (Makefile.am): Likewise.
13617         * modules/search (Makefile.am): Likewise.
13618         * modules/selinux-h (Makefile.am): Likewise.
13619         * modules/signal (Makefile.am): Likewise.
13620         * modules/spawn (Makefile.am): Likewise.
13621         * modules/stdarg (Makefile.am): Likewise.
13622         * modules/stddef (Makefile.am): Likewise.
13623         * modules/stdint (Makefile.am): Likewise.
13624         * modules/stdio (Makefile.am): Likewise.
13625         * modules/stdlib (Makefile.am): Likewise.
13626         * modules/string (Makefile.am): Likewise.
13627         * modules/strings (Makefile.am): Likewise.
13628         * modules/sys_file (Makefile.am): Likewise.
13629         * modules/sys_ioctl (Makefile.am): Likewise.
13630         * modules/sys_select (Makefile.am): Likewise.
13631         * modules/sys_socket (Makefile.am): Likewise.
13632         * modules/sys_stat (Makefile.am): Likewise.
13633         * modules/sys_time (Makefile.am): Likewise.
13634         * modules/sys_times (Makefile.am): Likewise.
13635         * modules/sys_utsname (Makefile.am): Likewise.
13636         * modules/sys_wait (Makefile.am): Likewise.
13637         * modules/sysexits (Makefile.am): Likewise.
13638         * modules/termios (Makefile.am): Likewise.
13639         * modules/time (Makefile.am): Likewise.
13640         * modules/unistd (Makefile.am): Likewise.
13641         * modules/wchar (Makefile.am): Likewise.
13642         * modules/wctype (Makefile.am): Likewise.
13643
13644 2010-10-04  Bruno Haible  <bruno@clisp.org>
13645
13646         read-file tests: Avoid a test failure on NonStop Kernel.
13647         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
13648         a regular file.
13649         Reported by Joachim Schmitz <schmitz@hp.com>.
13650
13651 2010-10-03  Bruno Haible  <bruno@clisp.org>
13652
13653         gnulib-tool: Fixes for --create-testdir with --libtool.
13654         * gnulib-tool (func_get_automake_snippet): Don't augment
13655         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
13656         an executable.
13657         (func_create_testdir): Handle module 'alloca' like func_import.
13658         Reported by Bruce Korb <bruce.korb@gmail.com>.
13659
13660 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
13661
13662         Avoid some lines longer than 80 characters.
13663         * lib/stdint.in.h: Break long comment lines.
13664         * lib/math.in.h: Likewise.
13665         (_GL_NUM_UINT_WORDS): New macro, for readability.
13666         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
13667         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
13668         * lib/stdlib.in.h: Likewise.
13669         * lib/spawn.in.h: Likewise.
13670         * lib/sys_socket.in.h: Update an URL.
13671         * lib/sys_stat.in.h: Break long line.
13672
13673 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
13674
13675         Improve pmccabe2html.
13676         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
13677         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
13678         when the sources change. Remove the line in the HTML about "Used
13679         ranges" (which implied that there might be other unused ranges),
13680         rename "Resume" to "Summary" (easier to understand for more users).
13681         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
13682         styles, and some unnecessary blank lines.
13683
13684 2010-10-03  Bruno Haible  <bruno@clisp.org>
13685             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13686
13687         acl: Add support for ACLs on NonStop Kernel.
13688         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
13689         Check whether the function aclsort() exists.
13690         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
13691         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
13692         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13693         (acl_nontrivial [HAVE_ACLSORT]: New function.
13694         (file_has_acl): Implement for NonStop Kernel.
13695         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13696         (qset_acl): Implement for NonStop Kernel.
13697         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
13698         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13699         (main): Implement for NonStop Kernel.
13700         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
13701         Kernel. Handle this flavor.
13702         * tests/test-set-mode-acl.sh: Likewise.
13703         * tests/test-copy-acl.sh: Likewise.
13704         * tests/test-copy-file.sh: Likewise.
13705
13706 2010-10-03  Bruno Haible  <bruno@clisp.org>
13707
13708         Info about ACLs on NonStop Kernel.
13709         * doc/acl-resources.txt: Add info about NonStop Kernel.
13710         References by Joachim Schmitz <schmitz@hp.com>.
13711
13712 2010-10-02  Bruno Haible  <bruno@clisp.org>
13713
13714         Define missing EDQUOT on NonStop Kernel.
13715         * lib/errno.in.h (EDQUOT): Assign a value if missing.
13716         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
13717         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
13718         missing.
13719         * doc/posix-headers/errno.texi: Mention the NSK bug.
13720         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
13721         Reported by Joachim Schmitz <schmitz@hp.com>.
13722
13723 2010-10-02  Bruno Haible  <bruno@clisp.org>
13724
13725         Update doc for POSIX:2008.
13726         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
13727         Update URL of POSIX specification.
13728
13729 2010-10-02  Bruno Haible  <bruno@clisp.org>
13730
13731         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
13732         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
13733         from gnulib, not from Automake.
13734
13735 2010-10-02  Bruno Haible  <bruno@clisp.org>
13736
13737         New module 'system-posix'.
13738         * modules/system-posix: New file.
13739         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
13740         module is present.
13741         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
13742         GNULIB_SYSTEM_POSIX.
13743         * modules/stdlib (Depends-on): Remove sys_wait.
13744         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
13745         * doc/posix-functions/system.texi: Mention the new module.
13746         * doc/posix-headers/stdlib.texi: Likewise.
13747         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
13748         define test_sys_wait_macros to a no-op.
13749         Reported by Sam Steingold <sds@gnu.org>.
13750
13751 2010-09-30  Bruno Haible  <bruno@clisp.org>
13752
13753         More renaming from 'getdate' to 'get_date'.
13754         * doc/get_date.texi: Renamed from doc/getdate.texi.
13755         * modules/get_date (Files): Update.
13756         * MODULES.html.sh (Date and time <time.h>): Update.
13757         * DEPENDENCIES: Update.
13758         * gnulib-tool: Update comment.
13759         * m4/bison.m4 (gl_BISON): Likewise.
13760         * m4/get_date.m4 (gl_GET_DATE): Likewise.
13761
13762 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
13763
13764         bootstrap: support ACLOCAL_FLAGS during aclocal
13765         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
13766         can add additional -I dir for third-party .m4 files.
13767
13768 2010-09-30  Eric Blake  <eblake@redhat.com>
13769
13770         bootstrap: use glibtoolize on MacOS
13771         * build-aux/bootstrap (check_versions): Convert libtool into
13772         libtoolize.
13773         (tool search): Move libtool check earlier, and look for
13774         glibtoolize for MacOS.
13775         (gnulib_tool_options): Auto-add --libtool when appropriate.
13776         Reported by Justin Clift.
13777
13778         poll: fix typo that broke test on MacOS
13779         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
13780         Reported by Justin Clift.
13781
13782         getdate: rename to get_date
13783         Note: getdate.h is not renamed, to minimize client impact.
13784         * modules/getdate: Mark obsolete.  Move old contents...
13785         * modules/get_date: ...to new module name.
13786         * modules/getdate-tests: Move...
13787         * modules/get_date-tests: ...here.
13788         * m4/getdate.m4: Move...
13789         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
13790         * lib/getdate.y: Move...
13791         * lib/get_date.y: ...here.
13792         * tests/test-getdate.c: Move...
13793         * tests/test-get_date.c: ...here.
13794         * doc/posix-functions/getdate.texi (getdate): Update name.
13795         * NEWS: Mention the change.
13796
13797 2010-09-29  Bruno Haible  <bruno@clisp.org>
13798
13799         Separate the module 'waitpid' from the module 'sys_wait'.
13800         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
13801         present.
13802         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
13803         gl_MODULE_INDICATOR_FOR_TESTS.
13804         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
13805         * modules/sys_wait (Depends-on): Remove waitpid.
13806         (Makefile.am): Substitute GNULIB_WAITPID.
13807         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
13808         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
13809         signature only if the 'waitpid' module is present.
13810         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
13811         * NEWS: Mention the change.
13812         * modules/grantpt (Depends-on): Add waitpid.
13813         * modules/wait-process (Depends-on): Likewise.
13814
13815 2010-09-29  Bruno Haible  <bruno@clisp.org>
13816
13817         More tests for module 'sys_wait'.
13818         * modules/sys_wait-c++-tests: New file.
13819         * tests/test-sys_wait-c++.cc: New file.
13820         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
13821         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13822
13823 2010-09-29  Bruno Haible  <bruno@clisp.org>
13824
13825         New module 'waitpid'.
13826         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
13827         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
13828         Don't include <process.h>.
13829         (waitpid): Declare only, using modern idiom.
13830         * m4/waitpid.m4: New file.
13831         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
13832         * modules/waitpid: New file.
13833         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
13834         (Makefile.am): Update.
13835         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13836
13837 2010-09-28  Bruno Haible  <bruno@clisp.org>
13838
13839         poll: Assume ANSI C.
13840         * lib/poll.c (poll): Use an ANSI C declaration.
13841
13842 2010-09-28  Bruno Haible  <bruno@clisp.org>
13843
13844         poll-h: Create poll.h on all platforms.
13845         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
13846         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
13847         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
13848         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
13849         (gl_REPLACE_POLL_H): Don't set POLL_H.
13850         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
13851         * modules/poll-h (Depends-on): Add include_next.
13852         (Makefile.am): Create poll.h unconditionally. Substitute also
13853         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
13854
13855 2010-09-28  Bruno Haible  <bruno@clisp.org>
13856
13857         Tests for module 'poll-h'.
13858         * modules/poll-h-c++-tests: New file.
13859         * tests/test-poll-h-c++.cc: New file.
13860
13861         Tests for module 'poll-h'.
13862         * modules/poll-h-tests: New file.
13863         * tests/test-poll-h.c: New file.
13864
13865 2010-09-28  Bruno Haible  <bruno@clisp.org>
13866
13867         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
13868         * modules/poll-h (Depends-on): Add 'extensions'.
13869
13870 2010-09-28  Bruno Haible  <bruno@clisp.org>
13871
13872         New module 'poll-h'.
13873         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
13874         (poll): Use modern idiom.
13875         * modules/poll-h: New file.
13876         * modules/poll (Files): Remove lib/poll.in.h.
13877         (Depends-on): Add poll-h.
13878         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
13879         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
13880         * m4/poll_h.m4: New file.
13881         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
13882         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
13883         and invoke gl_REPLACE_POLL_H.
13884         * lib/poll.c: Use common idiom.
13885         * tests/test-poll.c: Likewise.
13886         * doc/posix-headers/poll.texi: Mention the poll-h module.
13887         Suggested by Eric Blake.
13888
13889 2010-09-26  Bruno Haible  <bruno@clisp.org>
13890
13891         sys_wait: Implement WSTOPSIG.
13892         * lib/sys_wait.in.h (WSTOPSIG): New macro.
13893         Reported by Simon Josefsson.
13894
13895 2010-09-26  Simon Josefsson  <simon@josefsson.org>
13896
13897         stdlib, sys_wait: Avoid compilation error on mingw.
13898         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
13899
13900 2010-09-26  Bruno Haible  <bruno@clisp.org>
13901
13902         stdlib tests: Avoid code duplication.
13903         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
13904         * modules/sys_wait-tests (Files): Likewise.
13905         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
13906         * tests/test-stdlib.c: Include test-sys_wait.h.
13907         (main): Invoke test_sys_wait_macros.
13908         * tests/test-sys_wait.c: Include test-sys_wait.h.
13909         (main): Invoke test_sys_wait_macros.
13910
13911 2010-09-25  Simon Josefsson  <simon@josefsson.org>
13912
13913         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
13914         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
13915         sure Windows sockets are working before calling getaddrinfo.
13916         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
13917         * doc/gnulib.texi (Windows sockets): Fix typo.
13918
13919 2010-09-25  Bruno Haible  <bruno@clisp.org>
13920
13921         Tests for module 'regex-quote'.
13922         * modules/regex-quote-tests: New file.
13923         * tests/test-regex-quote.c: New file.
13924
13925         New module 'regex-quote'.
13926         * lib/regex-quote.h: New file.
13927         * lib/regex-quote.c: New file.
13928         * modules/regex-quote: New file.
13929         Suggested by Reuben Thomas <rrt@sc3d.org>.
13930
13931 2010-09-24  Bruno Haible  <bruno@clisp.org>
13932
13933         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
13934         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
13935
13936 2010-09-23  Bruno Haible  <bruno@clisp.org>
13937
13938         setenv: Relax license.
13939         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
13940         Blake.
13941         Requested by Eric Blake.
13942
13943 2010-09-22  Bruno Haible  <bruno@clisp.org>
13944
13945         termios: Relax license.
13946         * modules/termios (License): Change to LGPLv2+.
13947         Requested by Eric Blake.
13948
13949 2010-09-22  Bruno Haible  <bruno@clisp.org>
13950
13951         threadlib: Allow the package to change the default to 'no'.
13952         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
13953         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
13954         Reported by Paul Eggert.
13955
13956 2010-09-22  Pádraig Brady  <P@draigbrady.com>
13957             Bruno Haible  <bruno@clisp.org>
13958
13959         Fix endless loop in mbmemcasecoll.
13960         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
13961         byte.
13962         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
13963
13964 2010-09-22  Bruno Haible  <bruno@clisp.org>
13965
13966         Tests for module 'memcoll'.
13967         * modules/memcoll-tests: New file.
13968         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
13969
13970         memcoll, xmemcoll: Clarify size vs. length.
13971         * modules/memcoll.c (memcoll0): Clarify specification.
13972         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
13973         passed to collate_error.
13974
13975 2010-09-22  Bruno Haible  <bruno@clisp.org>
13976
13977         Tests for module 'memcasecmp'.
13978         * modules/memcasecmp-tests: New file.
13979         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
13980
13981 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
13982
13983         * lib/pthread.in.h: Add split double-inclusion guard, and include
13984         system <pthread.h> if there is one.  Use @@-style as in other
13985         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
13986         pthread.h doesn't.
13987         (pthread_mutexattr_destroy, pthread_mutexattr_init):
13988         (pthread_mutexattr_settype, pthread_mutex_trylock):
13989         New static inline functions, if there's no system <pthread.h>.
13990         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
13991         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
13992         Approximate with mutexes if the system lacks spinlocks, as in
13993         MacOS.
13994         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
13995         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
13996         @@-style.  Check for spinlocks separately.
13997         (gl_PTHREAD_DEFAULTS): New macro.
13998         * modules/pthread: Redo to use a more typical style for in.h files.
13999
14000 2010-09-21  Eric Blake  <eblake@redhat.com>
14001
14002         net_if: enhance tests
14003         * tests/test-net_if.c (main): Move signature checks earlier.
14004         Print failures to stderr.
14005         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
14006         Document the bug that we do not yet fix.
14007
14008 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14009
14010         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
14011         about gnulib, not GSS.
14012
14013 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14014
14015         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
14016         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
14017         for Emacs.
14018         * build-aux/pmccabe2html: Make Makefile.am example code more
14019         cut-and-paste friendly.
14020
14021 2010-09-21  Simon Josefsson  <simon@josefsson.org>
14022
14023         * tests/test-net_if.c: New file.
14024         * modules/net_if-tests: New file.
14025
14026 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14027
14028         pthread: add pthread_spin_destroy
14029         * lib/pthread.in.h (pthread_spin_destroy): New function.
14030
14031 2010-09-19  Bruno Haible  <bruno@clisp.org>
14032
14033         gnulib-tool: Fix --help output.
14034         * gnulib-tool (func_usage): Fix help message.
14035         Reported by Reuben Thomas <rrt@sc3d.org>.
14036
14037 2010-09-18  Jim Meyering  <meyering@redhat.com>
14038
14039         maint.mk: avoid unexpanded \n in two diagnostics
14040         * top/maint.mk (sc_prohibit_always_true_header_tests):
14041         Don't use a literal \n in a halt=... assignment.  It would not be
14042         expanded, and the two \n bytes would appear in the diagnostic output
14043         rather than the desired newline.  Use halt=$$(printf ... instead.
14044         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14045
14046 2010-09-18  Bruno Haible  <bruno@clisp.org>
14047
14048         netinet_in: Doc tweak.
14049         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
14050         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14051
14052 2010-09-18  Jim Meyering  <meyering@redhat.com>
14053
14054         init.sh: correct an outdated comment
14055         * tests/init.sh (create_exe_shims_):  s/function/alias/
14056
14057         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
14058         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
14059         a file named "*.exe" is removed between the glob expansion and the
14060         processing of that oddly named file.
14061
14062 2010-09-17  Eric Blake  <eblake@redhat.com>
14063
14064         mirbsd: add some more support
14065         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
14066         in BSD family.
14067         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
14068         devices as OpenBSD.
14069         * m4/host-os.m4 (mirbsd): Add MirBSD.
14070
14071         tests: fix unportable assumption on sys/wait.h
14072         * tests/test-sys_wait.c (main): Relax test.
14073         * tests/test-stdlib.c (main): Likewise.
14074
14075         init.sh: accomodate directory with no .exes
14076         * tests/init.sh: Accomodate directory containing only scripts.
14077
14078         tests: avoid compiler warning
14079         * tests/test-stdlib.c (main): Use the variable.
14080
14081         fdutimens, fdutimensat: update signature, again
14082         * lib/utimens.h (gl_futimens): Delete, and move signature...
14083         (fdutimens): ...here.
14084         (fdutimensat): Rearrange signature.
14085         (lutimensat): Rename variable for clarity.
14086         * lib/fdutimensat.c (fdutimensat): Update signature.
14087         * lib/utimens.c (fdutimens): Likewise.
14088         (gl_futimens): Delete.
14089         (utimens, lutimens): Update callers.
14090         * lib/futimens.c (futimens): Likewise.
14091         * tests/test-fdutimensat.c: Likewise.
14092         * tests/test-utimens.c: Likewise.
14093         * tests/test-futimens.h: Update comment.
14094         * NEWS: Mention this.
14095         Suggested by Paul Eggert.
14096
14097 2010-09-17  Bruno Haible  <bruno@clisp.org>
14098
14099         Take over the maintenance of some older macros from Autoconf.
14100         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
14101         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
14102         GNU Autoconf.
14103         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
14104         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
14105
14106 2010-09-17  Eric Blake  <eblake@redhat.com>
14107
14108         fdutimensat: drop atflag validation
14109         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
14110         with valid fd, to close a race scenario where futimens is
14111         unsupported and FILE was replaced by a symlink.
14112         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
14113         accordingly.
14114         Suggested by Paul Eggert.
14115
14116 2010-09-16  Bruno Haible  <bruno@clisp.org>
14117
14118         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
14119         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
14120
14121 2010-09-16  Bruno Haible  <bruno@clisp.org>
14122
14123         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
14124         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
14125         login_tty exists.
14126         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14127
14128 2010-09-16  Bruno Haible  <bruno@clisp.org>
14129
14130         login_tty: Make the replacement code work on BSD systems.
14131         * lib/login_tty.c: Include <sys/ioctl.h>.
14132         (login_tty): Use ioctl TIOCSCTTY when available.
14133         * modules/login_tty (Depends-on): Add sys_ioctl.
14134         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14135
14136 2010-09-16  Bruno Haible  <bruno@clisp.org>
14137
14138         login_tty: Stricter unit test.
14139         * modules/login_tty-tests (Depends-on): Add tcgetsid.
14140         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
14141         and tcgetsid() after login_tty.
14142         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14143
14144 2010-09-16  Bruno Haible  <bruno@clisp.org>
14145
14146         New module 'tcgetsid'.
14147         * lib/tcgetsid.c: New file.
14148         * m4/tcgetsid.m4: New file.
14149         * modules/tcgetsid: New file.
14150         * modules/termios (Depends-on): Add c++defs, warn-on-use.
14151         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
14152         GNULIB_TCGETSID, HAVE_TCGETSID.
14153         * lib/termios.in.h: Include <sys/types.h>.
14154         (tcgetsid): New declaration.
14155         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
14156         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
14157         * doc/posix-functions/tcgetsid.texi: Mention the new module.
14158         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
14159
14160 2010-09-16  Bruno Haible  <bruno@clisp.org>
14161
14162         Tests for module 'termios'.
14163         * modules/termios-c++-tests: New file.
14164         * modules/termios-tests: New file.
14165         * tests/test-termios-c++.cc: New file.
14166         * tests/test-termios.c: New file.
14167
14168         New module 'termios'.
14169         * modules/termios: New file.
14170         * lib/termios.in.h: New file.
14171         * m4/termios_h.m4: New file.
14172         * doc/posix-headers/termios.texi: Mention the new module.
14173
14174 2010-09-16  Eric Blake  <eblake@redhat.com>
14175
14176         fdutimensat: add an atflag parameter
14177         * lib/fdutimensat.c (fdutimensat): Add new parameter.
14178         * lib/utimens.h (fdutimensat): Update prototype.
14179         * tests/test-fdutimensat.c: Adjust test to match.
14180         * NEWS: Document the change.
14181         Suggested by Paul Eggert.
14182
14183 2010-09-16  Bruno Haible  <bruno@clisp.org>
14184
14185         Fix typos in comments.
14186         * lib/striconveh.h: Fix typo in comment.
14187         * lib/login_tty.c (login_tty): Likewise.
14188
14189 2010-09-15  Bruno Haible  <bruno@clisp.org>
14190
14191         stdlib: clarify MirBSD WEXITSTATUS bug
14192         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
14193         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14194
14195 2010-09-15  Eric Blake  <eblake@redhat.com>
14196
14197         stdlib: work around MirBSD WEXITSTATUS bug
14198         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
14199         * modules/stdlib (Depends-on): Add sys_wait.
14200         * tests/test-sys_wait.c (main): Enhance test.
14201         * tests/test-stdlib.c (main): Likewise.
14202         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
14203
14204         docs: mention MacOS issue with WEXITSTATUS(constant)
14205         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
14206         issue.
14207         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14208
14209         strnlen: add tests
14210         * modules/strnlen-tests: New file.
14211         * tests/test-strnlen.c: Likewise.
14212
14213 2010-09-14  Bruno Haible  <bruno@clisp.org>
14214
14215         unistr/base: Avoid link errors when module 'libunistring' is also used.
14216         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
14217         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
14218         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
14219         Declare also when HAVE_LIBUNISTRING is set.
14220         Reported by Pádraig Brady <P@draigbrady.com>.
14221
14222 2010-09-14  Eric Blake  <eblake@redhat.com>
14223
14224         test-rawmemchr: make more robust
14225         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
14226         (Depends-on, configure.ac): Add needed prerequisites to use it.
14227         * modules/memchr-tests (Files, Depends-on, configure.ac):
14228         Likewise, to avoid implicit reliance on memchr module prereqs.
14229         * tests/test-memchr.c (main): Ensure proper masking.
14230         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
14231         reads.
14232
14233         memchr: detect glibc Alpha bug
14234         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
14235         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
14236         Alpha.
14237         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
14238         * tests/test-memchr.c (main): Enhance test.
14239         Reported by Nelson H. F. Beebe.
14240
14241 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14242
14243         fts, getcwd, glob: audit for dirfd returning -1
14244         * lib/fts.c (opendir): Remove #define; no longer used.
14245         (opendirat): New arg PDIR_FD.  All callers changed.
14246         (fts_build, _opendir2): Use new opendirat to avoid the need for
14247         dirfd, or for checking whether dirfd returns a negative value.
14248         Don't use opendir; always use openat followed by fdopendir.
14249         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
14250         it.
14251         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
14252         returns -1 here.
14253         * modules/fts (Depends-on): Remove dirfd.
14254         * modules/getcwd (Depends-on): Likewise.
14255
14256 2010-09-13  Eric Blake  <eblake@redhat.com>
14257
14258         float: fix broken MirBSD header
14259         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
14260         * doc/posix-headers/float.texi (float.h): Document it.
14261
14262 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14263
14264         fts: use O_NOFOLLOW to avoid race condition when opening a directory
14265         * lib/fts.c (opendirat): New arg extra_flags.
14266         (__opendir2): Use it to avoid following symlinks when opening
14267         a directory, if symlinks are not supposed to be followed.  See
14268         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
14269
14270         fdopendir: preserve argument fd before returning
14271         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
14272         (fdopendir_with_dup, fd_clone_opendir): New static functions.
14273         (fdopendir): Use them, arranging for FD to be open to the same
14274         directory that it was when it started.  (It might be temporarily
14275         closed while fdopendir is running, so this not thread- or
14276         signal-safe.)  Be careful to do the right thing even when file
14277         descriptors are scarce and dup fails with errno == EMFILE.  See
14278         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
14279
14280 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
14281
14282         regex: Pass the system regex if its only problem is 32-bit regoff_t.
14283         * NEWS: Document change.
14284         * m4/regex.m4: Disable test for regoff_t size.
14285
14286 2010-09-13  Jim Meyering  <meyering@redhat.com>
14287
14288         fts: don't operate on an invalid file descriptor after failed dup
14289         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
14290         negative file descriptor.
14291
14292 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
14293
14294         savedir: add streamsavedir, deprecate fdsavedir
14295         * NEWS: Mention deprecation of fdsavedir.
14296         * lib/savedir.c (streamsavedir): New extern function, whose name
14297         ends in "savedir" to be consistent with the others.  This differs
14298         from savedirstream in that it doesn't close its argument.  The
14299         next version of GNU tar will use this instead of fdsavedir, to
14300         avoid some race conditions and conserve file descriptors.
14301         (savedirstream): Reimplement as a wrapper around streamsavedir.
14302         (fdsavedir): Add a comment deprecating this function.  As far as
14303         I know, only GNU tar used it, and GNU tar doesn't need it any more.
14304         * lib/savedir.h (streamsavedir): New decl.
14305         (fdsavedir): Add a comment deprecating this.
14306
14307 2010-09-10  Bruno Haible  <bruno@clisp.org>
14308
14309         langinfo: Fix last commit.
14310         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
14311         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
14312         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14313
14314 2010-09-10  Bruno Haible  <bruno@clisp.org>
14315
14316         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
14317         * lib/progreloc.c (O_EXEC): Define fallback.
14318
14319 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14320
14321         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
14322         * NEWS: Document recent changes to fcntl-h.
14323         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
14324         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
14325         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
14326         Similarly for O_SEARCH; this last was already true, but not documented.
14327         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
14328         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
14329         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
14330         Likewise.
14331         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
14332         is zero, not whether it is defined.
14333         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
14334         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
14335         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
14336
14337 2010-09-10  Bruno Haible  <bruno@clisp.org>
14338
14339         langinfo, nl_langinfo: Fix for IRIX 5.3.
14340         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
14341         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
14342         HAVE_LANGINFO_YESEXPR.
14343         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
14344         HAVE_LANGINFO_YESEXPR.
14345         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
14346         HAVE_LANGINFO_T_FMT_AMPM is 0.
14347         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
14348         HAVE_LANGINFO_YESEXPR is 0.
14349         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
14350         NOEXPR.
14351         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
14352         * doc/posix-functions/nl_langinfo.texi: Likewise.
14353         Reported by Eric Blake.
14354
14355 2010-09-10  Bruno Haible  <bruno@clisp.org>
14356
14357         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
14358         * doc/glibc-functions/login_tty.texi: Mention the include file problem
14359         on FreeBSD 8.0 and OpenBSD 4.6.
14360         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
14361         * m4/pty_h.m4 (gl_PTY_H): Likewise.
14362         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
14363         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
14364         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
14365         ac_includes_default.
14366         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14367
14368 2010-09-09  Eric Blake  <eblake@redhat.com>
14369
14370         strsignal: work around NetBSD bug
14371         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
14372         * lib/string.in.h (includes): Likewise.
14373         * doc/posix-functions/strsignal.texi (strsignal): Document the
14374         bug.
14375         Reported by Nelson H. F. Beebe.
14376
14377         gnulib-tool: work with NetBSD /bin/sh
14378         * gnulib-tool (func_cache_var, func_cache_lookup_module)
14379         (func_get_description, func_get_comment, func_get_status)
14380         (func_get_notice, func_get_applicability, func_get_filelist)
14381         (func_get_dependencies, func_get_autoconf_early_snippet)
14382         (func_get_autoconf_snippet, func_get_automake_snippet)
14383         (func_get_include_directive, func_get_link_directive)
14384         (func_get_license, func_get_maintainer, func_import): Avoid
14385         shell syntax errors from parsing syntax extensions.
14386
14387 2010-09-09  Bruno Haible  <bruno@clisp.org>
14388
14389         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14390         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
14391         a reliable way to determine whether the 'alias' command works.
14392
14393 2010-09-08  Jim Meyering  <meyering@redhat.com>
14394
14395         init.sh: penalize a set-x-impaired shell; don't disqualify it
14396         * tests/init.sh: Too many shells corrupt application stderr when
14397         you set -x, so we can't afford to disqualify them, since at least
14398         on Irix-6.5, that would disqualify all bourne shells.
14399         Instead, use a two-pass approach.
14400         On the first pass, try to find a shell that meets the stricter
14401         condition that set -x does not corrupt stderr.
14402         If no shell meets the stricter condition, retest each candidate
14403         shell, but without that extra condition.  Finally, when
14404         VERBOSE=yes is requested and set -x might cause trouble, simply
14405         issue a warning and refrain from enabling debug output.
14406
14407 2010-09-08  Eric Blake  <eblake@redhat.com>
14408
14409         unsetenv: fix OpenBSD bug
14410         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
14411         * doc/posix-functions/unsetenv.texi (unsetenv): Update
14412         documentation.
14413         Reported by Jim Meyering.
14414
14415         strtod: work around IRIX 6.5 bug
14416         * lib/strtod.c (strtod): Reparse number on shorter string if
14417         exponent parse was invalid.
14418         * tests/test-strtod.c (main): Add check for "0x1p 2".
14419         Reported by Tom G. Christensen.
14420
14421         getopt: optimize previous patch
14422         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
14423         empty variable.  Speed up awk script.
14424         Reported by Paolo Bonzini.
14425
14426 2010-09-08  Jim Meyering  <meyering@redhat.com>
14427
14428         test.sh: disqualify shells for which set -x corrupts stderr
14429         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
14430         and OpenBSD 4.7.  They make it so with "set -x", environment settings
14431         appear in stderr output.  For example, this command:
14432             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
14433         prints "P=1" on those two systems:
14434
14435 2010-09-08  Bruno Haible  <bruno@clisp.org>
14436
14437         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14438         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
14439         commands, because some shells ignore redirections when there is an
14440         error in the command lookup.
14441         Reported by Eric Blake.
14442
14443 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
14444
14445         * lib/regex.h: Fix a mention of `regex_compile' (should be
14446         `re_compile_pattern').
14447         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
14448         (re_set_registers): Correct name of parameter in comment.
14449
14450         * doc/regex.texi: Add documentation for missing syntax flags.
14451         Remove commented-out documentation of defunct syntax option
14452         RE_NO_EMPTY_ALTS.
14453         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
14454         Add documentation of re_set_registers.
14455         Document trick to re-use a pattern buffer by setting fastmap manually.
14456         Update documentation of struct re_pattern_buffer per public members.
14457         Uncomment documentation of equivalence class operators and
14458         collating symbol operators, since they are now implemented,
14459         Explain leftmost-longest matching in relation to alternatives.
14460         Tidy documentation of substring matching.
14461         Remove POSIX documentation, which is done better in
14462         glibc, and refer the reader there. Keep BSD API documentation, as
14463         that is not readily available elsewhere.
14464
14465 2010-09-07  Eric Blake  <eblake@redhat.com>
14466
14467         getopt: handle POSIXLY_CORRECT set but not exported
14468         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
14469         export state of POSIXLY_CORRECT, due to bash set -o posix.
14470         Reported by Dustin J. Mitchell.
14471
14472 2010-09-05  Bruno Haible  <bruno@clisp.org>
14473
14474         gnulib-tool: Highlight the changed options.
14475         * gnulib-tool (func_usage): Display the --import, --add-import,
14476         --remove-import explanations in bold font.
14477
14478 2010-09-06  Karl Berry  <karl@gnu.org>
14479
14480         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
14481
14482 2010-09-05  Bruno Haible  <bruno@clisp.org>
14483
14484         uniwidth/width: Update comment.
14485         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
14486         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
14487
14488 2010-09-05  Bruno Haible  <bruno@clisp.org>
14489
14490         isinf, isnan: Relax license.
14491         * modules/isinf (License): Change from GPL to LGPL, with consent from
14492         Ben Pfaff.
14493         * modules/isnan (License): Likewise.
14494         Requested by Ludovic Courtès.
14495
14496 2010-09-04  Bruno Haible  <bruno@clisp.org>
14497
14498         gnulib-tool: Help migration from --import to --add-import or --update.
14499         * gnulib-tool: Emit a verbose error message when --import is used
14500         without any module name.
14501
14502 2010-09-04  Bruno Haible  <bruno@clisp.org>
14503
14504         Update doc about gnulib-tool.
14505         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
14506         'gnulib-tool --update' in more detail.
14507         Reported by Eric Blake.
14508
14509 2010-09-04  Bruno Haible  <bruno@clisp.org>
14510
14511         gnulib-tool: Change --import. New options --add/remove-import.
14512         * gnulib-tool: New options --add-import, --remove-import.
14513         (func_usage): Document them.
14514         (have_associative): Define always.
14515         (func_import): In import mode, don't merge the specified settings with
14516         the cached settings. Implement remove-import mode.
14517         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
14518         Explain when to use them versus --import.
14519         (Simple update): Use --add-import instead of --import.
14520         * NEWS: Mention the change.
14521
14522 2010-09-04  Bruno Haible  <bruno@clisp.org>
14523
14524         * doc/gnulib-tool.texi (Initial import): Update paragraph about
14525         separate gnulib.mk.
14526
14527 2010-09-04  Bruno Haible  <bruno@clisp.org>
14528
14529         gnulib-tool: Don't talk about CVS any more.
14530         * gnulib-tool (func_usage, func_import): Write "version control"
14531         instead of CVS.
14532
14533 2010-09-04  Jim Meyering  <meyering@redhat.com>
14534
14535         maint.mk: avoid obscure sc_copyright_check failure in coreutils
14536         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
14537         false positives (whose names may be ill-chosen) when searching
14538         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
14539         would cause a false-positive.
14540
14541         avoid coreutils "make distcheck" failure
14542         Coreutils tests with an absolute build directory name that contains
14543         a space.  Not quoting this directory name caused a failure.
14544         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
14545         * tests/test-vc-list-files-cvs.sh: Likewise.
14546
14547 2010-09-04  Bruno Haible  <bruno@clisp.org>
14548
14549         gnulib-tool: Avoid error when run in a package without Makefile.am.
14550         * gnulib-tool: When collecting the m4dirs in a package that does not
14551         have a Makefile.am, eliminate those directories that contain no
14552         gnulib-cache.m4. Fix expression that counts these directories.
14553
14554 2010-09-04  Bruno Haible  <bruno@clisp.org>
14555
14556         update-copyright test: Improve output when perl is missing or too old.
14557         * tests/test-update-copyright.sh: Move test of Perl version down after
14558         the test whether Perl exists. Provide an explanation relating Perl's
14559         error message to Automake's SKIP: message.
14560
14561 2010-09-04  Bruno Haible  <bruno@clisp.org>
14562
14563         Don't augment PATH in TESTS_ENVIRONMENT.
14564         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
14565         set abs_aux_dir instead of augmenting PATH.
14566         * modules/vc-list-files-tests (Makefile.am): Likewise.
14567         * tests/test-update-copyright.sh: Augment PATH here.
14568         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
14569         path_prepend_.
14570         * tests/test-vc-list-files-git.sh: Likewise.
14571
14572 2010-09-04  Jim Meyering  <meyering@redhat.com>
14573
14574         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
14575         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
14576
14577 2010-09-04  Bruno Haible  <bruno@clisp.org>
14578
14579         strdup: Fix compilation error in C++ mode.
14580         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
14581         the macro.
14582
14583 2010-09-04  Bruno Haible  <bruno@clisp.org>
14584
14585         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
14586         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
14587         macro into a function.
14588         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14589
14590 2010-09-04  Bruno Haible  <bruno@clisp.org>
14591
14592         Set PATH_SEPARATOR the same way autoconf does.
14593         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
14594         the value of PATH_SEPARATOR the same way autoconf-generated configure
14595         scripts do.
14596         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
14597         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
14598
14599 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14600
14601         Set PATH_SEPARATOR the same way autoconf does.
14602         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
14603         the same way autoconf-generated configure scripts do.
14604         * posix-modules: Likewise.
14605
14606 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
14607
14608         hash: fix safe_hasher const typo
14609         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
14610         const; otherwise, there is a type error later.
14611
14612 2010-09-02  Jim Meyering  <meyering@redhat.com>
14613
14614         test-update-copyright.sh: require perl 5.8.0
14615         * tests/test-update-copyright.sh: Require 5.8.0,
14616         which Tom G. Christensen has confirmed is adequate,
14617         while 5.6.1 is not.
14618
14619 2010-09-02  Eric Blake  <eblake@redhat.com>
14620
14621         tests: init.sh improvements for re-exec'ing with zsh
14622         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
14623         -vx through shell re-exec.
14624         Reported by Tom G. Christensen.
14625
14626         wctype: fix typo in previous commit
14627         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
14628         Reported by Ludovic Courtès.
14629
14630 2010-09-02  Jim Meyering  <meyering@redhat.com>
14631
14632         test-update-copyright.sh: skip test if Perl is too old
14633         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
14634         Reported by Tom G. Christensen.
14635
14636 2010-09-02  Bruno Haible  <bruno@clisp.org>
14637
14638         wctype: Avoid compilation error on IRIX 6.5.30.
14639         * lib/wctype.in.h (iswblank): Declare with a replacement if
14640         REPLACE_ISWBLANK is set.
14641         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
14642         declared. Set REPLACE_ISWBLANK.
14643         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
14644         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
14645         * doc/posix-headers/wctype.texi: Likewise.
14646         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14647
14648 2010-09-01  Bruno Haible  <bruno@clisp.org>
14649
14650         New module 'socketlib'.
14651         * modules/socketlib: New file.
14652         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
14653         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
14654         * modules/sockets (Depends-on): Add socketlib.
14655         Suggested by Sam Steingold <sds@gnu.org>.
14656
14657 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14658
14659         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
14660
14661         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
14662         when one needs search access to a directory but not read access.
14663         On systems where it is available, it works in some cases where
14664         O_RDONLY does not, namely on directories that are searchable but
14665         not readable, and which need only to be searchable.  If O_SEARCH
14666         is not available, fall back to the traditional method of using
14667         O_RDONLY.
14668
14669         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
14670         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
14671         when opening a directory that needs only to be searchable.
14672         * lib/chdir-safer.c (chdir_no_follow): Likewise.
14673         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
14674         * lib/openat-proc.c (openat_proc_name): Likewise.
14675         * lib/openat.c (openat_needs_fchdir): Likewise.
14676         * lib/save-cwd.c (save_cwd): Likewise.
14677         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
14678
14679 2010-08-28  Bruno Haible  <bruno@clisp.org>
14680
14681         New module 'host-cpu-c-abi'.
14682         * modules/host-cpu-c-abi: New file.
14683         * m4/host-cpu-c-abi.m4: New file, based on part of
14684         clisp/src/m4/general.m4.
14685         Requested by Sam Steingold <sds@gnu.org>.
14686
14687 2010-08-31  Eric Blake  <eblake@redhat.com>
14688         and Jim Meyering  <meyering@redhat.com>
14689
14690         hash: factor, and guard against misbehaving hasher function
14691         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
14692         of table->hasher's return value.  Also protect against a hash value
14693         so large that adding it to table->bucket results in a NULL pointer.
14694         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
14695         Use it in place of open-coded check-and-abort.
14696
14697 2010-08-30  Bruno Haible  <bruno@clisp.org>
14698
14699         hash: silence spurious clang warning
14700         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
14701         Reported by Eric Blake.
14702
14703 2010-08-30  Eric Blake  <eblake@redhat.com>
14704
14705         strstr, memmem, strcasestr: avoid leaked shell message
14706         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
14707         FreeBSD.
14708         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14709         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14710
14711         tests: silence clang warning
14712         * tests/test-malloca.c (do_allocation): Avoid dead store.
14713
14714 2010-08-29  Bruno Haible  <bruno@clisp.org>
14715
14716         gettext: Fix recent mistake.
14717         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
14718
14719 2010-08-29  Bruno Haible  <bruno@clisp.org>
14720
14721         selinux-h: Offer a --without-selinux option.
14722         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
14723         --without-selinux was specified, skip all tests and define
14724         HAVE_SELINUX_SELINUX_H to 0.
14725         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
14726         set LIB_SELINUX to empty.
14727         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
14728         gl_LIBSELINUX. If --without-selinux was specified, replace
14729         selinux/context.h.
14730         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
14731
14732 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14733             Bruno Haible  <bruno@clisp.org>
14734
14735         Make the module 'realloc-gnu' work again on AIX and OSF/1.
14736         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
14737         of HAVE_REALLOC.
14738         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
14739         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
14740         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
14741         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14742
14743 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14744             Bruno Haible  <bruno@clisp.org>
14745
14746         Make the module 'calloc-gnu' work again on AIX and OSF/1.
14747         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
14748         HAVE_CALLOC.
14749         * lib/xmalloc.c: Update accordingly.
14750         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
14751         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
14752         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
14753
14754 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14755             Bruno Haible  <bruno@clisp.org>
14756
14757         Make the module 'malloc-gnu' work again on AIX and OSF/1.
14758         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
14759         HAVE_MALLOC.
14760         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
14761         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
14762         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14763
14764 2010-08-29  Bruno Haible  <bruno@clisp.org>
14765
14766         Update modules list.
14767         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14768         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
14769         (String handling <string.h>): Add astrxfrm.
14770         (File system functions): Add readlinkat.
14771
14772 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14773
14774         Tests for module 'realloc-gnu'.
14775         * modules/realloc-gnu-tests: New file.
14776         * tests/test-realloc-gnu.c: New file.
14777
14778         Tests for module 'calloc-gnu'.
14779         * modules/calloc-gnu-tests: New file.
14780         * tests/test-calloc-gnu.c: New file.
14781
14782         Tests for module 'malloc-gnu'.
14783         * modules/malloc-gnu-tests: New file.
14784         * tests/test-malloc-gnu.c: New file.
14785
14786 2010-08-28  Bruno Haible  <bruno@clisp.org>
14787
14788         Rename module 'realloc' -> 'realloc-gnu'.
14789         * modules/realloc-gnu: New file, copied from modules/realloc.
14790         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
14791         obsolete.
14792         * modules/mgetgroups (Depends-on): Update.
14793         * doc/posix-functions/realloc.texi: Update.
14794         * NEWS: Mention the change.
14795
14796         Rename module 'calloc' -> 'calloc-gnu'.
14797         * modules/calloc-gnu: New file, copied from modules/calloc.
14798         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
14799         obsolete.
14800         * doc/posix-functions/calloc.texi: Update.
14801         * NEWS: Mention the change.
14802
14803         Rename module 'malloc' -> 'malloc-gnu'.
14804         * modules/malloc-gnu: New file, copied from modules/malloc.
14805         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
14806         obsolete.
14807         * modules/argp (Depends-on): Update.
14808         * modules/regex (Depends-on): Update.
14809         * doc/posix-functions/malloc.texi: Update.
14810         * NEWS: Mention the change.
14811
14812 2010-08-28  Eric Blake  <eblake@redhat.com>
14813
14814         pread, pwrite: add missing dependency
14815         * modules/pread (Depends-on): Add extensions.
14816         * modules/pwrite (Depends-on): Likewise.
14817
14818 2010-08-28  Bruno Haible  <bruno@clisp.org>
14819
14820         unistr/u*-strchr: Fix tests dependencies.
14821         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
14822         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
14823         Reported by Ian Beckwith <ianb@erislabs.net>.
14824
14825 2010-08-28  Bruno Haible  <bruno@clisp.org>
14826
14827         read-file: Don't occupy too much unused memory.
14828         * lib/read-file.c (fread_file): Shrink the buffer at the end.
14829
14830 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
14831             Eric Blake  <eblake@redhat.com>
14832             Bruno Haible  <bruno@clisp.org>
14833
14834         read-file: Avoid memory reallocations with regular files.
14835         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
14836         (fread_file): With regular files, use the remaining length as the
14837         initial buffer size.  Check against overflow.
14838         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
14839         sys_stat.
14840
14841 2010-08-28  Bruno Haible  <bruno@clisp.org>
14842
14843         ftello: Relax license.
14844         * modules/ftello (License): Relax to LGPLv2+.
14845         Reported by Eric Blake.
14846
14847 2010-08-28  Bruno Haible  <bruno@clisp.org>
14848
14849         Avoid relocwrapper link errors due to gnulib replacement functions.
14850         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
14851         function.
14852         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14853
14854 2010-08-28  Bruno Haible  <bruno@clisp.org>
14855
14856         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
14857         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
14858         defined.
14859         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
14860         Suggested by Eric Blake.
14861
14862 2010-08-28  Bruno Haible  <bruno@clisp.org>
14863
14864         sys_socket, netdb: Ensure socklen_t gets defined.
14865         * modules/sys_socket (Depends-on): Add socklen.
14866         * modules/netdb (Depends-on): Likewise.
14867         * modules/getaddrinfo (Depends-on): Remove socklen.
14868         * modules/getsockopt (Depends-on): Likewise.
14869         * modules/setsockopt (Depends-on): Likewise.
14870         * tests/test-sys_socket.c: Check that socklen_t is defined.
14871         * tests/test-netdb.c: Likewise.
14872         * m4/socklen.m4: Update comments.
14873         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14874
14875 2010-08-27  Eric Blake  <eblake@redhat.com>
14876
14877         login_tty: add missing dependency
14878         * modules/login_tty (Depends-on): Add pty.
14879
14880 2010-08-26  Eric Blake  <eblake@redhat.com>
14881
14882         lib-symbol-versions: fix m4 quoting
14883         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
14884         format for AC_LINK_IFELSE.
14885
14886         glob: fix compile test
14887         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
14888
14889         btowc: fix missing file
14890         * modules/btowc (Files): Also ship locale-fr.m4.
14891
14892         lseek: fix link test
14893         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
14894         AC_LINK_IFELSE.
14895
14896         include_next: silence autoconf 2.68 warning
14897         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
14898         AC_COMPILE_IFELSE as special.
14899         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
14900         autoconf < 2.68.
14901
14902         acl: fix compilation test
14903         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
14904         AC_COMPILE_IFELSE.
14905
14906 2010-08-26  Bruno Haible  <bruno@clisp.org>
14907
14908         Modernize AC_TRY_RUN invocations.
14909         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
14910         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14911         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
14912         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
14913         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
14914         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
14915         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14916         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14917         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14918         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14919         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14920         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14921         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14922         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14923         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14924         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
14925         gl_MBRLEN_NUL_RETVAL): Likewise.
14926         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14927         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14928         Likewise.
14929         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14930         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14931         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14932         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14933         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
14934         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
14935         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
14936         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14937         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
14938         Likewise.
14939         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
14940         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
14941         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14942         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14943         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14944         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14945         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14946         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
14947         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14948         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14949
14950 2010-08-26  Bruno Haible  <bruno@clisp.org>
14951
14952         Modernize AC_TRY_LINK invocations.
14953         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
14954         AC_TRY_LINK.
14955         * m4/argp.m4 (gl_ARGP): Likewise.
14956         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14957         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14958         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
14959         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14960         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14961         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
14962         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14963         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14964         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14965         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14966         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14967         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
14968         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
14969         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14970         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
14971         * m4/hostent.m4 (gl_HOSTENT): Likewise.
14972         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14973         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
14974         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
14975         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
14976         Likewise.
14977         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
14978         Likewise.
14979         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
14980         Likewise.
14981         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
14982         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
14983         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
14984         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14985         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14986         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14987         * m4/servent.m4 (gl_SERVENT): Likewise.
14988         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14989         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14990         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14991         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14992         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14993         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14994         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14995         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14996         * modules/tsearch-tests (configure.ac): Likewise.
14997
14998 2010-08-26  Bruno Haible  <bruno@clisp.org>
14999
15000         Modernize AC_TRY_COMPILE invocations.
15001         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
15002         AC_TRY_COMPILE.
15003         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
15004         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
15005         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15006         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
15007         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15008         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15009         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15010         * m4/lock.m4 (gl_LOCK): Likewise.
15011         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15012         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15013         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
15014         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15015         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15016         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
15017         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15018         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
15019         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15020         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15021         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15022         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15023         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
15024         extraneous semicolon.
15025
15026 2010-08-26  Jim Meyering  <meyering@redhat.com>
15027
15028         stat-time: relax license LGPL
15029         * modules/stat-time (License): Change from GPL to LGPL,
15030         with consent from all contributors, for use in libguile.
15031         Requested by Ludovic Courtès.
15032
15033 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
15034
15035         poll: return immediately on POLLHUP.
15036         * lib/poll.c (poll): Always set timeout before wait_timeout is
15037         computed.
15038
15039 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15040
15041         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
15042         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
15043         rmdir ("dir/.//"), unlinkat.
15044
15045 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15046
15047         stdbool: avoid spurious failure with modern xlc
15048         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15049
15050 2010-08-24  Bruno Haible  <bruno@clisp.org>
15051
15052         getloadavg: simplify code
15053         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
15054         gl_have_func. Update comments.
15055
15056 2010-08-24  Eric Blake  <eblake@redhat.com>
15057
15058         getloadavg: don't define SVR4 on cygwin
15059         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
15060         only define SVR4 when -lkvm is required.
15061         Reported by Yaakov Selkowitz.
15062
15063 2010-08-24  Bruno Haible  <bruno@clisp.org>
15064
15065         priv-set: fix comment
15066         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
15067
15068 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15069
15070         priv-set: fix comments
15071         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
15072         to match code, as suggested by David Bartley in:
15073         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
15074
15075 2010-08-23  Eric Blake  <eblake@redhat.com>
15076
15077         stdbool: avoid rejecting clang
15078         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15079         * tests/test-stdbool.c: Enable more tests if using the system
15080         <stdbool.h> instead of the gnulib replacement.
15081         (main): Move xlc bug test to a runtime test for all compilers.
15082         Reported by Anders Kaseorg.
15083
15084         argz: fix shell quoting issue
15085         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
15086         Reported by Charles Wilson.
15087
15088 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
15089             Erik Faye-Lund <kusmabite@gmail.com>
15090
15091         poll, select: handle ERROR_BROKEN_PIPE.
15092         * lib/poll.c (win32_compute_revents): Return POLLHUP when
15093         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15094         * lib/select.c (win32_compute_revents): Do not mark a pipe
15095         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15096
15097 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
15098
15099         fts: allow compilation with C++
15100         * lib/fts_.h: Specify extern "C" linkage with C++.
15101
15102 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15103
15104         Fix gnulib-tool sed script de-commentation for AIX sed.
15105         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
15106         sed.
15107
15108 2010-08-17  Eric Blake  <eblake@redhat.com>
15109
15110         test-stddef: test for (some) offsetof bugs
15111         * tests/test-stddef.c: Enhance test to ensure correct type of
15112         offsetof.
15113         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
15114         that we are not fixing at this time.
15115
15116 2010-08-15  Bruno Haible  <bruno@clisp.org>
15117
15118         stpncpy: Allow stpncpy to be defined as a macro.
15119         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
15120         if it's already correctly declared.
15121         * lib/string.in.h (stpncpy): Undefine before redefining.
15122         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
15123
15124 2010-08-14  Bruno Haible  <bruno@clisp.org>
15125
15126         Rename module 'memxfrm' to 'amemxfrm'.
15127         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
15128         (amemxfrm): Renamed from memxfrm.
15129         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
15130         (amemxfrm): Renamed from memxfrm.
15131         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
15132         * NEWS: Mention the change.
15133         * MODULES.html.sh (String handling <string.h>): Update.
15134         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
15135         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
15136         * lib/unicase/u16-casexfrm.c: Likewise.
15137         * lib/unicase/u32-casexfrm.c: Likewise.
15138         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
15139         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
15140         * lib/uninorm/u16-normxfrm.c: Likewise.
15141         * lib/uninorm/u32-normxfrm.c: Likewise.
15142         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
15143         memxfrm.
15144         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
15145         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
15146         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
15147         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
15148         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
15149         Suggested by Paul Eggert.
15150
15151 2010-08-14  Bruno Haible  <bruno@clisp.org>
15152
15153         Tests for module 'astrxfrm'.
15154         * modules/astrxfrm-tests: New file.
15155         * tests/test-astrxfrm.c: New file.
15156
15157         New module 'astrxfrm'.
15158         * lib/astrxfrm.h: New file.
15159         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
15160         * modules/astrxfrm: New file.
15161
15162 2010-08-14  Reuben Thomas <rrt@sc3d.org>
15163
15164         regex: Tweak doc.
15165         * doc/regex.texi (Overview): Don't mention regex.c.
15166         (GNU Regular Expression Compiling): Likewise.
15167         (Match-end-of-line Operator): Mention 'not_eol'.
15168
15169 2010-08-14  Brian Gough  <bjg@gnu.org>
15170             Bruno Haible  <bruno@clisp.org>
15171
15172         git-merge-changelog: add doc relating to use with bzr and hg.
15173         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
15174
15175 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
15176
15177         pthread: fix pthread.h creation for srcdir != builddir
15178         * modules/pthread (Makefile.am): Fix the rule to work also in a
15179         non-srcdir build.
15180
15181 2010-08-13  Karl Berry  <karl@gnu.org>
15182
15183         * doc/regex.texi (Predefined Syntaxes): @smallexample.
15184         * doc/posix-*/*: force line break before @url of POSIX
15185         specifications.
15186         Suggested by Werner Lemberg.
15187
15188 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15189
15190         strtod: fix const diagnostic
15191         * lib/strtod.c (strtod): Don't assign const char * to char *,
15192         as this elicits a warning from GCC when warnings are enabled.
15193
15194 2010-08-10  Pádraig Brady <P@draigbrady.com>
15195         and Eric Blake  <eblake@redhat.com>
15196
15197         copy-acl: ignore ENOTSUP on HP-UX
15198         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
15199         so that it is available for HP-UX.
15200         * lib/copy-acl.c (qcopy_acl): Use it.
15201         Reported by Patrick M. Callahan.
15202
15203 2010-08-10  Eric Blake  <eblake@redhat.com>
15204
15205         open, chown: relax license
15206         * modules/open (License): Change to LGPLv2+, with consent by all
15207         authors, for use in augeas.
15208         * modules/chown (License): Likewise.
15209         * modules/lchown (Likewise): Likewise.
15210         Requested by Adam Stokes.
15211
15212 2010-08-09  Karl Berry  <karl@gnu.org>
15213
15214         * build-aux/ar-lib: new file, import from Automake.
15215         * config/srclist.txt: autocheck for updates.
15216
15217 2010-08-09  Eric Blake  <eblake@redhat.com>
15218
15219         readlinkat: adjust client modules
15220         * modules/areadlinkat (Depends-on): Use readlinkat, not
15221         symlinkat.
15222         * modules/areadlinkat-with-size (Depends-on): Likewise.
15223
15224         mknod: be more vocal about danger of running tests as root
15225         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
15226         root, since that is just asking for problems.
15227         Suggested by Bruno Haible, based on a report by Rainer Tammer.
15228
15229         readlinkat: split into its own module
15230         * modules/symlinkat: Split readlinkat...
15231         * modules/readlinkat: ...into separate module.
15232         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
15233         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
15234         * lib/symlinkat.c (readlinkat): Move...
15235         * lib/readlinkat.c: ...into new file.
15236         * modules/symlinkat-tests: Split readlinkat test...
15237         * modules/readlinkat-tests: ...into separate module.
15238         * tests/test-symlinkat.c: Split...
15239         * tests/test-readlinkat.c: ...into new file.
15240         * NEWS: Document the split.
15241         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15242         * lib/unistd.in.h (readlinkat): Likewise.
15243         Suggested by Bruno Haible.
15244
15245 2010-08-08  Bruno Haible  <bruno@clisp.org>
15246
15247         memxfrm: Speed up.
15248         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
15249         that usually only one call to strxfrm is necessary for each string
15250         part.
15251         Reported by Paul Eggert <eggert@cs.ucla.edu>.
15252
15253 2010-08-07  Karl Berry  <karl@gnu.org>
15254
15255         * doc/posix-headers/limits.texi,
15256         * doc/posix-functions/malloc.texi,
15257         * doc/posix-functions/strsignal.texi: missing @item.
15258         * doc/ld-version-script.texi: spurious leading i.
15259         * doc/regex.texi (Interval Operators): no commas inside @var.
15260
15261 2010-08-01  Bruno Haible  <bruno@clisp.org>
15262
15263         Integrate the regex documentation.
15264         * doc/gnulib.texi: Define 'cn' index.
15265         (Regular expressions): New a chapter that includes regex.texi and
15266         regexprops-generic.texi.
15267         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
15268         syntax.
15269
15270         Whitespace cleanup.
15271         * doc/regex.texi: Remove trailing spaces.
15272
15273         Add regex documentation.
15274         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
15275         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
15276         Written by Kathy A. Hargreaves and Karl Berry.
15277
15278 2010-08-01  Bruno Haible  <bruno@clisp.org>
15279
15280         link: Update documentation.
15281         * doc/posix-functions/link.texi: Update regarding Solaris.
15282
15283 2010-07-31  Bruno Haible  <bruno@clisp.org>
15284
15285         Update modules list.
15286         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
15287         (String handling <string.h>): Add memcmp2, memxfrm.
15288         (Container data structures): Add xlist, xsublist, xoset.
15289         (Core language properties): Add alignof, unused-parameter.
15290         (Process control, Numeric conversion functions <stdlib.h>): Renamed
15291         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
15292         (Unibyte characters <ctype.h>): New section.
15293         (String handling <string.h>): New section.
15294         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
15295         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
15296         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
15297         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
15298         tan, tanh, tanl, y0, y1, yn.
15299         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
15300         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
15301         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
15302         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
15303         unlockpt, vdprintf, vdprintf-posix.
15304         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
15305         (File system functions): Add concat-filename, sys_file, sys_ioctl,
15306         xconcat-filename.
15307         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
15308         getdtablesize, pipe2, pipe2-safer.
15309         (Security): New section.
15310         (Networking functions): Add accept4.
15311         (Signal handling): Add sigpipe.
15312         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
15313         mbmemcasecoll.
15314         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
15315         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
15316         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
15317         pipe-filter-ii.
15318         (Misc): Add argp-version-etc, login_tty, parse-duration.
15319
15320 2010-07-31  Bruno Haible  <bruno@clisp.org>
15321
15322         Improve doc in MODULES.html.
15323         * modules/linkat (Description): Add the word "function".
15324         * modules/mkfifo (Description): Likewise.
15325         * modules/mknod (Description): Likewise.
15326         * modules/remove (Description): Likewise.
15327         * modules/renameat (Description): Likewise.
15328         * modules/stat (Description): Likewise.
15329         * modules/symlink (Description): Likewise.
15330         * modules/unlink (Description): Likewise.
15331
15332 2010-07-31  Bruno Haible  <bruno@clisp.org>
15333
15334         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
15335         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
15336         option --enable/disable-c++ instead of --enable/disable-cxx.
15337         * NEWS: Mention the change.
15338
15339 2010-07-31  Bruno Haible  <bruno@clisp.org>
15340
15341         readlink, areadlink: Relax test a bit.
15342         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
15343         alternative to ENOTDIR.
15344         * tests/test-areadlink.h (test_areadlink): Likewise.
15345         Reported by Rainer Tammer.
15346
15347 2010-07-31  Bruno Haible  <bruno@clisp.org>
15348
15349         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
15350         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
15351         character, perform the search using U_STRCHR.
15352         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
15353         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
15354         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
15355         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
15356         Suggested by Paolo Bonzini.
15357
15358 2010-07-31  Bruno Haible  <bruno@clisp.org>
15359
15360         unistr/u*-strstr: Fix dependencies.
15361         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
15362         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
15363         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
15364
15365 2010-07-31  Bruno Haible  <bruno@clisp.org>
15366
15367         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
15368         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
15369         the beginning of the loop.
15370         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
15371         cases in 'switch' statement.
15372
15373         unistr/u8-strchr: Fix several bugs.
15374         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
15375         the string. When not found, return NULL, not a pointer near the end.
15376
15377         More tests for unistr/u8-strchr.
15378         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
15379         that the function does not read past the first occurrence of the byte
15380         being searched.
15381         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
15382         * tests/unistr/test-u16-strchr.c (main): New function.
15383         * tests/unistr/test-u32-strchr.c (main): New function.
15384
15385 2010-07-31  Bruno Haible  <bruno@clisp.org>
15386
15387         posix-modules: Ignore backup files of documentation files.
15388         * posix-modules: grep only through files named *.texi.
15389
15390 2010-07-31  Bruno Haible  <bruno@clisp.org>
15391
15392         symlinkat: Fix documentation.
15393         * doc/posix-functions/readlinkat.texi: Fix module name.
15394
15395 2010-07-31  Bruno Haible  <bruno@clisp.org>
15396
15397         fchownat: Replace also when chown has the trailing slash bug.
15398         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
15399         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
15400         introduced on 2010-04-10.
15401         Reported by Rainer Tammer.
15402
15403 2010-07-31  Bruno Haible  <bruno@clisp.org>
15404
15405         linkat: Work around AIX 7.1 bug.
15406         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
15407         whether linkat handles trailing slash correctly. If not, replace linkat
15408         and define LINKAT_TRAILING_SLASH_BUG.
15409         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
15410         check whether (fd1,file1) points to a directory if file1 or file2 ends
15411         in a slash. Code taken from lib/link.c.
15412         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
15413         Reported by Rainer Tammer.
15414
15415 2010-07-31  Bruno Haible  <bruno@clisp.org>
15416
15417         Correctly determine whether pow is available in libc on AIX 7 with xlc.
15418         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
15419         This disables an xlc optimization that was causing wrong test results.
15420         Reported by Rainer Tammer.
15421
15422 2010-07-31  Bruno Haible  <bruno@clisp.org>
15423
15424         iconv: Work around AIX 6.1..7.1 bug.
15425         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
15426         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
15427         cross-compiling, guess no on all versions of AIX.
15428         Reported by Rainer Tammer.
15429
15430 2010-07-31  Bruno Haible  <bruno@clisp.org>
15431
15432         readlink: Relax test a bit.
15433         * tests/test-readlink.h (test_readlink): Allow different errno value
15434         when readlink is called with a file name that ends in / and refers to
15435         a file.
15436         Suggested by Eric Blake.
15437         Reported by Rainer Tammer.
15438
15439 2010-07-31  Bruno Haible  <bruno@clisp.org>
15440
15441         copysign: Does not require -lm on glibc systems.
15442         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
15443         gl_COMMON_DOUBLE_MATHFUNC.
15444         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
15445
15446 2010-07-31  Bruno Haible  <bruno@clisp.org>
15447
15448         duplocale: Work around AIX 7.1 bug.
15449         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
15450         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
15451         * lib/duplocale.c (rpl_duplocale): Update comment.
15452         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
15453         Reported by Rainer Tammer.
15454
15455 2010-07-30  Bruno Haible  <bruno@clisp.org>
15456
15457         dirfd: Avoid link error on AIX 7.1.
15458         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
15459         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
15460         exist, set REPLACE_DIRFD.
15461         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
15462         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
15463         * doc/posix-functions/dirfd.texi: Update.
15464         Reported by Rainer Tammer.
15465
15466 2010-07-30  Eric Blake  <eblake@redhat.com>
15467
15468         strtod: next round of AIX fixes
15469         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
15470         exponent.
15471         * tests/test-strtod.c (main): Enhance tests.
15472         * doc/posix-functions/strtod.texi (strtod): Document next bug.
15473         Reported by Rainer Tammer.
15474
15475         futimens: fix configure check
15476         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
15477         Reported by Bruno Haible.
15478
15479 2010-07-30  Bruno Haible  <bruno@clisp.org>
15480
15481         getline: Update regarding AIX.
15482         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
15483         Reported by Rainer Tammer.
15484
15485 2010-07-30  Bruno Haible  <bruno@clisp.org>
15486
15487         wcwidth: Drop replacement on AIX 7.
15488         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
15489         AIX 7.
15490         Reported by Rainer Tammer.
15491
15492 2010-07-30  Bruno Haible  <bruno@clisp.org>
15493
15494         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
15495         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
15496         a 'char *'.
15497         Reported by Rainer Tammer.
15498
15499 2010-07-30  Bruno Haible  <bruno@clisp.org>
15500
15501         unlink: Update regarding AIX.
15502         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
15503         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
15504         Reported by Rainer Tammer.
15505
15506 2010-07-30  Bruno Haible  <bruno@clisp.org>
15507
15508         symlink: Update regarding AIX.
15509         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
15510         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
15511         Reported by Rainer Tammer.
15512
15513 2010-07-30  Bruno Haible  <bruno@clisp.org>
15514
15515         strndup: Update regarding AIX.
15516         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
15517         AIX 7.
15518         Reported by Rainer Tammer.
15519
15520 2010-07-30  Bruno Haible  <bruno@clisp.org>
15521
15522         stat: Update regarding AIX.
15523         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
15524         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
15525         Reported by Rainer Tammer.
15526
15527 2010-07-30  Bruno Haible  <bruno@clisp.org>
15528
15529         truncl: Fix autoconf test.
15530         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
15531         whether truncl works.
15532         Reported by Rainer Tammer.
15533
15534 2010-07-30  Bruno Haible  <bruno@clisp.org>
15535
15536         round: Update regarding AIX.
15537         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
15538         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
15539         Reported by Rainer Tammer.
15540
15541 2010-07-30  Bruno Haible  <bruno@clisp.org>
15542
15543         rename: Update regarding AIX.
15544         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
15545         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
15546         Reported by Rainer Tammer.
15547
15548 2010-07-30  Bruno Haible  <bruno@clisp.org>
15549
15550         printf.m4: Update regarding AIX.
15551         * m4/printf.m4: Update comments regarding AIX.
15552         Reported by Rainer Tammer.
15553
15554 2010-07-30  Bruno Haible  <bruno@clisp.org>
15555
15556         iconv: Update regarding AIX.
15557         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
15558         AIX 7.
15559         Reported by Rainer Tammer.
15560
15561 2010-07-30  Bruno Haible  <bruno@clisp.org>
15562
15563         getopt: Update regarding AIX.
15564         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
15565         no on AIX.
15566         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
15567         Reported by Rainer Tammer.
15568
15569 2010-07-30  Bruno Haible  <bruno@clisp.org>
15570
15571         ldexpl; Update regarding AIX.
15572         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
15573         on AIX 7.
15574         Reported by Rainer Tammer.
15575
15576 2010-07-30  Bruno Haible  <bruno@clisp.org>
15577
15578         frexpl: Update regarding AIX.
15579         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
15580         on AIX 7.
15581         Reported by Rainer Tammer.
15582
15583 2010-07-30  Bruno Haible  <bruno@clisp.org>
15584
15585         open, fopen: Update regarding AIX.
15586         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
15587         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15588         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
15589         * doc/posix-functions/fopen.texi: Likewise.
15590         Reported by Rainer Tammer.
15591
15592 2010-07-30  Bruno Haible  <bruno@clisp.org>
15593
15594         chown: Update doc regarding AIX.
15595         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
15596         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
15597         Reported by Rainer Tammer.
15598
15599 2010-07-30  Eric Blake  <eblake@redhat.com>
15600
15601         strtod: fix bug in replacement function on AIX
15602         * lib/strtod.c (strtod): Special case broken "0x" parse in
15603         underlying strtod.
15604         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
15605         * doc/posix-functions/strtod.texi (strtod): Likewise.
15606         Reported by Rainer Tammer.
15607
15608 2010-07-30  Bruno Haible  <bruno@clisp.org>
15609
15610         mbrlen: Fix cross-compilation guess for AIX.
15611         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
15612         guess. Leftover from 2008-12-22.
15613
15614 2010-07-30  Bruno Haible  <bruno@clisp.org>
15615
15616         mbrtowc: Fix cross-compilation guess for AIX.
15617         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
15618         guess. Leftover from 2008-12-21.
15619
15620 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
15621
15622         init.sh: work around trap limitation of some shells
15623         * tests/init.sh (setup_): Move exit trap outside of shell function.
15624
15625 2010-07-29  Eric Blake  <eblake@redhat.com>
15626
15627         strtod: aid debugging
15628         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
15629         understanding why strtod is rejected.
15630
15631 2010-07-28  Bruno Haible  <bruno@clisp.org>
15632
15633         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
15634         * lib/unistr/u8-chr.c: Include <string.h>.
15635         * tests/unistr/test-u8-chr.c: Likewise.
15636         * tests/unistr/test-u16-chr.c: Likewise.
15637         * tests/unistr/test-u32-chr.c: Likewise.
15638         * tests/unistr/test-u8-strchr.c: Likewise.
15639         * tests/unistr/test-u16-strchr.c: Likewise.
15640         * tests/unistr/test-u32-strchr.c: Likewise.
15641         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
15642         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
15643         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
15644         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
15645
15646 2010-07-28  Bruno Haible  <bruno@clisp.org>
15647
15648         Use spaces for indentation, not tabs.
15649         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
15650
15651 2010-07-27  Bruno Haible  <bruno@clisp.org>
15652
15653         mbspcasecmp: Fix function specification.
15654         * lib/string.in.h (mbspcasecmp): Fix specification comment.
15655         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
15656         Reported by Eric Blake <eblake@redhat.com>.
15657
15658 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
15659
15660         timespec: use cast and not conditional, as truncation isn't possible
15661         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
15662         instead of a conditional.  Comment about the situation in more detail.
15663         This undoes most of the 2009-10-29 patch.
15664
15665 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
15666
15667         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
15668         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
15669         * lib/unistr/u8-strchr.c: Likewise.
15670         * modules/unistr/u8-chr: Depend on memchr.
15671
15672         unistr/u*-strchr: add tests
15673         * modules/unistr/u8-strchr-tests: New file.
15674         * modules/unistr/u16-strchr-tests: New file.
15675         * modules/unistr/u32-strchr-tests: New file.
15676         * tests/unistr/test-strchr.h: New file.
15677         * tests/unistr/test-u8-strchr.c: New file.
15678         * tests/unistr/test-u16-strchr.c: New file.
15679         * tests/unistr/test-u32-strchr.c: New file.
15680
15681         unistr/u*-chr: test multibyte sequences more
15682         * tests/unistr/test-chr.h: Do complete testing of the characters in the
15683         test vector.
15684         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
15685         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
15686         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
15687
15688         unistr/u*-chr: test multibyte sequences
15689         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
15690
15691         unistr/u*-chr: prepare for multibyte tests
15692         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
15693         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
15694         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
15695         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
15696         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
15697         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
15698
15699 2010-07-18  Bruno Haible  <bruno@clisp.org>
15700
15701         unistr/u8-strchr: Optimize non-ASCII argument case.
15702         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
15703         because the first byte often matches anyway.
15704         Reported by Pádraig Brady <P@draigbrady.com>.
15705
15706 2010-07-15  Karl Berry  <karl@gnu.org>
15707
15708         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
15709
15710 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
15711
15712         getcwd: on Solaris, work better if ancestors are inaccessible
15713         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
15714         buffer and size, try again with a large buffer.  This works better
15715         on Solaris, since its getcwd succeeds even if the path to the root
15716         is inaccessible, and this is helpful in common cases such as .zfs
15717         hidden directories.  Problem reported by J Chapman Flack in
15718         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
15719         Use system getcwd if it's declared, not merely if it's partly
15720         working; use the partly-working test only to avoid needless effort
15721         if the system getcwd fails.
15722         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
15723         comment that was already obsolete and is now even more obsolete.
15724         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
15725         now might call strdup.
15726
15727 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
15728
15729         pthread: Add enough so that coreutils/src/sort.c compiles.
15730         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
15731         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
15732         gnulib. Include <sched.h> and <time.h>, as per POSIX.
15733         Include <sys/types.h>, in case it defines pthread_t.
15734         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
15735         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
15736         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
15737         (pthread_rwlockattr_t, pthread_spinlock_t):
15738         New typedefs, if HAVE_PTHREAD_T is not defined.
15739         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
15740         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
15741         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
15742         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
15743         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
15744         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
15745         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
15746         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
15747         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
15748         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
15749         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
15750         New macros.
15751         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
15752         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
15753         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
15754         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
15755         (pthread_spin_unlock): New dummy functions.
15756         (pthread_create): Return EAGAIN; don't set errno.
15757         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
15758         require AC_C_INLINE.
15759         * modules/pthread (Depends-on): Add sched, time.
15760         (pthread.h): Use AM_V_GEN.
15761
15762 2010-07-13  Bruno Haible  <bruno@clisp.org>
15763
15764         striconveh: Don't malloc memory if the result buffer is sufficient.
15765         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
15766         buffer if its size is sufficient.
15767         Reported by Ludovic Courtès <ludo@gnu.org>.
15768
15769 2010-07-13  Bruno Haible  <bruno@clisp.org>
15770
15771         strtod: Add safety check.
15772         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
15773
15774 2010-07-12  Bruno Haible  <bruno@clisp.org>
15775
15776         Unify tests that set gl_cv_func_ldexpl_no_libm.
15777         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
15778         gl_FUNC_LDEXPL.
15779         (gl_FUNC_LDEXPL): Invoke it.
15780         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15781
15782 2010-07-12  Bruno Haible  <bruno@clisp.org>
15783
15784         Unify tests that set gl_cv_func_ldexp_no_libm.
15785         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
15786         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
15787         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
15788         (configure.ac): Simply invoke gl_FUNC_LDEXP.
15789         * modules/strtod (Files): Add m4/ldexp.m4.
15790
15791 2010-07-12  Bruno Haible  <bruno@clisp.org>
15792
15793         Unify tests that set gl_cv_func_frexpl_no_libm.
15794         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
15795         gl_FUNC_FREXPL_NO_LIBM.
15796         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
15797         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15798
15799 2010-07-12  Bruno Haible  <bruno@clisp.org>
15800
15801         Unify tests that set gl_cv_func_frexp_no_libm.
15802         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
15803         gl_FUNC_FREXP_NO_LIBM.
15804         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
15805         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15806
15807 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
15808
15809         memcoll: clarify sizes versus lengths, document better, and tweak perf
15810         * lib/memcoll.c (strcoll_loop, memcoll0):
15811         Improve quality of descriptive comments.  Name variables
15812         consistently as to whether they are lengths (which do not include
15813         terminating null) versus sizes (which do).
15814         * lib/xmemcoll.c (xmemcoll0): Likewise.
15815         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
15816         returned when s1size == 0; this is easier to compile and saves
15817         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
15818
15819 2010-07-12  Bruno Haible  <bruno@clisp.org>
15820
15821         Tests for module '_Exit'.
15822         * modules/_Exit-tests: New file.
15823         * tests/test-_Exit.sh: New file.
15824         * tests/test-_Exit.c: New file.
15825
15826         New module '_Exit'.
15827         * lib/stdlib.in.h (__attribute__): New macro.
15828         (_Exit): New declaration.
15829         * lib/_Exit.c: New file.
15830         * m4/_Exit.m4: New file.
15831         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
15832         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
15833         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
15834         * modules/_Exit: New file.
15835         * tests/test-stdlib-c++.cc (_Exit): Check signature.
15836         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
15837
15838 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
15839
15840         strtod: make it more-accurate typically, and don't require libm
15841         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
15842         Include limits.h.  Don't include string.h.
15843         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
15844         (locale_isspace): New function, so that no casts are needed to
15845         check whether *s is a space.
15846         (ldexp): Provide an unused dummy if not available.
15847         (scale_radix_exp, parse_number, underlying_strtod): New functions.
15848         (strtod): Use them.  This implementation prefers to use the
15849         underlying strtod if available, falling back on our own code
15850         only to fix known bugs.  This is more likely to produce an
15851         accurate result.  Also, it avoids the use of libm functions.
15852         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
15853         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
15854         was absent, but it caused a test failure with coreutils.
15855         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
15856         with libm.
15857         * modules/strtod (Makefile.am, Link): libm is no longer needed.
15858         * modules/strtod-tests (Makefile.am): Likewise.
15859
15860 2010-07-11  Pádraig Brady  <P@draigBrady.com>
15861             Bruno Haible  <bruno@clisp.org>
15862
15863         unistr/u8-strchr: Optimize ASCII argument case.
15864         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
15865
15866 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15867
15868         (x)memcoll: minor tweaks
15869         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
15870         is after the type that it qualifies.
15871         (memcoll0): Likewise.
15872         * lib/memcoll.h (memcoll0): Likewise.
15873         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
15874         * lib/xmemcoll.h (xmemcoll0): Likewise.
15875         * lib/memcoll.c (memcoll0): Correct the comment.  This function
15876         differs from memcoll in that the NUL byte is part of the argument.
15877         Omit the abort-checks, as performance is a real issue here.  Plus,
15878         the checks were wrong anyway (an off-by-one error).  Omit local
15879         variable 'diff', as it's a bit clearer that way.
15880         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
15881         no longer needed.
15882
15883 2010-07-08  Chen Guo <chenguo4@yahoo.com>
15884
15885         (x)memcoll: speedup when input is known to be NUL delimited
15886         * lib/memcoll.c: Include stdlib.
15887         (memcoll0): New function.
15888         (strcoll_loop): New function, refactored for use in both memcoll
15889         and memcoll0.
15890         * lib/memcoll.h (memcoll0): Add prototype.
15891         * lib/xmemcoll.c (xmemcoll0): New function.
15892         (collate_error): New function, refactored for use in both xmemcoll
15893         and xmemcoll0.
15894         * lib/xmemcoll.h (xmemcoll0): Add prototype.
15895         * m4/memcoll.m4: add inline invocation.
15896
15897 2010-07-06  Pádraig Brady  <P@draigBrady.com>
15898
15899         * build-aux/bootstrap: Remove any local translations
15900         from the translation project synchronization directory,
15901         so that local only translations are not distributed.
15902
15903 2010-07-04  Bruno Haible  <bruno@clisp.org>
15904
15905         fsusage: Clarify which code applies to which platforms.
15906         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
15907         platform.
15908         * lib/fsusage.c (get_fs_usage): Likewise.
15909
15910 2010-07-04  Bruno Haible  <bruno@clisp.org>
15911
15912         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
15913         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
15914         Reported by Martin Lambers <marlam@marlam.de>.
15915
15916 2010-07-04  Jim Meyering  <meyering@redhat.com>
15917
15918         hash: once again explicitly disallow insertion of NULL
15919         * lib/hash.c (hash_insert0): Reinstate just-removed test:
15920         inserting a NULL pointer cannot work with these functions.
15921         Add a comment with details.
15922         This reverts part of the 2010-07-01 commit, 5bef1a35
15923         "hash: extend module to deal with non-pointer keys".
15924
15925 2010-07-01  Bruno Haible  <bruno@clisp.org>
15926
15927         stdbool: Update doc.
15928         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
15929         Info from Christian Weisgerber <naddy@mips.inka.de>.
15930
15931 2010-07-01  Jim Meyering  <meyering@redhat.com>
15932
15933         hash: extend module to deal with non-pointer keys
15934         * lib/hash.c (hash_insert0): New interface, much like hash_insert
15935         but that allows insertion of non-pointer entries.
15936         Do not disallow an ENTRY value of NULL.
15937         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
15938         * lib/hash.h (hash_insert0): Declare.
15939
15940 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15941
15942         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
15943         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
15944         not present (i.e. with autoconf 2.59 and when using gettextize, not
15945         gnulib), require AC_GNU_SOURCE instead.
15946
15947 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
15948
15949         idpriv-drop: Fix tests.
15950         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
15951         not to the test-idpriv-droptemp program.
15952
15953 2010-06-29  Bruno Haible  <bruno@clisp.org>
15954
15955         string: Fix syntax error with g++ 2.96.
15956         * lib/string.in.h (__pure__): Remove definition.
15957         (_GL_ATTRIBUTE_PURE): New macro.
15958         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
15959         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
15960         Reported by Christian Weisgerber <naddy@mips.inka.de>.
15961
15962 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
15963
15964         unitypes: Fix bug introduced on 2010-05-18.
15965         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
15966
15967 2010-06-22  Eric Blake  <eblake@redhat.com>
15968
15969         memmem: slight optimization
15970         * lib/str-two-way.h (critical_factorization): Update comments.
15971         Reduce work during factorization phase.
15972         Reported by Carlos Bueno <carlos@bueno.org>.
15973
15974 2010-06-21  Bruno Haible  <bruno@clisp.org>
15975
15976         Fix HAVE_CALLOC_POSIX misnomer.
15977         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
15978         !HAVE_CALLOC_POSIX.
15979         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
15980         HAVE_CALLOC_POSIX.
15981         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
15982         instead of HAVE_CALLOC_POSIX.
15983         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
15984         HAVE_CALLOC_POSIX.
15985
15986         Use modern idiom for calloc() replacement.
15987         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
15988         AC_FUNC_CALLOC.
15989         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
15990         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
15991         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15992         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
15993         (gl_REPLACE_CALLOC): New macro.
15994
15995 2010-06-21  Bruno Haible  <bruno@clisp.org>
15996
15997         Fix HAVE_REALLOC_POSIX misnomer.
15998         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
15999         !HAVE_REALLOC_POSIX.
16000         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
16001         HAVE_REALLOC_POSIX.
16002         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
16003         instead of HAVE_REALLOC_POSIX.
16004         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
16005         HAVE_REALLOC_POSIX.
16006
16007         Use modern idiom for realloc() replacement.
16008         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
16009         AC_FUNC_REALLOC.
16010         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
16011         Autoconf's AC_FUNC_REALLOC.
16012         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16013         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
16014         (gl_REPLACE_REALLOC): New macro.
16015         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16016
16017 2010-06-21  Bruno Haible  <bruno@clisp.org>
16018
16019         Fix HAVE_MALLOC_POSIX misnomer.
16020         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
16021         !HAVE_MALLOC_POSIX.
16022         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
16023         HAVE_MALLOC_POSIX.
16024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
16025         instead of HAVE_MALLOC_POSIX.
16026         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
16027         HAVE_MALLOC_POSIX.
16028
16029         Use modern idiom for malloc() replacement.
16030         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
16031         AC_FUNC_MALLOC.
16032         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
16033         Autoconf's AC_FUNC_MALLOC.
16034         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16035         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
16036         (gl_REPLACE_MALLOC): New macro.
16037         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16038
16039 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
16040
16041         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
16042         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
16043         This macro takes 3 arguments, not 4.
16044
16045 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
16046
16047         ipv6: fix detection under mingw
16048         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
16049         in6_addr.
16050
16051 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
16052
16053         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
16054         that strtod() works when cross-compiling to a glibc version known
16055         to work.
16056
16057 2010-06-15  Bruno Haible  <bruno@clisp.org>
16058
16059         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
16060
16061 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
16062
16063         select: Correct timeout.
16064         * lib/select.c (rpl_select): Compute wait_timeout correctly.
16065
16066 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16067
16068         git-version-gen: init shell var to avoid env var influence
16069         * build-aux/git-version-gen (v): Init shell var to empty.
16070
16071 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
16072
16073         priv-set: Don't assume that priv.h exists merely because getppriv does.
16074         See Jan Andersen's bug report about AIX 5L in
16075         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
16076         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
16077         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
16078         * lib/priv-set.h: Likewise.
16079         * tests/test-priv-set.c: Likewise.
16080
16081 2010-06-13  Bruno Haible  <bruno@clisp.org>
16082
16083         relocatable: Make it easier to test whether to install wrappers.
16084         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
16085         RELOCATABLE_VIA_WRAPPER.
16086
16087 2010-06-13  Bruno Haible  <bruno@clisp.org>
16088
16089         gnulib-tool: Display specified modules and dependencies differently.
16090         * gnulib-tool (func_show_module_list): New function.
16091         (func_import, func_create_testdir): Invoke it.
16092         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16093
16094 2010-06-13  Bruno Haible  <bruno@clisp.org>
16095
16096         gnulib-tool: Align code of func_import and func_create_testdir.
16097         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
16098         specified_modules.
16099
16100 2010-06-12  Jim Meyering  <meyering@redhat.com>
16101
16102         test-inttostr: avoid spurious failure on Solaris 9
16103         * tests/test-inttostr.c (main): Skip the test when snprintf fails
16104         to accept "%ju".  Reported by Bruno Haible.
16105
16106 2010-06-11  Jim Meyering  <meyering@redhat.com>
16107
16108         test-sys_socket: mark variables as used more readably
16109         * tests/test-sys_socket.c (main): Mark otherwise unused variables
16110         as "used" explicitly via (void) statement casts.  This is more
16111         readable than using them in an artificial return expression.
16112         Suggestion from Bruno Haible.
16113
16114 2010-06-11  Bruno Haible  <bruno@clisp.org>
16115
16116         Avoid some more warnings from "gcc -Wwrite-strings".
16117         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
16118         to 'const char *'.
16119         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
16120         * tests/test-c-strcasestr.c (main): Likewise.
16121         * tests/test-mbscasestr1.c (main): Likewise.
16122         * tests/test-mbscasestr2.c (main): Likewise.
16123         * tests/test-memmem.c (main): Likewise.
16124         * tests/test-strstr.c (main): Likewise.
16125         * tests/test-strcasestr.c (main): Likewise.
16126
16127 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16128
16129         init.sh: change framework_failure_ to fail with status 99, not 1
16130         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
16131         automake's parallel-tests rule that this is an unexpected failure,
16132         even if the test is listed in XFAIL_TESTS.
16133
16134 2010-06-11  Jim Meyering  <meyering@redhat.com>
16135
16136         test-inttostr: avoid warnings about 4-6KB literal strings
16137         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
16138         Include "macros.h", for its definition of ASSERT.
16139         (CK): s/assert/ASSERT/
16140         * modules/inttostr-tests (Files): Add macros.h.
16141
16142         init.sh: don't use $ME_ or skip_ before they are defined
16143         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
16144         their first uses.  Also hoist their companions: warn_, fail_,
16145         framework_failure_, $stderr_fileno.  Prompted by a patch from
16146         Stefano Lattarini.
16147
16148         test-sys_socket: avoid set-but-not-used warnings from gcc
16149         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
16150         avoid warning about set-but-not-used variables.
16151
16152         test-xvasprintf: avoid 'const' discard warnings
16153         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
16154         "const" when assigning from literal strings.
16155         (test_xasprintf): Add "void" in function argument list to placate
16156         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
16157
16158         tests: avoid compilation warnings in argmatch and exclude tests...
16159         in packages that define ARGMATCH_DIE_DECL, like coreutils.
16160         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
16161         Since it always exits, declare with the "noreturn" attribute.
16162         * tests/test-argmatch.c: Likewise.
16163
16164         tests: avoid 'const' discard warnings in mbsstr tests
16165         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
16166         * tests/test-mbsstr2.c (main): Likewise.
16167
16168         test-verify: avoid warning from gcc's -Wmissing-declarations
16169         * tests/test-verify.c (function): Declare to be static.
16170
16171         test-inttostr.c: include <string.h> for use of strcmp
16172         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
16173
16174         test-linkat: avoid failed assertion on "other" architectures
16175         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
16176         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
16177         sparc: https://bugs.launchpad.net/bugs/591968
16178
16179 2010-06-11  Jim Meyering  <meyering@redhat.com>
16180
16181         printf.m4: avoid autoconf's "Expanded Before Required" warning
16182         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
16183         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
16184         autoconf warning.
16185
16186 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
16187
16188         Replacement header templates are now named with ".in", not "_".
16189         * doc/gnulib-intro.texi: Correct.
16190
16191 2010-06-10  Jim Meyering  <meyering@redhat.com>
16192
16193         inttostr-tests: depend on snprintf, not snprintf-posix
16194         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
16195         snprintf-posix, to avoid this aclocal failure:
16196           missing file gnulib-tests/vasnprintf.c
16197           configure.ac:45: error: expected source file, required through \
16198           AC_LIBSOURCES, not found
16199
16200 2010-06-10  Jim Meyering  <meyering@redhat.com>
16201
16202         inttostr: add a new function, inttostr, and tests
16203         The namesake function was not available.  The existence of the
16204         template file, inttostr.c makes its addition nontrivial.
16205         * lib/anytostr.c: Rename from inttostr.c.
16206         (anytostr): Rename from inttostr.
16207         * lib/inttostr.c: New file.
16208         * modules/inttostr (Files): Add anytostr.c.
16209         (Makefile.am): Set lib_SOURCES instead of ...
16210         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
16211         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
16212         * lib/offtostr.c: Likewise.
16213         * lib/uinttostr.c: Likewise.
16214         * lib/umaxtostr.c: Likewise.
16215         * modules/inttostr-tests: New file.
16216         * tests/test-inttostr.c: New file.  Test these functions.
16217
16218 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
16219             Bruno Haible  <bruno@clisp.org>
16220
16221         Add "Extending Gnulib" chapter to manual.
16222         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
16223         chapter.
16224         (Extending Gnulib): New chapter.
16225         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
16226         chapter.
16227
16228 2010-06-09  Bruno Haible  <bruno@clisp.org>
16229
16230         Avoid relocwrapper link errors due to gnulib replacement functions.
16231         * lib/areadlink.c: Use the system's malloc, realloc functions.
16232         (areadlink): Set errno to ENOMEM explicitly.
16233         * modules/areadlink (Depends-on): Remove malloc-posix.
16234         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16235
16236 2010-06-09  Bruno Haible  <bruno@clisp.org>
16237
16238         Avoid relocwrapper link errors due to gnulib replacement functions.
16239         * lib/canonicalize-lgpl.c: Use the system's malloc function.
16240         * lib/malloca.c: Likewise.
16241         * lib/relocatable.c: Likewise.
16242         * lib/progreloc.c: Use the system's malloc, sprintf functions.
16243         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
16244         * lib/setenv.c: Use the system's malloc, realloc functions.
16245         * lib/strerror.c: Use the system's sprintf function.
16246         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16247
16248 2010-06-04  Bruno Haible  <bruno@clisp.org>
16249
16250         Prefer documented low-level autoconf macro names.
16251         * m4/lib-link.m4: Use m4_translit instead of translit.
16252         * m4/environ.m4: Likewise.
16253         * m4/mathfunc.m4: Likewise.
16254         * m4/onceonly.m4: Likewise.
16255         * m4/stdint.m4: Likewise.
16256         Suggested by Eric Blake.
16257
16258 2010-06-04  Martin Lambers  <marlam@marlam.de>
16259             Bruno Haible  <bruno@clisp.org>
16260
16261         havelib: Allow library names with '+' characters.
16262         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16263         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
16264
16265 2010-06-09  Bruno Haible  <bruno@clisp.org>
16266
16267         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
16268         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
16269         realloc failed.
16270
16271 2010-06-08  Peter Simons  <simons@cryp.to>
16272
16273         maint.mk: make the news-check rule more configurable
16274         * top/maint.mk (news-check-lines-spec): New variable.
16275         (news-check): Use "sed -n 1,10p" in place of "head".
16276
16277 2010-06-07  Jim Meyering  <meyering@redhat.com>
16278
16279         do-release-commit-and-tag: fix typo in --help
16280         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
16281
16282         regex: avoid new dead-code warning with gcc-4.6.0
16283         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
16284         if-block containing a while-loop.  It's been unused for at least
16285         5 years.
16286
16287 2010-06-05  Bruno Haible  <bruno@clisp.org>
16288
16289         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
16290         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
16291
16292 2010-06-04  Bruno Haible  <bruno@clisp.org>
16293
16294         Update to GNU gettext 0.18.1.
16295         * modules/gettext (configure.ac): Require gettext infrastructure from
16296         version 0.18.1.
16297
16298 2010-06-03  Bruno Haible  <bruno@clisp.org>
16299
16300         Don't use AC_LIBOBJ with file names in subdirectories.
16301         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
16302         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
16303         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
16304         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
16305         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
16306         gl_LIBUNISTRING_LIBSOURCE.
16307         (Makefile.am): Augment lib_SOURCES here, conditionally.
16308         * NEWS: Drop requirement for Automake option 'subdir-objects'.
16309
16310 2010-06-03  Bruno Haible  <bruno@clisp.org>
16311
16312         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
16313         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
16314         expansion does not end with a newline.
16315         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
16316         unnecessary newline.
16317
16318 2010-06-03  Bruno Haible  <bruno@clisp.org>
16319
16320         Reduce dependencies.
16321         * tests/test-quotearg.h: New file, extracted from
16322         tests/test-quotearg.c.
16323         * tests/test-quotearg-simple.c: New file, extracted from
16324         tests/test-quotearg.c.
16325         * tests/test-quotearg.c: Don't include <ctype.h>.
16326         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
16327         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
16328         use_quote_double_quotes, use_quotearg_colon): Moved to
16329         tests/test-quotearg.h.
16330         (results_g, flag_results, custom_quotes, custom_results): Moved
16331         to tests/test-quotearg-simple.c.
16332         (main): Moved the part that does not depend on gettext to
16333         tests/test-quotearg-simple.c. Return 77 if the test cannot be
16334         performed.
16335         * modules/quotearg-simple: New file.
16336         * modules/quotearg-simple-tests: New file.
16337         * modules/quotearg (Depends-on): Add quotearg-simple.
16338         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
16339         (Files): Add tests/test-quotearg.h.
16340         Reported by Paolo Bonzini.
16341
16342 2010-06-03  Bruno Haible  <bruno@clisp.org>
16343
16344         Reduce dependencies.
16345         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
16346
16347 2010-06-03  Bruno Haible  <bruno@clisp.org>
16348
16349         time: Undefine more broken macros.
16350         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
16351         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
16352         Reported by Eric Blake.
16353
16354 2010-06-03  Bruno Haible  <bruno@clisp.org>
16355
16356         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
16357         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
16358         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
16359         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
16360         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
16361         Reported by Ludovic Courtès <ludo@gnu.org>.
16362
16363 2010-06-02  Eric Blake  <eblake@redhat.com>
16364
16365         time: work with mingw + pthreads-win32 library
16366         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
16367         if timespec is defined only in pthread.h.
16368         * modules/time (Makefile.am): Substitute it.
16369         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
16370         <pthread.h>, when needed.
16371         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
16372         from the library.
16373
16374 2010-05-31  Bruno Haible  <bruno@clisp.org>
16375
16376         Avoid expanding two macros in the wrong order.
16377         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
16378         gl_LIBUNISTRING if it is defined.
16379         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
16380         autoconf >= 2.64.
16381         Reported by Ludovic Courtès <ludo@gnu.org>.
16382
16383 2010-05-27  Jim Meyering  <meyering@redhat.com>
16384
16385         maint.mk: also prohibit "#undef" of always-defined symbols
16386         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
16387         Allow more than one space before the symbol name.
16388         (sc_prohibit_always-defined_macros): Use grep's -E, now that
16389         the regexp uses alternation.
16390
16391 2010-05-26  Eric Blake  <eblake@redhat.com>
16392
16393         maint.mk: avoid echo -e
16394         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
16395         Convert all uses of echo -* to printf.
16396         Reported by Matthias Bolte.
16397
16398 2010-05-25  Bruno Haible  <bruno@clisp.org>
16399
16400         Update to GNU gettext 0.18, part 2.
16401         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
16402         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
16403
16404 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16405
16406         Add missing include in test-pwrite.c.
16407         * tests/test-pwrite.c: Include string.h, for strcmp.
16408
16409 2010-05-24  Bruno Haible  <bruno@clisp.org>
16410
16411         * NEWS: Mention requirement for Automake option 'subdir-objects'.
16412
16413 2010-05-24  Bruno Haible  <bruno@clisp.org>
16414
16415         Don't use conversion with transliteration in u{8,16,32}_strcoll.
16416         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
16417         iconveh_error argument.
16418         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
16419         U_STRCONV_TO_LOCALE.
16420         * lib/unistr/u16-strcoll.c: Likewise.
16421         * lib/unistr/u32-strcoll.c: Likewise.
16422         * modules/unistr/u8-strcoll (Depends-on): Add
16423         uniconv/u8-strconv-to-enc, localcharset. Remove
16424         uniconv/u8-strconv-to-locale.
16425         (configure.ac): Bump version number.
16426         * modules/unistr/u16-strcoll (Depends-on): Add
16427         uniconv/u16-strconv-to-enc, localcharset. Remove
16428         uniconv/u16-strconv-to-locale.
16429         (configure.ac): Bump version number.
16430         * modules/unistr/u32-strcoll (Depends-on): Add
16431         uniconv/u32-strconv-to-enc, localcharset. Remove
16432         uniconv/u32-strconv-to-locale.
16433         (configure.ac): Bump version number.
16434
16435 2010-05-24  Bruno Haible  <bruno@clisp.org>
16436
16437         Avoid a test failure on NetBSD 5.0.
16438         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
16439         an iconv() bug.
16440
16441 2010-05-24  Bruno Haible  <bruno@clisp.org>
16442
16443         Adjust #include directive style.
16444         * modules/regex (Includes): Recommend to write <regex.h>.
16445
16446 2010-05-24  Bruno Haible  <bruno@clisp.org>
16447
16448         regex: Don't require alloca.
16449         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
16450         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
16451         only inside if (0).
16452
16453 2010-05-23  Jim Meyering  <meyering@redhat.com>
16454
16455         test-renameat.c: include <sys/stat.h>
16456         * tests/test-renameat.c: Include <sys/stat.h>; required for
16457         definition of S_IS* macros.
16458
16459 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
16460
16461         Update maintainer documentation for 'relocatable-prog' module.
16462         * doc/relocatable-maint.texi: Update.
16463         Comments by Bruno Haible.
16464
16465 2010-05-23  Bruno Haible  <bruno@clisp.org>
16466
16467         git-merge-changelog: Enable --split-merged-entry by default.
16468         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
16469         (usage): Don't mention this option any more.
16470         Reported by Ralf Wildenhues.
16471
16472 2010-05-23  Jim Meyering  <meyering@redhat.com>
16473
16474         test-pwrite: do not leave behind a test file named "out"
16475         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
16476         The trivial-looking use of init.sh is really necessary.
16477         It ensures that the temporary file, "out", is created in
16478         a temporary directory, and removed upon termination.
16479         * tests/test-pwrite.sh: Re-add file.
16480         * modules/pwrite-tests: Reference it.
16481
16482 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16483
16484         Fix output redirection buglet in init.sh.
16485         * tests/init.sh: Fix redirection of stderr.
16486
16487 2010-05-20  Simon Josefsson  <simon@josefsson.org>
16488
16489         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
16490
16491 2010-05-17  Simon Josefsson  <simon@josefsson.org>
16492
16493         * modules/valgrind-tests: New file.
16494         * m4/valgrind-tests.m4: New file.
16495         * doc/valgrind-tests.texi: New file.
16496         * doc/gnulib.texi (Running self-tests under valgrind): New
16497         section.
16498
16499 2010-05-19  Bruno Haible  <bruno@clisp.org>
16500
16501         Clean up dead code in recent commit.
16502         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
16503         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
16504         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
16505         Suggested by Paolo Bonzini.
16506
16507 2010-05-19  Bruno Haible  <bruno@clisp.org>
16508
16509         Avoid valgrind error reports from libunistring.
16510         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
16511         * modules/libunistring (Files): Add it.
16512         * modules/libunistring-optional (Files): Likewise.
16513
16514 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
16515             Bruno Haible  <bruno@clisp.org>
16516
16517         New module 'libunistring-optional'.
16518         * modules/libunistring-optional: New file.
16519         * m4/libunistring-base.m4: New file.
16520         * m4/libunistring-optional.m4: New file.
16521         * lib/unicase.in.h: Renamed from lib/unicase.h.
16522         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
16523         * lib/unictype.in.h: Renamed from lib/unictype.h.
16524         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
16525         * lib/uniname.in.h: Renamed from lib/uniname.h.
16526         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
16527         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
16528         * lib/unistr.in.h: Renamed from lib/unistr.h.
16529         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
16530         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
16531         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
16532         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
16533         gl_LIBUNISTRING. If the library was found, determine the installed
16534         version and set LIBUNISTRING_VERSION.
16535         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
16536         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
16537         handle a configuration option --with-included-libunistring.
16538         * modules/libunistring (Files): Add m4/absolute-header.m4.
16539         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
16540         Add m4/libunistring-base.m4.
16541         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16542         (Makefile.am): Build unicase.h from unicase.in.h.
16543         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
16544         Add m4/libunistring-base.m4.
16545         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16546         (Makefile.am): Build uniconv.h from uniconv.in.h.
16547         * modules/unictype/base (Files): Use unictype.in.h instead of
16548         unictype.h. Add m4/libunistring-base.m4.
16549         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16550         (Makefile.am): Build unictype.h from unictype.in.h.
16551         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
16552         Add m4/libunistring-base.m4.
16553         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16554         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
16555         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
16556         Add m4/libunistring-base.m4.
16557         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16558         (Makefile.am): Build uniname.h from uniname.in.h.
16559         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
16560         Add m4/libunistring-base.m4.
16561         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16562         (Makefile.am): Build uninorm.h from uninorm.in.h.
16563         * modules/unistdio/base (Files): Use unistdio.in.h instead of
16564         unistdio.h. Add m4/libunistring-base.m4.
16565         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16566         (Makefile.am): Build unistdio.h from unistdio.in.h.
16567         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
16568         Add m4/libunistring-base.m4.
16569         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16570         (Makefile.am): Build unistr.h from unistr.in.h.
16571         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
16572         Add m4/libunistring-base.m4.
16573         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16574         (Makefile.am): Build unitypes.h from unitypes.in.h.
16575         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
16576         Add m4/libunistring-base.m4.
16577         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16578         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
16579         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
16580         uniwidth.h. Add m4/libunistring-base.m4.
16581         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16582         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
16583         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
16584         instead of augmenting lib_SOURCES.
16585         * modules/unicase/empty-suffix-context: Likewise.
16586         * modules/unicase/locale-language: Likewise.
16587         * modules/unicase/tolower: Likewise.
16588         * modules/unicase/totitle: Likewise.
16589         * modules/unicase/toupper: Likewise.
16590         * modules/unicase/u8-casecmp: Likewise.
16591         * modules/unicase/u8-casecoll: Likewise.
16592         * modules/unicase/u8-casefold: Likewise.
16593         * modules/unicase/u8-casexfrm: Likewise.
16594         * modules/unicase/u8-ct-casefold: Likewise.
16595         * modules/unicase/u8-ct-tolower: Likewise.
16596         * modules/unicase/u8-ct-totitle: Likewise.
16597         * modules/unicase/u8-ct-toupper: Likewise.
16598         * modules/unicase/u8-is-cased: Likewise.
16599         * modules/unicase/u8-is-casefolded: Likewise.
16600         * modules/unicase/u8-is-lowercase: Likewise.
16601         * modules/unicase/u8-is-titlecase: Likewise.
16602         * modules/unicase/u8-is-uppercase: Likewise.
16603         * modules/unicase/u8-prefix-context: Likewise.
16604         * modules/unicase/u8-suffix-context: Likewise.
16605         * modules/unicase/u8-tolower: Likewise.
16606         * modules/unicase/u8-totitle: Likewise.
16607         * modules/unicase/u8-toupper: Likewise.
16608         * modules/unicase/u16-casecmp: Likewise.
16609         * modules/unicase/u16-casecoll: Likewise.
16610         * modules/unicase/u16-casefold: Likewise.
16611         * modules/unicase/u16-casexfrm: Likewise.
16612         * modules/unicase/u16-ct-casefold: Likewise.
16613         * modules/unicase/u16-ct-tolower: Likewise.
16614         * modules/unicase/u16-ct-totitle: Likewise.
16615         * modules/unicase/u16-ct-toupper: Likewise.
16616         * modules/unicase/u16-is-cased: Likewise.
16617         * modules/unicase/u16-is-casefolded: Likewise.
16618         * modules/unicase/u16-is-lowercase: Likewise.
16619         * modules/unicase/u16-is-titlecase: Likewise.
16620         * modules/unicase/u16-is-uppercase: Likewise.
16621         * modules/unicase/u16-prefix-context: Likewise.
16622         * modules/unicase/u16-suffix-context: Likewise.
16623         * modules/unicase/u16-tolower: Likewise.
16624         * modules/unicase/u16-totitle: Likewise.
16625         * modules/unicase/u16-toupper: Likewise.
16626         * modules/unicase/u32-casecmp: Likewise.
16627         * modules/unicase/u32-casecoll: Likewise.
16628         * modules/unicase/u32-casefold: Likewise.
16629         * modules/unicase/u32-casexfrm: Likewise.
16630         * modules/unicase/u32-ct-casefold: Likewise.
16631         * modules/unicase/u32-ct-tolower: Likewise.
16632         * modules/unicase/u32-ct-totitle: Likewise.
16633         * modules/unicase/u32-ct-toupper: Likewise.
16634         * modules/unicase/u32-is-cased: Likewise.
16635         * modules/unicase/u32-is-casefolded: Likewise.
16636         * modules/unicase/u32-is-lowercase: Likewise.
16637         * modules/unicase/u32-is-titlecase: Likewise.
16638         * modules/unicase/u32-is-uppercase: Likewise.
16639         * modules/unicase/u32-prefix-context: Likewise.
16640         * modules/unicase/u32-suffix-context: Likewise.
16641         * modules/unicase/u32-tolower: Likewise.
16642         * modules/unicase/u32-totitle: Likewise.
16643         * modules/unicase/u32-toupper: Likewise.
16644         * modules/unicase/ulc-casecmp: Likewise.
16645         * modules/unicase/ulc-casecoll: Likewise.
16646         * modules/unicase/ulc-casexfrm: Likewise.
16647         * modules/uniconv/u8-conv-from-enc: Likewise.
16648         * modules/uniconv/u8-conv-to-enc: Likewise.
16649         * modules/uniconv/u8-strconv-from-enc: Likewise.
16650         * modules/uniconv/u8-strconv-from-locale: Likewise.
16651         * modules/uniconv/u8-strconv-to-enc: Likewise.
16652         * modules/uniconv/u8-strconv-to-locale: Likewise.
16653         * modules/uniconv/u16-conv-from-enc: Likewise.
16654         * modules/uniconv/u16-conv-to-enc: Likewise.
16655         * modules/uniconv/u16-strconv-from-enc: Likewise.
16656         * modules/uniconv/u16-strconv-from-locale: Likewise.
16657         * modules/uniconv/u16-strconv-to-enc: Likewise.
16658         * modules/uniconv/u16-strconv-to-locale: Likewise.
16659         * modules/uniconv/u32-conv-from-enc: Likewise.
16660         * modules/uniconv/u32-conv-to-enc: Likewise.
16661         * modules/uniconv/u32-strconv-from-enc: Likewise.
16662         * modules/uniconv/u32-strconv-from-locale: Likewise.
16663         * modules/uniconv/u32-strconv-to-enc: Likewise.
16664         * modules/uniconv/u32-strconv-to-locale: Likewise.
16665         * modules/unictype/bidicategory-byname: Likewise.
16666         * modules/unictype/bidicategory-name: Likewise.
16667         * modules/unictype/bidicategory-of: Likewise.
16668         * modules/unictype/bidicategory-test: Likewise.
16669         * modules/unictype/block-list: Likewise.
16670         * modules/unictype/block-test: Likewise.
16671         * modules/unictype/category-C: Likewise.
16672         * modules/unictype/category-Cc: Likewise.
16673         * modules/unictype/category-Cf: Likewise.
16674         * modules/unictype/category-Cn: Likewise.
16675         * modules/unictype/category-Co: Likewise.
16676         * modules/unictype/category-Cs: Likewise.
16677         * modules/unictype/category-L: Likewise.
16678         * modules/unictype/category-Ll: Likewise.
16679         * modules/unictype/category-Lm: Likewise.
16680         * modules/unictype/category-Lo: Likewise.
16681         * modules/unictype/category-Lt: Likewise.
16682         * modules/unictype/category-Lu: Likewise.
16683         * modules/unictype/category-M: Likewise.
16684         * modules/unictype/category-Mc: Likewise.
16685         * modules/unictype/category-Me: Likewise.
16686         * modules/unictype/category-Mn: Likewise.
16687         * modules/unictype/category-N: Likewise.
16688         * modules/unictype/category-Nd: Likewise.
16689         * modules/unictype/category-Nl: Likewise.
16690         * modules/unictype/category-No: Likewise.
16691         * modules/unictype/category-P: Likewise.
16692         * modules/unictype/category-Pc: Likewise.
16693         * modules/unictype/category-Pd: Likewise.
16694         * modules/unictype/category-Pe: Likewise.
16695         * modules/unictype/category-Pf: Likewise.
16696         * modules/unictype/category-Pi: Likewise.
16697         * modules/unictype/category-Po: Likewise.
16698         * modules/unictype/category-Ps: Likewise.
16699         * modules/unictype/category-S: Likewise.
16700         * modules/unictype/category-Sc: Likewise.
16701         * modules/unictype/category-Sk: Likewise.
16702         * modules/unictype/category-Sm: Likewise.
16703         * modules/unictype/category-So: Likewise.
16704         * modules/unictype/category-Z: Likewise.
16705         * modules/unictype/category-Zl: Likewise.
16706         * modules/unictype/category-Zp: Likewise.
16707         * modules/unictype/category-Zs: Likewise.
16708         * modules/unictype/category-and: Likewise.
16709         * modules/unictype/category-and-not: Likewise.
16710         * modules/unictype/category-byname: Likewise.
16711         * modules/unictype/category-name: Likewise.
16712         * modules/unictype/category-none: Likewise.
16713         * modules/unictype/category-of: Likewise.
16714         * modules/unictype/category-or: Likewise.
16715         * modules/unictype/category-test: Likewise.
16716         * modules/unictype/combining-class: Likewise.
16717         * modules/unictype/ctype-alnum: Likewise.
16718         * modules/unictype/ctype-alpha: Likewise.
16719         * modules/unictype/ctype-blank: Likewise.
16720         * modules/unictype/ctype-cntrl: Likewise.
16721         * modules/unictype/ctype-digit: Likewise.
16722         * modules/unictype/ctype-graph: Likewise.
16723         * modules/unictype/ctype-lower: Likewise.
16724         * modules/unictype/ctype-print: Likewise.
16725         * modules/unictype/ctype-punct: Likewise.
16726         * modules/unictype/ctype-space: Likewise.
16727         * modules/unictype/ctype-upper: Likewise.
16728         * modules/unictype/ctype-xdigit: Likewise.
16729         * modules/unictype/decimal-digit: Likewise.
16730         * modules/unictype/digit: Likewise.
16731         * modules/unictype/mirror: Likewise.
16732         * modules/unictype/numeric: Likewise.
16733         * modules/unictype/property-alphabetic: Likewise.
16734         * modules/unictype/property-ascii-hex-digit: Likewise.
16735         * modules/unictype/property-bidi-arabic-digit: Likewise.
16736         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
16737         * modules/unictype/property-bidi-block-separator: Likewise.
16738         * modules/unictype/property-bidi-boundary-neutral: Likewise.
16739         * modules/unictype/property-bidi-common-separator: Likewise.
16740         * modules/unictype/property-bidi-control: Likewise.
16741         * modules/unictype/property-bidi-embedding-or-override: Likewise.
16742         * modules/unictype/property-bidi-eur-num-separator: Likewise.
16743         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
16744         * modules/unictype/property-bidi-european-digit: Likewise.
16745         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
16746         * modules/unictype/property-bidi-left-to-right: Likewise.
16747         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
16748         * modules/unictype/property-bidi-other-neutral: Likewise.
16749         * modules/unictype/property-bidi-pdf: Likewise.
16750         * modules/unictype/property-bidi-segment-separator: Likewise.
16751         * modules/unictype/property-bidi-whitespace: Likewise.
16752         * modules/unictype/property-byname: Likewise.
16753         * modules/unictype/property-combining: Likewise.
16754         * modules/unictype/property-composite: Likewise.
16755         * modules/unictype/property-currency-symbol: Likewise.
16756         * modules/unictype/property-dash: Likewise.
16757         * modules/unictype/property-decimal-digit: Likewise.
16758         * modules/unictype/property-default-ignorable-code-point: Likewise.
16759         * modules/unictype/property-deprecated: Likewise.
16760         * modules/unictype/property-diacritic: Likewise.
16761         * modules/unictype/property-extender: Likewise.
16762         * modules/unictype/property-format-control: Likewise.
16763         * modules/unictype/property-grapheme-base: Likewise.
16764         * modules/unictype/property-grapheme-extend: Likewise.
16765         * modules/unictype/property-grapheme-link: Likewise.
16766         * modules/unictype/property-hex-digit: Likewise.
16767         * modules/unictype/property-hyphen: Likewise.
16768         * modules/unictype/property-id-continue: Likewise.
16769         * modules/unictype/property-id-start: Likewise.
16770         * modules/unictype/property-ideographic: Likewise.
16771         * modules/unictype/property-ids-binary-operator: Likewise.
16772         * modules/unictype/property-ids-trinary-operator: Likewise.
16773         * modules/unictype/property-ignorable-control: Likewise.
16774         * modules/unictype/property-iso-control: Likewise.
16775         * modules/unictype/property-join-control: Likewise.
16776         * modules/unictype/property-left-of-pair: Likewise.
16777         * modules/unictype/property-line-separator: Likewise.
16778         * modules/unictype/property-logical-order-exception: Likewise.
16779         * modules/unictype/property-lowercase: Likewise.
16780         * modules/unictype/property-math: Likewise.
16781         * modules/unictype/property-non-break: Likewise.
16782         * modules/unictype/property-not-a-character: Likewise.
16783         * modules/unictype/property-numeric: Likewise.
16784         * modules/unictype/property-other-alphabetic: Likewise.
16785         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
16786         * modules/unictype/property-other-grapheme-extend: Likewise.
16787         * modules/unictype/property-other-id-continue: Likewise.
16788         * modules/unictype/property-other-id-start: Likewise.
16789         * modules/unictype/property-other-lowercase: Likewise.
16790         * modules/unictype/property-other-math: Likewise.
16791         * modules/unictype/property-other-uppercase: Likewise.
16792         * modules/unictype/property-paired-punctuation: Likewise.
16793         * modules/unictype/property-paragraph-separator: Likewise.
16794         * modules/unictype/property-pattern-syntax: Likewise.
16795         * modules/unictype/property-pattern-white-space: Likewise.
16796         * modules/unictype/property-private-use: Likewise.
16797         * modules/unictype/property-punctuation: Likewise.
16798         * modules/unictype/property-quotation-mark: Likewise.
16799         * modules/unictype/property-radical: Likewise.
16800         * modules/unictype/property-sentence-terminal: Likewise.
16801         * modules/unictype/property-soft-dotted: Likewise.
16802         * modules/unictype/property-space: Likewise.
16803         * modules/unictype/property-terminal-punctuation: Likewise.
16804         * modules/unictype/property-test: Likewise.
16805         * modules/unictype/property-titlecase: Likewise.
16806         * modules/unictype/property-unassigned-code-value: Likewise.
16807         * modules/unictype/property-unified-ideograph: Likewise.
16808         * modules/unictype/property-uppercase: Likewise.
16809         * modules/unictype/property-variation-selector: Likewise.
16810         * modules/unictype/property-white-space: Likewise.
16811         * modules/unictype/property-xid-continue: Likewise.
16812         * modules/unictype/property-xid-start: Likewise.
16813         * modules/unictype/property-zero-width: Likewise.
16814         * modules/unictype/scripts: Likewise.
16815         * modules/unictype/syntax-c-ident: Likewise.
16816         * modules/unictype/syntax-c-whitespace: Likewise.
16817         * modules/unictype/syntax-java-ident: Likewise.
16818         * modules/unictype/syntax-java-whitespace: Likewise.
16819         * modules/unilbrk/u8-possible-linebreaks: Likewise.
16820         * modules/unilbrk/u8-width-linebreaks: Likewise.
16821         * modules/unilbrk/u16-possible-linebreaks: Likewise.
16822         * modules/unilbrk/u16-width-linebreaks: Likewise.
16823         * modules/unilbrk/u32-possible-linebreaks: Likewise.
16824         * modules/unilbrk/u32-width-linebreaks: Likewise.
16825         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
16826         * modules/unilbrk/ulc-width-linebreaks: Likewise.
16827         * modules/uniname/uniname: Likewise.
16828         * modules/uninorm/canonical-decomposition: Likewise.
16829         * modules/uninorm/composition: Likewise.
16830         * modules/uninorm/decomposing-form: Likewise.
16831         * modules/uninorm/decomposition: Likewise.
16832         * modules/uninorm/filter: Likewise.
16833         * modules/uninorm/nfc: Likewise.
16834         * modules/uninorm/nfd: Likewise.
16835         * modules/uninorm/nfkc: Likewise.
16836         * modules/uninorm/nfkd: Likewise.
16837         * modules/uninorm/u8-normalize: Likewise.
16838         * modules/uninorm/u8-normcmp: Likewise.
16839         * modules/uninorm/u8-normcoll: Likewise.
16840         * modules/uninorm/u8-normxfrm: Likewise.
16841         * modules/uninorm/u16-normalize: Likewise.
16842         * modules/uninorm/u16-normcmp: Likewise.
16843         * modules/uninorm/u16-normcoll: Likewise.
16844         * modules/uninorm/u16-normxfrm: Likewise.
16845         * modules/uninorm/u32-normalize: Likewise.
16846         * modules/uninorm/u32-normcmp: Likewise.
16847         * modules/uninorm/u32-normcoll: Likewise.
16848         * modules/uninorm/u32-normxfrm: Likewise.
16849         * modules/unistdio/u8-asnprintf: Likewise.
16850         * modules/unistdio/u8-asprintf: Likewise.
16851         * modules/unistdio/u8-snprintf: Likewise.
16852         * modules/unistdio/u8-sprintf: Likewise.
16853         * modules/unistdio/u8-u8-asnprintf: Likewise.
16854         * modules/unistdio/u8-u8-asprintf: Likewise.
16855         * modules/unistdio/u8-u8-snprintf: Likewise.
16856         * modules/unistdio/u8-u8-sprintf: Likewise.
16857         * modules/unistdio/u8-u8-vasnprintf: Likewise.
16858         * modules/unistdio/u8-u8-vasprintf: Likewise.
16859         * modules/unistdio/u8-u8-vsnprintf: Likewise.
16860         * modules/unistdio/u8-u8-vsprintf: Likewise.
16861         * modules/unistdio/u8-vasnprintf: Likewise.
16862         * modules/unistdio/u8-vasprintf: Likewise.
16863         * modules/unistdio/u8-vsnprintf: Likewise.
16864         * modules/unistdio/u8-vsprintf: Likewise.
16865         * modules/unistdio/u16-asnprintf: Likewise.
16866         * modules/unistdio/u16-asprintf: Likewise.
16867         * modules/unistdio/u16-snprintf: Likewise.
16868         * modules/unistdio/u16-sprintf: Likewise.
16869         * modules/unistdio/u16-u16-asnprintf: Likewise.
16870         * modules/unistdio/u16-u16-asprintf: Likewise.
16871         * modules/unistdio/u16-u16-snprintf: Likewise.
16872         * modules/unistdio/u16-u16-sprintf: Likewise.
16873         * modules/unistdio/u16-u16-vasnprintf: Likewise.
16874         * modules/unistdio/u16-u16-vasprintf: Likewise.
16875         * modules/unistdio/u16-u16-vsnprintf: Likewise.
16876         * modules/unistdio/u16-u16-vsprintf: Likewise.
16877         * modules/unistdio/u16-vasnprintf: Likewise.
16878         * modules/unistdio/u16-vasprintf: Likewise.
16879         * modules/unistdio/u16-vsnprintf: Likewise.
16880         * modules/unistdio/u16-vsprintf: Likewise.
16881         * modules/unistdio/u32-asnprintf: Likewise.
16882         * modules/unistdio/u32-asprintf: Likewise.
16883         * modules/unistdio/u32-snprintf: Likewise.
16884         * modules/unistdio/u32-sprintf: Likewise.
16885         * modules/unistdio/u32-u32-asnprintf: Likewise.
16886         * modules/unistdio/u32-u32-asprintf: Likewise.
16887         * modules/unistdio/u32-u32-snprintf: Likewise.
16888         * modules/unistdio/u32-u32-sprintf: Likewise.
16889         * modules/unistdio/u32-u32-vasnprintf: Likewise.
16890         * modules/unistdio/u32-u32-vasprintf: Likewise.
16891         * modules/unistdio/u32-u32-vsnprintf: Likewise.
16892         * modules/unistdio/u32-u32-vsprintf: Likewise.
16893         * modules/unistdio/u32-vasnprintf: Likewise.
16894         * modules/unistdio/u32-vasprintf: Likewise.
16895         * modules/unistdio/u32-vsnprintf: Likewise.
16896         * modules/unistdio/u32-vsprintf: Likewise.
16897         * modules/unistdio/ulc-asnprintf: Likewise.
16898         * modules/unistdio/ulc-asprintf: Likewise.
16899         * modules/unistdio/ulc-fprintf: Likewise.
16900         * modules/unistdio/ulc-snprintf: Likewise.
16901         * modules/unistdio/ulc-sprintf: Likewise.
16902         * modules/unistdio/ulc-vasnprintf: Likewise.
16903         * modules/unistdio/ulc-vasprintf: Likewise.
16904         * modules/unistdio/ulc-vfprintf: Likewise.
16905         * modules/unistdio/ulc-vsnprintf: Likewise.
16906         * modules/unistdio/ulc-vsprintf: Likewise.
16907         * modules/unistr/u8-check: Likewise.
16908         * modules/unistr/u8-chr: Likewise.
16909         * modules/unistr/u8-cmp: Likewise.
16910         * modules/unistr/u8-cmp2: Likewise.
16911         * modules/unistr/u8-cpy: Likewise.
16912         * modules/unistr/u8-cpy-alloc: Likewise.
16913         * modules/unistr/u8-endswith: Likewise.
16914         * modules/unistr/u8-mblen: Likewise.
16915         * modules/unistr/u8-mbsnlen: Likewise.
16916         * modules/unistr/u8-mbtouc: Likewise.
16917         * modules/unistr/u8-mbtouc-unsafe: Likewise.
16918         * modules/unistr/u8-mbtoucr: Likewise.
16919         * modules/unistr/u8-move: Likewise.
16920         * modules/unistr/u8-next: Likewise.
16921         * modules/unistr/u8-prev: Likewise.
16922         * modules/unistr/u8-set: Likewise.
16923         * modules/unistr/u8-startswith: Likewise.
16924         * modules/unistr/u8-stpcpy: Likewise.
16925         * modules/unistr/u8-stpncpy: Likewise.
16926         * modules/unistr/u8-strcat: Likewise.
16927         * modules/unistr/u8-strchr: Likewise.
16928         * modules/unistr/u8-strcmp: Likewise.
16929         * modules/unistr/u8-strcoll: Likewise.
16930         * modules/unistr/u8-strcpy: Likewise.
16931         * modules/unistr/u8-strcspn: Likewise.
16932         * modules/unistr/u8-strdup: Likewise.
16933         * modules/unistr/u8-strlen: Likewise.
16934         * modules/unistr/u8-strmblen: Likewise.
16935         * modules/unistr/u8-strmbtouc: Likewise.
16936         * modules/unistr/u8-strncat: Likewise.
16937         * modules/unistr/u8-strncmp: Likewise.
16938         * modules/unistr/u8-strncpy: Likewise.
16939         * modules/unistr/u8-strnlen: Likewise.
16940         * modules/unistr/u8-strpbrk: Likewise.
16941         * modules/unistr/u8-strrchr: Likewise.
16942         * modules/unistr/u8-strspn: Likewise.
16943         * modules/unistr/u8-strstr: Likewise.
16944         * modules/unistr/u8-strtok: Likewise.
16945         * modules/unistr/u8-to-u16: Likewise.
16946         * modules/unistr/u8-to-u32: Likewise.
16947         * modules/unistr/u8-uctomb: Likewise.
16948         * modules/unistr/u16-check: Likewise.
16949         * modules/unistr/u16-chr: Likewise.
16950         * modules/unistr/u16-cmp: Likewise.
16951         * modules/unistr/u16-cmp2: Likewise.
16952         * modules/unistr/u16-cpy: Likewise.
16953         * modules/unistr/u16-cpy-alloc: Likewise.
16954         * modules/unistr/u16-endswith: Likewise.
16955         * modules/unistr/u16-mblen: Likewise.
16956         * modules/unistr/u16-mbsnlen: Likewise.
16957         * modules/unistr/u16-mbtouc: Likewise.
16958         * modules/unistr/u16-mbtouc-unsafe: Likewise.
16959         * modules/unistr/u16-mbtoucr: Likewise.
16960         * modules/unistr/u16-move: Likewise.
16961         * modules/unistr/u16-next: Likewise.
16962         * modules/unistr/u16-prev: Likewise.
16963         * modules/unistr/u16-set: Likewise.
16964         * modules/unistr/u16-startswith: Likewise.
16965         * modules/unistr/u16-stpcpy: Likewise.
16966         * modules/unistr/u16-stpncpy: Likewise.
16967         * modules/unistr/u16-strcat: Likewise.
16968         * modules/unistr/u16-strchr: Likewise.
16969         * modules/unistr/u16-strcmp: Likewise.
16970         * modules/unistr/u16-strcoll: Likewise.
16971         * modules/unistr/u16-strcpy: Likewise.
16972         * modules/unistr/u16-strcspn: Likewise.
16973         * modules/unistr/u16-strdup: Likewise.
16974         * modules/unistr/u16-strlen: Likewise.
16975         * modules/unistr/u16-strmblen: Likewise.
16976         * modules/unistr/u16-strmbtouc: Likewise.
16977         * modules/unistr/u16-strncat: Likewise.
16978         * modules/unistr/u16-strncmp: Likewise.
16979         * modules/unistr/u16-strncpy: Likewise.
16980         * modules/unistr/u16-strnlen: Likewise.
16981         * modules/unistr/u16-strpbrk: Likewise.
16982         * modules/unistr/u16-strrchr: Likewise.
16983         * modules/unistr/u16-strspn: Likewise.
16984         * modules/unistr/u16-strstr: Likewise.
16985         * modules/unistr/u16-strtok: Likewise.
16986         * modules/unistr/u16-to-u32: Likewise.
16987         * modules/unistr/u16-to-u8: Likewise.
16988         * modules/unistr/u16-uctomb: Likewise.
16989         * modules/unistr/u32-check: Likewise.
16990         * modules/unistr/u32-chr: Likewise.
16991         * modules/unistr/u32-cmp: Likewise.
16992         * modules/unistr/u32-cmp2: Likewise.
16993         * modules/unistr/u32-cpy: Likewise.
16994         * modules/unistr/u32-cpy-alloc: Likewise.
16995         * modules/unistr/u32-endswith: Likewise.
16996         * modules/unistr/u32-mblen: Likewise.
16997         * modules/unistr/u32-mbsnlen: Likewise.
16998         * modules/unistr/u32-mbtouc: Likewise.
16999         * modules/unistr/u32-mbtouc-unsafe: Likewise.
17000         * modules/unistr/u32-mbtoucr: Likewise.
17001         * modules/unistr/u32-move: Likewise.
17002         * modules/unistr/u32-next: Likewise.
17003         * modules/unistr/u32-prev: Likewise.
17004         * modules/unistr/u32-set: Likewise.
17005         * modules/unistr/u32-startswith: Likewise.
17006         * modules/unistr/u32-stpcpy: Likewise.
17007         * modules/unistr/u32-stpncpy: Likewise.
17008         * modules/unistr/u32-strcat: Likewise.
17009         * modules/unistr/u32-strchr: Likewise.
17010         * modules/unistr/u32-strcmp: Likewise.
17011         * modules/unistr/u32-strcoll: Likewise.
17012         * modules/unistr/u32-strcpy: Likewise.
17013         * modules/unistr/u32-strcspn: Likewise.
17014         * modules/unistr/u32-strdup: Likewise.
17015         * modules/unistr/u32-strlen: Likewise.
17016         * modules/unistr/u32-strmblen: Likewise.
17017         * modules/unistr/u32-strmbtouc: Likewise.
17018         * modules/unistr/u32-strncat: Likewise.
17019         * modules/unistr/u32-strncmp: Likewise.
17020         * modules/unistr/u32-strncpy: Likewise.
17021         * modules/unistr/u32-strnlen: Likewise.
17022         * modules/unistr/u32-strpbrk: Likewise.
17023         * modules/unistr/u32-strrchr: Likewise.
17024         * modules/unistr/u32-strspn: Likewise.
17025         * modules/unistr/u32-strstr: Likewise.
17026         * modules/unistr/u32-strtok: Likewise.
17027         * modules/unistr/u32-to-u16: Likewise.
17028         * modules/unistr/u32-to-u8: Likewise.
17029         * modules/unistr/u32-uctomb: Likewise.
17030         * modules/uniwbrk/u8-wordbreaks: Likewise.
17031         * modules/uniwbrk/u16-wordbreaks: Likewise.
17032         * modules/uniwbrk/u32-wordbreaks: Likewise.
17033         * modules/uniwbrk/ulc-wordbreaks: Likewise.
17034         * modules/uniwbrk/wordbreak-property: Likewise.
17035         * modules/uniwidth/u8-strwidth: Likewise.
17036         * modules/uniwidth/u8-width: Likewise.
17037         * modules/uniwidth/u16-strwidth: Likewise.
17038         * modules/uniwidth/u16-width: Likewise.
17039         * modules/uniwidth/u32-strwidth: Likewise.
17040         * modules/uniwidth/u32-width: Likewise.
17041         * modules/uniwidth/width: Likewise.
17042         * modules/unicase/cased-tests (Makefile.am): Link all test programs
17043         with $(LIBUNISTRING).
17044         * modules/unicase/ignorable-tests: Likewise.
17045         * modules/unicase/locale-language-tests: Likewise.
17046         * modules/unicase/tolower-tests: Likewise.
17047         * modules/unicase/totitle-tests: Likewise.
17048         * modules/unicase/toupper-tests: Likewise.
17049         * modules/unicase/u8-casecmp-tests: Likewise.
17050         * modules/unicase/u8-casecoll-tests: Likewise.
17051         * modules/unicase/u8-casefold-tests: Likewise.
17052         * modules/unicase/u8-is-cased-tests: Likewise.
17053         * modules/unicase/u8-is-casefolded-tests: Likewise.
17054         * modules/unicase/u8-is-lowercase-tests: Likewise.
17055         * modules/unicase/u8-is-titlecase-tests: Likewise.
17056         * modules/unicase/u8-is-uppercase-tests: Likewise.
17057         * modules/unicase/u8-tolower-tests: Likewise.
17058         * modules/unicase/u8-totitle-tests: Likewise.
17059         * modules/unicase/u8-toupper-tests: Likewise.
17060         * modules/unicase/u16-casecmp-tests: Likewise.
17061         * modules/unicase/u16-casecoll-tests: Likewise.
17062         * modules/unicase/u16-casefold-tests: Likewise.
17063         * modules/unicase/u16-is-cased-tests: Likewise.
17064         * modules/unicase/u16-is-casefolded-tests: Likewise.
17065         * modules/unicase/u16-is-lowercase-tests: Likewise.
17066         * modules/unicase/u16-is-titlecase-tests: Likewise.
17067         * modules/unicase/u16-is-uppercase-tests: Likewise.
17068         * modules/unicase/u16-tolower-tests: Likewise.
17069         * modules/unicase/u16-totitle-tests: Likewise.
17070         * modules/unicase/u16-toupper-tests: Likewise.
17071         * modules/unicase/u32-casecmp-tests: Likewise.
17072         * modules/unicase/u32-casecoll-tests: Likewise.
17073         * modules/unicase/u32-casefold-tests: Likewise.
17074         * modules/unicase/u32-is-cased-tests: Likewise.
17075         * modules/unicase/u32-is-casefolded-tests: Likewise.
17076         * modules/unicase/u32-is-lowercase-tests: Likewise.
17077         * modules/unicase/u32-is-titlecase-tests: Likewise.
17078         * modules/unicase/u32-is-uppercase-tests: Likewise.
17079         * modules/unicase/u32-tolower-tests: Likewise.
17080         * modules/unicase/u32-totitle-tests: Likewise.
17081         * modules/unicase/u32-toupper-tests: Likewise.
17082         * modules/unicase/ulc-casecmp-tests: Likewise.
17083         * modules/unicase/ulc-casecoll-tests: Likewise.
17084         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
17085         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
17086         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
17087         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
17088         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
17089         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
17090         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
17091         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
17092         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
17093         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
17094         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
17095         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
17096         * modules/unictype/bidicategory-byname-tests: Likewise.
17097         * modules/unictype/bidicategory-name-tests: Likewise.
17098         * modules/unictype/bidicategory-of-tests: Likewise.
17099         * modules/unictype/bidicategory-test-tests: Likewise.
17100         * modules/unictype/block-list-tests: Likewise.
17101         * modules/unictype/block-of-tests: Likewise.
17102         * modules/unictype/block-test-tests: Likewise.
17103         * modules/unictype/category-C-tests: Likewise.
17104         * modules/unictype/category-Cc-tests: Likewise.
17105         * modules/unictype/category-Cf-tests: Likewise.
17106         * modules/unictype/category-Cn-tests: Likewise.
17107         * modules/unictype/category-Co-tests: Likewise.
17108         * modules/unictype/category-Cs-tests: Likewise.
17109         * modules/unictype/category-L-tests: Likewise.
17110         * modules/unictype/category-Ll-tests: Likewise.
17111         * modules/unictype/category-Lm-tests: Likewise.
17112         * modules/unictype/category-Lo-tests: Likewise.
17113         * modules/unictype/category-Lt-tests: Likewise.
17114         * modules/unictype/category-Lu-tests: Likewise.
17115         * modules/unictype/category-M-tests: Likewise.
17116         * modules/unictype/category-Mc-tests: Likewise.
17117         * modules/unictype/category-Me-tests: Likewise.
17118         * modules/unictype/category-Mn-tests: Likewise.
17119         * modules/unictype/category-N-tests: Likewise.
17120         * modules/unictype/category-Nd-tests: Likewise.
17121         * modules/unictype/category-Nl-tests: Likewise.
17122         * modules/unictype/category-No-tests: Likewise.
17123         * modules/unictype/category-P-tests: Likewise.
17124         * modules/unictype/category-Pc-tests: Likewise.
17125         * modules/unictype/category-Pd-tests: Likewise.
17126         * modules/unictype/category-Pe-tests: Likewise.
17127         * modules/unictype/category-Pf-tests: Likewise.
17128         * modules/unictype/category-Pi-tests: Likewise.
17129         * modules/unictype/category-Po-tests: Likewise.
17130         * modules/unictype/category-Ps-tests: Likewise.
17131         * modules/unictype/category-S-tests: Likewise.
17132         * modules/unictype/category-Sc-tests: Likewise.
17133         * modules/unictype/category-Sk-tests: Likewise.
17134         * modules/unictype/category-Sm-tests: Likewise.
17135         * modules/unictype/category-So-tests: Likewise.
17136         * modules/unictype/category-Z-tests: Likewise.
17137         * modules/unictype/category-Zl-tests: Likewise.
17138         * modules/unictype/category-Zp-tests: Likewise.
17139         * modules/unictype/category-Zs-tests: Likewise.
17140         * modules/unictype/category-and-not-tests: Likewise.
17141         * modules/unictype/category-and-tests: Likewise.
17142         * modules/unictype/category-byname-tests: Likewise.
17143         * modules/unictype/category-name-tests: Likewise.
17144         * modules/unictype/category-none-tests: Likewise.
17145         * modules/unictype/category-of-tests: Likewise.
17146         * modules/unictype/category-or-tests: Likewise.
17147         * modules/unictype/category-test-withtable-tests: Likewise.
17148         * modules/unictype/combining-class-tests: Likewise.
17149         * modules/unictype/ctype-alnum-tests: Likewise.
17150         * modules/unictype/ctype-alpha-tests: Likewise.
17151         * modules/unictype/ctype-blank-tests: Likewise.
17152         * modules/unictype/ctype-cntrl-tests: Likewise.
17153         * modules/unictype/ctype-digit-tests: Likewise.
17154         * modules/unictype/ctype-graph-tests: Likewise.
17155         * modules/unictype/ctype-lower-tests: Likewise.
17156         * modules/unictype/ctype-print-tests: Likewise.
17157         * modules/unictype/ctype-punct-tests: Likewise.
17158         * modules/unictype/ctype-space-tests: Likewise.
17159         * modules/unictype/ctype-upper-tests: Likewise.
17160         * modules/unictype/ctype-xdigit-tests: Likewise.
17161         * modules/unictype/decimal-digit-tests: Likewise.
17162         * modules/unictype/digit-tests: Likewise.
17163         * modules/unictype/mirror-tests: Likewise.
17164         * modules/unictype/numeric-tests: Likewise.
17165         * modules/unictype/property-alphabetic-tests: Likewise.
17166         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
17167         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
17168         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
17169         * modules/unictype/property-bidi-block-separator-tests: Likewise.
17170         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
17171         * modules/unictype/property-bidi-common-separator-tests: Likewise.
17172         * modules/unictype/property-bidi-control-tests: Likewise.
17173         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
17174         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
17175         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
17176         * modules/unictype/property-bidi-european-digit-tests: Likewise.
17177         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
17178         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
17179         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
17180         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
17181         * modules/unictype/property-bidi-pdf-tests: Likewise.
17182         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
17183         * modules/unictype/property-bidi-whitespace-tests: Likewise.
17184         * modules/unictype/property-byname-tests: Likewise.
17185         * modules/unictype/property-combining-tests: Likewise.
17186         * modules/unictype/property-composite-tests: Likewise.
17187         * modules/unictype/property-currency-symbol-tests: Likewise.
17188         * modules/unictype/property-dash-tests: Likewise.
17189         * modules/unictype/property-decimal-digit-tests: Likewise.
17190         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
17191         * modules/unictype/property-deprecated-tests: Likewise.
17192         * modules/unictype/property-diacritic-tests: Likewise.
17193         * modules/unictype/property-extender-tests: Likewise.
17194         * modules/unictype/property-format-control-tests: Likewise.
17195         * modules/unictype/property-grapheme-base-tests: Likewise.
17196         * modules/unictype/property-grapheme-extend-tests: Likewise.
17197         * modules/unictype/property-grapheme-link-tests: Likewise.
17198         * modules/unictype/property-hex-digit-tests: Likewise.
17199         * modules/unictype/property-hyphen-tests: Likewise.
17200         * modules/unictype/property-id-continue-tests: Likewise.
17201         * modules/unictype/property-id-start-tests: Likewise.
17202         * modules/unictype/property-ideographic-tests: Likewise.
17203         * modules/unictype/property-ids-binary-operator-tests: Likewise.
17204         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
17205         * modules/unictype/property-ignorable-control-tests: Likewise.
17206         * modules/unictype/property-iso-control-tests: Likewise.
17207         * modules/unictype/property-join-control-tests: Likewise.
17208         * modules/unictype/property-left-of-pair-tests: Likewise.
17209         * modules/unictype/property-line-separator-tests: Likewise.
17210         * modules/unictype/property-logical-order-exception-tests: Likewise.
17211         * modules/unictype/property-lowercase-tests: Likewise.
17212         * modules/unictype/property-math-tests: Likewise.
17213         * modules/unictype/property-non-break-tests: Likewise.
17214         * modules/unictype/property-not-a-character-tests: Likewise.
17215         * modules/unictype/property-numeric-tests: Likewise.
17216         * modules/unictype/property-other-alphabetic-tests: Likewise.
17217         * modules/unictype/property-other-default-ignorable-code-point-tests:
17218         Likewise.
17219         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
17220         * modules/unictype/property-other-id-continue-tests: Likewise.
17221         * modules/unictype/property-other-id-start-tests: Likewise.
17222         * modules/unictype/property-other-lowercase-tests: Likewise.
17223         * modules/unictype/property-other-math-tests: Likewise.
17224         * modules/unictype/property-other-uppercase-tests: Likewise.
17225         * modules/unictype/property-paired-punctuation-tests: Likewise.
17226         * modules/unictype/property-paragraph-separator-tests: Likewise.
17227         * modules/unictype/property-pattern-syntax-tests: Likewise.
17228         * modules/unictype/property-pattern-white-space-tests: Likewise.
17229         * modules/unictype/property-private-use-tests: Likewise.
17230         * modules/unictype/property-punctuation-tests: Likewise.
17231         * modules/unictype/property-quotation-mark-tests: Likewise.
17232         * modules/unictype/property-radical-tests: Likewise.
17233         * modules/unictype/property-sentence-terminal-tests: Likewise.
17234         * modules/unictype/property-soft-dotted-tests: Likewise.
17235         * modules/unictype/property-space-tests: Likewise.
17236         * modules/unictype/property-terminal-punctuation-tests: Likewise.
17237         * modules/unictype/property-test-tests: Likewise.
17238         * modules/unictype/property-titlecase-tests: Likewise.
17239         * modules/unictype/property-unassigned-code-value-tests: Likewise.
17240         * modules/unictype/property-unified-ideograph-tests: Likewise.
17241         * modules/unictype/property-uppercase-tests: Likewise.
17242         * modules/unictype/property-variation-selector-tests: Likewise.
17243         * modules/unictype/property-white-space-tests: Likewise.
17244         * modules/unictype/property-xid-continue-tests: Likewise.
17245         * modules/unictype/property-xid-start-tests: Likewise.
17246         * modules/unictype/property-zero-width-tests: Likewise.
17247         * modules/unictype/scripts-tests: Likewise.
17248         * modules/unictype/syntax-c-ident-tests: Likewise.
17249         * modules/unictype/syntax-c-whitespace-tests: Likewise.
17250         * modules/unictype/syntax-java-ident-tests: Likewise.
17251         * modules/unictype/syntax-java-whitespace-tests: Likewise.
17252         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
17253         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
17254         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
17255         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
17256         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
17257         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
17258         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
17259         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
17260         * modules/uniname/uniname-tests: Likewise.
17261         * modules/uninorm/canonical-decomposition-tests: Likewise.
17262         * modules/uninorm/compat-decomposition-tests: Likewise.
17263         * modules/uninorm/composition-tests: Likewise.
17264         * modules/uninorm/decomposing-form-tests: Likewise.
17265         * modules/uninorm/decomposition-tests: Likewise.
17266         * modules/uninorm/filter-tests: Likewise.
17267         * modules/uninorm/nfc-tests: Likewise.
17268         * modules/uninorm/nfd-tests: Likewise.
17269         * modules/uninorm/nfkc-tests: Likewise.
17270         * modules/uninorm/nfkd-tests: Likewise.
17271         * modules/uninorm/u8-normcmp-tests: Likewise.
17272         * modules/uninorm/u8-normcoll-tests: Likewise.
17273         * modules/uninorm/u16-normcmp-tests: Likewise.
17274         * modules/uninorm/u16-normcoll-tests: Likewise.
17275         * modules/uninorm/u32-normcmp-tests: Likewise.
17276         * modules/uninorm/u32-normcoll-tests: Likewise.
17277         * modules/unistdio/u8-asnprintf-tests: Likewise.
17278         * modules/unistdio/u8-vasnprintf-tests: Likewise.
17279         * modules/unistdio/u8-vasprintf-tests: Likewise.
17280         * modules/unistdio/u8-vsnprintf-tests: Likewise.
17281         * modules/unistdio/u8-vsprintf-tests: Likewise.
17282         * modules/unistdio/u16-asnprintf-tests: Likewise.
17283         * modules/unistdio/u16-vasnprintf-tests: Likewise.
17284         * modules/unistdio/u16-vasprintf-tests: Likewise.
17285         * modules/unistdio/u16-vsnprintf-tests: Likewise.
17286         * modules/unistdio/u16-vsprintf-tests: Likewise.
17287         * modules/unistdio/u32-asnprintf-tests: Likewise.
17288         * modules/unistdio/u32-vasnprintf-tests: Likewise.
17289         * modules/unistdio/u32-vasprintf-tests: Likewise.
17290         * modules/unistdio/u32-vsnprintf-tests: Likewise.
17291         * modules/unistdio/u32-vsprintf-tests: Likewise.
17292         * modules/unistdio/ulc-asnprintf-tests: Likewise.
17293         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
17294         * modules/unistdio/ulc-vasprintf-tests: Likewise.
17295         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
17296         * modules/unistdio/ulc-vsprintf-tests: Likewise.
17297         * modules/unistr/u8-check-tests: Likewise.
17298         * modules/unistr/u8-chr-tests: Likewise.
17299         * modules/unistr/u8-cmp-tests: Likewise.
17300         * modules/unistr/u8-cmp2-tests: Likewise.
17301         * modules/unistr/u8-cpy-alloc-tests: Likewise.
17302         * modules/unistr/u8-cpy-tests: Likewise.
17303         * modules/unistr/u8-mblen-tests: Likewise.
17304         * modules/unistr/u8-mbsnlen-tests: Likewise.
17305         * modules/unistr/u8-mbtouc-tests: Likewise.
17306         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
17307         * modules/unistr/u8-mbtoucr-tests: Likewise.
17308         * modules/unistr/u8-move-tests: Likewise.
17309         * modules/unistr/u8-next-tests: Likewise.
17310         * modules/unistr/u8-prev-tests: Likewise.
17311         * modules/unistr/u8-set-tests: Likewise.
17312         * modules/unistr/u8-stpcpy-tests: Likewise.
17313         * modules/unistr/u8-stpncpy-tests: Likewise.
17314         * modules/unistr/u8-strcat-tests: Likewise.
17315         * modules/unistr/u8-strcmp-tests: Likewise.
17316         * modules/unistr/u8-strcoll-tests: Likewise.
17317         * modules/unistr/u8-strcpy-tests: Likewise.
17318         * modules/unistr/u8-strdup-tests: Likewise.
17319         * modules/unistr/u8-strlen-tests: Likewise.
17320         * modules/unistr/u8-strmblen-tests: Likewise.
17321         * modules/unistr/u8-strmbtouc-tests: Likewise.
17322         * modules/unistr/u8-strncat-tests: Likewise.
17323         * modules/unistr/u8-strncmp-tests: Likewise.
17324         * modules/unistr/u8-strncpy-tests: Likewise.
17325         * modules/unistr/u8-strnlen-tests: Likewise.
17326         * modules/unistr/u8-to-u16-tests: Likewise.
17327         * modules/unistr/u8-to-u32-tests: Likewise.
17328         * modules/unistr/u8-uctomb-tests: Likewise.
17329         * modules/unistr/u16-check-tests: Likewise.
17330         * modules/unistr/u16-chr-tests: Likewise.
17331         * modules/unistr/u16-cmp-tests: Likewise.
17332         * modules/unistr/u16-cmp2-tests: Likewise.
17333         * modules/unistr/u16-cpy-alloc-tests: Likewise.
17334         * modules/unistr/u16-cpy-tests: Likewise.
17335         * modules/unistr/u16-mblen-tests: Likewise.
17336         * modules/unistr/u16-mbsnlen-tests: Likewise.
17337         * modules/unistr/u16-mbtouc-tests: Likewise.
17338         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
17339         * modules/unistr/u16-mbtoucr-tests: Likewise.
17340         * modules/unistr/u16-move-tests: Likewise.
17341         * modules/unistr/u16-next-tests: Likewise.
17342         * modules/unistr/u16-prev-tests: Likewise.
17343         * modules/unistr/u16-set-tests: Likewise.
17344         * modules/unistr/u16-stpcpy-tests: Likewise.
17345         * modules/unistr/u16-stpncpy-tests: Likewise.
17346         * modules/unistr/u16-strcat-tests: Likewise.
17347         * modules/unistr/u16-strcmp-tests: Likewise.
17348         * modules/unistr/u16-strcoll-tests: Likewise.
17349         * modules/unistr/u16-strcpy-tests: Likewise.
17350         * modules/unistr/u16-strdup-tests: Likewise.
17351         * modules/unistr/u16-strlen-tests: Likewise.
17352         * modules/unistr/u16-strmblen-tests: Likewise.
17353         * modules/unistr/u16-strmbtouc-tests: Likewise.
17354         * modules/unistr/u16-strncat-tests: Likewise.
17355         * modules/unistr/u16-strncmp-tests: Likewise.
17356         * modules/unistr/u16-strncpy-tests: Likewise.
17357         * modules/unistr/u16-strnlen-tests: Likewise.
17358         * modules/unistr/u16-to-u32-tests: Likewise.
17359         * modules/unistr/u16-to-u8-tests: Likewise.
17360         * modules/unistr/u16-uctomb-tests: Likewise.
17361         * modules/unistr/u32-check-tests: Likewise.
17362         * modules/unistr/u32-chr-tests: Likewise.
17363         * modules/unistr/u32-cmp-tests: Likewise.
17364         * modules/unistr/u32-cmp2-tests: Likewise.
17365         * modules/unistr/u32-cpy-alloc-tests: Likewise.
17366         * modules/unistr/u32-cpy-tests: Likewise.
17367         * modules/unistr/u32-mblen-tests: Likewise.
17368         * modules/unistr/u32-mbsnlen-tests: Likewise.
17369         * modules/unistr/u32-mbtouc-tests: Likewise.
17370         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
17371         * modules/unistr/u32-mbtoucr-tests: Likewise.
17372         * modules/unistr/u32-move-tests: Likewise.
17373         * modules/unistr/u32-next-tests: Likewise.
17374         * modules/unistr/u32-prev-tests: Likewise.
17375         * modules/unistr/u32-set-tests: Likewise.
17376         * modules/unistr/u32-stpcpy-tests: Likewise.
17377         * modules/unistr/u32-stpncpy-tests: Likewise.
17378         * modules/unistr/u32-strcat-tests: Likewise.
17379         * modules/unistr/u32-strcmp-tests: Likewise.
17380         * modules/unistr/u32-strcoll-tests: Likewise.
17381         * modules/unistr/u32-strcpy-tests: Likewise.
17382         * modules/unistr/u32-strdup-tests: Likewise.
17383         * modules/unistr/u32-strlen-tests: Likewise.
17384         * modules/unistr/u32-strmblen-tests: Likewise.
17385         * modules/unistr/u32-strmbtouc-tests: Likewise.
17386         * modules/unistr/u32-strncat-tests: Likewise.
17387         * modules/unistr/u32-strncmp-tests: Likewise.
17388         * modules/unistr/u32-strncpy-tests: Likewise.
17389         * modules/unistr/u32-strnlen-tests: Likewise.
17390         * modules/unistr/u32-to-u16-tests: Likewise.
17391         * modules/unistr/u32-to-u8-tests: Likewise.
17392         * modules/unistr/u32-uctomb-tests: Likewise.
17393         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
17394         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
17395         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
17396         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
17397         * modules/uniwidth/u8-strwidth-tests: Likewise.
17398         * modules/uniwidth/u8-width-tests: Likewise.
17399         * modules/uniwidth/u16-strwidth-tests: Likewise.
17400         * modules/uniwidth/u16-width-tests: Likewise.
17401         * modules/uniwidth/u32-strwidth-tests: Likewise.
17402         * modules/uniwidth/u32-width-tests: Likewise.
17403         * modules/uniwidth/width-tests: Likewise.
17404
17405 2010-05-18  Richard Jones  <rjones@redhat.com>
17406
17407         doc: users.txt: list hivex
17408         * users.txt: Add hivex.
17409
17410 2010-05-18  Richard Jones  <rjones@redhat.com>
17411
17412         doc: users.txt: list febootstrap
17413         * users.txt: Add febootstrap.
17414
17415 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
17416
17417         bootstrap: fix an error when gnulib is not used as a git submodule
17418         * build-aux/bootstrap (gnulib_path): If its length is zero then
17419         assign "gnulib" to it.
17420         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
17421
17422 2010-05-16  Bruno Haible  <bruno@clisp.org>
17423
17424         Avoid autoconf warnings about AM_ICONV.
17425         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
17426         2.64.
17427
17428 2010-05-16  Bruno Haible  <bruno@clisp.org>
17429
17430         absolute-header: Make the macro usable in more situations.
17431         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
17432         from gl_ABSOLUTE_HEADER.
17433         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
17434
17435 2010-05-16  James Youngman  <jay@gnu.org>
17436
17437         doc: update users.txt
17438         * users.txt: Add CSSC.
17439
17440 2010-05-16  Jim Meyering  <meyering@redhat.com>
17441
17442         init.sh: fix an error in the previous change; add more comments
17443         * tests/init.sh: Compare exit code in loop against 9, not 2.
17444         Patch by Bruno Haible.
17445         Make the two tests more similar by adding an empty "then" clause.
17446         Add comments.
17447
17448         init.sh: avoid unnecessary shell re-exec
17449         * tests/init.sh: Improve the re-exec-required check to first test the
17450         current shell.  If it passes the test, do not search for a shell that
17451         does pass, and do not re-exec.  This test is particularly contorted to
17452         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
17453         of $(...) evokes a syntax error and causes immediate shell exit with
17454         status 2.  Bruno Haible reported that the re-exec made it impossible
17455         to single-step through any init.sh-using script.
17456
17457 2010-05-16  Bruno Haible  <bruno@clisp.org>
17458
17459         Fix collision between gnulib's and libintl's printf replacements.
17460         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
17461         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
17462         (printf): When using GNU C, map the __printf__ function to rpl_printf
17463         via __asm__. When not using GNU C, define rpl_printf instead of
17464         __printf__.
17465         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
17466         commit.
17467         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
17468         commit.
17469         * m4/asm-underscore.m4: New file.
17470         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
17471         * modules/stdio (Files): Add m4/asm-underscore.m4.
17472         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
17473         Reported by Ben Pfaff.
17474
17475 2010-05-16  Bruno Haible  <bruno@clisp.org>
17476
17477         verify: Avoid skipping the test on openSUSE 11.0.
17478         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
17479
17480 2010-05-13  Bruno Haible  <bruno@clisp.org>
17481
17482         Avoid useless warnings from G++.
17483         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
17484         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
17485         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17486
17487 2010-05-11  Jim Meyering  <meyering@redhat.com>
17488
17489         maint.mk: tweak preceding change
17490         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
17491         regexps tighter by anchoring at EOL, and make the new group "shy"
17492         for slightly decreased overhead.
17493
17494 2010-05-11  Eric Blake  <eblake@redhat.com>
17495
17496         maint.mk: gnulib doesn't guarantee NSIG
17497         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
17498
17499 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17500
17501         test-pwrite.c: Remove unused variable declaration.
17502         * tests/test-pwrite.c (main): Remove read_buf declaration.
17503
17504         Remove useless test-pwrite.sh file.
17505         * tests/test-pwrite.sh: Delete file.
17506         * modules/pwrite-tests: Remove references.
17507         Reported by Bruno Haible.
17508
17509 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17510
17511         init.sh: fix a typo
17512         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
17513
17514 2010-05-10  Jim Meyering  <meyering@redhat.com>
17515
17516         maint.mk: avoid using a temporary file in the always-defined-macros check
17517         * top/maint.mk (.re-defmac): Remove rule.
17518         (gl_trap_): Remove definition.
17519         (sc_prohibit_always-defined_macros): Rewrite not to create and
17520         depend on a temporary file.  Instead, depend on GNU grep's ability
17521         to read a list of regular expressions from stdin when given "-f -".
17522
17523 2010-05-09  Bruno Haible  <bruno@clisp.org>
17524
17525         Update to GNU gettext 0.18, part 1.
17526         * m4/gettext.m4: Update to GNU gettext 0.18.
17527         * m4/intl.m4: Likewise.
17528         * m4/po.m4: Likewise.
17529         * modules/gettext (Files): Add m4/fcntl-o.m4.
17530         (configure.ac): Require gettext infrastructure from version 0.18.
17531
17532 2010-05-09  Jim Meyering  <meyering@redhat.com>
17533
17534         init.sh: enable MALLOC_PERTURB_
17535         * tests/init.sh: Enable glibc's malloc-perturbing option.
17536
17537         maint.mk: improve sc_cross_check_PATH_usage_in_tests
17538         With my recent change in init.sh from the two-line form:
17539             -#   : ${srcdir=.}
17540             -#   . "$srcdir/init.sh"; path_prepend_ .
17541             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
17542         I noticed that using the one-line form would cause this test
17543         to fail with a false-positive, or to stop working altogether,
17544         depending on whether help-version changed or all the tests did.
17545         * top/maint.mk (_hv_regex): Remove this definition.
17546         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
17547         (_hv_regex_strong): Use a stronger regex to check for conformance.
17548         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
17549         Give a separate diagnostic for lack of conforming use.
17550
17551         maint.mk: prohibit definition of symbols defined by gnulib
17552         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
17553         definition of symbols defined by gnulib.
17554
17555 2010-05-09  Bruno Haible  <bruno@clisp.org>
17556
17557         acl: Avoid test failure on Cygwin-hosted mingw.
17558         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
17559
17560 2010-05-09  Bruno Haible  <bruno@clisp.org>
17561
17562         error: Use system's fcntl function.
17563         * lib/error.c (fcntl): Undefine.
17564
17565 2010-05-09  Jim Meyering  <meyering@redhat.com>
17566
17567         verify: adjust formatting to be more consistent
17568         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
17569         argument-list '('s, and after one comma.
17570
17571 2010-05-09  Bruno Haible  <bruno@clisp.org>
17572
17573         error: More reliable output on mingw.
17574         * lib/error.c: Include <windows.h>.
17575         (is_open): New function.
17576         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
17577         defined.
17578
17579 2010-05-09  Bruno Haible  <bruno@clisp.org>
17580
17581         vasnprintf: Fix syntax errors in libintl build on mingw.
17582         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
17583         pad_ourselves and prec_ourselves after use.
17584
17585 2010-05-08  Bruno Haible  <bruno@clisp.org>
17586
17587         * lib/config.charset: Update comments for Cygwin 1.7.
17588         * lib/localcharset.c: Likewise.
17589
17590 2010-05-07  Jim Meyering  <meyering@redhat.com>
17591
17592         init.sh: improve comments
17593         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
17594         . "${srcdir=.}/init.sh"; path_prepend_ .
17595         Add a note about path_prepend_ and the alternative of using
17596         TESTS_ENVIRONMENT.
17597
17598 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17599
17600         exclude: Unescape hashed patterns in wildcard mode.
17601         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
17602         to the hash list.
17603         * tests/test-exclude8.sh: New test case.
17604         * modules/exclude-tests: Add new test.
17605
17606 2010-05-05  Eric Blake  <eblake@redhat.com>
17607
17608         verify: automate tests
17609         * modules/verify-tests: New module.
17610         * tests/test-verify.sh: New file.
17611         * tests/test-verify.c: Guard each negative test with a unique id.
17612         Also avoid warning about unused left hand of comma expressions.
17613
17614 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17615
17616         Further improvements to verify.h, suggested by Eric Blake.
17617         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
17618         the GL_* versions, to avoid collision with OpenGL.
17619         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
17620         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
17621         than testing merely whether it's defined.
17622
17623         Modify verify.h to pacify gcc -Wredundant_decls.
17624         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
17625         These use the prefix "GL_" since they're likely to be useful elsewhere.
17626         We may need to break them out into a different .h file.
17627         (__COUNTER__): Define to 0 if the compiler doesn't support it.
17628         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
17629         of verify_function__.
17630
17631 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17632
17633         Tests for module pwrite.
17634         * modules/pwrite-tests: New file.
17635         * tests/test-pwrite.sh: New file.
17636         * tests/test-pwrite.c: New file.
17637
17638         New module pwrite.
17639         * lib/unistd.in.h (pwrite): New declaration.
17640         * lib/pwrite.c: New file, from glibc with modifications.
17641         * m4/pwrite.m4: New file.
17642         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
17643         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
17644         REPLACE_PWRITE.
17645         * modules/pwrite: New file.
17646         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
17647         REPLACE_PWRITE.
17648         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
17649         * doc/posix-functions/pwrite.texi: Mention the new module.
17650
17651 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17652
17653         pread: Update documentation.
17654         * doc/posix-functions/pread.texi: Mention the 'pread' module.
17655
17656 2010-05-04  Eric Blake  <eblake@redhat.com>
17657
17658         docs: update cygwin progress
17659         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
17660         this bug.
17661         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
17662         Added in cygwin 1.7.2.
17663         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
17664         Likewise.
17665         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
17666         Likewise.
17667         * doc/glibc-functions/dup3.texi (dup3): Likewise.
17668         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17669         * doc/glibc-functions/accept4.texi (accept4): Likewise.
17670         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
17671         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
17672         Mention nproc module.
17673         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
17674         bug in cygwin 1.7.5 addition.
17675         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
17676         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
17677         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
17678         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
17679         1.7.5.
17680         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
17681         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
17682         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
17683         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
17684         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
17685         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
17686         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
17687         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
17688         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
17689         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
17690         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
17691         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
17692         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
17693         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
17694         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
17695         Likewise.
17696         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
17697         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
17698         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
17699         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
17700         Likewise.
17701         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
17702         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
17703         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
17704         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
17705         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
17706         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
17707         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
17708         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
17709         Likewise.
17710         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
17711         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
17712         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
17713         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
17714         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
17715         Likewise.
17716         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
17717         Likewise.
17718         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
17719         Likewise.
17720         * doc/glibc-functions/xdrrec_endofrecord.texi
17721         (xdrrec_endofrecord): Likewise.
17722         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
17723         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
17724         Likewise.
17725         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
17726         Likewise.
17727
17728 2010-05-04  Jim Meyering  <meyering@redhat.com>
17729
17730         gendocs.sh: make its "-s FILE" option more useful
17731         * build-aux/gendocs.sh: When honoring the -s FILE option, update
17732         $PACKAGE to reflect the probably-different basename of "FILE".
17733
17734 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
17735
17736         bootstrap: don't ignore download_po_files failure
17737         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
17738         failure.
17739
17740 2010-05-03  Jim Meyering  <meyering@redhat.com>
17741
17742         maint.mk: allow to pass options to gendocs.sh
17743         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
17744         (gendocs_options_): New overridable variable.
17745
17746         gnu-web-doc-update: don't ignore configure or build failure
17747         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
17748
17749         announce-gen: backslash-escape '@'s in --help output
17750         * build-aux/announce-gen: Fix syntax errors.
17751
17752         maint.mk, announce-gen: allow project-specific announcement mail headers
17753         * top/maint.mk (translation_project_): Define default.
17754         (announcement_Cc_, announcement_mail_headers_): Likewise.
17755         (announcement): Invoke announce-gen with new --mail-headers option.
17756         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
17757
17758         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
17759         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
17760         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
17761         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
17762         line in the "err2" output file when running "make check" in verbose
17763         mode (i.e., with set -x enabled).
17764
17765 2010-05-03  Bruno Haible  <bruno@clisp.org>
17766
17767         wctob: Fix for weird platforms.
17768         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
17769         argument value.
17770
17771 2010-05-03  Jim Meyering  <meyering@redhat.com>
17772
17773         maint.mk: prohibit unwarranted use of <strings.h>
17774         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
17775         strings.h in a file that does not also use strcasecmp, strncasecmp,
17776         ffs or ffsll.
17777
17778         maint.mk: remove obsolete comments
17779         * top/maint.mk: Remove stale, commented-out rules.
17780
17781 2010-05-02  Bruno Haible  <bruno@clisp.org>
17782
17783         wcwidth: Declare also when it's aliased.
17784         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
17785         macro.
17786
17787 2010-05-02  Bruno Haible  <bruno@clisp.org>
17788
17789         Fix regression from 2010-04-25.
17790         * gnulib-tool (func_modules_transitive_closure): Check the status of
17791         all modules, not only of the tests that are of the form foo-tests where
17792         foo is a module.
17793
17794 2010-05-02  Bruno Haible  <bruno@clisp.org>
17795
17796         wctob: Work around nasty Cygwin 1.7.2 bug.
17797         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
17798         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
17799
17800 2010-05-01  Bruno Haible  <bruno@clisp.org>
17801
17802         fpurge: Sharper test.
17803         * tests/test-fpurge.c (main): Add one more ftell check.
17804         * modules/fpurge-tests (Depends-on): Add ftell.
17805         Suggested by Eric Blake.
17806
17807 2010-05-01  Bruno Haible  <bruno@clisp.org>
17808
17809         ftello: Another test.
17810         * tests/test-ftello3.c: New file.
17811         * modules/ftello-tests (Files): Add it.
17812         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
17813         MOSTLYCLEANFILES.
17814
17815         ftell: Another test.
17816         * tests/test-ftell3.c: New file.
17817         * modules/ftell-tests (Files): Add it.
17818         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
17819         MOSTLYCLEANFILES.
17820
17821 2010-05-01  Bruno Haible  <bruno@clisp.org>
17822
17823         ftell, ftello: Work around Solaris bug.
17824         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
17825         * lib/ftello.c: Include stdio-impl.h.
17826         (ftello): On Solaris, when _IOWRT is set, compute the result without
17827         looking at _IOREAD.
17828         * modules/ftello (Files): Add lib/stdio-impl.h.
17829         * doc/posix-functions/ftell.texi: Mention Solaris bug.
17830         * doc/posix-functions/ftello.texi: Likewise.
17831         Reported by Eric Blake.
17832
17833 2010-05-01  Bruno Haible  <bruno@clisp.org>
17834
17835         freading: Adapt to special meaning of _IOREAD flag on Solaris.
17836         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
17837         the _IOWRT flag is also set.
17838
17839 2010-05-01  Bruno Haible  <bruno@clisp.org>
17840
17841         Fix doc about a HP-UX stdio bug.
17842         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
17843         * doc/posix-functions/ftello.texi: Likewise.
17844
17845 2010-05-01  Bruno Haible  <bruno@clisp.org>
17846
17847         lseek test: Fix failure on Solaris.
17848         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
17849         output.
17850
17851 2010-04-30  Jim Meyering  <meyering@redhat.com>
17852
17853         bootstrap: don't ignore failure to generate po*/Makevars
17854         * build-aux/bootstrap (with_gettext): Don't ignore failure
17855         to create po/Makevars or runtime-po/Makevars.
17856
17857 2010-04-29  Eric Blake  <eblake@redhat.com>
17858
17859         headers: relax license to LGPLv2+
17860         * modules/fcntl-h (License): Relax license.
17861         * modules/getopt-posix (License): Likewise.
17862         * modules/locale (License): Likewise.
17863         * modules/math (License): Likewise.
17864         * modules/pty (License): Likewise.
17865         * modules/sched (License): Likewise.
17866         * modules/search (License): Likewise.
17867         * modules/spawn (License): Likewise.
17868         * modules/stdarg (License): Likewise.
17869         * modules/sysexits (License): Likewise.
17870
17871 2010-04-29  Jim Meyering  <meyering@redhat.com>
17872
17873         inttypes: relax license to LGPLv2+
17874         * modules/inttypes (License): Relax license.
17875
17876 2010-04-29  Simon Josefsson  <simon@josefsson.org>
17877
17878         * top/maint.mk (indent): Run twice to produce idempotent results.
17879
17880 2010-04-28  Bruno Haible  <bruno@clisp.org>
17881
17882         getdate: Generate getdate.c in the source directory.
17883         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
17884         MOSTLYCLEANFILES.
17885         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
17886
17887 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
17888
17889         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
17890         is not declared as a const *; avoid warnings in that case.
17891
17892 2010-04-28  Eric Blake  <eblake@redhat.com>
17893
17894         canonicalize-lgpl: avoid compiler warning
17895         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
17896         declaration' / 'extraneous semicolon' warning with some compilers.
17897         Reported by Andreas Gruenbacher.
17898
17899 2010-04-28  Jim Meyering  <meyering@redhat.com>
17900
17901         init.sh: ensure a more reliable exit status when exiting via trap
17902         * tests/init.sh (setup_): Don't rely on $? in signal handler.
17903         Inspired by patches from Dmitry V. Levin.
17904         Also trap on signal 3 (SIGQUIT).
17905
17906 2010-04-27  Bruno Haible  <bruno@clisp.org>
17907
17908         Update doc about utimes().
17909         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
17910         'utimens' module.
17911         Reported by Andreas Gruenbacher <agruen@suse.de>.
17912
17913 2010-04-27  Eric Blake  <eblake@redhat.com>
17914
17915         full-read, full-write: relax license
17916         * modules/full-read (License): Drop to LGPLv2+.
17917         * modules/full-write (License): Likewise.
17918         * modules/safe-read (License): Likewise.
17919         * modules/safe-write (License): Likewise.
17920
17921         pthread: mention library for linking
17922         * modules/pthread (Link): Mention $(LIB_PTHREAD).
17923
17924 2010-04-27  Jim Meyering  <meyering@redhat.com>
17925
17926         maint.mk: fix a bug introduced in last change
17927         * top/maint.mk (gl_assured_headers_): Now that all names are on
17928         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
17929         is not anchored to end of word, it should be adequate.
17930
17931         maint.mk: avoid side-effect in latest syntax-check
17932         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
17933         to run commands via $(shell...), and hence to incur cost only when
17934         the new rule is actually run.
17935
17936         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
17937         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
17938         and use that to create a regexp used to detect all #if HAVE_..._H uses.
17939         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
17940         (gl_assured_headers_, az_, AZ_): Define.
17941         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
17942
17943 2010-04-26  Jim Meyering  <jim@meyering.net>
17944             Bruno Haible  <bruno@clisp.org>
17945
17946         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
17947         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
17948         Prompted by an exchange with Gilles Espinasse.
17949
17950 2010-04-26  Jim Meyering  <meyering@redhat.com>
17951
17952         git-version-gen: aesthetic tweak
17953         * build-aux/git-version-gen: Use "$nl" rather than a literal,
17954         so that the command remains on a single line.
17955
17956 2010-04-26  Eric Blake  <eblake@redhat.com>
17957
17958         git-version-gen: allow use on EBCDIC hosts
17959         * build-aux/git-version-gen (dirty): Use literal rather than tying
17960         ourselves to ascii.
17961         Reported by Steve Goetze.
17962
17963 2010-04-25  Bruno Haible  <bruno@clisp.org>
17964
17965         netdb: Add support for GNULIB_POSIXCHECK.
17966         * lib/netdb.in.h: Include warn-on-use.h.
17967         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
17968         functions are used when GNULIB_POSIXCHECK is defined and the
17969         getaddrinfo module is not in use.
17970         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
17971         freeaddrinfo, gai_strerror, getnameinfo are declared.
17972         * modules/netdb (Depends-on): Add warn-on-use.
17973         (Makefile.am): Include warn-on-use.h in netdb.h.
17974
17975 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
17976
17977         build: avoid "make check" failure without .git/ directory
17978         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
17979         there is no .git/ directory.
17980
17981 2010-04-25  Bruno Haible  <bruno@clisp.org>
17982
17983         ptsname: Fix misuse of ttyname_r.
17984         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
17985         of errno.
17986
17987 2010-04-25  Bruno Haible  <bruno@clisp.org>
17988
17989         ttyname_r: Make it work on Solaris 10.
17990         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
17991         if the system function has the POSIX declaration. Test whether the
17992         function fails if the buffer is less than 128 bytes large.
17993         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
17994         system's ttyname_r function. Provide a reasonably large buffer.
17995         * modules/ttyname_r (Depends-on): Add extensions.
17996         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
17997
17998 2010-04-25  Bruno Haible  <bruno@clisp.org>
17999
18000         Use the 'extensions' module for some more functions on Solaris.
18001         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
18002         module.
18003         * doc/posix-functions/ctime_r.texi: Likewise.
18004         * doc/posix-functions/getgrgid_r.texi: Likewise.
18005         * doc/posix-functions/getgrnam_r.texi: Likewise.
18006         * doc/posix-functions/getpwnam_r.texi: Likewise.
18007         * doc/posix-functions/getpwuid_r.texi: Likewise.
18008         * doc/posix-functions/readdir_r.texi: Likewise.
18009         * doc/posix-functions/sigwait.texi: Likewise.
18010         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
18011         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
18012
18013 2010-04-25  Bruno Haible  <bruno@clisp.org>
18014
18015         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
18016         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
18017         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
18018         * lib/ttyname_r.c: Include <limits.h>.
18019         (ttyname_r): Define using the system's ttyname_r function, if it exists
18020         and not on Solaris.
18021         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
18022         set.
18023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
18024         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
18025         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
18026         Reported by Simon Josefsson.
18027
18028 2010-04-25  Bruno Haible  <bruno@clisp.org>
18029
18030         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
18031         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
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/getlogin_r.texi: Likewise.
18036         * doc/posix-functions/getpwnam_r.texi: Likewise.
18037         * doc/posix-functions/getpwuid_r.texi: Likewise.
18038         * doc/posix-functions/readdir_r.texi: Likewise.
18039         * doc/posix-functions/sigwait.texi: Likewise.
18040         * doc/posix-functions/ttyname_r.texi: Likewise.
18041         Reported by Simon Josefsson.
18042
18043 2010-04-25  Bruno Haible  <bruno@clisp.org>
18044
18045         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
18046         * gnulib-tool (func_usage): Document that --with-*-tests options apply
18047         also to --create-testdir.
18048         (func_acceptable): Don't consider the status of *-tests modules here.
18049         (func_modules_transitive_closure): Consider it here, before including a
18050         test module.
18051         (func_import, func_create_testdir): Set inc_all_direct_tests,
18052         inc_all_indirect_tests.
18053         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
18054         --create-testdir and --create-megatestdir.
18055
18056 2010-04-25  Bruno Haible  <bruno@clisp.org>
18057
18058         gnulib-tool: Add --without-*-tests options.
18059         * gnulib-tool (func_usage): Document the --without-*-tests options.
18060         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
18061         excl_unportable_tests): New variables.
18062         Fail if they are specified with --import or --update.
18063         (func_acceptable): Respect the excl_*_tests variables.
18064         (func_import): Set the excl_*_tests variables to empty.
18065
18066 2010-04-25  Simon Josefsson  <simon@josefsson.org>
18067             Bruno Haible  <bruno@clisp.org>
18068
18069         Work around a MacOS X 10.4 bug with openpty.
18070         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
18071         * tests/test-openpty.c (main): Close the master side explicitly.
18072
18073 2010-04-25  Bruno Haible  <bruno@clisp.org>
18074
18075         strnlen: Fix a C++ test error on MacOS X and Solaris.
18076         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
18077         the function is not declared.
18078         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
18079         Simon Josefsson.
18080
18081 2010-04-24  Bruno Haible  <bruno@clisp.org>
18082
18083         Avoid a gcc warning.
18084         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
18085         of correct type for %08lx directive.
18086         Reported by Eric Blake.
18087
18088 2010-04-24  Bruno Haible  <bruno@clisp.org>
18089
18090         vasnprintf: Correct errno value in case of out-of-memory.
18091         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
18092         or sprintf. Use the errno value from SNPRINTF or sprintf.
18093         Reported by Ian Beckwith <ianb@erislabs.net>.
18094
18095 2010-04-24  Bruno Haible  <bruno@clisp.org>
18096
18097         ansi-c++-opt: Find correct compiler when cross-compiling.
18098         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
18099         AC_CHECK_PROGS.
18100         Reported by Simon Josefsson.
18101
18102 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
18103
18104         vc-list-files: Add support for subversion
18105         * build-aux/vc-list-files: Use "svn list" to generate the list of
18106         files controlled by subversion.
18107
18108 2010-04-23  Jim Meyering  <meyering@redhat.com>
18109
18110         vc-list-files tests: convert to use init.sh
18111         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
18112         path_prepend_.
18113         Use Exit, not exit.
18114         Use skip_ rather than open coding it.
18115         Remove trap set-up and compare definitions.
18116         * tests/test-vc-list-files-git.sh: Likewise.
18117         * modules/vc-list-files-tests (Files): Add tests/init.sh.
18118
18119 2010-04-22  Simon Josefsson  <simon@josefsson.org>
18120
18121         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
18122         backup files.
18123
18124 2010-04-21  Simon Josefsson  <simon@josefsson.org>
18125
18126         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
18127
18128 2010-04-20  Eric Blake  <eblake@redhat.com>
18129
18130         tests: be robust to ignored SIGPIPE
18131         * tests/test-select-in.sh: Consume all output.
18132         * tests/test-lseek.sh: Check correct exit status, while avoiding
18133         EPIPE.
18134
18135 2010-04-20  Simon Josefsson  <simon@josefsson.org>
18136             Bruno Haible  <bruno@clisp.org>
18137
18138         visibility: Don't use -fvisibility if it leads to a warning.
18139         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
18140         yes, don't pretend that visibility works if it leads to a warning.
18141         Reported by Mike Gran <spk121@yahoo.com>.
18142
18143 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
18144
18145         * build-aux/bootstrap: Use "git -h" for testing for supported options
18146         instead of "git --help".  The short-form option only shows a summary,
18147         and doesn't layout the full man page.  Grep for the full option name
18148         in the summary, too.
18149
18150 2010-04-19  Bruno Haible  <bruno@clisp.org>
18151
18152         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
18153         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
18154         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
18155         mention of RELOCATABLE_STRIP.
18156         Reported by Sylvain Beucler <beuc@beuc.net>.
18157
18158 2010-04-19  Bruno Haible  <bruno@clisp.org>
18159
18160         * lib/diffseq.h: Fix typo in comment.
18161         Reported by Eric Blake.
18162
18163 2010-04-19  Bruno Haible  <bruno@clisp.org>
18164
18165         ioctl: Move autoconf macro to a .m4 file.
18166         * m4/ioctl.m4: New file, extracted from modules/ioctl.
18167         * modules/ioctl (Files): Add it.
18168         (configure.ac): Simply invoke gl_FUNC_IOCTL.
18169         Reported by Ian Beckwith <ianb@erislabs.net>.
18170
18171 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
18172             Bruno Haible  <bruno@clisp.org>
18173
18174         diffseq: Accommodate use-case with abstract arrays.
18175         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
18176         is not defined.
18177         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
18178         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
18179
18180 2010-04-18  Bruno Haible  <bruno@clisp.org>
18181
18182         * doc/posix-headers/stdbool.texi: More precise wording.
18183
18184 2010-04-17  Jim Meyering  <meyering@redhat.com>
18185
18186         maint.mk: use gnu-style indentation in an embedded perl script
18187         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
18188         Rename variable: s/two/last_two_bytes/
18189
18190 2010-04-16  Eric Blake  <eblake@redhat.com>
18191
18192         test-stdbool: skip test that fails with Solaris CC
18193         * tests/test-stdbool.c (f): Skip test that causes compilation
18194         error under buggy C++ compiler.
18195         * lib/stdbool.in.h: Document the limitation.
18196         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
18197
18198         setenv: allow compilation with C++
18199         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
18200         register keyword.
18201
18202         stdint: allow test to pass with C++
18203         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
18204
18205         getopt: allow compilation with C++
18206         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
18207         struct.
18208         * lib/getopt.c (_getopt_internal_r): Use correct type.
18209         Reported by Dagobert Michelson, via Joel E. Denny.
18210
18211 2010-04-16  Bruno Haible  <bruno@clisp.org>
18212
18213         Override netdb.h always.
18214         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
18215         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
18216         Reported by Ludovic Courtès <ludo@gnu.org>.
18217
18218 2010-04-15  Bruno Haible  <bruno@clisp.org>
18219
18220         openpty: Fix mistake from 2010-03-21.
18221         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
18222         Reported by Simon Josefsson.
18223
18224 2010-04-15  Eric Blake  <eblake@redhat.com>
18225
18226         test-forkpty: fix expected signature
18227         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
18228         Reported by Simon Josefsson.
18229
18230 2010-04-15  Jim Meyering  <meyering@redhat.com>
18231
18232         maint.mk: texinfo_suffix_re_: correct the default regexp
18233         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
18234
18235         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
18236         make it configurable via texinfo_suffix_re_.
18237
18238 2010-04-14  Eric Blake  <eblake@redhat.com>
18239
18240         strtok_r: relax license to LGPLv2+
18241         * modules/strtok_r (License): Relax license.
18242         Reported by Matthias Bolte.
18243
18244 2010-04-14  Simon Josefsson  <simon@josefsson.org>
18245
18246         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
18247         version 1.4.4 by default instead of requiring the libgcrypt
18248         version used during build.  This makes it possible to use the
18249         application with older but still binary compatible libgcrypt
18250         versions.
18251
18252 2010-04-13  Eric Blake  <eblake@redhat.com>
18253
18254         getopt-gnu: match recent glibc fixes and posix ruling
18255         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
18256         '+' handling, when requesting extensions.
18257         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
18258         'W;' handling.
18259         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
18260         * doc/posix-functions/getopt.texi (getopt): Document this.
18261         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18262         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18263         Likewise.
18264
18265         getopt: merge bug fixes from glibc
18266         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
18267         diagnostics.  Honor '+:' correctly.  Reject ';'.
18268
18269         getopt-posix: detect MacOS bug
18270         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
18271         optind when missing a required argument.
18272         * doc/posix-functions/getopt.texi (getopt): Document the bug.
18273         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18274         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18275         Likewise.
18276
18277         getopt-posix: avoid spurious failure on Solaris
18278         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
18279         an indicator that setting optind=1 is sufficient for reset.
18280
18281         getopt-posix: avoid spurious failure on FreeBSD
18282         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
18283         in POSIX mode, since the m4 test uses it.
18284
18285         gnulib-tool: silence warning on BSD sh
18286         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
18287
18288 2010-04-13  Jim Meyering  <meyering@redhat.com>
18289
18290         doc: users.txt: GNU patch now uses gnulib
18291         * users.txt: Add patch.
18292
18293 2010-04-12  Jim Meyering  <meyering@redhat.com>
18294
18295         maint.mk: generate more concise timing data for syntax-check rules
18296         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
18297         " done" from each line that reports a syntax-check test duration.
18298
18299 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
18300
18301         git-version-gen: use "git update-index..." rather than "git status"
18302         * build-aux/git-version-gen: Use git update-index --refresh, not
18303         "git status".  With some versions of git, "git status" would fail
18304         to update the index and result in an unwarranted "-dirty" suffix.
18305
18306 2010-04-11  Jim Meyering  <meyering@redhat.com>
18307
18308         openat: correct formatting (no semantic change)
18309         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
18310         Suggested by Bruno Haible.
18311
18312 2010-04-11  Bruno Haible  <bruno@clisp.org>
18313
18314         Stricter declaration checking in testdirs.
18315         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18316         If for_tests is true, augment AM_CPPFLAGS to define
18317         GNULIB_STRICT_CHECKING.
18318         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
18319         GNULIB_STRICT_CHECKING is defined, verify that the function is
18320         declared.
18321
18322 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
18323             Bruno Haible  <bruno@clisp.org>
18324
18325         libunistring: Improve configure output.
18326         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
18327         Don't say "consider installing GNU libunistring" when checking again
18328         with libiconv.
18329
18330 2010-04-11  Bruno Haible  <bruno@clisp.org>
18331
18332         libunistring: Correct value of $LTLIBUNISTRING.
18333         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
18334         correct the value of $LTLIBUNISTRING.
18335
18336 2010-04-11  Bruno Haible  <bruno@clisp.org>
18337
18338         havelib: Add static libraries to LIBS in the right order.
18339         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
18340         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
18341
18342 2010-04-11  Bruno Haible  <bruno@clisp.org>
18343
18344         libunistring: Detect libunistring also when it depends on libiconv.
18345         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
18346         the second AC_LIB_HAVE_LINKFLAGS invocation.
18347
18348 2010-04-11  James Youngman  <jay@gnu.org>
18349
18350         close-stream: declare local scalars to be "const"
18351         * lib/close-stream.c (close_stream): Make boolean variables const
18352         to document the fact that we set but do not change them.
18353
18354 2010-04-11  Bruno Haible  <bruno@clisp.org>
18355
18356         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
18357
18358 2010-04-11  Jim Meyering  <meyering@redhat.com>
18359
18360         maint.mk: don't include dist-check.mk
18361         * top/maint.mk: Remove bogus include directive.
18362
18363         maint.mk: improve empty-line-at-EOF check
18364         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
18365         solution, rather than tail+Perl-based one.  The latter would read
18366         a few kilobytes from the end of each file, and did not handle empty
18367         files properly.
18368
18369         maint.mk: print the elapsed time for each syntax-check rule
18370         * top/maint.mk (sc_m_rules_): Save start time in a file.
18371         (sc_z_rules_): New rules: remove temp file and print elapsed time.
18372         (local-check): Interpose the .z rules
18373
18374 2010-04-11  Jim Meyering  <meyering@redhat.com>
18375
18376         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
18377         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
18378         empty file with one that ends in an empty line.
18379
18380 2010-04-10  Bruno Haible  <bruno@clisp.org>
18381
18382         mkdir: Make it work on mingw64.
18383         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
18384         * lib/mkdir.c: Update comment.
18385         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
18386
18387 2010-04-10  Bruno Haible  <bruno@clisp.org>
18388
18389         Don't override improved macro from newer autoconf.
18390         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
18391         autoconf >= 2.62.
18392         Reported by Joel E. Denny <jdenny@clemson.edu>.
18393
18394 2010-04-10  Jim Meyering  <meyering@redhat.com>
18395
18396         maint.mk: new syntax-check rule: prohibit empty lines at end of file
18397         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
18398
18399         maint.mk: correct a diagnostic
18400         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
18401         in diagnostic; now use $prohibit.
18402
18403 2010-04-10  Bruno Haible  <address@hidden>
18404
18405         fchownat: Fix a C++ test error on Solaris 8.
18406         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
18407         the function does not exist.
18408
18409 2010-04-10  Bruno Haible  <bruno@clisp.org>
18410
18411         vasnprintf: Add more tests.
18412         * tests/test-vasnprintf-posix.c: Include <errno.h>.
18413         (test_function): Test converting an invalid wide string.
18414
18415         vasnprintf: Correct handling of unconvertible wide string arguments.
18416         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
18417         VASNPRINTF.
18418         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
18419         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
18420         smaller than the expected maximum need for the directive. Set errno to
18421         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
18422         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
18423         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
18424         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
18425         * modules/vasnprintf (Files): Add m4/printf.m4.
18426         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18427
18428 2010-04-10  Bruno Haible  <bruno@clisp.org>
18429
18430         vasnprintf: Fix crash in %ls directive.
18431         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
18432         string is passed as argument to %ls, with no precision and no width.
18433         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18434
18435 2010-04-10  Bruno Haible  <bruno@clisp.org>
18436
18437         vasnprintf: Fix multiple test failures on mingw.
18438         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
18439         _snprintf, or snwprintf, not _snwprintf.
18440
18441 2010-04-10  Bruno Haible  <bruno@clisp.org>
18442
18443         write: Fix a C++ test error on mingw.
18444         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
18445
18446 2010-04-10  Bruno Haible  <bruno@clisp.org>
18447
18448         vasnprintf test: Reduce code duplication.
18449         * tests/test-vasnprintf.c (test_function): New function, extracted from
18450         test_vasnprintf.
18451         (test_vasnprintf, test_asnprintf): Invoke it.
18452
18453 2010-04-10  Bruno Haible  <bruno@clisp.org>
18454
18455         strnlen: Fix warning in C++ mode on MacOS X.
18456         * lib/string.in.h (strnlen): Use the modern idiom.
18457         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
18458         defining strnlen as a macro already in <config.h>.
18459         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18460         REPLACE_STRNLEN.
18461         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
18462         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18463
18464 2010-04-08  James Youngman  <jay@gnu.org>
18465
18466         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
18467         the example.
18468
18469 2010-04-09  Jim Meyering  <meyering@redhat.com>
18470
18471         maint.mk: print better diagnostic when there is no $(_hv_file)
18472         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
18473         announce that when $(_hv_file) (aka help-version) does not exist.
18474
18475         init.sh: run tr in the "C" locale to avoid multibyte interpretation
18476         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
18477         not try to interpret its random input bytes.  Jarno Rajahalme reported
18478         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
18479         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
18480         (mktempd_): Likewise, just in case.
18481
18482         ftruncate: add two years to projected module removal date: 2012
18483         * m4/ftruncate.m4: Adjust comments.
18484
18485         ftruncate: mark module as obsolete; even MinGW provides it, now
18486         * modules/ftruncate (Status): Obsolete.
18487         (Notice): Say that.
18488         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
18489         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
18490
18491 2010-04-08  Bruno Haible  <bruno@clisp.org>
18492
18493         Fix side effects from tests-related modules.
18494         * modules/dprintf-posix (Comment): New section.
18495         * modules/fprintf-posix (Comment): Likewise.
18496         * modules/obstack-printf-posix (Comment): Likewise.
18497         * modules/printf-posix (Comment): Likewise.
18498         * modules/snprintf-posix (Comment): Likewise.
18499         * modules/sprintf-posix (Comment): Likewise.
18500         * modules/vasnprintf-posix (Comment): Likewise.
18501         * modules/vasprintf-posix (Comment): Likewise.
18502         * modules/vdprintf-posix (Comment): Likewise.
18503         * modules/vfprintf-posix (Comment): Likewise.
18504         * modules/vprintf-posix (Comment): Likewise.
18505         * modules/vsnprintf-posix (Comment): Likewise.
18506         * modules/vsprintf-posix (Comment): Likewise.
18507         * modules/xprintf-posix (Comment): Likewise.
18508         * modules/xvasprintf-posix (Comment): Likewise.
18509         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
18510         * modules/floorf-tests (Depends-on): Likewise.
18511         * modules/round-tests (Depends-on): Likewise.
18512         * modules/roundf-tests (Depends-on): Likewise.
18513         * modules/trunc-tests (Depends-on): Likewise.
18514         * modules/truncf-tests (Depends-on): Likewise.
18515         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
18516         'fprintf-posix' module is not present.
18517         * tests/test-floorf2.c (check): Likewise.
18518         * tests/test-trunc2.c (check): Likewise.
18519         * tests/test-truncf2.c (check): Likewise.
18520         * tests/test-round2.c (equal): Likewise.
18521         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18522
18523 2010-04-07  Karl Berry  <karl@gnu.org>
18524
18525         * config/srclist.txt,
18526         * config/srclistvars.sh,
18527         * config/srclist-update: doc fixes.
18528
18529 2010-04-07  Jim Meyering  <meyering@redhat.com>
18530
18531         maint.mk: add a PATH crosschecking syntax-check rule
18532         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
18533         Useful if you use a test like the one in help-version (coreutils,
18534         diffutils, grep, gzip) that ensures $(VERSION) matches what is
18535         printed by prog --version.
18536
18537 2010-04-06  Bruno Haible  <bruno@clisp.org>
18538
18539         Fix link error on mingw.
18540         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
18541         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
18542
18543 2010-04-06  Bruno Haible  <bruno@clisp.org>
18544
18545         Assume rmdir exists.
18546         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
18547
18548 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
18549
18550         doc: update users.txt
18551         * users.txt: Add gcal.
18552
18553 2010-04-06  Jim Meyering  <meyering@redhat.com>
18554
18555         init.sh: simply unset TMPDIR rather than risking env -i
18556         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
18557         although it probably works fine on all Unix-based systems, some
18558         systems (Cygwin?) cannot tolerate a totally cleared environment.
18559         Suggestion from Eric Blake.
18560
18561 2010-04-06  Jim Meyering  <meyering@redhat.com>
18562
18563         init.sh: portability fix: use env's POSIX-specified -i option not -u
18564         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
18565         than unportable env -u.  Solaris 5.11's env lacks support for -u.
18566
18567 2010-04-05  Bruno Haible  <bruno@clisp.org>
18568
18569         btowc: Work around Cygwin 1.7.2 bug.
18570         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
18571         does not map NUL to 0.
18572         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
18573
18574 2010-04-05  Bruno Haible  <bruno@clisp.org>
18575
18576         Make the multithread modules work on Cygwin 1.7.2.
18577         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
18578         imported symbols can be declared weak, so that it returns "no" on
18579         Cygwin 1.7.2.
18580
18581 2010-04-05  Bruno Haible  <bruno@clisp.org>
18582
18583         Use the module 'strncat'.
18584         * modules/unistr/u8-strncat (Depends-on): Add strncat.
18585
18586         Tests for module 'strncat'.
18587         * modules/strncat-tests: New file.
18588         * tests/test-strncat.c: New file.
18589
18590         New module 'strncat'.
18591         * lib/string.in.h (strncat): New declaration.
18592         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
18593         * m4/strncat.m4: New file, based on m4/memchr.m4.
18594         * modules/strncat: New file.
18595         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
18596         is declared.
18597         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
18598         REPLACE_STRNCAT.
18599         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
18600         REPLACE_STRNCAT.
18601         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
18602         module.
18603         * tests/test-string-c++.cc: Check signature of strncat.
18604
18605 2010-04-05  Jim Meyering  <meyering@redhat.com>
18606
18607         xstrtoumax-tests: convert to use init.sh
18608         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
18609         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18610         Use Exit, not exit.
18611         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18612
18613         xstrtoimax-tests: convert to use init.sh
18614         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
18615         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18616         Use Exit, not exit.
18617         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18618
18619 2010-04-05  Bruno Haible  <bruno@clisp.org>
18620
18621         sys_socket: Avoid #define replacements in C++ mode.
18622         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
18623         warning to the function if possible, rather than #defining the symbol
18624         to a dysfunctional alias.
18625
18626 2010-04-05  Bruno Haible  <bruno@clisp.org>
18627
18628         fseeko: Fix C++ test error on mingw.
18629         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
18630         gl_FUNC_FSEEKO.
18631         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
18632         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
18633         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
18634         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
18635
18636 2010-04-05  Bruno Haible  <bruno@clisp.org>
18637
18638         duplocale: Improve test output.
18639         * tests/test-duplocale.c (main): Print reason for skipped test.
18640
18641 2010-04-05  Bruno Haible  <bruno@clisp.org>
18642
18643         Assume rmdir exists.
18644         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
18645         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
18646
18647 2010-04-05  Bruno Haible  <bruno@clisp.org>
18648
18649         Fix link error on Solaris 8 with cc.
18650         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
18651
18652 2010-04-05  Bruno Haible  <bruno@clisp.org>
18653
18654         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18655         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
18656
18657 2010-04-05  Bruno Haible  <bruno@clisp.org>
18658
18659         vasprintf: Update documentation.
18660         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
18661
18662 2010-04-05  Bruno Haible  <bruno@clisp.org>
18663
18664         ptsname: Improve test.
18665         * tests/test-ptsname.c (main): Also try the various master names of BSD
18666         systems.
18667
18668 2010-04-05  Bruno Haible  <bruno@clisp.org>
18669
18670         memchr: Avoid a possible C++ test error.
18671         * lib/string.in.h (memchr): Provide declaration if function is missing.
18672         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
18673         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
18674         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
18675         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
18676
18677 2010-04-05  Bruno Haible  <bruno@clisp.org>
18678
18679         strtok_r: Improve idiom.
18680         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
18681         AC_LIBOBJ is used.
18682
18683 2010-04-05  Bruno Haible  <bruno@clisp.org>
18684
18685         strdup: Improve idiom.
18686         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
18687         AC_LIBOBJ is used.
18688         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
18689         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
18690         when AC_LIBOBJ is used.
18691
18692 2010-04-05  Bruno Haible  <bruno@clisp.org>
18693
18694         mbsinit, mbrtowc, wcrtomb: Improve idioms.
18695         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
18696         don't set REPLACE_MBSINIT to 1.
18697         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
18698         don't set REPLACE_MBRTOWC to 1.
18699         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
18700         exist, don't set REPLACE_MBSRTOWCS to 1.
18701         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
18702         exist, don't set REPLACE_MBSNRTOWCS to 1.
18703         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
18704         don't set REPLACE_WCRTOMB to 1.
18705         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
18706         exist, don't set REPLACE_WCSRTOMBS to 1.
18707         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
18708         exist, don't set REPLACE_WCSNRTOMBS to 1.
18709
18710 2010-04-05  Bruno Haible  <bruno@clisp.org>
18711
18712         ldexpl: Improve idiom.
18713         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
18714         make sure to set HAVE_DECL_LDEXPL to 0.
18715
18716 2010-04-05  Jim Meyering  <meyering@redhat.com>
18717
18718         xstrtol-tests: convert to use init.sh
18719         * modules/xstrtol-tests (Files): Add tests/init.sh.
18720         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18721         Use Exit, not exit.
18722         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18723
18724         atexit-tests: convert to use init.sh
18725         * modules/atexit-tests (Files): Add tests/init.sh.
18726         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18727         Use Exit, not exit.
18728         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18729
18730         init.sh: fix typo
18731         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
18732
18733         init.sh: make it easier for a test script to write to the tty, ...
18734         when using automake's parallel-tests mode.
18735         * tests/init.sh (stderr_fileno_): Define overridable variable.
18736         (warn_): New function, to use it.
18737         (fail_, skip_, framework_failure_): Use warn_.
18738
18739 2010-04-04  Bruno Haible  <bruno@clisp.org>
18740
18741         btowc: Avoid warning.
18742         * lib/btowc.c: Include <stdlib.h>.
18743         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
18744
18745 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18746             Bruno Haible  <bruno@clisp.org>
18747
18748         wchar: Port to NetBSD 1.5.
18749         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
18750         * lib/wctype.in.h (WEOF): Likewise.
18751
18752 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18753             Bruno Haible  <bruno@clisp.org>
18754
18755         Port extended stdio to NetBSD 1.5.
18756         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
18757         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
18758         older.
18759
18760 2010-04-04  Bruno Haible  <bruno@clisp.org>
18761
18762         string: Remove unused substitution.
18763         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
18764         HAVE_DECL_STRERROR.
18765         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
18766
18767 2010-04-04  Bruno Haible  <bruno@clisp.org>
18768
18769         strtod: Avoid a possible C++ test error.
18770         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
18771         set REPLACE_STRTOD.
18772
18773 2010-04-04  Bruno Haible  <bruno@clisp.org>
18774
18775         strerror: Update documentation.
18776         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
18777
18778 2010-04-04  Bruno Haible  <bruno@clisp.org>
18779
18780         stdio: Fix some C++ test errors on Solaris 8 with GCC.
18781         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
18782         _GL_CXXALIAS_SYS_CAST.
18783
18784 2010-04-04  Bruno Haible  <bruno@clisp.org>
18785
18786         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18787         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
18788         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
18789         REPLACE_FREXPL to 1.
18790         * doc/posix-functions/frexpl.texi: Update documentation.
18791
18792 2010-04-04  Bruno Haible  <bruno@clisp.org>
18793
18794         math: Fix some C++ test errors on Solaris 8 and Cygwin.
18795         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
18796
18797 2010-04-04  Bruno Haible  <bruno@clisp.org>
18798
18799         Implement nanosleep for native Windows.
18800         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
18801
18802 2010-04-04  Bruno Haible  <bruno@clisp.org>
18803
18804         math: Fix some C++ test errors on Solaris 8.
18805         * lib/math.in.h (truncf, trunc): Use simpler idiom.
18806
18807 2010-04-04  Bruno Haible  <bruno@clisp.org>
18808
18809         math: Fix some C++ test errors on Cygwin.
18810         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
18811         truncl): Provide declaration if the system does not have it.
18812         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
18813         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
18814         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
18815         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
18816         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
18817         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
18818         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
18819         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
18820         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
18821         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
18822         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
18823         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
18824         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
18825         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
18826         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
18827         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
18828         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
18829         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
18830         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
18831         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
18832         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
18833         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
18834
18835 2010-04-04  Bruno Haible  <bruno@clisp.org>
18836
18837         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
18838         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
18839         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
18840         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
18841         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
18842         * m4/isinf.m4 (gl_ISINF): Likewise.
18843         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18844
18845 2010-04-04  Bruno Haible  <bruno@clisp.org>
18846
18847         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
18848         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18849
18850 2010-04-04  Bruno Haible  <bruno@clisp.org>
18851
18852         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
18853         * modules/tmpfile (configure.ac): Update.
18854
18855         tmpfile: Fix C++ test error on mingw.
18856         * lib/stdio.in.h (tmpfile): New declaration.
18857         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
18858         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
18859         * modules/tmpfile (Depends-on): Add stdio.
18860         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18861         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
18862         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
18863         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
18864         REPLACE_TMPFILE.
18865         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
18866
18867 2010-04-04  Bruno Haible  <bruno@clisp.org>
18868
18869         ioctl: Fix C++ test error on mingw.
18870         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
18871         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
18872         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
18873
18874 2010-04-03  Bruno Haible  <bruno@clisp.org>
18875
18876         wcwidth: Fix C++ test error on mingw.
18877         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
18878         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
18879         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
18880
18881 2010-04-03  Bruno Haible  <bruno@clisp.org>
18882
18883         nanosleep: Fix C++ test error on mingw.
18884         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
18885         * lib/time.in.h (nanosleep): Use modern idiom.
18886         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
18887         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
18888         REPLACE_NANOSLEEP to 1.
18889         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
18890         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
18891
18892 2010-04-03  Bruno Haible  <bruno@clisp.org>
18893
18894         strptime: Fix C++ test error on mingw.
18895         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
18896         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
18897         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
18898         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
18899         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
18900         not REPLACE_STRPTIME.
18901         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
18902         REPLACE_STRPTIME.
18903
18904 2010-04-03  Bruno Haible  <bruno@clisp.org>
18905
18906         timegm: Fix C++ test error on mingw.
18907         * lib/time.in.h (timegm): Use modern idiom.
18908         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
18909         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
18910         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
18911         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
18912
18913 2010-04-03  Bruno Haible  <bruno@clisp.org>
18914
18915         timegm: Assume declaration if function exists.
18916         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
18917         if it exists. Don't clobber ac_cv_func_timegm.
18918
18919 2010-04-03  Bruno Haible  <bruno@clisp.org>
18920
18921         time_r: Fix C++ test error on mingw.
18922         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
18923         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
18924         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
18925         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
18926         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
18927
18928 2010-04-03  Bruno Haible  <bruno@clisp.org>
18929
18930         time_r: Minor updates.
18931         * modules/time_r (Description): Mention the provided functions.
18932         * lib/time_r.c: Don't include <string.h>.
18933         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
18934         * doc/posix-functions/localtime_r.texi: Likewise.
18935
18936 2010-04-03  Bruno Haible  <bruno@clisp.org>
18937
18938         time: Fix regression introduced on 2010-03-08.
18939         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
18940         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
18941
18942 2010-04-03  Jim Meyering  <meyering@redhat.com>
18943
18944         maint.mk: don't silently disable project-specific syntax-check rules
18945         * top/maint.mk (_prohibit_regexp): Define, to help people realize
18946         that they need to convert their project-specific syntax-check rules
18947         to use the new _sc_search_regexp.
18948
18949 2010-04-03  Bruno Haible  <bruno@clisp.org>
18950
18951         fchdir: Fix regression introduced on 2010-03-08.
18952         * lib/unistd.in.h (fchdir): Fix declaration.
18953         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
18954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
18955         REPLACE_FCHDIR.
18956         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
18957         REPLACE_FCHDIR.
18958
18959 2010-04-03  Bruno Haible  <bruno@clisp.org>
18960
18961         getpagesize: Fix C++ test error on mingw.
18962         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
18963         system does not declare the function.
18964         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
18965         declared.
18966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18967         HAVE_DECL_GETPAGESIZE.
18968         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
18969
18970 2010-04-03  Bruno Haible  <bruno@clisp.org>
18971
18972         stdio: Make C++ tests work on mingw.
18973         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
18974         does not declare the function.
18975
18976 2010-04-03  Bruno Haible  <bruno@clisp.org>
18977
18978         ftello: Fix C++ test error on mingw.
18979         * lib/stdio.in.h (ftello): Use modern idiom.
18980         * lib/ftello.c (ftello): Renamed from rpl_ftello.
18981         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
18982         is missing and that it needs to be replaced.
18983         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
18984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
18985         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
18986
18987 2010-04-03  Bruno Haible  <bruno@clisp.org>
18988
18989         fseeko: Fix C++ test error on mingw.
18990         * lib/stdio.in.h (fseeko): Use modern idiom.
18991         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
18992         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
18993         is missing and that it needs to be replaced.
18994         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
18995         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
18996         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
18997
18998 2010-04-03  Bruno Haible  <bruno@clisp.org>
18999
19000         mkstemp: Fix C++ test error on mingw.
19001         * lib/stdlib.in.h (mkstemp): Use modern idiom.
19002         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
19003         function is missing and that it needs to be replaced.
19004         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
19005         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
19006
19007 2010-04-03  Bruno Haible  <bruno@clisp.org>
19008
19009         stpncpy: Fix C++ test error on mingw.
19010         * lib/string.in.h (stpncpy): Use modern idiom.
19011         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
19012         function is missing and that it needs to be replaced.
19013         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19014         REPLACE_STPNCPY.
19015         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
19016
19017 2010-04-03  Bruno Haible  <bruno@clisp.org>
19018
19019         sys_stat: Fix C++ test error on mingw.
19020         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
19021         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
19022
19023 2010-04-03  Bruno Haible  <bruno@clisp.org>
19024
19025         pty: Update doc.
19026         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
19027
19028 2010-04-03  Bruno Haible  <bruno@clisp.org>
19029
19030         unistd: Fix C++ test error on mingw.
19031         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
19032
19033 2010-04-03  Bruno Haible  <bruno@clisp.org>
19034
19035         Update doc regarding mingw.
19036         * doc/glibc-functions/openpty.texi: Update regarding mingw.
19037         * doc/glibc-functions/login_tty.texi: Likewise.
19038         * doc/glibc-functions/forkpty.texi: Likewise.
19039
19040 2010-04-03  Bruno Haible  <bruno@clisp.org>
19041
19042         stdlib: Avoid compilation failure of c-strtold on mingw.
19043         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
19044
19045 2010-04-03  Bruno Haible  <bruno@clisp.org>
19046
19047         locale: Make C++ tests work on Cygwin and mingw.
19048         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
19049         cannot provide the function.
19050         Reported by Simon Josefsson.
19051
19052 2010-04-03  Bruno Haible  <bruno@clisp.org>
19053
19054         localename: Port to MacOS X 10.6.
19055         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
19056         memory layout of the locales in MacOS X 10.6 as well.
19057         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
19058
19059 2010-04-02  Bruno Haible  <bruno@clisp.org>
19060
19061         gnulib-tool: Ensure that long-running tests are executed last.
19062         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
19063         running tests after the one for the other tests.
19064
19065 2010-04-02  Bruno Haible  <bruno@clisp.org>
19066
19067         gnulib-tool: Ensure the tests in the main directory are executed first.
19068         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
19069         start with the current directory.
19070
19071 2010-04-02  Bruno Haible  <bruno@clisp.org>
19072
19073         Tests for module 'havelib', moved here from GNU gettext.
19074         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
19075         modifications.
19076         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
19077         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
19078         with modifications.
19079         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
19080         modifications.
19081         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
19082         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
19083         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
19084         with modifications.
19085         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
19086         with modifications.
19087         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
19088         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
19089         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
19090         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
19091         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
19092         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
19093         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
19094         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
19095         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
19096         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
19097         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
19098         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
19099         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
19100         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
19101         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
19102         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
19103         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
19104         with modifications.
19105         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
19106         with modifications.
19107         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
19108         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
19109         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
19110         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
19111         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
19112         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
19113         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
19114         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
19115         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
19116         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
19117         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
19118         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
19119         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
19120         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
19121         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
19122         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
19123         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
19124         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
19125         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
19126         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
19127         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
19128         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
19129         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
19130         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
19131         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
19132         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
19133         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
19134         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
19135         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
19136         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
19137         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
19138         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
19139         * tests/havelib/rpathx/rpathx.c: New file, from
19140         gettext/autoconf-lib-link.
19141         * tests/havelib/rpathx/Makefile.am: New file, from
19142         gettext/autoconf-lib-link.
19143         * tests/havelib/rpathx/configure.ac: New file, from
19144         gettext/autoconf-lib-link with modifications.
19145         * tests/havelib/rpathy/rpathy.c: New file, from
19146         gettext/autoconf-lib-link.
19147         * tests/havelib/rpathy/Makefile.am: New file, from
19148         gettext/autoconf-lib-link.
19149         * tests/havelib/rpathy/configure.ac: New file, from
19150         gettext/autoconf-lib-link with modifications.
19151         * tests/havelib/rpathz/rpathz.c: New file, from
19152         gettext/autoconf-lib-link.
19153         * tests/havelib/rpathz/Makefile.am: New file, from
19154         gettext/autoconf-lib-link.
19155         * tests/havelib/rpathz/configure.ac: New file, from
19156         gettext/autoconf-lib-link with modifications.
19157         * tests/havelib/rpathlx/usex.c: New file, from
19158         gettext/autoconf-lib-link.
19159         * tests/havelib/rpathlx/Makefile.am: New file, from
19160         gettext/autoconf-lib-link.
19161         * tests/havelib/rpathlx/configure.ac: New file, from
19162         gettext/autoconf-lib-link with modifications.
19163         * tests/havelib/rpathly/usey.c: New file, from
19164         gettext/autoconf-lib-link.
19165         * tests/havelib/rpathly/Makefile.am: New file, from
19166         gettext/autoconf-lib-link.
19167         * tests/havelib/rpathly/configure.ac: New file, from
19168         gettext/autoconf-lib-link with modifications.
19169         * tests/havelib/rpathlz/usez.c: New file, from
19170         gettext/autoconf-lib-link.
19171         * tests/havelib/rpathlz/Makefile.am: New file, from
19172         gettext/autoconf-lib-link.
19173         * tests/havelib/rpathlz/configure.ac: New file, from
19174         gettext/autoconf-lib-link with modifications.
19175         * tests/havelib/rpathlyx/usey.c: New file, from
19176         gettext/autoconf-lib-link.
19177         * tests/havelib/rpathlyx/Makefile.am: New file, from
19178         gettext/autoconf-lib-link.
19179         * tests/havelib/rpathlyx/configure.ac: New file, from
19180         gettext/autoconf-lib-link with modifications.
19181         * tests/havelib/rpathlzyx/usez.c: New file, from
19182         gettext/autoconf-lib-link.
19183         * tests/havelib/rpathlzyx/Makefile.am: New file, from
19184         gettext/autoconf-lib-link.
19185         * tests/havelib/rpathlzyx/configure.ac: New file, from
19186         gettext/autoconf-lib-link with modifications.
19187         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
19188         with modifications.
19189
19190 2010-04-02  Bruno Haible  <bruno@clisp.org>
19191
19192         gnulib-tool: Create distributed built sources also for the tests.
19193         * gnulib-tool (func_create_testdir): Also generate distributed built
19194         sources in the tests directory.
19195
19196 2010-04-02  Bruno Haible  <bruno@clisp.org>
19197
19198         gnulib-tool: Obey user's environment variables.
19199         * gnulib-tool (func_create_testdir): When creating built sources,
19200         respect the environment variables for autoconf, automake, etc. given by
19201         the user.
19202
19203 2010-04-02  Bruno Haible  <bruno@clisp.org>
19204
19205         gnulib-tool: Provide the value of --m4-base to modules.
19206         * gnulib-tool (func_import, func_create_testdir): Emit a definition
19207         of gl_m4_base.
19208
19209 2010-04-02  Eric Blake  <eblake@redhat.com>
19210
19211         maint.mk: fix some fallout
19212         * NEWS: Document the incompatible change, and its effect on cfg.mk.
19213         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
19214
19215 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19216
19217         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
19218         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
19219         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
19220         (sc_cast_of_x_alloc_return_value): Likewise.
19221         (sc_cast_of_alloca_return_value): Likewise.
19222         (sc_space_tab): Likewise.
19223         (sc_prohibit_atoi_atof): Likewise.
19224         (sc_prohibit_magic_number_exit): Likewise.
19225         (sc_error_exit_success): Likewise.
19226         (sc_file_system): Likewise.
19227         (sc_prohibit_have_config_h): Likewise.
19228         (sc_require_config_h): Likewise.
19229         (sc_prohibit_HAVE_MBRTOWC): Likewise.
19230         (sc_obsolete_symbols): Likewise.
19231         (sc_changelog): Likewise.
19232         (sc_program_name): Likewise.
19233         (sc_the_the): Likewise.
19234         (sc_trailing_blank): Likewise.
19235         (sc_two_space_separator_in_usage): Likewise.
19236         (sc_useless_cpp_parens): Likewise.
19237         (sc_GPL_version): Likewise.
19238         (sc_GFDL_version): Likewise.
19239         (sc_texinfo_acronym): Likewise.
19240         (sc_prohibit_cvs_keyword): Likewise.
19241         (sc_prohibit_stat_st_blocks): Likewise.
19242         (sc_prohibit_S_IS_definition): Likewise.
19243         (sc_redundant_const): Likewise.
19244         (sc_makefile_TAB_only_indentation): Likewise.
19245         (sc_m4_quote_check): Likewise.
19246         (sc_makefile_path_separator_check): Likewise.
19247         (sc_copyright_check): Likewise.
19248         (sc_Wundef_boolean): Likewise.
19249         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19250
19251         maint.mk: match 0 or more whitespace-before-function-call '('
19252         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
19253         that have zero or two-and-more spaces between the function name
19254         and the open parenthesis.
19255         (sc_error_message_warn_fatal): Likewise.
19256         (sc_error_message_uppercase): Likewise.
19257         (sc_error_message_period): Likewise.
19258
19259 2010-03-31  Eric Blake  <eblake@redhat.com>
19260
19261         maint.mk: check for [ as well as test
19262         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
19263         Based on a libvirt report by Matthias Bolte.
19264
19265         gnumakefile: don't squelch _version output
19266         * top/GNUmakefile (_version): Create one-shot dependency rather
19267         than using $(shell) when version must be regenerated.
19268         (_autoreconf): Run verbosely, by default.
19269
19270         sys_time: avoid compiler warnings
19271         * lib/sys_time.in.h (includes): Ensure gcc pragma is
19272         unconditional, fixing regression from 2010-03-29.
19273         Reported by Simon Josefsson.
19274
19275 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19276
19277         maint.mk: s/_header_without_use/_sc_header_without_use/
19278         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
19279         (sc_prohibit_assert_without_use): Use the new name.
19280         (sc_prohibit_close_stream_without_use): Likewise.
19281         (sc_prohibit_getopt_without_use): Likewise.
19282         (sc_prohibit_quotearg_without_use): Likewise.
19283         (sc_prohibit_quote_without_use): Likewise.
19284         (sc_prohibit_long_options_without_use): Likewise.
19285         (sc_prohibit_inttostr_without_use): Likewise.
19286         (sc_prohibit_ignore_value_without_use): Likewise.
19287         (sc_prohibit_error_without_use): Likewise.
19288         (sc_prohibit_xalloc_without_use): Likewise.
19289         (sc_prohibit_hash_without_use): Likewise.
19290         (sc_prohibit_hash_pjw_without_use): Likewise.
19291         (sc_prohibit_safe_read_without_use): Likewise.
19292         (sc_prohibit_argmatch_without_use): Likewise.
19293         (sc_prohibit_canonicalize_without_use): Likewise.
19294         (sc_prohibit_root_dev_ino_without_use): Likewise.
19295         (sc_prohibit_openat_without_use): Likewise.
19296         (sc_prohibit_c_ctype_without_use): Likewise.
19297         (sc_prohibit_signal_without_use): Likewise.
19298         (sc_prohibit_intprops_without_use): Likewise.
19299
19300 2010-03-30  Eric Blake  <eblake@redhat.com>
19301
19302         maint: improve module indicators
19303         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
19304         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
19305         columns, and avoid extra macro expansion.
19306
19307         fdopendir: work around FreeBSD bug
19308         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19309         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
19310         * modules/dirent (Makefile.am): Substitute it.
19311         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
19312         declaration.
19313         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
19314         fix.
19315         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19316
19317 2010-03-29  Bruno Haible  <bruno@clisp.org>
19318
19319         Emit #pragma system_header after the inclusion guard, not before.
19320         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
19321         guard that spans the entire file, not before. This enables an
19322         optimization in GCC's preprocessor.
19323         * lib/ctype.in.h: Likewise.
19324         * lib/dirent.in.h: Likewise.
19325         * lib/errno.in.h: Likewise.
19326         * lib/float.in.h: Likewise.
19327         * lib/getopt.in.h: Likewise.
19328         * lib/iconv.in.h: Likewise.
19329         * lib/langinfo.in.h: Likewise.
19330         * lib/locale.in.h: Likewise.
19331         * lib/math.in.h: Likewise.
19332         * lib/netdb.in.h: Likewise.
19333         * lib/netinet_in.in.h: Likewise.
19334         * lib/pty.in.h: Likewise.
19335         * lib/sched.in.h: Likewise.
19336         * lib/se-selinux.in.h: Likewise.
19337         * lib/search.in.h: Likewise.
19338         * lib/spawn.in.h: Likewise.
19339         * lib/stdarg.in.h: Likewise.
19340         * lib/stdint.in.h: Likewise.
19341         * lib/string.in.h: Likewise.
19342         * lib/strings.in.h: Likewise.
19343         * lib/sys_file.in.h: Likewise.
19344         * lib/sys_ioctl.in.h: Likewise.
19345         * lib/sys_time.in.h: Likewise.
19346         * lib/sys_times.in.h: Likewise.
19347         * lib/sys_utsname.in.h: Likewise.
19348         * lib/sys_wait.in.h: Likewise.
19349         * lib/sysexits.in.h: Likewise.
19350         * lib/wctype.in.h: Likewise.
19351
19352 2010-03-28  James Youngman  <jay@gnu.org>
19353
19354         save-cwd: don't leak a file descriptor when the caller execs.
19355         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
19356         saved file descriptor.
19357         * modules/save-cwd (Depends-on): Depend on cloexec.
19358
19359 2010-03-29  Bruno Haible  <bruno@clisp.org>
19360
19361         Remove vestiges of fts-lgpl module.
19362         * lib/fts_.h: Assume GNULIB_FTS is 1.
19363         * lib/fts.c: Likewise.
19364         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19365
19366 2010-03-28  Bruno Haible  <bruno@clisp.org>
19367
19368         Fix definition of tests witness macro.
19369         * gnulib-tool (func_import): Fix definition of witness macro.
19370
19371 2010-03-28  Bruno Haible  <bruno@clisp.org>
19372
19373         Fix ioctl's protoype on glibc systems.
19374         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
19375         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
19376         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
19377         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
19378         signature. If not, arrange to replace the ioctl function.
19379         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19380         REPLACE_IOCTL.
19381         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
19382         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
19383         Reported by Ludovic Courtès <ludo@gnu.org>.
19384
19385 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
19386
19387         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
19388         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
19389         made it so grep -r --include=GLOB* ... did not work.
19390
19391 2010-03-26  Jim Meyering  <meyering@redhat.com>
19392             Eric Blake  <eblake@redhat.com>
19393
19394         maint.mk: prohibit use of test's -o and -a operators
19395         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
19396
19397 2010-03-28  Bruno Haible  <bruno@clisp.org>
19398
19399         Remove unused GNULIB_XYZ macro definitions.
19400         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
19401         invocation.
19402
19403 2010-03-28  Bruno Haible  <bruno@clisp.org>
19404
19405         Mark privileged tests modules.
19406         * modules/idpriv-drop-tests (Status): New section.
19407         * modules/idpriv-droptemp-tests (Status): New section.
19408
19409 2010-03-28  Bruno Haible  <bruno@clisp.org>
19410
19411         Split C++ tests into separate tests modules.
19412         * modules/dirent-c++-tests: New file, extracted from
19413         modules/dirent-tests.
19414         * modules/dirent-tests: Depend on it.
19415         * modules/fcntl-h-c++-tests: New file, extracted from
19416         modules/fcntl-h-tests.
19417         * modules/fcntl-h-tests: Depend on it.
19418         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
19419         * modules/glob-tests: Depend on it.
19420         * modules/iconv-h-c++-tests: New file, extracted from
19421         modules/iconv-h-tests.
19422         * modules/iconv-h-tests: Depend on it.
19423         * modules/langinfo-c++-tests: New file, extracted from
19424         modules/langinfo-tests.
19425         * modules/langinfo-tests: Depend on it.
19426         * modules/locale-c++-tests: New file, extracted from
19427         modules/locale-tests.
19428         * modules/locale-tests: Depend on it.
19429         * modules/math-c++-tests: New file, extracted from modules/math-tests.
19430         * modules/math-tests: Depend on it.
19431         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
19432         * modules/pty-tests: Depend on it.
19433         * modules/search-c++-tests: New file, extracted from
19434         modules/search-tests.
19435         * modules/search-tests: Depend on it.
19436         * modules/signal-c++-tests: New file, extracted from
19437         modules/signal-tests.
19438         * modules/signal-tests: Depend on it.
19439         * modules/spawn-c++-tests: New file, extracted from
19440         modules/spawn-tests.
19441         * modules/spawn-tests: Depend on it.
19442         * modules/stdio-c++-tests: New file, extracted from
19443         modules/stdio-tests.
19444         * modules/stdio-tests: Depend on it.
19445         * modules/stdlib-c++-tests: New file, extracted from
19446         modules/stdlib-tests.
19447         * modules/stdlib-tests: Depend on it.
19448         * modules/string-c++-tests: New file, extracted from
19449         modules/string-tests.
19450         * modules/string-tests: Depend on it.
19451         * modules/sys_ioctl-c++-tests: New file, extracted from
19452         modules/sys_ioctl-tests.
19453         * modules/sys_ioctl-tests: Depend on it.
19454         * modules/sys_select-c++-tests: New file, extracted from
19455         modules/sys_select-tests.
19456         * modules/sys_select-tests: Depend on it.
19457         * modules/sys_socket-c++-tests: New file, extracted from
19458         modules/sys_socket-tests.
19459         * modules/sys_socket-tests: Depend on it.
19460         * modules/sys_stat-c++-tests: New file, extracted from
19461         modules/sys_stat-tests.
19462         * modules/sys_stat-tests: Depend on it.
19463         * modules/sys_time-c++-tests: New file, extracted from
19464         modules/sys_time-tests.
19465         * modules/sys_time-tests: Depend on it.
19466         * modules/time-c++-tests: New file, extracted from modules/time-tests.
19467         * modules/time-tests: Depend on it.
19468         * modules/unistd-c++-tests: New file, extracted from
19469         modules/unistd-tests.
19470         * modules/unistd-tests: Depend on it.
19471         * modules/wchar-c++-tests: New file, extracted from
19472         modules/wchar-tests.
19473         * modules/wchar-tests: Depend on it.
19474         * modules/wctype-c++-tests: New file, extracted from
19475         modules/wctype-tests.
19476         * modules/wctype-tests: Depend on it.
19477         Reported by Simon Josefsson.
19478
19479 2010-03-28  Bruno Haible  <bruno@clisp.org>
19480
19481         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
19482         * gnulib-tool (func_exists_module): New function, extracted from
19483         func_verify_module.
19484         (func_verify_module): Use it.
19485         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
19486         'foo' only if 'foo' exists.
19487         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
19488         module.
19489
19490 2010-03-28  Bruno Haible  <bruno@clisp.org>
19491
19492         gnulib-tool: Add support for special categories of tests.
19493         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
19494         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
19495         (func_usage): Document them.
19496         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
19497         inc_unportable_tests, inc_all_tests): New variables.
19498         (func_acceptable): Consider these variables.
19499         (func_modules_transitive_closure): Make it work when the 'Status' field
19500         consists of multiple words.
19501         (func_import): Store and restore the values of inc_cxx_tests,
19502         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
19503         inc_all_tests in gnulib-comp.m4.
19504         (func_create_testdir): Set inc_all_tests to true.
19505         * doc/gnulib.texi (Extra tests modules): New section.
19506         Suggested by Jim Meyering.
19507
19508 2010-03-28  Bruno Haible  <bruno@clisp.org>
19509
19510         ansi-c++-opt: Allow turning off the C++ build by default.
19511         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
19512         gl_CXX_CHOICE_DEFAULT_NO is defined.
19513         Requested by Eric Blake.
19514
19515 2010-03-28  Bruno Haible  <bruno@clisp.org>
19516
19517         unistd: Avoid #define replacements in C++ mode.
19518         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
19519         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
19520         setsockopt, shutdown, select): In C++, attach a warning to the function
19521         if possible, rather than #defining the symbol to a dysfunctional alias.
19522         Reported by John W. Eaton <jwe@gnu.org>.
19523
19524 2010-03-28  Bruno Haible  <bruno@clisp.org>
19525
19526         Fix link errors on mingw.
19527         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
19528         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
19529         $(LIBSOCKET).
19530         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
19531         $(LIBSOCKET).
19532
19533 2010-03-28  Bruno Haible  <bruno@clisp.org>
19534             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19535
19536         lib-ignore: Determine different options for different compilers.
19537         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
19538         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
19539         Add comments.
19540         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
19541         * NEWS: Mention the change.
19542
19543 2010-03-27  Bruno Haible  <bruno@clisp.org>
19544
19545         Remove unused GNULIB_XYZ macro definitions.
19546         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19547         * modules/fseek (configure.ac): Likewise.
19548         * modules/ioctl (configure.ac): Likewise.
19549         * modules/open (configure.ac): Likewise.
19550         * modules/stdlib-safer (configure.ac): Likewise.
19551
19552 2010-03-27  Bruno Haible  <bruno@clisp.org>
19553
19554         Add a remark about certain modules.
19555         * modules/malloc (Comment): New section.
19556         * modules/realloc (Comment): Likewise.
19557         * modules/sigpipe (Comment): Likewise.
19558
19559 2010-03-27  Bruno Haible  <bruno@clisp.org>
19560
19561         Resolve conflict between the two kinds of module indicators.
19562         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
19563         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
19564         * modules/canonicalize (configure.ac): Invoke
19565         gl_MODULE_INDICATOR_FOR_TESTS.
19566         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
19567         GNULIB_XYZ.
19568         * tests/test-dirent-c++.cc: Likewise.
19569         * tests/test-dirent-safer.c: Likewise.
19570         * tests/test-dup2.c: Likewise.
19571         * tests/test-fchdir.c: Likewise.
19572         * tests/test-fcntl-h-c++.cc: Likewise.
19573         * tests/test-getopt.c: Likewise.
19574         * tests/test-getopt.h: Likewise.
19575         * tests/test-langinfo-c++.cc: Likewise.
19576         * tests/test-locale-c++.cc: Likewise.
19577         * tests/test-math-c++.cc: Likewise.
19578         * tests/test-pty-c++.cc: Likewise.
19579         * tests/test-search-c++.cc: Likewise.
19580         * tests/test-signal-c++.cc: Likewise.
19581         * tests/test-spawn-c++.cc: Likewise.
19582         * tests/test-stdio-c++.cc: Likewise.
19583         * tests/test-stdlib-c++.cc: Likewise.
19584         * tests/test-string-c++.cc: Likewise.
19585         * tests/test-sys_ioctl-c++.cc: Likewise.
19586         * tests/test-sys_select-c++.cc: Likewise.
19587         * tests/test-sys_socket-c++.cc: Likewise.
19588         * tests/test-sys_stat-c++.cc: Likewise.
19589         * tests/test-sys_time-c++.cc: Likewise.
19590         * tests/test-time-c++.cc: Likewise.
19591         * tests/test-unistd-c++.cc: Likewise.
19592         * tests/test-wchar-c++.cc: Likewise.
19593         * tests/uninorm/test-u8-nfc.c: Likewise.
19594         * tests/uninorm/test-u8-nfd.c: Likewise.
19595         * tests/uninorm/test-u8-nfkc.c: Likewise.
19596         * tests/uninorm/test-u8-nfkd.c: Likewise.
19597         * tests/uninorm/test-u16-nfc.c: Likewise.
19598         * tests/uninorm/test-u16-nfd.c: Likewise.
19599         * tests/uninorm/test-u16-nfkc.c: Likewise.
19600         * tests/uninorm/test-u16-nfkd.c: Likewise.
19601         * tests/uninorm/test-u32-nfc.c: Likewise.
19602         * tests/uninorm/test-u32-nfc-big.c: Likewise.
19603         * tests/uninorm/test-u32-nfd.c: Likewise.
19604         * tests/uninorm/test-u32-nfd-big.c: Likewise.
19605         * tests/uninorm/test-u32-nfkc.c: Likewise.
19606         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
19607         * tests/uninorm/test-u32-nfkd.c: Likewise.
19608         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
19609         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19610
19611 2010-03-27  Bruno Haible  <bruno@clisp.org>
19612
19613         Distinguish two kinds of module indicators.
19614         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
19615         gl_MODULE_INDICATOR.
19616         (gl_MODULE_INDICATOR): New macro.
19617         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19618         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
19619         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19620         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19621         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19622         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19623         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19624         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19625         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19626         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19627         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19628         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19629         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19630         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19631         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19632         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19633         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19634         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19635         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19636         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19637         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19638         * modules/cloexec (configure.ac): Likewise.
19639         * modules/getopt-gnu (configure.ac): Likewise.
19640         * modules/uninorm/u8-normalize (configure.ac): Likewise.
19641         * modules/uninorm/u16-normalize (configure.ac): Likewise.
19642         * modules/uninorm/u32-normalize (configure.ac): Likewise.
19643         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
19644
19645 2010-03-27  Bruno Haible  <bruno@clisp.org>
19646
19647         New module description field 'Comment'.
19648         * gnulib-tool: New option --extract-comment.
19649         (func_usage): Document it.
19650         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
19651         (func_get_comment): New function.
19652         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
19653
19654 2010-03-27  Bruno Haible  <bruno@clisp.org>
19655
19656         Addendum to 2010-02-07 commit.
19657         * gnulib-tool (func_usage): Document --extract-applicability option.
19658
19659 2010-03-27  Bruno Haible  <bruno@clisp.org>
19660
19661         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
19662         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
19663         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
19664         rather than link errors.
19665
19666 2010-03-27  Bruno Haible  <bruno@clisp.org>
19667
19668         Avoid side effects from tests-related modules on the compilation of lib.
19669         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
19670         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
19671         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
19672         parameter. Emit into AM_CPPFLAGS a definition of the designated C
19673         macro.
19674         (func_import): Define a witness macro. Assign it a value that depends
19675         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
19676         tests-related modules.
19677         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
19678         Reported by Jim Meyering.
19679
19680 2010-03-27  Bruno Haible  <bruno@clisp.org>
19681
19682         Factorize common .m4 code.
19683         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
19684         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
19685         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
19686         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
19687         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19688         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
19689         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
19690         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19691         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19692         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19693         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
19694         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19695         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19696         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19697         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19698         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
19699         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19700         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19701         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19702         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
19703         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
19704         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19705         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19706         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19707         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19708         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19709         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
19710         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
19711         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
19712         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19713         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19714         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19715
19716 2010-03-27  Bruno Haible  <bruno@clisp.org>
19717
19718         Fix a compilation error on Cygwin with g++ >= 4.3.
19719         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
19720         if it is undefined or if we alias it to chmod.
19721         (lstat): Don't warn about the use of this function if it is undefined
19722         or if we alias it to stat.
19723         Reported by Simon Josefsson.
19724
19725 2010-03-27  Bruno Haible  <bruno@clisp.org>
19726
19727         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
19728         * modules/getlogin (configure.ac): Update.
19729
19730         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
19731         * modules/getlogin_r (configure.ac): Update.
19732
19733         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
19734         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
19735         * modules/inet_ntop (configure.ac): Update.
19736
19737         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
19738         * modules/inet_pton (configure.ac): Update.
19739
19740         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
19741         * modules/mbslen (configure.ac): Update.
19742
19743         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
19744         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
19745         * modules/forkpty (configure.ac): Update.
19746         * modules/openpty (configure.ac): Update.
19747
19748 2010-03-26  Simon Josefsson  <simon@josefsson.org>
19749
19750         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
19751         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
19752
19753 2010-03-25  Eric Blake  <eblake@redhat.com>
19754
19755         maint: use pragma consistently across replacement headers
19756         * lib/ctype.in.h (system_header): Hoist for consistent placement.
19757         * lib/dirent.in.h (system_header): Likewise.
19758         * lib/errno.in.h (system_header): Likewise.
19759         * lib/float.in.h (system_header): Likewise.
19760         * lib/getopt.in.h (system_header): Likewise.
19761         * lib/iconv.in.h (system_header): Likewise.
19762         * lib/inttypes.in.h (system_header): Likewise.
19763         * lib/langinfo.in.h (system_header): Likewise.
19764         * lib/locale.in.h (system_header): Likewise.
19765         * lib/math.in.h (system_header): Likewise.
19766         * lib/netdb.in.h (system_header): Likewise.
19767         * lib/netinet_in.in.h (system_header): Likewise.
19768         * lib/pty.in.h (system_header): Likewise.
19769         * lib/sched.in.h (system_header): Likewise.
19770         * lib/se-selinux.in.h (system_header): Likewise.
19771         * lib/search.in.h (system_header): Likewise.
19772         * lib/spawn.in.h (system_header): Likewise.
19773         * lib/stdarg.in.h (system_header): Likewise.
19774         * lib/stdint.in.h (system_header): Likewise.
19775         * lib/string.in.h (system_header): Likewise.
19776         * lib/strings.in.h (system_header): Likewise.
19777         * lib/sys_file.in.h (system_header): Likewise.
19778         * lib/sys_ioctl.in.h (system_header): Likewise.
19779         * lib/sys_socket.in.h (system_header): Likewise.
19780         * lib/sys_times.in.h (system_header): Likewise.
19781         * lib/sys_utsname.in.h (system_header): Likewise.
19782         * lib/sys_wait.in.h (system_header): Likewise.
19783         * lib/sysexits.in.h (system_header): Likewise.
19784         * lib/unistd.in.h (system_header): Likewise.
19785         * lib/wctype.in.h (system_header): Likewise.
19786
19787         arpa/inet: fix mingw compilation warning
19788         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
19789         Reported by Matthew Bolte.
19790
19791 2010-03-25  Bruno Haible  <bruno@clisp.org>
19792
19793         Avoid collision between gnulib wrapper and libintl wrapper.
19794         * lib/printf.c (printf): Don't define if a printf wrapper is already
19795         defined in intl/printf.c.
19796         Reported by Michel Boaventura <michel@michelboaventura.com>.
19797
19798 2010-03-25  Bruno Haible  <bruno@clisp.org>
19799
19800         Use ANSI C.
19801         * lib/readutmp.h (getutent): Provide ANSI C prototype.
19802
19803 2010-03-25  Bruno Haible  <bruno@clisp.org>
19804
19805         Minor formatting changes.
19806         * lib/acosl.c: Insert space before function argument list.
19807         * lib/argz.c: Likewise.
19808         * lib/asinl.c: Likewise.
19809         * lib/expl.c: Likewise.
19810         * lib/gen-uni-tables.c: Likewise.
19811         * lib/gettext.h: Likewise.
19812         * lib/glthread/lock.h: Likewise.
19813         * lib/tanl.c: Likewise.
19814         * lib/uniname/uniname.c: Likewise.
19815         * tests/test-idpriv-drop.c: Likewise.
19816         * tests/test-idpriv-droptemp.c: Likewise.
19817         * tests/test-lock.c: Likewise.
19818         * tests/test-tls.c: Likewise.
19819         * lib/argp-help.c: Insert space before function-like macro argument
19820         list.
19821         * lib/memcmp.c: Likewise.
19822         * tests/test-base64.c: Likewise.
19823         * lib/localename.c: Insert space before sizeof's argument list.
19824         * lib/safe-alloc.h: Likewise.
19825         * lib/file-set.h: Insert space before macro argument list.
19826         * tests/test-argp.c: Likewise.
19827         * lib/argp-namefrob.h: Insert space before function parameter list.
19828         * lib/getaddrinfo.c: Likewise.
19829         * lib/netdb.in.h: Likewise.
19830         * lib/parse-duration.h: Likewise.
19831         * lib/parse-duration.c: Likewise.
19832         * lib/poll.c: Likewise.
19833         * lib/select.c: Likewise.
19834         * lib/trim.h: Likewise.
19835         * tests/test-usleep.c: Likewise.
19836         * lib/ldexpl.c: Insert space before function parameter list and before
19837         function argument list.
19838         * lib/logl.c: Likewise.
19839         * lib/sqrtl.c: Likewise.
19840         * lib/trim.c: Likewise.
19841         * lib/cosl.c: Use GNU style indentation. Insert space before function
19842         argument list.
19843         * lib/sinl.c: Likewise.
19844         * lib/tsearch.c: Insert space after 'for'.
19845         Reported by Jim Meyering.
19846
19847 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
19848
19849         * maint.mk (sc_Wundef_boolean): Check for the presence of the
19850         config header before grepping, as it's not present before
19851         autoreconf/configure are run.  Reported by Simon Josefsson.
19852
19853 2010-03-23  Bruno Haible  <bruno@clisp.org>
19854
19855         pt_chown: Make it work with automake < 1.11.
19856         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
19857         Reported by Simon Josefsson.
19858
19859 2010-03-23  Bruno Haible  <bruno@clisp.org>
19860
19861         pt_chown: Don't depend on GPLed modules.
19862         * lib/pt_chown.c: Don't include idpriv.h.
19863         (main): Don't drop privileges.
19864         * modules/pt_chown (Depends-on): Remove idpriv-drop.
19865         Reported by Simon Josefsson.
19866
19867 2010-03-24  Simon Josefsson  <simon@josefsson.org>
19868
19869         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
19870         suggestions from karl@freefriends.org (Karl Berry).
19871
19872 2010-03-22  Eric Blake  <eblake@redhat.com>
19873
19874         gethostname: further tweaks
19875         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
19876         are overriding gethostname.
19877         Suggested by Bruno Haible.
19878
19879 2010-03-21  Bruno Haible  <bruno@clisp.org>
19880
19881         Fix comments.
19882         * lib/forkpty.c (rpl_forkpty): Fix comment.
19883         * lib/openpty.c (rpl_openpty): Likewise.
19884         Reported by Eric Blake.
19885
19886 2010-03-22  Eric Blake  <eblake@redhat.com>
19887
19888         gethostname: fix build on mingw
19889         * lib/unistd.in.h (includes): Work around fact that mingw
19890         <winsock2.h> re-includes <unistd.h>, by avoiding any
19891         redeclarations if we are being included by <winsock2.h>.
19892         Reported by Matthias Bolte.
19893
19894 2010-03-21  Bruno Haible  <bruno@clisp.org>
19895
19896         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
19897         * lib/forkpty.c (forkpty): New replacement function, from glibc with
19898         modifications.
19899         * lib/pty.in.h (forkpty): Update declaration. Add comments.
19900         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
19901         provide the replacement.
19902         * modules/forkpty (Depends-on): Add openpty, login_tty.
19903         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
19904         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
19905         * doc/glibc-functions/forkpty.texi: More supported platforms.
19906         * config/srclist.txt: Add forkpty.c (commented).
19907
19908 2010-03-21  Bruno Haible  <bruno@clisp.org>
19909
19910         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
19911         (Makefile.am): Verify that PTY_LIB is defined.
19912
19913         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
19914
19915 2010-03-21  Bruno Haible  <bruno@clisp.org>
19916
19917         Tests for module 'login_tty'.
19918         * modules/login_tty-tests: New file.
19919         * tests/test-login_tty.c: New file.
19920
19921         New module 'login_tty'.
19922         * lib/login_tty.c: New file.
19923         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
19924         * modules/login_tty: New file.
19925         * doc/glibc-functions/login_tty.texi: Mention the new module.
19926
19927 2010-03-21  Bruno Haible  <bruno@clisp.org>
19928
19929         login_tty: Documentation.
19930         * doc/glibc-functions/login_tty.texi: New file.
19931         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
19932
19933 2010-03-21  Bruno Haible  <bruno@clisp.org>
19934
19935         pty: Consistent macro naming.
19936         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
19937         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
19938         * modules/pty (configure.ac): Update.
19939
19940 2010-03-21  Bruno Haible  <bruno@clisp.org>
19941
19942         Tests for openpty: Make stricter.
19943         * tests/test-openpty.c (main): Add test of canonical processing and
19944         erase.
19945         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
19946
19947         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
19948         * lib/openpty.c (openpty): New replacement function.
19949         * lib/pty.in.h: Include <termios.h>.
19950         (openpty): Update declaration. Add comments.
19951         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
19952         is not declared, arrange to provide the replacement. Check for _getpty
19953         and posix_openpt.
19954         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
19955         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
19956         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
19957         * modules/pty-tests (test_pty_c___LDADD): New variable.
19958         * doc/glibc-functions/openpty.texi: More supported platforms.
19959
19960 2010-03-21  Bruno Haible  <bruno@clisp.org>
19961
19962         setenv: Tweaks.
19963         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
19964         the test program.
19965         * doc/posix-functions/setenv.texi: Update platforms list.
19966
19967 2010-03-21  Bruno Haible  <bruno@clisp.org>
19968
19969         New module 'unlockpt'.
19970         * lib/unlockpt.c: New file, from glibc with modifications.
19971         * m4/unlockpt.m4: New file.
19972         * modules/unlockpt: New file.
19973         * lib/stdlib.in.h (unlockpt): New declaration.
19974         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
19975         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
19976         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
19977         HAVE_UNLOCKPT.
19978         * doc/posix-functions/unlockpt.texi: Mention the new module.
19979         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
19980         * config/srclist.txt: Add unlockpt.c (commented).
19981
19982 2010-03-21  Jim Meyering  <meyering@redhat.com>
19983
19984         maint.mk: prohibit inclusion of "intprops.h" without use
19985         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
19986
19987 2010-03-21  Bruno Haible  <bruno@clisp.org>
19988
19989         New module 'grantpt'.
19990         * lib/grantpt.c: New file, from glibc with modifications.
19991         * m4/grantpt.m4: New file.
19992         * modules/grantpt: New file.
19993         * lib/stdlib.in.h (grantpt): New declaration.
19994         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
19995         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
19996         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
19997         HAVE_GRANTPT.
19998         * doc/posix-functions/grantpt.texi: Mention the new module.
19999         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
20000         * config/srclist.txt: Add grantpt.c (commented).
20001
20002 2010-03-21  Bruno Haible  <bruno@clisp.org>
20003
20004         New module 'pt_chown'.
20005         * lib/pt_chown.c: New file, from glibc with modifications.
20006         * lib/pty-private.h: New file, from glibc with modifications.
20007         * modules/pt_chown: New file.
20008         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
20009
20010 2010-03-21  Bruno Haible  <bruno@clisp.org>
20011
20012         Tests for module 'ptsname'.
20013         * modules/ptsname-tests: New file.
20014         * tests/test-ptsname.c: New file.
20015
20016         New module 'ptsname'.
20017         * lib/ptsname.c: New file, from glibc with modifications.
20018         * m4/ptsname.m4: New file.
20019         * modules/ptsname: New file.
20020         * lib/stdlib.in.h (ptsname): New declaration.
20021         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
20022         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
20023         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
20024         HAVE_PTSNAME.
20025         * doc/posix-functions/ptsname.texi: Mention the new module.
20026         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
20027         * config/srclist.txt: Add ptsname.c (commented).
20028
20029 2010-03-21  Bruno Haible  <bruno@clisp.org>
20030
20031         Tests for module 'ttyname_r'.
20032         * modules/ttyname_r-tests: New file.
20033         * tests/test-ttyname_r.c: New file.
20034
20035         New module 'ttyname_r'.
20036         * lib/ttyname_r.c: New file.
20037         * m4/ttyname_r.m4: New file.
20038         * modules/ttyname_r: New file.
20039         * lib/unistd.in.h (ttyname_r): New declaration.
20040         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
20041         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
20042         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
20043         HAVE_TTYNAME_R.
20044         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
20045         * doc/posix-functions/ttyname_r.texi: Mention the new module.
20046
20047 2010-03-20  Bruno Haible  <bruno@clisp.org>
20048
20049         signal: Undefine macro definitions in C++ mode.
20050         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
20051         sigfillset): Undefine macro definitions from the system header in C++
20052         mode.
20053         Reported by John W. Eaton <jwe@gnu.org>.
20054
20055 2010-03-20  Bruno Haible  <bruno@clisp.org>
20056
20057         Ensure no #include statements inside extern "C" { ... }.
20058         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
20059         contain #include statements.
20060         * lib/time.in.h: Likewise.
20061
20062 2010-03-20  Bruno Haible  <bruno@clisp.org>
20063
20064         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
20065         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
20066         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
20067         Reported by John W. Eaton <jwe@gnu.org>.
20068
20069 2010-03-20  Bruno Haible  <bruno@clisp.org>
20070
20071         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
20072         Reported by Jim Meyering.
20073
20074 2010-03-20  Bruno Haible  <bruno@clisp.org>
20075
20076         pipe: Set errno upon failure.
20077         * lib/pipe.h: Specify that when -1 is returned, errno is set.
20078         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
20079         errno value in error message.
20080
20081 2010-03-20  Bruno Haible  <bruno@clisp.org>
20082             Jim Meyering  <meyering@redhat.com>
20083
20084         lchown: Avoid "unused variable" warning.
20085         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
20086
20087 2010-03-20  Bruno Haible  <bruno@clisp.org>
20088
20089         Work around unlink() bug on MacOS X 10.5.6.
20090         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
20091         attempting to unlink a parent directory.
20092         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
20093         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
20094         activate for the replacement function.
20095         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
20096
20097 2010-03-20  Bruno Haible  <bruno@clisp.org>
20098
20099         Fix link errors on Solaris 8.
20100         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
20101         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
20102
20103 2010-03-19  Jim Meyering  <meyering@redhat.com>
20104
20105         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
20106         The _LIBC implementation of build_range_exp correctly honors the
20107         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
20108         However, the non-_LIBC implementation would ignore that syntax-bit
20109         flag and return REG_ERANGE unconditionally.
20110         This change makes it honor that flag.
20111         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
20112         Make two pointer parameters "const".
20113         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
20114         (parse_bracket_exp): Update caller.
20115
20116         regex.m4: correct the reversed range endpoint ([b-a]) test
20117         * m4/regex.m4: When requiring that [b-a] evoke failure,
20118         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
20119         test pass once again for x86-based systems.
20120
20121 2010-03-19  Bruno Haible  <bruno@clisp.org>
20122
20123         scandir: Fix link error on Solaris 8.
20124         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
20125         macros.
20126
20127 2010-03-19  Bruno Haible  <bruno@clisp.org>
20128
20129         getusershell: Fix documentation.
20130         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
20131         module.
20132         * doc/glibc-functions/setusershell.texi: Likewise.
20133
20134         getusershell: Provide declaration, missing on Solaris 9.
20135         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
20136         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
20137         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
20138         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
20139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20140         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
20141         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
20142         HAVE_GETUSERSHELL.
20143         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
20144
20145 2010-03-19  Bruno Haible  <bruno@clisp.org>
20146
20147         wctype: Provide iswblank function.
20148         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
20149         exists and is fine.
20150         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
20151         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
20152         * tests/test-wctype.c (main): Re-enable the iswblank tests.
20153         * doc/posix-functions/iswblank.texi: Update.
20154
20155 2010-03-19  Bruno Haible  <bruno@clisp.org>
20156
20157         Tests of module 'pty' in C++ mode.
20158         * modules/pty-tests: New file.
20159         * tests/test-pty-c++.cc: New file.
20160         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20161
20162 2010-03-19  Eric Blake  <eblake@redhat.com>
20163
20164         logb: fix documentation
20165         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
20166         1.5 declaration bug.
20167
20168         forkpty, openpty: prefer glibc's const-safe prototype
20169         * lib/forkpty.c (rpl_forkpty): New file.
20170         * lib/openpty.c (rpl_openpty): Likewise.
20171         * modules/forkpty (Files): Distribute it.
20172         * modules/openpty (Files): Likewise.
20173         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
20174         check...
20175         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
20176         replacement for for non-const BSD signature.
20177         * modules/pty (Makefile.am): Substitute witnesses.
20178         * lib/pty.in.h (forkpty, openpty): Declare replacements.
20179         * tests/test-forkpty.c: Update signature check.
20180         * tests/test-openpty.c: Likewise.
20181         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
20182         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20183
20184         forkpty, openpty: split functions into new modules
20185         * modules/pty (Makefile.am): Substitute new witnesses.
20186         (Libraries): Move library detection...
20187         * modules/forkpty: ...into new module.
20188         * modules/openpty: Another new module.
20189         * modules/pty-tests: Rename and split...
20190         * modules/forkpty-tests: ...to this...
20191         * modules/openpty-tests: ...and this.
20192         * tests/test-pty.c: Rename and split...
20193         * tests/test-forkpty.c: ...to this...
20194         * tests/test-openpty.c: ...and this.
20195         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
20196         (gl_PTY): Split library searching...
20197         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
20198         (gl_FORKPTY, gl_OPENPTY): New macros.
20199         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
20200         * NEWS: Mention the split.
20201         * MODULES.html.sh (Misc): Document the modules.
20202         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
20203         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20204
20205         pty: improve replacement header
20206         * lib/pty.in.h: New file.
20207         * modules/pty (Files): Ship it.
20208         (Makefile.am): Always build replacement.
20209         * m4/pty.m4: Rename...
20210         * m4/pty_h.m4: ...to this.
20211         (gl_PTY): Modernize setting of witness macros; update check of
20212         forkpty to take proper advantage of cache.
20213         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
20214
20215         getopt: avoid compiler warning
20216         * lib/getopt.c (attribute_hidden): Remove unused macro.
20217
20218 2010-03-18  Bruno Haible  <bruno@clisp.org>
20219
20220         Fix link errors on Solaris 8.
20221         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
20222         * modules/search-tests (test_search_c___LDADD): Likewise.
20223         * modules/signal-tests (test_signal_c___LDADD): Likewise.
20224         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
20225         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
20226         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
20227         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
20228         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
20229         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
20230
20231 2010-03-18  Bruno Haible  <bruno@clisp.org>
20232
20233         Fix bug introduced on 2010-03-14.
20234         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
20235         (gl_SPAWN_H): Require it.
20236         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
20237         Reported by Simon Josefsson.
20238
20239 2010-03-18  Bruno Haible  <bruno@clisp.org>
20240
20241         Fix typo introduced on 2009-12-31.
20242         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
20243         posix_spawn_file_actions_adddup2.
20244
20245 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
20246         and Eric Blake  <eblake@redhat.com>
20247
20248         test-vc-list-files-git: make more robust
20249         * tests/test-vc-list-files-git.sh: Unset problematic environment
20250         variables.  Chain commands together.
20251
20252 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
20253
20254         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
20255         `AC_CHECK_DECL' invocation.
20256
20257 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
20258
20259         * lib/inttostr.c (inttostr): Make sure the invocation of verify
20260         appears before executable statements. Suggested by Petr Sumbera
20261         <Petr.Sumbera@Sun.COM>.
20262
20263 2010-03-14  Bruno Haible  <bruno@clisp.org>
20264
20265         * tests/test-flock.c (test_exclusive): Comment out a test that causes
20266         portability problems. Instead use a simpler test.
20267         (main): Check that invalid arguments are rejected only on Linux.
20268
20269 2010-03-14  Bruno Haible  <bruno@clisp.org>
20270
20271         Fix bug introduced on 2009-12-31.
20272         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20273         gl_PREREQ_SYS_H_WINSOCK2 always.
20274         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
20275         SYS_SOCKET_H variable.
20276         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
20277         Update comments.
20278         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
20279         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20280         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20281         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20282         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
20283
20284 2010-03-14  Bruno Haible  <bruno@clisp.org>
20285
20286         Fix values returned by sinl, cosl.
20287         * lib/trigl.h: Add specification comments.
20288         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
20289         that combines the values from the precomputed table with the values of
20290         the Chebyshev polynomials.
20291
20292 2010-03-14  Bruno Haible  <bruno@clisp.org>
20293
20294         Fix compilation error when modules 'posix_spawn[p]' are not used.
20295         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
20296         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
20297
20298 2010-03-14  Bruno Haible  <bruno@clisp.org>
20299
20300         Fix compilation error on mingw when module 'time_r' is not used.
20301         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
20302         is 1.
20303         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
20304         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20305         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
20306         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
20307
20308 2010-03-14  Bruno Haible  <bruno@clisp.org>
20309
20310         Fix compilation error with Sun C.
20311         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
20312         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
20313         instead of GCC specific ULONG_LONG_MAX.
20314         * lib/xstrtoll.c: Likewise.
20315         * lib/xstrtoull.c: Likewise.
20316
20317 2010-03-13  Bruno Haible  <bruno@clisp.org>
20318
20319         Allow the user to disable C++ code and tests.
20320         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
20321         (gl_PROG_ANSI_CXX): Require it.
20322
20323 2010-03-13  Bruno Haible  <bruno@clisp.org>
20324
20325         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
20326         cases.
20327
20328 2010-03-13  Bruno Haible  <bruno@clisp.org>
20329
20330         Test that gnulib does not break the standard C++ headers.
20331         * tests/test-locale-c++2.cc: New file.
20332         * modules/locale-tests (Files): Add it.
20333         (Makefile.am): Compile it for test-locale-c++.
20334         * tests/test-math-c++2.cc: New file.
20335         * modules/math-tests (Files): Add it.
20336         (Makefile.am): Compile it for test-math-c++.
20337         * tests/test-signal-c++2.cc: New file.
20338         * modules/signal-tests (Files): Add it.
20339         (Makefile.am): Compile it for test-signal-c++.
20340         * tests/test-stdio-c++2.cc: New file.
20341         * modules/stdio-tests (Files): Add it.
20342         (Makefile.am): Compile it for test-stdio-c++.
20343         * tests/test-stdlib-c++2.cc: New file.
20344         * modules/stdlib-tests (Files): Add it.
20345         (Makefile.am): Compile it for test-stdlib-c++.
20346         * tests/test-string-c++2.cc: New file.
20347         * modules/string-tests (Files): Add it.
20348         (Makefile.am): Compile it for test-string-c++.
20349         * tests/test-time-c++2.cc: New file.
20350         * modules/time-tests (Files): Add it.
20351         (Makefile.am): Compile it for test-time-c++.
20352         Reported by John W. Eaton <jwe@gnu.org>.
20353
20354 2010-03-13  Bruno Haible  <bruno@clisp.org>
20355
20356         * gnulib-tool (func_usage): Clarify which options are available for
20357         --create-testdir and --create-megatestdir.
20358
20359 2010-03-13  Bruno Haible  <bruno@clisp.org>
20360
20361         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
20362         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
20363         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
20364         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20365         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
20366         when appropriate.
20367         Reported by Jim Meyering.
20368
20369 2010-03-12  Simon Josefsson  <simon@josefsson.org>
20370
20371         * gnulib-tool (func_import): Explain origin of code.
20372
20373 2010-03-12  Bruno Haible  <bruno@clisp.org>
20374
20375         Fix problem with automake's definition of CXXLINK.
20376         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
20377         Reported by Simon Josefsson and Ludovic Courtès.
20378
20379 2010-03-12  Bruno Haible  <bruno@clisp.org>
20380
20381         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
20382         stable releases.
20383
20384 2010-03-11  Bruno Haible  <bruno@clisp.org>
20385
20386         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
20387         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
20388         whether the system provides one variant or multiple variants of the
20389         function.
20390         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
20391         C++ compilers.
20392         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
20393         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
20394         Reported by Jim Meyering.
20395
20396 2010-03-09  Simon Josefsson  <simon@josefsson.org>
20397
20398         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
20399
20400 2010-03-08  Bruno Haible  <bruno@clisp.org>
20401
20402         gnulib-tool: Add support for --libtool in --create-testdir.
20403         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
20404         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
20405
20406 2010-03-08  Eric Blake  <eblake@redhat.com>
20407
20408         gnulib-tool.texi: mention possibility of git submodule
20409         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
20410         submodules.
20411         * doc/.gitignore: Ignore another generated file.
20412
20413 2010-03-08  Karl Berry  <karl@gnu.org>
20414
20415         * doc/gnulib-tool.texi (VCS Issues): Mention third option
20416         of committing gnulib files while skipping others.
20417
20418 2010-03-07  Bruno Haible  <bruno@clisp.org>
20419
20420         Tests of module 'wctype' in C++ mode.
20421         * tests/test-wctype-c++.cc: New file.
20422         * modules/wctype-tests (Files): Add it and tests/signature.h.
20423         (Depends-on): Add ansi-c++-opt.
20424         (Makefile.am): Arrange to compile and run test-wctype-c++.
20425
20426         Tests of module 'wchar' in C++ mode.
20427         * tests/test-wchar-c++.cc: New file.
20428         * modules/wchar-tests (Files): Add it and tests/signature.h.
20429         (Depends-on): Add ansi-c++-opt.
20430         (Makefile.am): Arrange to compile and run test-wchar-c++.
20431         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
20432         gl_MODULE_INDICATOR.
20433
20434         Tests of module 'unistd' in C++ mode.
20435         * tests/test-unistd-c++.cc: New file.
20436         * modules/unistd-tests (Files): Add it and tests/signature.h.
20437         (Depends-on): Add ansi-c++-opt.
20438         (Makefile.am): Arrange to compile and run test-unistd-c++.
20439         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
20440         gl_MODULE_INDICATOR.
20441
20442         Tests of module 'time' in C++ mode.
20443         * tests/test-time-c++.cc: New file.
20444         * modules/time-tests (Files): Add it and tests/signature.h.
20445         (Depends-on): Add ansi-c++-opt.
20446         (Makefile.am): Arrange to compile and run test-time-c++.
20447         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20448
20449         Tests of module 'sys_time' in C++ mode.
20450         * tests/test-sys_time-c++.cc: New file.
20451         * modules/sys_time-tests (Files): Add it and tests/signature.h.
20452         (Depends-on): Add ansi-c++-opt.
20453         (Makefile.am): Arrange to compile and run test-sys_time-c++.
20454         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
20455         gl_MODULE_INDICATOR.
20456
20457         Tests of module 'sys_stat' in C++ mode.
20458         * tests/test-sys_stat-c++.cc: New file.
20459         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
20460         (Depends-on): Add ansi-c++-opt.
20461         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
20462         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
20463         gl_MODULE_INDICATOR.
20464
20465         Tests of module 'sys_socket' in C++ mode.
20466         * tests/test-sys_socket-c++.cc: New file.
20467         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
20468         (Depends-on): Add ansi-c++-opt.
20469         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
20470         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
20471         gl_MODULE_INDICATOR.
20472
20473         Tests of module 'sys_select' in C++ mode.
20474         * tests/test-sys_select-c++.cc: New file.
20475         * modules/sys_select-tests (Files): Add it and tests/signature.h.
20476         (Depends-on): Add ansi-c++-opt.
20477         (Makefile.am): Arrange to compile and run test-sys_select-c++.
20478         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
20479         gl_MODULE_INDICATOR.
20480
20481         Tests of module 'sys_ioctl' in C++ mode.
20482         * tests/test-sys_ioctl-c++.cc: New file.
20483         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
20484         (Depends-on): Add ansi-c++-opt.
20485         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
20486         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
20487         gl_MODULE_INDICATOR.
20488
20489         Tests of module 'string' in C++ mode.
20490         * tests/test-string-c++.cc: New file.
20491         * modules/string-tests (Files): Add it and tests/signature.h.
20492         (Depends-on): Add ansi-c++-opt.
20493         (Makefile.am): Arrange to compile and run test-string-c++.
20494         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
20495         gl_MODULE_INDICATOR.
20496
20497         Tests of module 'stdlib' in C++ mode.
20498         * tests/test-stdlib-c++.cc: New file.
20499         * modules/stdlib-tests (Files): Add it and tests/signature.h.
20500         (Depends-on): Add ansi-c++-opt.
20501         (Makefile.am): Arrange to compile and run test-stdlib-c++.
20502         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
20503         gl_MODULE_INDICATOR.
20504
20505         Tests of module 'stdio' in C++ mode.
20506         * tests/test-stdio-c++.cc: New file.
20507         * modules/stdio-tests (Files): Add it and tests/signature.h.
20508         (Depends-on): Add ansi-c++-opt.
20509         (Makefile.am): Arrange to compile and run test-stdio-c++.
20510         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
20511         gl_MODULE_INDICATOR.
20512
20513         Tests of module 'spawn' in C++ mode.
20514         * tests/test-spawn-c++.cc: New file.
20515         * modules/spawn-tests (Files): Add it and tests/signature.h.
20516         (Depends-on): Add ansi-c++-opt.
20517         (Makefile.am): Arrange to compile and run test-spawn-c++.
20518         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
20519         gl_MODULE_INDICATOR.
20520
20521         Tests of module 'signal' in C++ mode.
20522         * tests/test-signal-c++.cc: New file.
20523         * modules/signal-tests (Files): Add it and tests/signature.h.
20524         (Depends-on): Add ansi-c++-opt.
20525         (Makefile.am): Arrange to compile and run test-signal-c++.
20526         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
20527         gl_MODULE_INDICATOR.
20528
20529         Tests of module 'search' in C++ mode.
20530         * tests/test-search-c++.cc: New file.
20531         * modules/search-tests (Files): Add it and tests/signature.h.
20532         (Depends-on): Add ansi-c++-opt.
20533         (Makefile.am): Arrange to compile and run test-search-c++.
20534         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
20535         gl_MODULE_INDICATOR.
20536
20537         Tests of module 'math' in C++ mode.
20538         * tests/test-math-c++.cc: New file.
20539         * modules/math-tests (Files): Add it and tests/signature.h.
20540         (Depends-on): Add ansi-c++-opt.
20541         (Makefile.am): Arrange to compile and run test-math-c++.
20542         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20543
20544         Tests of module 'locale' in C++ mode.
20545         * tests/test-locale-c++.cc: New file.
20546         * modules/locale-tests (Files): Add it and tests/signature.h.
20547         (Depends-on): Add ansi-c++-opt.
20548         (Makefile.am): Arrange to compile and run test-locale-c++.
20549         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
20550         gl_MODULE_INDICATOR.
20551
20552         Tests of module 'langinfo' in C++ mode.
20553         * tests/test-langinfo-c++.cc: New file.
20554         * modules/langinfo-tests (Files): Add it and tests/signature.h.
20555         (Depends-on): Add ansi-c++-opt.
20556         (Makefile.am): Arrange to compile and run test-langinfo-c++.
20557         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
20558         gl_MODULE_INDICATOR.
20559
20560         Tests of module 'iconv-h' in C++ mode.
20561         * tests/test-iconv-h-c++.cc: New file.
20562         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
20563         (Depends-on): Add ansi-c++-opt.
20564         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
20565
20566         Tests of module 'glob' in C++ mode.
20567         * tests/test-glob-c++.cc: New file.
20568         * modules/glob-tests (Files): Add it.
20569         (Depends-on): Add ansi-c++-opt.
20570         (Makefile.am): Arrange to compile and run test-glob-c++.
20571
20572         Tests of module 'fcntl-h' in C++ mode.
20573         * tests/test-fcntl-h-c++.cc: New file.
20574         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
20575         (Depends-on): Add ansi-c++-opt.
20576         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
20577         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
20578         gl_MODULE_INDICATOR.
20579
20580         Tests of module 'dirent' in C++ mode.
20581         * tests/test-dirent-c++.cc: New file.
20582         * modules/dirent-tests (Files): Add it and tests/signature.h.
20583         (Depends-on): Add ansi-c++-opt.
20584         (Makefile.am): Arrange to compile and run test-dirent-c++.
20585         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20586         gl_MODULE_INDICATOR.
20587
20588         New module 'ansi-c++-opt'.
20589         * modules/ansi-c++-opt: New file.
20590         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
20591
20592         Document C++ namespace mode.
20593         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
20594
20595         wctype: Avoid #define replacements in C++ mode.
20596         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
20597         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
20598         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
20599         In C++, define a namespaced alias symbol.
20600         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
20601         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
20602         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
20603         rule.
20604
20605         wchar: Avoid #define replacements in C++ mode.
20606         * lib/wchar.in.h: Include c++defs.h.
20607         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
20608         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
20609         symbol.
20610         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
20611         * modules/wchar (Depends-on): Add c++defs.
20612         (Makefile.am): Update wchar.h rule.
20613
20614         unistd: Avoid #define replacements in C++ mode.
20615         * lib/unistd.in.h: Include c++defs.h.
20616         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
20617         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
20618         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
20619         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
20620         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
20621         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
20622         symbol.
20623         (environ): Update.
20624         * modules/unistd (Depends-on): Add c++defs.
20625         (Makefile.am): Update unistd.h rule.
20626
20627         time: Avoid #define replacements in C++ mode.
20628         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
20629         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
20630         define a namespaced alias symbol.
20631         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
20632         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
20633         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
20634         * modules/time (Depends-on): Add c++defs, warn-on-use.
20635         (Makefile.am): Update time.h rule.
20636         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20637         * modules/nanosleep (configure.ac): Likewise.
20638         * modules/strptime (configure.ac): Likewise.
20639         * modules/timegm (configure.ac): Likewise.
20640
20641         sys_time: Avoid #define replacements in C++ mode.
20642         * lib/sys_time.in.h: Include c++defs.h.
20643         (gettimeofday): In C++, define a namespaced alias symbol.
20644         * modules/sys_time (Depends-on): Add c++defs.
20645         (Makefile.am): Update sys/time.h rule.
20646
20647         sys_stat: Avoid #define replacements in C++ mode.
20648         * lib/sys_stat.in.h: Include c++defs.h.
20649         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
20650         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
20651         namespaced alias symbol.
20652         In C++, define a namespaced alias symbol.
20653         * modules/sys_stat (Depends-on): Add c++defs.
20654         (Makefile.am): Update sys/stat.h rule.
20655
20656         sys_socket: Avoid #define replacements in C++ mode.
20657         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
20658         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
20659         definitions also when the system has a <sys/socket.h>.
20660         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20661         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
20662         In C++, define a namespaced alias symbol.
20663         * modules/sys_socket (Depends-on): Add c++defs.
20664         (Makefile.am): Update sys/socket.h rule.
20665
20666         sys_select: Avoid #define replacements in C++ mode.
20667         * lib/sys_select.in.h: Include c++defs.h. Enable the function
20668         definitions also when the system has a <sys/select.h>.
20669         (select): In C++, define a namespaced alias symbol.
20670         * modules/sys_select (Depends-on): Add c++defs.
20671         (Makefile.am): Update sys/select.h rule.
20672
20673         sys_ioctl: Avoid #define replacements in C++ mode.
20674         * lib/sys_ioctl.in.h: Include c++defs.h.
20675         (ioctl): In C++, define a namespaced alias symbol.
20676         * modules/sys_ioctl (Depends-on): Add c++defs.
20677         (Makefile.am): Update sys/ioctl.h rule.
20678
20679         string: Avoid #define replacements in C++ mode.
20680         * lib/string.in.h: Include c++defs.h.
20681         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
20682         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20683         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20684         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
20685         strsignal, strverscmp): In C++, define a namespaced alias symbol.
20686         * modules/string (Depends-on): Add c++defs.
20687         (Makefile.am): Update string.h rule.
20688
20689         stdlib: Avoid #define replacements in C++ mode.
20690         * lib/stdlib.in.h: Include c++defs.h.
20691         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
20692         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
20693         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
20694         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
20695         symbol.
20696         * modules/stdlib (Depends-on): Add c++defs.
20697         (Makefile.am): Update stdlib.h rule.
20698
20699         stdio: Avoid #define replacements in C++ mode.
20700         * lib/stdio.in.h: Include c++defs.h.
20701         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
20702         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
20703         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
20704         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
20705         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
20706         namespaced alias symbol.
20707         * modules/stdio (Depends-on): Add c++defs.
20708         (Makefile.am): Update stdio.h rule.
20709
20710         spawn: Avoid #define replacements in C++ mode.
20711         * lib/spawn.in.h: Include c++defs.h.
20712         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20713         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20714         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20715         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20716         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20717         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20718         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20719         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20720         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20721         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20722         In C++, define a namespaced alias symbol.
20723         * modules/spawn (Depends-on): Add c++defs.
20724         (Makefile.am): Update spawn.h rule.
20725
20726         signal: Avoid #define replacements in C++ mode.
20727         * lib/signal.in.h: Include c++defs.h.
20728         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20729         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
20730         namespaced alias symbol.
20731         * modules/signal (Depends-on): Add c++defs.
20732         (Makefile.am): Update signal.h rule.
20733
20734         search: Avoid #define replacements in C++ mode.
20735         * lib/search.in.h: Include c++defs.h.
20736         (_gl_search_compar_fn, _gl_search_action_fn): New types.
20737         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
20738         symbol.
20739         * modules/search (Depends-on): Add c++defs.
20740         (Makefile.am): Update search.h rule.
20741
20742         math: Avoid #define replacements in C++ mode.
20743         * lib/math.in.h: Include c++defs.h.
20744         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
20745         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
20746         trunc, truncl): In C++, define a namespaced alias symbol.
20747         * modules/math (Depends-on): Add c++defs.
20748         (Makefile.am): Update math.h rule.
20749
20750         locale: Avoid #define replacements in C++ mode.
20751         * lib/locale.in.h: Include c++defs.h.
20752         (duplocale): In C++, define a namespaced alias symbol.
20753         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
20754         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
20755         * modules/locale (Depends-on): Add c++defs.
20756         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
20757
20758         langinfo: Avoid #define replacements in C++ mode.
20759         * lib/langinfo.in.h: Include c++defs.h.
20760         (nl_langinfo): In C++, define a namespaced alias symbol.
20761         * modules/langinfo (Depends-on): Add c++defs.
20762         (Makefile.am): Update langinfo.h rule.
20763
20764         iconv-h: Avoid #define replacements in C++ mode.
20765         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
20766         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
20767         symbol.
20768         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20769         whenever iconv is present.
20770         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
20771         (Makefile.am): Update iconv.h rule.
20772
20773         glob: Avoid #define replacements in C++ mode.
20774         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
20775         (_gl_glob_errfunc_fn): New type.
20776         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
20777         symbol.
20778         * modules/glob (Depends-on): Add c++defs, warn-on-use.
20779         (Makefile.am): Update glob.h rule.
20780
20781         fcntl-h: Avoid #define replacements in C++ mode.
20782         * lib/fcntl.in.h: Include c++defs.h.
20783         (fcntl, open, openat): In C++, define a namespaced alias symbol.
20784         * modules/fcntl-h (Depends-on): Add c++defs.
20785         (Makefile.am): Update fcntl.h rule.
20786
20787         dirent: Avoid #define replacements in C++ mode.
20788         * lib/dirent.in.h: Include c++defs.h.
20789         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
20790         namespaced alias symbol.
20791         (dirfd): Update declaration.
20792         * modules/dirent (Depends-on): Add c++defs.
20793         (Makefile.am): Update dirent.h rule.
20794
20795         ctype: Make it usable in C++ code.
20796         * lib/ctype.in.h: Include c++defs.h.
20797         (isblank): Declare as extern "C".
20798         * modules/ctype (Depends-on): Add c++defs.
20799         (Makefile.am): Update ctype.h rule.
20800
20801         New module 'c++defs'.
20802         * modules/c++defs: New file.
20803         * build-aux/c++defs.h: New file.
20804         Reported by John W. Eaton <jwe@gnu.org>.
20805
20806 2010-03-07  Bruno Haible  <bruno@clisp.org>
20807
20808         logb: Provide missing declaration for Cygwin.
20809         * lib/math.in.h (logb): New declaration.
20810         * m4/logb.m4: New file.
20811         * modules/logb (Files): Add m4/logb.m4.
20812         (Depends-on): Add math.
20813         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
20814         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
20815         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
20816         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
20817         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
20818
20819 2010-03-07  Bruno Haible  <bruno@clisp.org>
20820
20821         Fix test-cond link error.
20822         * tests/test-cond.c: Include <stdio.h>.
20823
20824 2010-03-07  Bruno Haible  <bruno@clisp.org>
20825
20826         Fix test-dirent-safer link error.
20827         * modules/dirent-safer-tests (Makefile.am): Define
20828         test_dirent_safer_LDADD.
20829
20830 2010-03-07  Bruno Haible  <bruno@clisp.org>
20831
20832         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
20833         among default module list.
20834
20835 2010-03-07  Bruno Haible  <bruno@clisp.org>
20836
20837         Fix link error on platforms with GNU libiconv.
20838         * modules/unistr/u8-strcoll-tests (Makefile): Define
20839         test_u8_strcoll_LDADD.
20840         * modules/unistr/u16-strcoll-tests (Makefile): Define
20841         test_u16_strcoll_LDADD.
20842         * modules/unistr/u32-strcoll-tests (Makefile): Define
20843         test_u32_strcoll_LDADD.
20844
20845 2010-03-07  Bruno Haible  <bruno@clisp.org>
20846
20847         Use POSIX declarations for socket functions.
20848         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
20849         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
20850         rpl_sendto): Change declaration to match POSIX.
20851         * lib/connect.c (rpl_connect): Likewise.
20852         * lib/accept.c (rpl_accept): Likewise.
20853         * lib/bind.c (rpl_bind): Likewise.
20854         * lib/getpeername.c (rpl_getpeername): Likewise.
20855         * lib/getsockname.c (rpl_getsockname): Likewise.
20856         * lib/recv.c (rpl_recv): Likewise.
20857         * lib/send.c (rpl_send): Likewise.
20858         * lib/recvfrom.c (rpl_recvfrom): Likewise.
20859         * lib/sendto.c (rpl_sendto): Likewise.
20860
20861 2010-03-06  Bruno Haible  <bruno@clisp.org>
20862
20863         Clarify access, euidaccess, faccessat.
20864         * doc/posix-functions/faccessat.texi: Mention security problem under
20865         "Other problems", not "Portability problems".
20866         * doc/posix-functions/access.texi: Likewise. Mention a related security
20867         problem.
20868         * doc/glibc-functions/euidaccess.texi: Mention security problems.
20869         * lib/euidaccess.c: Add comments about platforms.
20870         * lib/unistd.in.h (access, euidaccess): Add warnings.
20871
20872 2010-03-07  Bruno Haible  <bruno@clisp.org>
20873
20874         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
20875         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
20876         (POSIX_SPAWN_SETSCHEDULER): Likewise.
20877         (POSIX_SPAWN_USEVFORK): Define in a way that works when
20878         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
20879         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
20880         declare when POSIX_SPAWN_SETSCHEDULER is zero.
20881         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
20882         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
20883         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
20884         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
20885         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
20886         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
20887         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
20888         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
20889         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
20890         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
20891         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
20892         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
20893         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
20894         Likewise.
20895         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
20896         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
20897         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
20898         Likewise.
20899         * tests/test-spawn.c (main): Make it work when
20900         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
20901
20902 2010-03-07  Bruno Haible  <bruno@clisp.org>
20903
20904         Fix incorrect Makefile.am generation in German locale.
20905         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20906         Execute sed command with character range in C locale.
20907
20908 2010-03-06  Bruno Haible  <bruno@clisp.org>
20909
20910         Tests for module 'iconv-h'.
20911         * modules/iconv-h-tests: New file.
20912         * tests/test-iconv-h.c: New file.
20913
20914         New module 'iconv-h'.
20915         * modules/iconv-h: New file.
20916         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
20917         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
20918         (configure.ac): Remove gl_ICONV_H.
20919         (Makefile.am): Remove rule for iconv.h.
20920
20921 2010-03-06  Bruno Haible  <bruno@clisp.org>
20922
20923         More consistent naming of *.m4 files.
20924         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
20925         * modules/wctype (Files): Update.
20926
20927         More consistent naming of *.m4 files.
20928         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
20929         * modules/wchar (Files): Update.
20930
20931 2010-03-06  Jim Meyering  <meyering@redhat.com>
20932
20933         euidaccess: relax license to LGPLv2+
20934         * modules/euidaccess (License): Relax to LGPLv2+.
20935
20936 2010-03-06  Bruno Haible  <bruno@clisp.org>
20937
20938         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
20939         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
20940         (Makefile.am): Augment lib_SOURCES instead.
20941
20942 2010-03-04  Jim Meyering  <meyering@redhat.com>
20943
20944         utime: remove obsolete module
20945         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
20946         unnecessary for years, and has been marked as obsolete for 10 months.
20947         * modules/utime: Remove file.
20948         * lib/utime.c: Remove file.
20949         * m4/utime.m4: Remove file.
20950         * m4/utimes-null.m4: Remove file.
20951         * doc/posix-functions/utime.texi (utime): Remove reference to
20952         the module.  Move the sole "fixed by gnulib" item into the
20953         "problems not fixed by Gnulib" list.
20954         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
20955
20956 2010-03-05  Simon Josefsson  <simon@josefsson.org>
20957
20958         * modules/exit (License): Relax license to LGPLv2+.
20959         (Status): Mark as obsolete.
20960         * NEWS: Mention deprecated 'exit' module.
20961         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
20962         of now obsolete 'exit'.
20963
20964 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20965
20966         fts-lgpl: remove unused module
20967         * modules/fts-lgpl: Remove.
20968         * MODULES.html.sh (func_all_modules): Adjust.
20969         * check-module (find_included_lib_files): Adjust.
20970         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
20971
20972 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
20973
20974         copy-acl: enhance Solaris ACL error handling
20975         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
20976         * lib/set-mode-acl.c (qset_acl): Likewise.
20977
20978 2010-03-02  Bruno Haible  <bruno@clisp.org>
20979
20980         spawn: Don't override the system defined values on FreeBSD 8.
20981         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
20982         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
20983         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
20984         if HAVE_POSIX_SPAWN is 1.
20985         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
20986
20987 2010-03-01  Bruno Haible  <bruno@clisp.org>
20988
20989         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
20990         regarding Automake.
20991
20992 2010-02-25  Bruno Haible  <bruno@clisp.org>
20993
20994         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
20995         * gnulib-tool: Define 'echo' as a function only before the ksh alias
20996         setting, not afterwards.
20997         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
20998
20999 2010-02-24  Eric Blake  <eblake@redhat.com>
21000
21001         bootstrap, git-version-gen: use timestamp
21002         * build-aux/git-version-gen (scriptversion): Force UTC.
21003         * build-aux/bootstrap (scriptversion): New variable.
21004
21005         bootstrap: allow older git
21006         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
21007         older than 1.6.4.  Requested by the libvirt project.
21008
21009 2010-02-23  Eric Blake  <eblake@redhat.com>
21010
21011         warn-on-use: work with old autoconf
21012         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
21013         AS_VAR semantics of autoconf 2.60.
21014         Reported by Bruno Haible.
21015
21016         bootstrap: improve some comments
21017         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
21018         clarification comments.
21019
21020         gettimeofday: provide correct function
21021         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
21022         when replacement is declared, otherwise provide gettimeofday.
21023         Reported by Michael Goffioul.
21024
21025 2010-02-23  Jim Meyering  <meyering@redhat.com>
21026
21027         lib-ignore: relax license to "unlimited", not LGPLv2+
21028         * modules/lib-ignore (License): Relax to "unlimited".
21029
21030 2010-02-23  Jim Meyering  <meyering@redhat.com>
21031
21032         lib-ignore: relax license to LGPLv2+
21033         * modules/lib-ignore (License): Relax to LGPLv2+.
21034
21035 2010-02-22  Eric Blake  <eblake@redhat.com>
21036
21037         lseek: avoid bash 3.2 broken pipe bug
21038         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
21039         warning from bash 3.2.
21040         Reported by Ben Pfaff, with analysis from Bruno Haible.
21041
21042         bootstrap: support non-FSF copyright holder
21043         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
21044         bootstrap.conf override of COPYRIGHT_HOLDER.
21045         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
21046
21047         bootstrap: interoperate with gettext 0.14.1
21048         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
21049
21050         bootstrap: allow for alternate submodule location
21051         * build-aux/bootstrap (gnulib_path): New variable; use instead of
21052         hardcoding submodule location.
21053         (gnulib_mk): Allow direct use of Makefile.am.
21054
21055         bootstrap: use GNULIB_SRCDIR to reduce disk usage
21056         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
21057         rather than reconfiguring where the submodule points.
21058
21059         gettimeofday: restore support for platforms that lack function
21060         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
21061         replacement if function is missing.
21062         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
21063         * modules/sys_time (Makefile.am): Substitute it.
21064         * lib/sys_time.in.h (gettimeofday): Check it.
21065         Reported by Michael Goffioul.
21066
21067 2010-02-21  Bruno Haible  <bruno@clisp.org>
21068
21069         * lib/stdio.in.h (obstack_printf): Fix typo.
21070
21071 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
21072
21073         vc-list-files: use bzr ls's -R option
21074         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
21075         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
21076
21077 2010-02-21  Jim Meyering  <meyering@redhat.com>
21078
21079         init.sh: fix EXEEXT shims to work also for names like test-prog
21080         * tests/init.sh: Re-exec a better shell, when needed.
21081         If the current shell lacks support for posix $(...), an init.sh-using
21082         test will now try to find a shell that supports that.  If EXEEXT is
21083         nonempty, we also require support for hyphen-in-alias-name and shell
21084         substitutions like ${var#glob}.  Failure to find such a shell results
21085         in a skipped test.
21086
21087 2010-02-21  Bruno Haible  <bruno@clisp.org>
21088
21089         Really work around around "broken pipe" error message from bash 3.2.
21090         * gnulib-tool (func_reset_sigpipe): Remove function.
21091         (echo): In bash 3.2, define to a function that uses printf.
21092         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
21093
21094 2010-02-20  Bruno Haible  <bruno@clisp.org>
21095
21096         Restore support for automake 1.9.6 with autoconf 2.61.
21097         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
21098         Reported by James Youngman <jay@gnu.org>.
21099
21100 2010-02-20  Bruno Haible  <bruno@clisp.org>
21101
21102         Improve *printf warning condition.
21103         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
21104         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
21105         and the function is overridden due to SIGPIPE emulation.
21106
21107 2010-02-20  Bruno Haible  <bruno@clisp.org>
21108
21109         * lib/stdio.in.h: Tweak comments.
21110
21111 2010-02-19  Bruno Haible  <bruno@clisp.org>
21112
21113         Make it easier to find modules. New gnulib-tool option '--find'.
21114         * gnulib-tool: New option --find.
21115         (func_usage): Document it.
21116         (func_sanitize_modulelist): New function, extracted from
21117         func_all_modules.
21118         (func_all_modules): Invoke it.
21119         * doc/gnulib-tool.texi (Which modules?): New node.
21120
21121 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
21122
21123         * lib/sys_select.in.h: Provide select replacement even if
21124         sys/select.h exists on a system, for Interix.
21125
21126 2010-02-18  Jim Meyering  <meyering@redhat.com>
21127
21128         init.sh: don't use $(...) just yet
21129         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
21130         to accommodate e.g., Solaris' /bin/sh.
21131
21132 2010-02-17  Bruno Haible  <bruno@clisp.org>
21133
21134         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
21135         Reported by Ludovic Courtès <ludo@gnu.org>.
21136
21137 2010-02-16  Simon Josefsson  <simon@josefsson.org>
21138
21139         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
21140         linking with -lintl.
21141
21142 2010-02-17  Simon Josefsson  <simon@josefsson.org>
21143
21144         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
21145         if not provided by the system's netdb.h.  Reported by
21146         ludo@gnu.org (Ludovic Courtès).
21147
21148 2010-02-15  Jim Meyering  <meyering@redhat.com>
21149
21150         init.sh: improve portability and efficiency
21151         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
21152         "dummy" in a for loop.
21153         Use '!', not '^' to select the complement of a character set used
21154         in a "case" statement.
21155         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
21156         Suggestions from Eric Blake.
21157
21158         init.sh: automatically accommodate programs with the .exe suffix
21159         Automatically arrange for an invocation of "prog" to execute the
21160         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
21161         may use the simpler "prog", yet still work when built on a system
21162         that requires specifying the added suffix.
21163         Do this by constructing a function named "prog" that invokes
21164         "prog.exe" for each .exe file in selected directories.
21165         * tests/init.sh (find_exe_basenames_): New function.
21166         (create_exe_shim_functions_): New function.
21167         (path_prepend_): Use it.
21168
21169         maint.mk: mark syntax-check sc_*.m rules as .PHONY
21170         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
21171         "make -t syntax-check" doesn't create a ton of sc_*.m files.
21172
21173 2010-02-14  Jim Meyering  <meyering@redhat.com>
21174
21175         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
21176         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
21177         (sc_prohibit_hash_pjw_without_use): New rule.
21178
21179         maint.mk: allow the default upload destination dir to be overridden
21180         * top/maint.mk (upload_dest_dir_): Define with a default that
21181         preserves the status quo.
21182         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
21183         Reported by Peter Simons.
21184
21185         maint.mk: prohibit inclusion of "hash.h" without_use
21186         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
21187
21188 2010-02-10  Jim Meyering  <meyering@redhat.com>
21189
21190         maint.mk: prohibit inclusion of "ignore-value.h" without_use
21191         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
21192
21193 2010-02-09  Eric Blake  <ebb9@byu.net>
21194         and Bruno Haible  <bruno@clisp.org>
21195
21196         obstack-printf-posix: ensure declaration
21197         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
21198         extracted from gl_FUNC_OBSTACK_PRINTF.
21199         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
21200         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21201         Likewise.
21202         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
21203         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
21204         0.
21205
21206 2010-02-08  Bruno Haible  <bruno@clisp.org>
21207
21208         gnulib-tool: Fix typo in 2010-02-07 commit.
21209         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
21210         Reported by Eric Blake.
21211
21212 2010-02-07  Bruno Haible  <bruno@clisp.org>
21213
21214         gnulib-tool: Fix up caching patches.
21215         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
21216         option --no-cache. Use associative arrays when supported by the shell.
21217         (sed_comments): New variable.
21218         (modcache): Renamed from do_cache.
21219         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
21220         abbreviate unnecessarily.
21221         (have_associative): New variable.
21222         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
21223         way also for ksh and zsh.
21224         (func_init_sed_convert_to_cache_statements): New function, extracted
21225         from func_cache_lookup_module. Add support for associative arrays.
21226         Don't set the c_MODULE_cached variable here. Ignore all lines before
21227         the first field header. Remove only the final newline, not all trailing
21228         newlines. Support empty fields correctly. Limit the use of 'eval' to
21229         assignments.
21230         (func_get_description, func_get_status, func_get_notice,
21231         func_get_applicability, func_get_filelist, func_get_dependencies,
21232         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
21233         func_get_automake_snippet, func_get_include_directive,
21234         func_get_link_directive, func_get_license, func_get_maintainer):
21235         Update documentation. List the unoptimized code first. Add support for
21236         associative arrays. Limit the use of 'eval' to assignments.
21237         (func_get_applicability): Undo stylistic pessimisations.
21238         (func_get_automake_snippet, func_get_include_directive): Reduce code
21239         duplication.
21240         (func_modules_transitive_closure, func_modules_add_dummy,
21241         func_modules_notice, func_modules_to_filelist, func_add_file,
21242         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
21243         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
21244         func_create_testdir, func_create_megatestdir): Update documentation.
21245
21246 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21247
21248         * gnulib-tool (func_cache_lookup_module): Store the module name
21249         belonging to the cache variable; error out if two different
21250         module names map to the same cache variable name.
21251
21252 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21253
21254         gnulib-tool: Make caching optional.
21255         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
21256         Update matching short versions of --no-changelog.
21257         (func_usage): Update.
21258         (sed_extract_cache_prog): Renamed from ...
21259         (sed_extract_prog): ... this; revert to old extraction script.
21260         (func_get_description, func_get_status)
21261         (func_get_notice, func_get_applicability, func_get_filelist)
21262         (func_get_dependencies, func_get_autoconf_early_snippet)
21263         (func_get_autoconf_snippet, func_get_automake_snippet)
21264         (func_get_include_directive, func_get_link_directive)
21265         (func_get_license, func_get_maintainer): If $do_cache is false,
21266         use old, non-caching extraction scripts.
21267         Suggestion by Bruno Haible.
21268
21269 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21270
21271         gnulib-tool: cache module metainformation.
21272         * gnulib-tool (sed_extract_prog): Match newline before each
21273         header, and rewrite header to a shell variable suffix.
21274         (func_cache_var, func_cache_lookup_module): New functions,
21275         to turn a module name into a cache variable prefix, and to
21276         look up and cache module metainformation.
21277         (func_get_description, func_get_status)
21278         (func_get_notice, func_get_applicability, func_get_filelist)
21279         (func_get_dependencies, func_get_autoconf_early_snippet)
21280         (func_get_autoconf_snippet, func_get_automake_snippet)
21281         (func_get_include_directive, func_get_link_directive)
21282         (func_get_license, func_get_maintainer): Use
21283         func_cache_lookup_module.
21284
21285 2010-02-07  Bruno Haible  <bruno@clisp.org>
21286
21287         fnctl: Fix missing dependency.
21288         * modules/fcntl (Depends-on): Add getdtablesize.
21289         Reported by John W. Eaton <jwe@gnu.org>.
21290
21291 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21292
21293         Argp: fix recognition of short alias options.
21294
21295         * lib/argp-parse.c (convert_options): Fix improper use of
21296         `|' between character values.
21297         * tests/test-argp.c (group1_option): New alias option
21298         --read (-r).
21299         (group1_parser): Special handling for 'r'.
21300         (test15): New test case.
21301         (test_fun): Add test15.
21302         * tests/test-argp-2.sh: Update expected --help and --usage
21303         outputs.
21304
21305 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21306
21307         * tests/test-argp.c: Fix indentation.
21308
21309 2010-02-04  Eric Blake  <ebb9@byu.net>
21310
21311         gettimeofday: expose type of second argument
21312         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
21313         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
21314         * tests/test-gettimeofday.c: Use it to silence warning.
21315         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
21316         the issue.
21317
21318 2010-02-03  Jim Meyering  <meyering@redhat.com>
21319
21320         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
21321         * lib/regcomp.c (TYPE_SIGNED): Define.
21322         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
21323
21324         regcomp.c: avoid a new -Wshadow warning
21325         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
21326
21327 2010-02-01  Jim Meyering  <meyering@redhat.com>
21328
21329         removing useless parentheses in cpp #define directives
21330         For motivation, see commit c0221df4, "define STREQ(a,b)
21331         consistently, removing useless parentheses"
21332         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
21333         * lib/mountlist.c (MNT_IGNORE): Likewise.
21334         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
21335
21336 2010-02-01  Eric Blake  <ebb9@byu.net>
21337
21338         sys_time: use link-warning
21339         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
21340         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
21341         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
21342         * modules/sys_time (Depends-on): Add warn-on-use.
21343         (Makefile.am): Always build replacement.
21344         (configure.ac): Update substitutions.
21345         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
21346         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
21347         bother with SYS_TIME_H.
21348         * modules/gettimeofday (configure.ac): Declare indicator.
21349         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
21350         in use.
21351
21352         closein-tests: silence compiler warning
21353         * tests/test-closein.c (main): Ignore fread result.
21354         * modules/closein-tests (Depends-on): Add ignore-value.
21355
21356         tests: silence warning about system return
21357         * tests/test-areadlink-with-size.c (main): Ignore system result.
21358         * tests/test-areadlink.c (main): Likewise.
21359         * tests/test-areadlinkat-with-size.c (main): Likewise.
21360         * tests/test-areadlinkat.c (main): Likewise.
21361         * tests/test-canonicalize-lgpl.c (main): Likewise.
21362         * tests/test-canonicalize.c (main): Likewise.
21363         * tests/test-chown.c (main): Likewise.
21364         * tests/test-fchownat.c (main): Likewise.
21365         * tests/test-fdutimensat.c (main): Likewise.
21366         * tests/test-fstatat.c (main): Likewise.
21367         * tests/test-futimens.c (main): Likewise.
21368         * tests/test-lchown.c (main): Likewise.
21369         * tests/test-link.c (main): Likewise.
21370         * tests/test-linkat.c (main): Likewise.
21371         * tests/test-lstat.c (main): Likewise.
21372         * tests/test-mkdir.c (main): Likewise.
21373         * tests/test-mkdirat.c (main): Likewise.
21374         * tests/test-mkfifo.c (main): Likewise.
21375         * tests/test-mkfifoat.c (main): Likewise.
21376         * tests/test-mknod.c (main): Likewise.
21377         * tests/test-readlink.c (main): Likewise.
21378         * tests/test-remove.c (main): Likewise.
21379         * tests/test-rename.c (main): Likewise.
21380         * tests/test-renameat.c (main): Likewise.
21381         * tests/test-rmdir.c (main): Likewise.
21382         * tests/test-symlink.c (main): Likewise.
21383         * tests/test-symlinkat.c (main): Likewise.
21384         * tests/test-unlink.c (main): Likewise.
21385         * tests/test-unlinkat.c (main): Likewise.
21386         * tests/test-utimens.c (main): Likewise.
21387         * tests/test-utimensat.c (main): Likewise.
21388         * modules/areadlink-tests (Depends-on): Add ignore-value.
21389         * modules/areadlink-with-size-tests (Depends-on): Likewise.
21390         * modules/areadlinkat-tests (Depends-on): Likewise.
21391         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
21392         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21393         * modules/canonicalize-tests (Depends-on): Likewise.
21394         * modules/chown-tests (Depends-on): Likewise.
21395         * modules/fdutimensat-tests (Depends-on): Likewise.
21396         * modules/futimens-tests (Depends-on): Likewise.
21397         * modules/lchown-tests (Depends-on): Likewise.
21398         * modules/link-tests (Depends-on): Likewise.
21399         * modules/linkat-tests (Depends-on): Likewise.
21400         * modules/lstat-tests (Depends-on): Likewise.
21401         * modules/mkdir-tests (Depends-on): Likewise.
21402         * modules/mkfifo-tests (Depends-on): Likewise.
21403         * modules/mkfifoat-tests (Depends-on): Likewise.
21404         * modules/mknod-tests (Depends-on): Likewise.
21405         * modules/openat-tests (Depends-on): Likewise.
21406         * modules/readlink-tests (Depends-on): Likewise.
21407         * modules/remove-tests (Depends-on): Likewise.
21408         * modules/rename-tests (Depends-on): Likewise.
21409         * modules/renameat-tests (Depends-on): Likewise.
21410         * modules/rmdir-tests (Depends-on): Likewise.
21411         * modules/symlink-tests (Depends-on): Likewise.
21412         * modules/symlinkat-tests (Depends-on): Likewise.
21413         * modules/unlink-tests (Depends-on): Likewise.
21414         * modules/utimens-tests (Depends-on): Likewise.
21415         * modules/utimensat-tests (Depends-on): Likewise.
21416
21417 2010-01-31  Bruno Haible  <bruno@clisp.org>
21418
21419         Perform the same test for many <math.h> functions.
21420         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
21421         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
21422         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
21423         of gl_MATHFUNC.
21424         * modules/acos (configure.ac): Likewise.
21425         * modules/asin (configure.ac): Likewise.
21426         * modules/atan (configure.ac): Likewise.
21427         * modules/atan2 (configure.ac): Likewise.
21428         * modules/cbrt (configure.ac): Likewise.
21429         * modules/copysign (configure.ac): Likewise.
21430         * modules/cos (configure.ac): Likewise.
21431         * modules/cosh (configure.ac): Likewise.
21432         * modules/erf (configure.ac): Likewise.
21433         * modules/erfc (configure.ac): Likewise.
21434         * modules/exp (configure.ac): Likewise.
21435         * modules/fmod (configure.ac): Likewise.
21436         * modules/hypot (configure.ac): Likewise.
21437         * modules/j0 (configure.ac): Likewise.
21438         * modules/j1 (configure.ac): Likewise.
21439         * modules/jn (configure.ac): Likewise.
21440         * modules/lgamma (configure.ac): Likewise.
21441         * modules/log (configure.ac): Likewise.
21442         * modules/log10 (configure.ac): Likewise.
21443         * modules/log1p (configure.ac): Likewise.
21444         * modules/pow (configure.ac): Likewise.
21445         * modules/remainder (configure.ac): Likewise.
21446         * modules/sin (configure.ac): Likewise.
21447         * modules/sinh (configure.ac): Likewise.
21448         * modules/tan (configure.ac): Likewise.
21449         * modules/tanh (configure.ac): Likewise.
21450         * modules/y0 (configure.ac): Likewise.
21451         * modules/y1 (configure.ac): Likewise.
21452         * modules/yn (configure.ac): Likewise.
21453         Suggested by Paolo Bonzini.
21454
21455 2010-01-31  Bruno Haible  <bruno@clisp.org>
21456
21457         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
21458
21459 2010-01-31  Bruno Haible  <bruno@clisp.org>
21460
21461         Work around getdelim() bug on FreeBSD 8.0.
21462         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
21463         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
21464         not work.
21465         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
21466         is 1.
21467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
21468         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
21469         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
21470         a non-zero size.
21471         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
21472
21473 2010-01-31  Bruno Haible  <bruno@clisp.org>
21474
21475         Work around getline() bug on FreeBSD 8.0.
21476         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
21477         and a non-zero size.
21478         * tests/test-getline.c (main): Likewise.
21479         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
21480         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
21481
21482 2010-01-28  Eric Blake  <ebb9@byu.net>
21483
21484         regex: fix build failure
21485         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
21486         platforms.
21487
21488 2010-01-28  Jim Meyering  <meyering@redhat.com>
21489
21490         regex: do not ignore memory allocation failure
21491         * lib/regex_internal.c (create_cd_newstate): Detect
21492         re_node_set_init_copy failure.   Extracted from glibc commit
21493         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21494
21495         regex: sync more white-space changes from libc
21496         * lib/regex_internal.c: White-space only changes.
21497         * lib/regexec.c: Likewise.
21498
21499         regex: add many uses of __attribute_warn_unused_result__
21500         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
21501         * lib/regexec.c: Likewise.
21502         Extracted from a messy glibc commit.
21503
21504         regcomp.c: spelling and merge-artifact from glibc
21505         * lib/regcomp.c: Merge remainder of glibc's
21506         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21507
21508         regcomp.c: sync white-space changes from glibc
21509         * lib/regcomp.c: Merge to accommodate white space
21510         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21511
21512         regcomp.c: do not ignore internal return values
21513         * lib/regcomp.c: Do not ignore internal return values.
21514         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
21515         but without its white-space changes and spelling fixes.
21516
21517         regex_internal.h: define __attribute_warn_unused_result__
21518         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
21519
21520         maint: add a syntax-check rule to check for vulnerable Makefile.in
21521         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
21522
21523 2010-01-27  Jim Meyering  <meyering@redhat.com>
21524
21525         ncftpput-ftp: clean up spaces
21526         * build-aux/ncftpput-ftp: Make Copyright line consistent.
21527         Remove trailing blanks.
21528
21529 2010-01-27  Simon Josefsson  <simon@josefsson.org>
21530
21531         * build-aux/git-version-gen: Fix copyright statement.
21532         * build-aux/gnupload: Likewise.
21533         * tests/test-arcfour.c: Likewise.
21534         * tests/test-arctwo.c: Likewise.
21535         * tests/test-count-one-bits.c: Likewise.
21536         * tests/test-crc.c: Likewise.
21537         * tests/test-des.c: Likewise.
21538         * tests/test-gc-arcfour.c: Likewise.
21539         * tests/test-gc-arctwo.c: Likewise.
21540         * tests/test-gc-des.c: Likewise.
21541         * tests/test-gc-hmac-md5.c: Likewise.
21542         * tests/test-gc-hmac-sha1.c: Likewise.
21543         * tests/test-gc-md2.c: Likewise.
21544         * tests/test-gc-md4.c: Likewise.
21545         * tests/test-gc-md5.c: Likewise.
21546         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21547         * tests/test-gc-rijndael.c: Likewise.
21548         * tests/test-gc-sha1.c: Likewise.
21549         * tests/test-gc.c: Likewise.
21550         * tests/test-gethostname.c: Likewise.
21551         * tests/test-gettimeofday.c: Likewise.
21552         * tests/test-hash.c: Likewise.
21553         * tests/test-hmac-md5.c: Likewise.
21554         * tests/test-hmac-sha1.c: Likewise.
21555         * tests/test-md2.c: Likewise.
21556         * tests/test-md4.c: Likewise.
21557         * tests/test-md5.c: Likewise.
21558         * tests/test-memchr.c: Likewise.
21559         * tests/test-memchr2.c: Likewise.
21560         * tests/test-memcmp.c: Likewise.
21561         * tests/test-memmem.c: Likewise.
21562         * tests/test-memrchr.c: Likewise.
21563         * tests/test-rawmemchr.c: Likewise.
21564         * tests/test-read-file.c: Likewise.
21565         * tests/test-rijndael.c: Likewise.
21566         * tests/test-sockets.c: Likewise.
21567         * tests/test-strchrnul.c: Likewise.
21568         * tests/test-strstr.c: Likewise.
21569         * tests/test-strtod.c: Likewise.
21570         * build-aux/ncftpput-ftp: Likewise.
21571
21572 2010-01-26  Eric Blake  <ebb9@byu.net>
21573
21574         ignore-value: update recommended header name
21575         * modules/ignore-value (Include): Only use <> for headers that
21576         exist in glibc.
21577
21578 2010-01-26  Jim Meyering  <meyering@redhat.com>
21579
21580         test-userspec.c: avoid compiler warnings
21581         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
21582         and "initialization discards qualifiers..." warnings.
21583         Put the first "uid" in its own scope, and make char* members "const".
21584
21585 2010-01-25  Bruno Haible  <bruno@clisp.org>
21586
21587         gnulib-tool: Make warning diagnostics consistent.
21588         * gnulib-tool (func_warning): New function.
21589         Use it everywhere where gnulib-tool produces output to stderr and it is
21590         not a fatal error.
21591
21592 2010-01-25  Bruno Haible  <bruno@clisp.org>
21593
21594         Fix test dependencies.
21595         * modules/xstrtol-tests (Depends-on): Add inttypes.
21596         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
21597
21598 2010-01-25 Pádraig Brady <P@draigBrady.com>
21599
21600         syntax-check: detect incorrect boolean macro values in config.h
21601         * modules/maintainer-makefile (configure.ac): Parameterize the location
21602         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
21603         The logic is from Eric Blake and the location indicated by Jim Meyering.
21604         Note the more natural CONFIG_HEADER name is prohibited by automake
21605         for backwards compatibility reasons.
21606         * top/maint.mk (sc_Wundef_boolean): New rule.
21607
21608 2010-01-25  Jim Meyering  <meyering@redhat.com>
21609
21610         bootstrap: detect MacOS 10.6's shasum, too
21611         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
21612         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
21613
21614 2010-01-23  Jim Meyering  <meyering@redhat.com>
21615
21616         xstrtoll: new module
21617         * modules/xstrtoll: New file.
21618         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
21619         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
21620         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
21621         ./configure fails if you use this module and lack "long long".
21622         * modules/xstrtoll-tests: New module.
21623         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
21624         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
21625         new init.sh-based test framework.
21626
21627 2010-01-24  Bruno Haible  <bruno@clisp.org>
21628
21629         Tests for module 'yn'.
21630         * modules/yn-tests: New file.
21631         * tests/test-yn.c: New file.
21632
21633         Tests for module 'y1'.
21634         * modules/y1-tests: New file.
21635         * tests/test-y1.c: New file.
21636
21637         Tests for module 'y0'.
21638         * modules/y0-tests: New file.
21639         * tests/test-y0.c: New file.
21640
21641         Tests for module 'tanh'.
21642         * modules/tanh-tests: New file.
21643         * tests/test-tanh.c: New file.
21644
21645         Tests for module 'tan'.
21646         * modules/tan-tests: New file.
21647         * tests/test-tan.c: New file.
21648
21649         Tests for module 'sqrt'.
21650         * modules/sqrt-tests: New file.
21651         * tests/test-sqrt.c: New file.
21652
21653         Tests for module 'sinh'.
21654         * modules/sinh-tests: New file.
21655         * tests/test-sinh.c: New file.
21656
21657         Tests for module 'sin'.
21658         * modules/sin-tests: New file.
21659         * tests/test-sin.c: New file.
21660
21661         Tests for module 'rint'.
21662         * modules/rint-tests: New file.
21663         * tests/test-rint.c: New file.
21664
21665         Tests for module 'remainder'.
21666         * modules/remainder-tests: New file.
21667         * tests/test-remainder.c: New file.
21668
21669         Tests for module 'pow'.
21670         * modules/pow-tests: New file.
21671         * tests/test-pow.c: New file.
21672
21673         Tests for module 'nextafter'.
21674         * modules/nextafter-tests: New file.
21675         * tests/test-nextafter.c: New file.
21676
21677         Tests for module 'modf'.
21678         * modules/modf-tests: New file.
21679         * tests/test-modf.c: New file.
21680
21681         Tests for module 'logb'.
21682         * modules/logb-tests: New file.
21683         * tests/test-logb.c: New file.
21684
21685         Tests for module 'log1p'.
21686         * modules/log1p-tests: New file.
21687         * tests/test-log1p.c: New file.
21688
21689         Tests for module 'log10'.
21690         * modules/log10-tests: New file.
21691         * tests/test-log10.c: New file.
21692
21693         Tests for module 'log'.
21694         * modules/log-tests: New file.
21695         * tests/test-log.c: New file.
21696
21697         Tests for module 'lgamma'.
21698         * modules/lgamma-tests: New file.
21699         * tests/test-lgamma.c: New file.
21700
21701         Tests for module 'ldexp'.
21702         * modules/ldexp-tests: New file.
21703         * tests/test-ldexp.c: New file.
21704
21705         Tests for module 'jn'.
21706         * modules/jn-tests: New file.
21707         * tests/test-jn.c: New file.
21708
21709         Tests for module 'j1'.
21710         * modules/j1-tests: New file.
21711         * tests/test-j1.c: New file.
21712
21713         Tests for module 'j0'.
21714         * modules/j0-tests: New file.
21715         * tests/test-j0.c: New file.
21716
21717         Tests for module 'hypot'.
21718         * modules/hypot-tests: New file.
21719         * tests/test-hypot.c: New file.
21720
21721         Tests for module 'fmod'.
21722         * modules/fmod-tests: New file.
21723         * tests/test-fmod.c: New file.
21724
21725         Tests for module 'fabs'.
21726         * modules/fabs-tests: New file.
21727         * tests/test-fabs.c: New file.
21728
21729         Tests for module 'exp'.
21730         * modules/exp-tests: New file.
21731         * tests/test-exp.c: New file.
21732
21733         Tests for module 'erfc'.
21734         * modules/erfc-tests: New file.
21735         * tests/test-erfc.c: New file.
21736
21737         Tests for module 'erf'.
21738         * modules/erf-tests: New file.
21739         * tests/test-erf.c: New file.
21740
21741         Tests for module 'cosh'.
21742         * modules/cosh-tests: New file.
21743         * tests/test-cosh.c: New file.
21744
21745         Tests for module 'cos'.
21746         * modules/cos-tests: New file.
21747         * tests/test-cos.c: New file.
21748
21749         Tests for module 'copysign'.
21750         * modules/copysign-tests: New file.
21751         * tests/test-copysign.c: New file.
21752
21753         Tests for module 'cbrt'.
21754         * modules/cbrt-tests: New file.
21755         * tests/test-cbrt.c: New file.
21756
21757         Tests for module 'atan2'.
21758         * modules/atan2-tests: New file.
21759         * tests/test-atan2.c: New file.
21760
21761         Tests for module 'atan'.
21762         * modules/atan-tests: New file.
21763         * tests/test-atan.c: New file.
21764
21765         Tests for module 'asin'.
21766         * modules/asin-tests: New file.
21767         * tests/test-asin.c: New file.
21768
21769         Tests for module 'acos'.
21770         * modules/acos-tests: New file.
21771         * tests/test-acos.c: New file.
21772
21773 2010-01-24  Bruno Haible  <bruno@clisp.org>
21774
21775         Fix tests for common <math.h> functions.
21776         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
21777         code snippet that references the function pointer, rather than merely
21778         calling the function. Substitute the FUNC_LIBM variable.
21779         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
21780         * modules/acos (configure.ac): Likewise.
21781         * modules/asin (configure.ac): Likewise.
21782         * modules/atan (configure.ac): Likewise.
21783         * modules/atan2 (configure.ac): Likewise.
21784         * modules/cbrt (configure.ac): Likewise.
21785         * modules/copysign (configure.ac): Likewise.
21786         * modules/cos (configure.ac): Likewise.
21787         * modules/cosh (configure.ac): Likewise.
21788         * modules/erf (configure.ac): Likewise.
21789         * modules/erfc (configure.ac): Likewise.
21790         * modules/exp (configure.ac): Likewise.
21791         * modules/fabs (configure.ac): Likewise.
21792         * modules/fmod (configure.ac): Likewise.
21793         * modules/hypot (configure.ac): Likewise.
21794         * modules/j0 (configure.ac): Likewise.
21795         * modules/j1 (configure.ac): Likewise.
21796         * modules/jn (configure.ac): Likewise.
21797         * modules/ldexp (configure.ac): Likewise.
21798         * modules/lgamma (configure.ac): Likewise.
21799         * modules/log (configure.ac): Likewise.
21800         * modules/log10 (configure.ac): Likewise.
21801         * modules/log1p (configure.ac): Likewise.
21802         * modules/logb (configure.ac): Likewise.
21803         * modules/modf (configure.ac): Likewise.
21804         * modules/nextafter (configure.ac): Likewise.
21805         * modules/pow (configure.ac): Likewise.
21806         * modules/remainder (configure.ac): Likewise.
21807         * modules/rint (configure.ac): Likewise.
21808         * modules/sin (configure.ac): Likewise.
21809         * modules/sinh (configure.ac): Likewise.
21810         * modules/tan (configure.ac): Likewise.
21811         * modules/tanh (configure.ac): Likewise.
21812         * modules/y0 (configure.ac): Likewise.
21813         * modules/y1 (configure.ac): Likewise.
21814         * modules/yn (configure.ac): Likewise.
21815
21816 2010-01-24  Bruno Haible  <bruno@clisp.org>
21817
21818         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
21819         * tests/test-acosl.c (x): New variable.
21820         (main): Store argument in x and fetch it from x.
21821         * tests/test-asinl.c (x): New variable.
21822         (main): Store argument in x and fetch it from x.
21823         * tests/test-atanl.c (x): New variable.
21824         (main): Store argument in x and fetch it from x.
21825         * tests/test-cosl.c (x): New variable.
21826         (main): Store argument in x and fetch it from x.
21827         * tests/test-expl.c (x): New variable.
21828         (main): Store argument in x and fetch it from x.
21829         * tests/test-logl.c (x): New variable.
21830         (main): Store argument in x and fetch it from x.
21831         * tests/test-sinl.c (x): New variable.
21832         (main): Store argument in x and fetch it from x.
21833         * tests/test-sqrtl.c (x): New variable.
21834         (main): Store argument in x and fetch it from x.
21835         * tests/test-tanl.c (x): New variable.
21836         (main): Store argument in x and fetch it from x.
21837
21838 2010-01-24  Bruno Haible  <bruno@clisp.org>
21839
21840         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
21841         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
21842         assignments to the initial TESTS_ENVIRONMENT.
21843         * doc/gnulib.texi (Unit test modules): Document it.
21844         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
21845         TESTS_ENVIRONMENT.
21846         * modules/btowc-tests (Makefile.am): Likewise.
21847         * modules/c-stack-tests (Makefile.am): Likewise.
21848         * modules/c-strcase-tests (Makefile.am): Likewise.
21849         * modules/copy-file-tests (Makefile.am): Likewise.
21850         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
21851         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
21852         * modules/mbrtowc-tests (Makefile.am): Likewise.
21853         * modules/mbscasecmp-tests (Makefile.am): Likewise.
21854         * modules/mbscasestr-tests (Makefile.am): Likewise.
21855         * modules/mbschr-tests (Makefile.am): Likewise.
21856         * modules/mbscspn-tests (Makefile.am): Likewise.
21857         * modules/mbsinit-tests (Makefile.am): Likewise.
21858         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
21859         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
21860         * modules/mbspbrk-tests (Makefile.am): Likewise.
21861         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
21862         * modules/mbsrchr-tests (Makefile.am): Likewise.
21863         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
21864         * modules/mbsspn-tests (Makefile.am): Likewise.
21865         * modules/mbsstr-tests (Makefile.am): Likewise.
21866         * modules/nl_langinfo-tests (Makefile.am): Likewise.
21867         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
21868         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
21869         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
21870         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
21871         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
21872         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
21873         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
21874         * modules/wcrtomb-tests (Makefile.am): Likewise.
21875         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
21876         * modules/wcsrtombs-tests (Makefile.am): Likewise.
21877         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
21878         assignments from TESTS_ENVIRONMENT.
21879         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
21880         augmentation.
21881         * modules/argp-version-etc-tests (Makefile.am): Likewise.
21882         * modules/atexit-tests (Makefile.am): Likewise.
21883         * modules/binary-io-tests (Makefile.am): Likewise.
21884         * modules/closein-tests (Makefile.am): Likewise.
21885         * modules/dprintf-posix-tests (Makefile.am): Likewise.
21886         * modules/exclude-tests (Makefile.am): Likewise.
21887         * modules/fflush-tests (Makefile.am): Likewise.
21888         * modules/fpending-tests (Makefile.am): Likewise.
21889         * modules/fprintf-posix-tests (Makefile.am): Likewise.
21890         * modules/freadahead-tests (Makefile.am): Likewise.
21891         * modules/freadptr-tests (Makefile.am): Likewise.
21892         * modules/freadseek-tests (Makefile.am): Likewise.
21893         * modules/fseek-tests (Makefile.am): Likewise.
21894         * modules/fseeko-tests (Makefile.am): Likewise.
21895         * modules/ftell-tests (Makefile.am): Likewise.
21896         * modules/ftello-tests (Makefile.am): Likewise.
21897         * modules/idpriv-drop-tests (Makefile.am): Likewise.
21898         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
21899         * modules/lseek-tests (Makefile.am): Likewise.
21900         * modules/parse-duration-tests (Makefile.am): Likewise.
21901         * modules/perror-tests (Makefile.am): Likewise.
21902         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
21903         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
21904         * modules/pipe-tests (Makefile.am): Likewise.
21905         * modules/pread-tests (Makefile.am): Likewise.
21906         * modules/printf-posix-tests (Makefile.am): Likewise.
21907         * modules/select-tests (Makefile.am): Likewise.
21908         * modules/sigpipe-tests (Makefile.am): Likewise.
21909         * modules/tsearch-tests (Makefile.am): Likewise.
21910         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
21911         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
21912         * modules/uniname/uniname-tests (Makefile.am): Likewise.
21913         * modules/uniwidth/width-tests (Makefile.am): Likewise.
21914         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
21915         * modules/version-etc-tests (Makefile.am): Likewise.
21916         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
21917         * modules/vprintf-posix-tests (Makefile.am): Likewise.
21918         * modules/xalloc-die-tests (Makefile.am): Likewise.
21919         * modules/xprintf-posix-tests (Makefile.am): Likewise.
21920         * modules/xstrtoimax-tests (Makefile.am): Likewise.
21921         * modules/xstrtol-tests (Makefile.am): Likewise.
21922         * modules/xstrtoumax-tests (Makefile.am): Likewise.
21923         * modules/yesno-tests (Makefile.am): Likewise.
21924         Suggested by Jim Meyering.
21925
21926 2010-01-24  Bruno Haible  <bruno@clisp.org>
21927
21928         More documentation.
21929         * doc/gnulib.texi (Writing modules): New chapter.
21930         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
21931         the new chapter.
21932
21933 2010-01-24  Jim Meyering  <meyering@redhat.com>
21934
21935         maint.mk: do not prepend "./" after filtering
21936         * top/maint.mk (_prepend_srcdir_prefix): New variable
21937         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
21938         "./" when $(srcdir) is ".".
21939
21940         define STREQ(a,b) consistently, removing useless parentheses
21941         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
21942         since the only risk is that "a" or "b" contains an unparenthesized
21943         comma, but if either did that, STREQ would have 3 or more arguments.
21944         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
21945         * lib/fts.c (STREQ): Remove unnecessary parentheses.
21946         * lib/hash-triple.c (STREQ): Likewise.
21947         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
21948         * lib/getugroups.c (STREQ): Likewise.
21949
21950 2010-01-23  Jim Meyering  <meyering@redhat.com>
21951
21952         maint.mk: fix syntax-check in a non-srcdir build directory
21953         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
21954         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
21955
21956 2010-01-22  Jim Meyering  <meyering@redhat.com>
21957
21958         userspec: add unit tests
21959         * tests/test-userspec.c: New file.
21960         * modules/userspec-tests: Likewise.
21961
21962 2010-01-21  Jim Meyering  <meyering@redhat.com>
21963
21964         maint.mk: handle source file names containing "." robustly
21965         * top/maint.mk (_dot_escaped_srcdir): Define.
21966         (VC_LIST): Use it in LHS of sed substitution.
21967
21968 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
21969
21970         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
21971         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
21972         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
21973         from a non-srcdir build.
21974
21975 2010-01-20  Eric Blake  <ebb9@byu.net>
21976
21977         warn-on-use: use instead of link-warning
21978         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
21979         * modules/unistd (Depends-on, Makefile.am): Likewise.
21980         * modules/arpa_inet (Depends-on): Replace link-warning with
21981         warn-on-use.
21982         (Makefile.am): Update rules accordingly.
21983         * modules/ctype (Depends-on, Makefile.am): Likewise.
21984         * modules/dirent (Depends-on, Makefile.am): Likewise.
21985         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
21986         * modules/inttypes (Depends-on, Makefile.am): Likewise.
21987         * modules/langinfo (Depends-on, Makefile.am): Likewise.
21988         * modules/locale (Depends-on, Makefile.am): Likewise.
21989         * modules/math (Depends-on, Makefile.am): Likewise.
21990         * modules/search (Depends-on, Makefile.am): Likewise.
21991         * modules/signal (Depends-on, Makefile.am): Likewise.
21992         * modules/spawn (Depends-on, Makefile.am): Likewise.
21993         * modules/stdlib (Depends-on, Makefile.am): Likewise.
21994         * modules/string (Depends-on, Makefile.am): Likewise.
21995         * modules/strings (Depends-on, Makefile.am): Likewise.
21996         * modules/sys_file (Depends-on, Makefile.am): Likewise.
21997         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
21998         * modules/sys_select (Depends-on, Makefile.am): Likewise.
21999         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
22000         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
22001         * modules/sys_times (Depends-on, Makefile.am): Likewise.
22002         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22003         * modules/wchar (Depends-on, Makefile.am): Likewise.
22004         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
22005         should be poisoned.
22006         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
22007         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
22008         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
22009         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22010         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22011         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22012         * m4/math_h.m4 (gl_MATH_H): Likewise.
22013         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22014         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
22015         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22016         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
22017         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
22018         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
22019         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
22020         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
22021         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22022         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22023         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22024         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
22025         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22026         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22027         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22028         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22029         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
22030         GL_LINK_WARNING.
22031         * lib/ctype.in.h: Likewise.
22032         * lib/dirent.in.h: Likewise.
22033         * lib/fcntl.in.h: Likewise.
22034         * lib/inttypes.in.h: Likewise.
22035         * lib/langinfo.in.h: Likewise.
22036         * lib/locale.in.h: Likewise.
22037         * lib/math.in.h: Likewise.
22038         * lib/search.in.h: Likewise.
22039         * lib/signal.in.h: Likewise.
22040         * lib/spawn.in.h: Likewise.
22041         * lib/stdio.in.h: Likewise.
22042         * lib/stdlib.in.h: Likewise.
22043         * lib/string.in.h: Likewise.
22044         * lib/strings.in.h: Likewise.
22045         * lib/sys_file.in.h: Likewise.
22046         * lib/sys_ioctl.in.h: Likewise.
22047         * lib/sys_select.in.h: Likewise.
22048         * lib/sys_socket.in.h: Likewise.
22049         * lib/sys_stat.in.h: Likewise.
22050         * lib/sys_times.in.h: Likewise.
22051         * lib/sys_utsname.in.h: Likewise.
22052         * lib/unistd.in.h: Likewise.
22053         * lib/wchar.in.h: Likewise.
22054
22055 2010-01-20  Bruno Haible  <bruno@clisp.org>
22056
22057         Avoid duplicate -lm.
22058         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
22059         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
22060         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
22061         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
22062         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
22063         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
22064         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
22065         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
22066         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
22067         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
22068         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
22069         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22070         Reported by Paolo Bonzini.
22071
22072 2010-01-19  Bruno Haible  <bruno@clisp.org>
22073
22074         langinfo, nl_langinfo: Relicense under LGPLv2+.
22075         * modules/langinfo (License): Change to LGPLv2+.
22076         * modules/nl_langinfo (License): Likewise.
22077         Patch by David Lutterkort <lutter@redhat.com>.
22078
22079 2010-01-19  Bruno Haible  <bruno@clisp.org>
22080
22081         Avoid compilation error with cc on OSF/1 5.1.
22082         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
22083         statement, not before.
22084         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22085
22086 2010-01-18  Bruno Haible  <bruno@clisp.org>
22087
22088         Avoid a link error due to the __printf__ symbol.
22089         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
22090         and 2.6.x.
22091         (__format__, __printf__): Remove definitions.
22092         * lib/argp-fmtstream.h: Likewise.
22093         * lib/argp.h: Likewise.
22094         * lib/error.h: Likewise.
22095         * lib/vasnprintf.h: Likewise.
22096         * lib/xprintf.h: Likewise.
22097         * lib/xvasprintf.h: Likewise.
22098         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22099
22100 2010-01-18  Bruno Haible  <bruno@clisp.org>
22101
22102         Tests for module 'tanl'.
22103         * modules/tanl-tests: New file.
22104         * tests/test-tanl.c: New file.
22105
22106         Tests for module 'sqrtl'.
22107         * modules/sqrtl-tests: New file.
22108         * tests/test-sqrtl.c: New file.
22109
22110         Tests for module 'sinl'.
22111         * modules/sinl-tests: New file.
22112         * tests/test-sinl.c: New file.
22113
22114         Tests for module 'logl'.
22115         * modules/logl-tests: New file.
22116         * tests/test-logl.c: New file.
22117
22118         Tests for module 'expl'.
22119         * modules/expl-tests: New file.
22120         * tests/test-expl.c: New file.
22121
22122         Tests for module 'cosl'.
22123         * modules/cosl-tests: New file.
22124         * tests/test-cosl.c: New file.
22125
22126         Tests for module 'atanl'.
22127         * modules/atanl-tests: New file.
22128         * tests/test-atanl.c: New file.
22129
22130         Tests for module 'asinl'.
22131         * modules/asinl-tests: New file.
22132         * tests/test-asinl.c: New file.
22133
22134         Tests for module 'acosl'.
22135         * modules/acosl-tests: New file.
22136         * tests/test-acosl.c: New file.
22137
22138         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22139         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22140         tanl): Use the standard gnulib idiom.
22141         * lib/cosl.c: Don't include trigl.c and sincosl.c.
22142         * lib/sinl.c: Likewise.
22143         * lib/tanl.c: Don't include trigl.c.
22144         (kernel_tanl): Make static.
22145         * lib/sincosl.c: Include trigl.h first.
22146         * lib/trigl.c: Likewise.
22147         * m4/acosl.m4: New file.
22148         * m4/asinl.m4: New file.
22149         * m4/atanl.m4: New file.
22150         * m4/cosl.m4: New file.
22151         * m4/expl.m4: New file.
22152         * m4/logl.m4: New file.
22153         * m4/sinl.m4: New file.
22154         * m4/sqrtl.m4: New file.
22155         * m4/tanl.m4: New file.
22156         * m4/mathl.m4: Remove file.
22157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
22158         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22159         Don't initialize GNULIB_MATHL.
22160         * modules/acosl: New file.
22161         * modules/asinl: New file.
22162         * modules/atanl: New file.
22163         * modules/cosl: New file.
22164         * modules/expl: New file.
22165         * modules/logl: New file.
22166         * modules/sinl: New file.
22167         * modules/sqrtl: New file.
22168         * modules/tanl: New file.
22169         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
22170         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
22171         substitute GNULIB_MATHL.
22172         * modules/mathl: Rewritten.
22173         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
22174         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
22175         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
22176         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
22177         * doc/posix-functions/expl.texi: Mention the 'expl' module.
22178         * doc/posix-functions/logl.texi: Mention the 'logl' module.
22179         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
22180         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
22181         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
22182
22183 2010-01-18  Bruno Haible  <bruno@clisp.org>
22184
22185         sqrt: Make gl_FUNC_SQRT requirable.
22186         * m4/sqrt.m4: New file.
22187         * modules/sqrt (Files): Add it.
22188         (configure.ac): Invoke gl_FUNC_SQRT.
22189
22190 2010-01-18  Bruno Haible  <bruno@clisp.org>
22191
22192         New modules for common <math.h> functions.
22193         * m4/mathfunc.m4: New file.
22194         * modules/acos: New file.
22195         * modules/asin: New file.
22196         * modules/atan: New file.
22197         * modules/atan2: New file.
22198         * modules/cbrt: New file.
22199         * modules/copysign: New file.
22200         * modules/cos: New file.
22201         * modules/cosh: New file.
22202         * modules/erf: New file.
22203         * modules/erfc: New file.
22204         * modules/exp: New file.
22205         * modules/fabs: New file.
22206         * modules/fmod: New file.
22207         * modules/hypot: New file.
22208         * modules/j0: New file.
22209         * modules/j1: New file.
22210         * modules/jn: New file.
22211         * modules/ldexp: New file.
22212         * modules/lgamma: New file.
22213         * modules/log: New file.
22214         * modules/log10: New file.
22215         * modules/log1p: New file.
22216         * modules/logb: New file.
22217         * modules/modf: New file.
22218         * modules/nextafter: New file.
22219         * modules/pow: New file.
22220         * modules/remainder: New file.
22221         * modules/rint: New file.
22222         * modules/sin: New file.
22223         * modules/sinh: New file.
22224         * modules/sqrt: New file.
22225         * modules/tan: New file.
22226         * modules/tanh: New file.
22227         * modules/y0: New file.
22228         * modules/y1: New file.
22229         * modules/yn: New file.
22230         * doc/posix-functions/acos.texi: Mention the 'acos' module.
22231         * doc/posix-functions/asin.texi: Mention the 'asin' module.
22232         * doc/posix-functions/atan.texi: Mention the 'atan' module.
22233         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
22234         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
22235         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
22236         * doc/posix-functions/cos.texi: Mention the 'cos' module.
22237         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
22238         * doc/posix-functions/erf.texi: Mention the 'erf' module.
22239         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
22240         * doc/posix-functions/exp.texi: Mention the 'exp' module.
22241         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
22242         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
22243         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
22244         * doc/posix-functions/j0.texi: Mention the 'j0' module.
22245         * doc/posix-functions/j1.texi: Mention the 'j1' module.
22246         * doc/posix-functions/jn.texi: Mention the 'jn' module.
22247         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
22248         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
22249         * doc/posix-functions/log.texi: Mention the 'log' module.
22250         * doc/posix-functions/log10.texi: Mention the 'log10' module.
22251         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
22252         * doc/posix-functions/logb.texi: Mention the 'logb' module.
22253         * doc/posix-functions/modf.texi: Mention the 'modf' module.
22254         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
22255         * doc/posix-functions/pow.texi: Mention the 'pow' module.
22256         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
22257         * doc/posix-functions/rint.texi: Mention the 'rint' module.
22258         * doc/posix-functions/sin.texi: Mention the 'sin' module.
22259         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
22260         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
22261         * doc/posix-functions/tan.texi: Mention the 'tan' module.
22262         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
22263         * doc/posix-functions/y0.texi: Mention the 'y0' module.
22264         * doc/posix-functions/y1.texi: Mention the 'y1' module.
22265         * doc/posix-functions/yn.texi: Mention the 'yn' module.
22266
22267 2010-01-18  Jim Meyering  <meyering@redhat.com>
22268
22269         ignore-value: relax license to LGPLv2+
22270         * modules/ignore-value (License): Relax to LGPLv2+.
22271
22272         getdate: don't leak when TZ contains two or more '"'s
22273         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
22274         double quote in TZ after the first one.
22275
22276         readtokens: do not leak internal token_lengths buffer
22277         * lib/readtokens.c (readtokens): Free the local, lengths,
22278         when the supplied "token_lengths" parameter is NULL.
22279
22280 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22281
22282         Fix a couple of missing LIBTHREAD link failures on AIX.
22283         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
22284         $(LIBTHREAD).
22285         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
22286
22287         Link test-poll against INET_PTON_LIB.
22288         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
22289         for inet_pton on Solaris 10.
22290
22291 2010-01-17  Bruno Haible  <bruno@clisp.org>
22292
22293         unistdio/*-sprintf: Fix typo in module description.
22294         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
22295         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
22296         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
22297         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
22298         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
22299         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
22300         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
22301         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22302
22303 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22304
22305         gnulib-tool: fix filelist for AIX, HP-UX ksh.
22306         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
22307         variables in shell case patterns, for AIX and HP-UX ksh.
22308
22309         Split large sed scripts, for HP-UX sed.
22310         * modules/stdio: Split sed scripts around 50 sed commands,
22311         to avoid HP-UX limit of 99 commands, in the near future.
22312         * modules/string: Likewise.
22313         * modules/unistd: Likewise.
22314
22315         gnulib-tool: avoid writing in the current directory.
22316         * gnulib-tool (func_emit_lib_Makefile_am)
22317         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
22318         not in the current directory, so concurrent gnulib-tool
22319         instances do not interfere.
22320
22321 2010-01-16  Jim Meyering  <meyering@redhat.com>
22322
22323         doc: update users.txt
22324         * users.txt: Add grep.
22325         (diffutils, gzip): Update URLs.
22326
22327 2010-01-12  Bruno Haible  <bruno@clisp.org>
22328
22329         posix_spawn: Avoid test failure on Cygwin.
22330         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
22331         characters.
22332         Reported by Simon Josefsson.
22333
22334 2010-01-12  Bruno Haible  <bruno@clisp.org>
22335
22336         * tests/test-cond.c (main): When skipping the test, show the reason.
22337
22338 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22339
22340         * lib/striconv.c (str_cd_iconv): Avoid if before free.
22341
22342 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22343
22344         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
22345         VC_LIST_ALWAYS_EXCLUDE_REGEX.
22346
22347 2010-01-12  Eric Blake  <ebb9@byu.net>
22348
22349         build: guarantee AS_VAR_IF
22350         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
22351         (gl_AS_VAR_IF): Move...
22352         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
22353         Reported by Simon Josefsson.
22354
22355 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22356
22357         * lib/stdio.in.h: Fix typo.
22358
22359 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22360
22361         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
22362         libgpg-error.
22363
22364 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22365
22366         * tests/test-xalloc-die.sh: Use $EXEEXT.
22367
22368 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22369             Bruno Haible  <bruno@clisp.org>
22370
22371         getlogin, getlogin_r: Avoid test failure.
22372         * tests/test-getlogin.c: Include <stdio.h>.
22373         (main): Skip the test when the function fails because stdin is not a
22374         tty.
22375         * tests/test-getlogin_r.c: Include <stdio.h>.
22376         (main): Skip the test when the function fails because stdin is not a
22377         tty.
22378
22379 2010-01-11  Eric Blake  <ebb9@byu.net>
22380
22381         tests: avoid more large file warnings
22382         * tests/test-fflush.c: Avoid warning about ftell use.
22383         * tests/test-fseek.c: Avoid warning about fseek use.
22384
22385 2010-01-10  Bruno Haible  <bruno@clisp.org>
22386
22387         nproc: Work better on Linux when /proc and /sys are not mounted.
22388         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
22389         as lower bound when, on glibc/Linux systems,
22390         sysconf (_SC_NPROCESSORS_CONF) returns 1.
22391         Suggested by Pádraig Brady <P@draigbrady.com>.
22392         Reported by Dmitry V. Levin <ldv@altlinux.org>.
22393
22394         nproc: Refactor.
22395         * lib/nproc.c (num_processors_via_affinity_mask): New function,
22396         extracted from num_processors.
22397         (num_processors): Call it.
22398
22399 2010-01-11  Jim Meyering  <meyering@redhat.com>
22400
22401         utimecmp: avoid new warning from upcoming gcc-4.5.0
22402         * lib/utimecmp.c (BILLION): Define using #define rather than an
22403         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
22404
22405 2010-01-11  Eric Blake  <ebb9@byu.net>
22406
22407         math: add portability warnings for classification macros
22408         * modules/math (Depends-on): Add warn-on-use.
22409         (Makefile.am): Provide new substitutions.
22410         * m4/math_h.m4 (gl_MATH_H): Require inline.
22411         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
22412         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
22413         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
22414         implement warnings.
22415
22416         unistd: warn on use of environ without module
22417         * modules/unistd (Depends-on): Add warn-on-use.
22418         (Makefile.am): Provide new substitutions.
22419         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
22420         * lib/unistd.in.h (environ): Wrap with a warning helper function.
22421
22422         stdio: warn on suspicious uses
22423         * modules/stdio (Depends-on): Add warn-on-use.
22424         (Makefile.am): Provide new substitutions.
22425         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
22426         fseeko.
22427         * lib/stdio.in.h (gets): Always warn on use.
22428         (fseek, ftell): Adjust when warnings are issued, and honor
22429         _GL_NO_LARGE_FILES as a way to silence the warning.
22430         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
22431         any warning about large file offsets.
22432         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
22433         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
22434         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
22435         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
22436         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
22437         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
22438         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
22439         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
22440
22441         warn-on-use: new module
22442         * modules/warn-on-use: New file.
22443         * build-aux/warn-on-use.h: Likewise.
22444         * m4/warn-on-use.m4: Likewise.
22445         * MODULES.html.sh (Support for building): Mention it.
22446
22447 2010-01-10  Bruno Haible  <bruno@clisp.org>
22448
22449         Tests for module 'unistr/u32-strdup'.
22450         * modules/unistr/u32-strdup-tests: New file.
22451         * tests/unistr/test-u32-strdup.c: New file.
22452
22453         Tests for module 'unistr/u16-strdup'.
22454         * modules/unistr/u16-strdup-tests: New file.
22455         * tests/unistr/test-u16-strdup.c: New file.
22456
22457         Tests for module 'unistr/u8-strdup'.
22458         * modules/unistr/u8-strdup-tests: New file.
22459         * tests/unistr/test-u8-strdup.c: New file.
22460         * tests/unistr/test-strdup.h: New file.
22461
22462         Tests for module 'unistr/u32-strncmp'.
22463         * modules/unistr/u32-strncmp-tests: New file.
22464         * tests/unistr/test-u32-strncmp.c: New file.
22465
22466         Tests for module 'unistr/u16-strncmp'.
22467         * modules/unistr/u16-strncmp-tests: New file.
22468         * tests/unistr/test-u16-strncmp.c: New file.
22469
22470         Tests for module 'unistr/u8-strncmp'.
22471         * modules/unistr/u8-strncmp-tests: New file.
22472         * tests/unistr/test-u8-strncmp.c: New file.
22473         * tests/unistr/test-strncmp.h: New file.
22474
22475         Tests for module 'unistr/u32-strcoll'.
22476         * modules/unistr/u32-strcoll-tests: New file.
22477         * tests/unistr/test-u32-strcoll.c: New file.
22478
22479         Tests for module 'unistr/u16-strcoll'.
22480         * modules/unistr/u16-strcoll-tests: New file.
22481         * tests/unistr/test-u16-strcoll.c: New file.
22482
22483         Tests for module 'unistr/u8-strcoll'.
22484         * modules/unistr/u8-strcoll-tests: New file.
22485         * tests/unistr/test-u8-strcoll.c: New file.
22486
22487         Tests for module 'unistr/u32-strcmp'.
22488         * modules/unistr/u32-strcmp-tests: New file.
22489         * tests/unistr/test-u32-strcmp.c: New file.
22490         * tests/unistr/test-u32-strcmp.h: New file.
22491
22492         Tests for module 'unistr/u16-strcmp'.
22493         * modules/unistr/u16-strcmp-tests: New file.
22494         * tests/unistr/test-u16-strcmp.c: New file.
22495         * tests/unistr/test-u16-strcmp.h: New file.
22496
22497         Tests for module 'unistr/u8-strcmp'.
22498         * modules/unistr/u8-strcmp-tests: New file.
22499         * tests/unistr/test-u8-strcmp.c: New file.
22500         * tests/unistr/test-u8-strcmp.h: New file.
22501         * tests/unistr/test-strcmp.h: New file.
22502
22503         Tests for module 'unistr/u32-strncat'.
22504         * modules/unistr/u32-strncat-tests: New file.
22505         * tests/unistr/test-u32-strncat.c: New file.
22506
22507         Tests for module 'unistr/u16-strncat'.
22508         * modules/unistr/u16-strncat-tests: New file.
22509         * tests/unistr/test-u16-strncat.c: New file.
22510
22511         Tests for module 'unistr/u8-strncat'.
22512         * modules/unistr/u8-strncat-tests: New file.
22513         * tests/unistr/test-u8-strncat.c: New file.
22514         * tests/unistr/test-strncat.h: New file.
22515
22516         Tests for module 'unistr/u32-strcat'.
22517         * modules/unistr/u32-strcat-tests: New file.
22518         * tests/unistr/test-u32-strcat.c: New file.
22519
22520         Tests for module 'unistr/u16-strcat'.
22521         * modules/unistr/u16-strcat-tests: New file.
22522         * tests/unistr/test-u16-strcat.c: New file.
22523
22524         Tests for module 'unistr/u8-strcat'.
22525         * modules/unistr/u8-strcat-tests: New file.
22526         * tests/unistr/test-u8-strcat.c: New file.
22527         * tests/unistr/test-strcat.h: New file.
22528
22529         Tests for module 'unistr/u32-stpncpy'.
22530         * modules/unistr/u32-stpncpy-tests: New file.
22531         * tests/unistr/test-u32-stpncpy.c: New file.
22532
22533         Tests for module 'unistr/u16-stpncpy'.
22534         * modules/unistr/u16-stpncpy-tests: New file.
22535         * tests/unistr/test-u16-stpncpy.c: New file.
22536
22537         Tests for module 'unistr/u8-stpncpy'.
22538         * modules/unistr/u8-stpncpy-tests: New file.
22539         * tests/unistr/test-u8-stpncpy.c: New file.
22540         * tests/unistr/test-stpncpy.h: New file.
22541
22542         Tests for module 'unistr/u32-strncpy'.
22543         * modules/unistr/u32-strncpy-tests: New file.
22544         * tests/unistr/test-u32-strncpy.c: New file.
22545
22546         Tests for module 'unistr/u16-strncpy'.
22547         * modules/unistr/u16-strncpy-tests: New file.
22548         * tests/unistr/test-u16-strncpy.c: New file.
22549
22550         Tests for module 'unistr/u8-strncpy'.
22551         * modules/unistr/u8-strncpy-tests: New file.
22552         * tests/unistr/test-u8-strncpy.c: New file.
22553         * tests/unistr/test-strncpy.h: New file.
22554
22555         Tests for module 'unistr/u32-stpcpy'.
22556         * modules/unistr/u32-stpcpy-tests: New file.
22557         * tests/unistr/test-u32-stpcpy.c: New file.
22558
22559         Tests for module 'unistr/u16-stpcpy'.
22560         * modules/unistr/u16-stpcpy-tests: New file.
22561         * tests/unistr/test-u16-stpcpy.c: New file.
22562
22563         Tests for module 'unistr/u8-stpcpy'.
22564         * modules/unistr/u8-stpcpy-tests: New file.
22565         * tests/unistr/test-u8-stpcpy.c: New file.
22566         * tests/unistr/test-stpcpy.h: New file.
22567
22568         Tests for module 'unistr/u32-strcpy'.
22569         * modules/unistr/u32-strcpy-tests: New file.
22570         * tests/unistr/test-u32-strcpy.c: New file.
22571
22572         Tests for module 'unistr/u16-strcpy'.
22573         * modules/unistr/u16-strcpy-tests: New file.
22574         * tests/unistr/test-u16-strcpy.c: New file.
22575
22576         Tests for module 'unistr/u8-strcpy'.
22577         * modules/unistr/u8-strcpy-tests: New file.
22578         * tests/unistr/test-u8-strcpy.c: New file.
22579         * tests/unistr/test-strcpy.h: New file.
22580
22581         Tests for module 'unistr/u32-strnlen'.
22582         * modules/unistr/u32-strnlen-tests: New file.
22583         * tests/unistr/test-u32-strnlen.c: New file.
22584
22585         Tests for module 'unistr/u16-strnlen'.
22586         * modules/unistr/u16-strnlen-tests: New file.
22587         * tests/unistr/test-u16-strnlen.c: New file.
22588
22589         Tests for module 'unistr/u8-strnlen'.
22590         * modules/unistr/u8-strnlen-tests: New file.
22591         * tests/unistr/test-u8-strnlen.c: New file.
22592         * tests/unistr/test-strnlen.h: New file.
22593
22594         Tests for module 'unistr/u32-strlen'.
22595         * modules/unistr/u32-strlen-tests: New file.
22596         * tests/unistr/test-u32-strlen.c: New file.
22597
22598         Tests for module 'unistr/u16-strlen'.
22599         * modules/unistr/u16-strlen-tests: New file.
22600         * tests/unistr/test-u16-strlen.c: New file.
22601
22602         Tests for module 'unistr/u8-strlen'.
22603         * modules/unistr/u8-strlen-tests: New file.
22604         * tests/unistr/test-u8-strlen.c: New file.
22605
22606         Tests for module 'unistr/u32-prev'.
22607         * modules/unistr/u32-prev-tests: New file.
22608         * tests/unistr/test-u32-prev.c: New file.
22609
22610         Tests for module 'unistr/u16-prev'.
22611         * modules/unistr/u16-prev-tests: New file.
22612         * tests/unistr/test-u16-prev.c: New file.
22613
22614         Tests for module 'unistr/u8-prev'.
22615         * modules/unistr/u8-prev-tests: New file.
22616         * tests/unistr/test-u8-prev.c: New file.
22617
22618         Tests for module 'unistr/u32-next'.
22619         * modules/unistr/u32-next-tests: New file.
22620         * tests/unistr/test-u32-next.c: New file.
22621
22622         Tests for module 'unistr/u16-next'.
22623         * modules/unistr/u16-next-tests: New file.
22624         * tests/unistr/test-u16-next.c: New file.
22625
22626         Tests for module 'unistr/u8-next'.
22627         * modules/unistr/u8-next-tests: New file.
22628         * tests/unistr/test-u8-next.c: New file.
22629
22630         Tests for module 'unistr/u32-strmbtouc'.
22631         * modules/unistr/u32-strmbtouc-tests: New file.
22632         * tests/unistr/test-u32-strmbtouc.c: New file.
22633
22634         Tests for module 'unistr/u16-strmbtouc'.
22635         * modules/unistr/u16-strmbtouc-tests: New file.
22636         * tests/unistr/test-u16-strmbtouc.c: New file.
22637
22638         Tests for module 'unistr/u8-strmbtouc'.
22639         * modules/unistr/u8-strmbtouc-tests: New file.
22640         * tests/unistr/test-u8-strmbtouc.c: New file.
22641
22642         Tests for module 'unistr/u32-strmblen'.
22643         * modules/unistr/u32-strmblen-tests: New file.
22644         * tests/unistr/test-u32-strmblen.c: New file.
22645
22646         Tests for module 'unistr/u16-strmblen'.
22647         * modules/unistr/u16-strmblen-tests: New file.
22648         * tests/unistr/test-u16-strmblen.c: New file.
22649
22650         Tests for module 'unistr/u8-strmblen'.
22651         * modules/unistr/u8-strmblen-tests: New file.
22652         * tests/unistr/test-u8-strmblen.c: New file.
22653
22654         Tests for module 'unistr/u32-cpy-alloc'.
22655         * modules/unistr/u32-cpy-alloc-tests: New file.
22656         * tests/unistr/test-u32-cpy-alloc.c: New file.
22657
22658         Tests for module 'unistr/u16-cpy-alloc'.
22659         * modules/unistr/u16-cpy-alloc-tests: New file.
22660         * tests/unistr/test-u16-cpy-alloc.c: New file.
22661
22662         Tests for module 'unistr/u8-cpy-alloc'.
22663         * modules/unistr/u8-cpy-alloc-tests: New file.
22664         * tests/unistr/test-u8-cpy-alloc.c: New file.
22665         * tests/unistr/test-cpy-alloc.h: New file.
22666
22667         Tests for module 'unistr/u32-mbsnlen'.
22668         * modules/unistr/u32-mbsnlen-tests: New file.
22669         * tests/unistr/test-u32-mbsnlen.c: New file.
22670
22671         Tests for module 'unistr/u16-mbsnlen'.
22672         * modules/unistr/u16-mbsnlen-tests: New file.
22673         * tests/unistr/test-u16-mbsnlen.c: New file.
22674
22675         Tests for module 'unistr/u8-mbsnlen'.
22676         * modules/unistr/u8-mbsnlen-tests: New file.
22677         * tests/unistr/test-u8-mbsnlen.c: New file.
22678
22679         Tests for module 'unistr/u32-chr'.
22680         * modules/unistr/u32-chr-tests: New file.
22681         * tests/unistr/test-u32-chr.c: New file.
22682
22683         Tests for module 'unistr/u16-chr'.
22684         * modules/unistr/u16-chr-tests: New file.
22685         * tests/unistr/test-u16-chr.c: New file.
22686
22687         Tests for module 'unistr/u8-chr'.
22688         * modules/unistr/u8-chr-tests: New file.
22689         * tests/unistr/test-u8-chr.c: New file.
22690         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
22691
22692         Tests for module 'unistr/u32-cmp2'.
22693         * modules/unistr/u32-cmp2-tests: New file.
22694         * tests/unistr/test-u32-cmp2.c: New file.
22695
22696         Tests for module 'unistr/u16-cmp2'.
22697         * modules/unistr/u16-cmp2-tests: New file.
22698         * tests/unistr/test-u16-cmp2.c: New file.
22699
22700         Tests for module 'unistr/u8-cmp2'.
22701         * modules/unistr/u8-cmp2-tests: New file.
22702         * tests/unistr/test-u8-cmp2.c: New file.
22703         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
22704
22705         Tests for module 'unistr/u32-cmp'.
22706         * modules/unistr/u32-cmp-tests: New file.
22707         * tests/unistr/test-u32-cmp.c: New file.
22708
22709         Tests for module 'unistr/u16-cmp'.
22710         * modules/unistr/u16-cmp-tests: New file.
22711         * tests/unistr/test-u16-cmp.c: New file.
22712
22713         Tests for module 'unistr/u8-cmp'.
22714         * modules/unistr/u8-cmp-tests: New file.
22715         * tests/unistr/test-u8-cmp.c: New file.
22716         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
22717
22718         Tests for module 'unistr/u32-set'.
22719         * modules/unistr/u32-set-tests: New file.
22720         * tests/unistr/test-u32-set.c: New file.
22721
22722         Tests for module 'unistr/u16-set'.
22723         * modules/unistr/u16-set-tests: New file.
22724         * tests/unistr/test-u16-set.c: New file.
22725
22726         Tests for module 'unistr/u8-set'.
22727         * modules/unistr/u8-set-tests: New file.
22728         * tests/unistr/test-u8-set.c: New file.
22729         * tests/unistr/test-set.h: New file.
22730
22731         Tests for module 'unistr/u32-move'.
22732         * modules/unistr/u32-move-tests: New file.
22733         * tests/unistr/test-u32-move.c: New file.
22734
22735         Tests for module 'unistr/u16-move'.
22736         * modules/unistr/u16-move-tests: New file.
22737         * tests/unistr/test-u16-move.c: New file.
22738
22739         Tests for module 'unistr/u8-move'.
22740         * modules/unistr/u8-move-tests: New file.
22741         * tests/unistr/test-u8-move.c: New file.
22742         * tests/unistr/test-move.h: New file.
22743
22744         Tests for module 'unistr/u32-cpy'.
22745         * modules/unistr/u32-cpy-tests: New file.
22746         * tests/unistr/test-u32-cpy.c: New file.
22747
22748         Tests for module 'unistr/u16-cpy'.
22749         * modules/unistr/u16-cpy-tests: New file.
22750         * tests/unistr/test-u16-cpy.c: New file.
22751
22752         Tests for module 'unistr/u8-cpy'.
22753         * modules/unistr/u8-cpy-tests: New file.
22754         * tests/unistr/test-u8-cpy.c: New file.
22755         * tests/unistr/test-cpy.h: New file.
22756
22757 2010-01-09  Bruno Haible  <bruno@clisp.org>
22758
22759         Tests for module 'unistr/u32-uctomb'.
22760         * modules/unistr/u32-uctomb-tests: New file.
22761         * tests/unistr/test-u32-uctomb.c: New file.
22762
22763         Tests for module 'unistr/u16-uctomb'.
22764         * modules/unistr/u16-uctomb-tests: New file.
22765         * tests/unistr/test-u16-uctomb.c: New file.
22766
22767         Tests for module 'unistr/u8-uctomb'.
22768         * modules/unistr/u8-uctomb-tests: New file.
22769         * tests/unistr/test-u8-uctomb.c: New file.
22770
22771         Tests for module 'unistr/u32-mbtoucr'.
22772         * modules/unistr/u32-mbtoucr-tests: New file.
22773         * tests/unistr/test-u32-mbtoucr.c: New file.
22774
22775         Tests for module 'unistr/u16-mbtoucr'.
22776         * modules/unistr/u16-mbtoucr-tests: New file.
22777         * tests/unistr/test-u16-mbtoucr.c: New file.
22778
22779         Tests for module 'unistr/u8-mbtoucr'.
22780         * modules/unistr/u8-mbtoucr-tests: New file.
22781         * tests/unistr/test-u8-mbtoucr.c: New file.
22782
22783         Tests for module 'unistr/u32-mbtouc'.
22784         * modules/unistr/u32-mbtouc-tests: New file.
22785         * tests/unistr/test-u32-mbtouc.c: New file.
22786
22787         Tests for module 'unistr/u16-mbtouc'.
22788         * modules/unistr/u16-mbtouc-tests: New file.
22789         * tests/unistr/test-u16-mbtouc.c: New file.
22790
22791         Tests for module 'unistr/u8-mbtouc'.
22792         * modules/unistr/u8-mbtouc-tests: New file.
22793         * tests/unistr/test-u8-mbtouc.c: New file.
22794
22795         Tests for module 'unistr/u32-mbtouc-unsafe'.
22796         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
22797         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
22798         * tests/unistr/test-u32-mbtouc.h: New file.
22799
22800         Tests for module 'unistr/u16-mbtouc-unsafe'.
22801         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
22802         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
22803         * tests/unistr/test-u16-mbtouc.h: New file.
22804
22805         Tests for module 'unistr/u8-mbtouc-unsafe'.
22806         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
22807         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
22808         * tests/unistr/test-u8-mbtouc.h: New file.
22809
22810         Tests for module 'unistr/u32-mblen'.
22811         * modules/unistr/u32-mblen-tests: New file.
22812         * tests/unistr/test-u32-mblen.c: New file.
22813
22814         Tests for module 'unistr/u16-mblen'.
22815         * modules/unistr/u16-mblen-tests: New file.
22816         * tests/unistr/test-u16-mblen.c: New file.
22817
22818         Tests for module 'unistr/u8-mblen'.
22819         * modules/unistr/u8-mblen-tests: New file.
22820         * tests/unistr/test-u8-mblen.c: New file.
22821
22822         Tests for module 'unistr/u32-to-u16'.
22823         * modules/unistr/u32-to-u16-tests: New file.
22824         * tests/unistr/test-u32-to-u16.c: New file.
22825
22826         Tests for module 'unistr/u32-to-u8'.
22827         * modules/unistr/u32-to-u8-tests: New file.
22828         * tests/unistr/test-u32-to-u8.c: New file.
22829
22830         Tests for module 'unistr/u16-to-u32'.
22831         * modules/unistr/u16-to-u32-tests: New file.
22832         * tests/unistr/test-u16-to-u32.c: New file.
22833
22834         Tests for module 'unistr/u16-to-u8'.
22835         * modules/unistr/u16-to-u8-tests: New file.
22836         * tests/unistr/test-u16-to-u8.c: New file.
22837
22838         Tests for module 'unistr/u8-to-u32'.
22839         * modules/unistr/u8-to-u32-tests: New file.
22840         * tests/unistr/test-u8-to-u32.c: New file.
22841
22842         Tests for module 'unistr/u8-to-u16'.
22843         * modules/unistr/u8-to-u16-tests: New file.
22844         * tests/unistr/test-u8-to-u16.c: New file.
22845
22846         Tests for module 'unistr/u32-check'.
22847         * modules/unistr/u32-check-tests: New file.
22848         * tests/unistr/test-u32-check.c: New file.
22849
22850         Tests for module 'unistr/u16-check'.
22851         * modules/unistr/u16-check-tests: New file.
22852         * tests/unistr/test-u16-check.c: New file.
22853
22854         Tests for module 'unistr/u8-check'.
22855         * modules/unistr/u8-check-tests: New file.
22856         * tests/unistr/test-u8-check.c: New file.
22857
22858         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
22859         (category_equals): New function.
22860         (main): Add more tests.
22861         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
22862
22863         * tests/unictype/test-bidi_byname.c (main): Add more tests.
22864
22865 2010-01-10  Bruno Haible  <bruno@clisp.org>
22866
22867         unistr/u*-strcoll: Try harder to distinguish different strings.
22868         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
22869         compare s1 and s2 to see if they are different.
22870
22871 2010-01-10  Bruno Haible  <bruno@clisp.org>
22872
22873         unistr/u*-stpncpy: Fix the return value.
22874         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
22875         description of the return value consistent with stpncpy in glibc.
22876         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
22877         written non-NUL unit.
22878
22879 2010-01-10  Bruno Haible  <bruno@clisp.org>
22880
22881         unistr/u*-next: Add missing dependencies.
22882         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
22883         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
22884         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
22885
22886 2010-01-10  Bruno Haible  <bruno@clisp.org>
22887
22888         unistr/u8-mbsnlen: Fix return value for incomplete character.
22889         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
22890         u8_mblen.
22891         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
22892         Remove unistr/u8-mblen.
22893         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
22894         u16_mblen.
22895         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
22896         Remove unistr/u16-mblen.
22897
22898 2010-01-10  Bruno Haible  <bruno@clisp.org>
22899
22900         wchar: Fix compilation error when <wchar.h> is used from coreutils.
22901         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
22902         Reported by Brian Gough <bjg@gnu.org> and
22903         Chris Clayton <chris2553@googlemail.com> via
22904         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
22905
22906 2010-01-09  Bruno Haible  <bruno@clisp.org>
22907
22908         unistr/u16-to-u32: Reject invalid input.
22909         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
22910         u16_mbtouc.
22911         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
22912         Remove unistr/u16-mbtouc.
22913
22914         unistr/u16-to-u8: Reject invalid input.
22915         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
22916         u16_mbtouc.
22917         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
22918         Remove unistr/u16-mbtouc.
22919
22920         unistr/u8-to-u32: Reject invalid input.
22921         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
22922         u8_mbtouc.
22923         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
22924         Remove unistr/u8-mbtouc.
22925
22926         unistr/u8-to-u16: Reject invalid input.
22927         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
22928         u8_mbtouc.
22929         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
22930         Remove unistr/u8-mbtouc.
22931
22932 2010-01-09  Bruno Haible  <bruno@clisp.org>
22933
22934         Tests for module 'getlogin'.
22935         * modules/getlogin-tests: New file.
22936         * tests/test-getlogin.c: New file.
22937
22938         New module 'getlogin'.
22939         * lib/unistd.in.h (getlogin): New declaration.
22940         * lib/getlogin.c: New file.
22941         * m4/getlogin.m4: New file.
22942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
22943         HAVE_GETLOGIN.
22944         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
22945         HAVE_GETLOGIN.
22946         * modules/getlogin: New file.
22947         * doc/posix-functions/getlogin.texi: Mention the new module.
22948         Reported by John W. Eaton <jwe@gnu.org>.
22949
22950 2010-01-09  Bruno Haible  <bruno@clisp.org>
22951
22952         getlogin_r: Support for native Windows.
22953         * lib/getlogin_r.c: Include <windows.h>
22954         (getlogin_r): Implement for native Windows.
22955         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
22956         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
22957         via John W. Eaton <jwe@gnu.org>.
22958
22959 2010-01-09  Bruno Haible  <bruno@clisp.org>
22960
22961         getlogin_r: Small fixes.
22962         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
22963         succeeds.
22964         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
22965         before testing whether getlogin_r is declared. No need to set
22966         HAVE_DECL_GETLOGIN_R to 1.
22967         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
22968
22969 2010-01-09  Bruno Haible  <bruno@clisp.org>
22970
22971         * lib/unistd.in.h (getlogin_r): Add comment.
22972
22973 2010-01-09  Bruno Haible  <bruno@clisp.org>
22974
22975         Tests for module 'getlogin_r'.
22976         * modules/getlogin_r-tests: New file.
22977         * tests/test-getlogin_r.c: New file.
22978
22979 2010-01-09  Jim Meyering  <meyering@redhat.com>
22980
22981         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
22982         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
22983         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
22984
22985 2010-01-08  Simon Josefsson  <simon@josefsson.org>
22986
22987         * lib/dup2.c (rpl_dup2): Improve comment.
22988
22989 2010-01-08  Eric Blake  <ebb9@byu.net>
22990
22991         maint.mk: allow packages to add makefile @@ exceptions
22992         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
22993         (sc_makefile_check): Rename...
22994         (sc_makefile_at_at_check): ...to this, and use hook.
22995
22996         dup2: work around mingw bug
22997         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
22998         Reported by Simon Josefsson.
22999
23000 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
23001
23002         glob: Fix C++ compilation.
23003         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
23004         C++.
23005
23006 2010-01-07  Bruno Haible  <bruno@clisp.org>
23007
23008         Fix indentation of wctype.in.h, broken since 2007-01-06.
23009         * lib/wctype.in.h: Fix indentation of preprocessor directives.
23010
23011 2010-01-07  Bruno Haible  <bruno@clisp.org>
23012
23013         mbslen: Avoid collision with system function.
23014         * lib/string.in.h [MirBSD]: Include <wchar.h>.
23015         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
23016         * m4/mbslen.m4: New file.
23017         * modules/mbslen (Files): Add it.
23018         (configure.ac): Invoke gl_MBSLEN.
23019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
23020         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
23021         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
23022         via Ian Beckwith <ianb@erislabs.net>.
23023
23024 2010-01-07  Bruno Haible  <bruno@clisp.org>
23025
23026         dirent: Document the last fix.
23027         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
23028
23029 2010-01-07  Bruno Haible  <bruno@clisp.org>
23030
23031         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
23032         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
23033         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
23034         va_list are defined.
23035         * doc/posix-headers/stdio.texi: Document the bug of missing types.
23036         Reported by Eric Blake.
23037
23038 2010-01-07  Bruno Haible  <bruno@clisp.org>
23039
23040         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
23041         * modules/xlist (Depends-on): Add 'list',
23042         * modules/xoset (Depends-on): Add 'oset'.
23043         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23044
23045 2010-01-07  Bruno Haible  <bruno@clisp.org>
23046
23047         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
23048         * doc/posix-functions/strncasecmp.texi: Likewise.
23049
23050 2010-01-07  Bruno Haible  <bruno@clisp.org>
23051
23052         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
23053
23054 2010-01-07  John W. Eaton  <jwe@octave.org>
23055
23056         wctype: allow C++ use
23057         * lib/wctype.in.h: Add extern "C" block for C++.
23058
23059 2010-01-06  Eric Blake  <ebb9@byu.net>
23060
23061         maint.mk: detect incorrect GFDL usage
23062         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
23063
23064 2010-01-06  Jim Meyering  <meyering@redhat.com>
23065         and Eric Blake  <ebb9@byu.net>
23066
23067         maint.mk: ignore multi-line copyright in NEWS
23068         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
23069
23070 2010-01-06  Eric Blake  <ebb9@byu.net>
23071
23072         select: add missing dependency
23073         * modules/select-tests (Depends-on): Move sockets dependency...
23074         * modules/select (Depends-on): ...here.
23075         Reported by Ian Beckwith.
23076
23077         doc: regenerate INSTALL
23078         * doc/INSTALL: Reflect recent autoconf update.
23079         * doc/INSTALL.ISO: Likewise.
23080         * doc/INSTALL.UTF-8: Likewise.
23081
23082         pread: fix compilation on glibc
23083         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
23084         Reported by Ralf Wildenhues.
23085
23086         dirent: fix test failure
23087         * lib/dirent.in.h (includes): Guarantee ino_t.
23088         Reported by Ralf Wildenhues.
23089
23090 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
23091
23092         linkat, renameat: avoid bad free
23093         * lib/at-func2.c (at_func2): Fix typo.
23094         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
23095
23096 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23097
23098         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
23099         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
23100         to avoid failure of symlink test later.
23101
23102 2010-01-06  Eric Blake  <ebb9@byu.net>
23103
23104         stdio, unistd: guarantee ssize_t
23105         * lib/unistd.in.h (includes): Ensure that types required by POSIX
23106         2008 are exposed when needed.
23107         * lib/stdio.in.h (includes): Likewise.
23108         Reported by Ralf Wildenhues.
23109
23110 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
23111
23112         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
23113         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
23114         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
23115
23116 2010-01-06  Jim Meyering  <meyering@redhat.com>
23117
23118         readtokens: this module *does* require xalloc.h
23119         It uses only functions that were omitted by the old syntax-check rule.
23120         * lib/readtokens.c: Include "xalloc.h" once again.
23121         * modules/readtokens (Depends-on): Add xalloc.
23122         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
23123
23124 2010-01-05  Eric Blake  <ebb9@byu.net>
23125
23126         maint: support 'make announcement' from a VPATH build
23127         * top/maint.mk (announcement): Look for correct NEWS file.
23128
23129 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
23130
23131         utimens (fdutimens): ignore a negative FD, per contract
23132         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
23133         when we have a valid file descriptor.  Otherwise, using a brand
23134         new glibc (with just-patched futimens that now fails with EBADF)
23135         would cause this function to fail with ENOSYS.
23136         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
23137         See also http://bugzilla.redhat.com/552320.
23138
23139 2010-01-05  Eric Blake  <ebb9@byu.net>
23140
23141         strcase: document what it provides
23142         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
23143         gnulib module.
23144         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
23145         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
23146
23147 2010-01-05  Jim Meyering  <meyering@redhat.com>
23148
23149         maint: remove useless inclusions of "xalloc.h"
23150         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
23151         * lib/readtokens.c: Likewise.
23152         * lib/same.c: Likewise.
23153         * modules/getloadavg (Depends-on): Remove xalloc.
23154         * modules/readtokens: Likewise.
23155         * modules/same: Likewise.
23156
23157         maint.mk: include 4 more function names in alloca.h-checking regexp
23158         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
23159         regexp.  Before, we would give a false-positive (saying alloca.h
23160         is included unnecessarily) when the only uses involved omitted symbols.
23161
23162         xalloc.h: use consistent formatting
23163         * lib/xalloc.h: Move declarations to start in the first column.
23164
23165 2010-01-05  Eric Blake  <ebb9@byu.net>
23166
23167         mkdir: avoid xalloc
23168         * lib/mkdir.c (includes): Drop unused header.
23169         Reported by John W. Eaton.
23170
23171 2010-01-04  Jim Meyering  <meyering@redhat.com>
23172
23173         nl_langinfo: avoid configure-time syntax error
23174         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
23175         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
23176         the empty string.  Don't let that provoke a shell syntax error.
23177
23178         regcomp, regexec, fnmatch: avoid array bounds read error
23179         * lib/regcomp.c (build_equiv_class): From glibc:
23180         Use only the low 24 bits of a findidx return value as an index
23181         into the weights array.  Patch by Ulrich Drepper:
23182         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
23183         * lib/regexec.c (check_node_accept_bytes): Likewise.
23184         * lib/fnmatch_loop.c (FCT): Likewise.
23185
23186         regcomp: skip collseq lookup when there are no rules
23187         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
23188         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
23189
23190         regcomp: recognize ill-formed { } expressions
23191         * lib/regcomp.c (parse_dup_op): From glibc:
23192         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
23193
23194         regcomp: fix typo in comment
23195         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
23196         s/satisfy/satisfies/.
23197
23198         regcomp: sync from glibc: remove dead store
23199         * lib/regcomp.c (duplicate_node_closure): Remove useless
23200         search_duplicated_node call and dead store.
23201
23202         regcomp: sync from glibc; always use nl_langinfo
23203         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
23204         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
23205         * modules/regex (Depends-on): Add nl_langinfo.
23206
23207 2010-01-04  Eric Blake  <ebb9@byu.net>
23208
23209         fdopendir: fix configure test
23210         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
23211
23212 2010-01-01  Bruno Haible  <bruno@clisp.org>
23213
23214         wchar: Remove unused configure check.
23215         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
23216
23217 2010-01-01  Eric Blake  <ebb9@byu.net>
23218
23219         headers: make check of system header explicit
23220         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
23221         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
23222         ourselves.
23223         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23224         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23225         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
23226         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
23227         internals.
23228         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
23229         missing.
23230         Suggested by Bruno Haible.
23231
23232 2010-01-01  Jim Meyering  <meyering@redhat.com>
23233
23234         ChangeLog: tweak to eliminate unnecessary copyright line
23235         * ChangeLog: Remove a copyright line that was mistakenly updated
23236         by today's update-copyright run.  Reported by Eric Blake.
23237
23238         test-update-copyright: don't let envvar setting cause test failure
23239         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23240
23241 2010-01-01  Bruno Haible  <bruno@clisp.org>
23242
23243         localename: Avoid gcc warning.
23244         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
23245         function if it is not used.
23246
23247 2010-01-01  Jim Meyering  <meyering@redhat.com>
23248
23249         update nearly all FSF copyright year lists to include 2010
23250         Use the same procedure as for 2009, outlined in
23251         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
23252
23253         version-etc: set COPYRIGHT_YEAR to 2010
23254         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
23255
23256 2009-12-31  Eric Blake  <ebb9@byu.net>
23257
23258         doc: correct availability of cygwin 1.5.x getopt
23259         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
23260         variables.
23261         * doc/posix-functions/opterr.texi (opterr): Likewise.
23262         * doc/posix-functions/optind.texi (optind): Likewise.
23263         * doc/posix-functions/optopt.texi (optopt): Likewise.
23264         * doc/posix-functions/tzname.texi (tzname): Likewise.
23265
23266         openat: update maintainer
23267         * modules/openat (Maintainer): Add myself.
23268
23269         utimens: avoid shadowing warning
23270         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
23271         buffers into one, to avoid shadowing, as well as avoiding a
23272         redundant stat.
23273         Reported by Jim Meyering.
23274
23275         test-dup2: avoid compiler warning
23276         * tests/test-dup2.c (is_inheritable): Only define if used.
23277
23278 2010-01-01  Bruno Haible  <bruno@clisp.org>
23279
23280         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
23281         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
23282         defined, use wctomb instead of wcrtomb.
23283
23284 2010-01-01  Bruno Haible  <bruno@clisp.org>
23285
23286         iconv: Reject native Solaris iconv.
23287         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
23288         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
23289
23290 2009-12-31  Bruno Haible  <bruno@clisp.org>
23291
23292         * tests/test-signal.c (main): Remove test of 'SIG'.
23293
23294 2009-12-31  Bruno Haible  <bruno@clisp.org>
23295
23296         spawn: Fix incomplete fix.
23297         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23298         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23299         warnings for GNULIB_POSIXCHECK again.
23300         Reported by Eric Blake.
23301
23302 2009-12-31  Bruno Haible  <bruno@clisp.org>
23303
23304         Avoid namespace pollution on glibc systems.
23305         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
23306         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
23307         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
23308         glibc systems.
23309
23310 2009-12-31  Bruno Haible  <bruno@clisp.org>
23311
23312         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
23313         (gl_REPLACE_WCHAR_H): Turn into a no-op.
23314         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
23315         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
23316         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
23317         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
23318         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
23319
23320 2009-12-31  Bruno Haible  <bruno@clisp.org>
23321
23322         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23323         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
23324         afterwards.
23325
23326 2009-12-31  Bruno Haible  <bruno@clisp.org>
23327
23328         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
23329         SYS_UTSNAME_H.
23330
23331 2009-12-31  Bruno Haible  <bruno@clisp.org>
23332
23333         spawn: Fix misapplied patch.
23334         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23335         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23336         warnings for GNULIB_POSIXCHECK.
23337
23338 2009-12-31  Bruno Haible  <bruno@clisp.org>
23339
23340         times: Update after sys_times changed.
23341         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
23342         * modules/times (Files): Add it.
23343         (configure.ac): Invoke gl_FUNC_TIMES.
23344
23345 2009-12-31  Bruno Haible  <bruno@clisp.org>
23346
23347         Use AC_C_INLINE where necessary.
23348         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
23349         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23350         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23351         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
23352         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23353         * m4/mbiter.m4 (gl_MBITER): Likewise.
23354         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23355         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23356         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
23357         * modules/u64 (configure.ac): Likewise.
23358
23359 2009-12-31  Bruno Haible  <bruno@clisp.org>
23360
23361         Use AC_C_INLINE instead of module 'inline' where possible.
23362         * modules/inline (Description): Clarify purpose.
23363         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
23364         * modules/count-one-bits (Depends-on): Remove inline.
23365         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
23366         * modules/openat (Depends-on): Remove inline.
23367         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
23368         instead of depending on module 'inline'.
23369         * modules/filevercmp (Depends-on, configure.ac): Likewise.
23370         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
23371         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
23372         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
23373         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
23374         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
23375         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
23376         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
23377         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
23378         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
23379         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
23380         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
23381         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
23382         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
23383         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
23384         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
23385         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
23386         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
23387         Likewise.
23388         * modules/unictype/property-ascii-hex-digit (Depends-on,
23389         configure.ac): Likewise.
23390         * modules/unictype/property-bidi-arabic-digit (Depends-on,
23391         configure.ac): Likewise.
23392         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
23393         configure.ac): Likewise.
23394         * modules/unictype/property-bidi-block-separator (Depends-on,
23395         configure.ac): Likewise.
23396         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
23397         configure.ac): Likewise.
23398         * modules/unictype/property-bidi-common-separator (Depends-on,
23399         configure.ac): Likewise.
23400         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
23401         Likewise.
23402         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
23403         configure.ac): Likewise.
23404         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
23405         configure.ac): Likewise.
23406         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
23407         configure.ac): Likewise.
23408         * modules/unictype/property-bidi-european-digit (Depends-on,
23409         configure.ac): Likewise.
23410         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
23411         configure.ac): Likewise.
23412         * modules/unictype/property-bidi-left-to-right (Depends-on,
23413         configure.ac): Likewise.
23414         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
23415         configure.ac): Likewise.
23416         * modules/unictype/property-bidi-other-neutral (Depends-on,
23417         configure.ac): Likewise.
23418         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
23419         Likewise.
23420         * modules/unictype/property-bidi-segment-separator (Depends-on,
23421         configure.ac): Likewise.
23422         * modules/unictype/property-bidi-whitespace (Depends-on,
23423         configure.ac): Likewise.
23424         * modules/unictype/property-combining (Depends-on, configure.ac):
23425         Likewise.
23426         * modules/unictype/property-composite (Depends-on, configure.ac):
23427         Likewise.
23428         * modules/unictype/property-currency-symbol (Depends-on,
23429         configure.ac): Likewise.
23430         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
23431         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
23432         Likewise.
23433         * modules/unictype/property-default-ignorable-code-point (Depends-on,
23434         configure.ac): Likewise.
23435         * modules/unictype/property-deprecated (Depends-on, configure.ac):
23436         Likewise.
23437         * modules/unictype/property-diacritic (Depends-on, configure.ac):
23438         Likewise.
23439         * modules/unictype/property-extender (Depends-on, configure.ac):
23440         Likewise.
23441         * modules/unictype/property-format-control (Depends-on, configure.ac):
23442         Likewise.
23443         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
23444         Likewise.
23445         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
23446         Likewise.
23447         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
23448         Likewise.
23449         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
23450         Likewise.
23451         * modules/unictype/property-hyphen (Depends-on, configure.ac):
23452         Likewise.
23453         * modules/unictype/property-id-continue (Depends-on, configure.ac):
23454         Likewise.
23455         * modules/unictype/property-id-start (Depends-on, configure.ac):
23456         Likewise.
23457         * modules/unictype/property-ideographic (Depends-on, configure.ac):
23458         Likewise.
23459         * modules/unictype/property-ids-binary-operator (Depends-on,
23460         configure.ac): Likewise.
23461         * modules/unictype/property-ids-trinary-operator (Depends-on,
23462         configure.ac): Likewise.
23463         * modules/unictype/property-ignorable-control (Depends-on,
23464         configure.ac): Likewise.
23465         * modules/unictype/property-iso-control (Depends-on, configure.ac):
23466         Likewise.
23467         * modules/unictype/property-join-control (Depends-on, configure.ac):
23468         Likewise.
23469         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
23470         Likewise.
23471         * modules/unictype/property-line-separator (Depends-on, configure.ac):
23472         Likewise.
23473         * modules/unictype/property-logical-order-exception (Depends-on,
23474         configure.ac): Likewise.
23475         * modules/unictype/property-lowercase (Depends-on, configure.ac):
23476         Likewise.
23477         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
23478         * modules/unictype/property-non-break (Depends-on, configure.ac):
23479         Likewise.
23480         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
23481         Likewise.
23482         * modules/unictype/property-numeric (Depends-on, configure.ac):
23483         Likewise.
23484         * modules/unictype/property-other-alphabetic (Depends-on,
23485         configure.ac): Likewise.
23486         * modules/unictype/property-other-default-ignorable-code-point
23487         (Depends-on, configure.ac): Likewise.
23488         * modules/unictype/property-other-grapheme-extend (Depends-on,
23489         configure.ac): Likewise.
23490         * modules/unictype/property-other-id-continue (Depends-on,
23491         configure.ac): Likewise.
23492         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
23493         Likewise.
23494         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
23495         Likewise.
23496         * modules/unictype/property-other-math (Depends-on, configure.ac):
23497         Likewise.
23498         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
23499         Likewise.
23500         * modules/unictype/property-paired-punctuation (Depends-on,
23501         configure.ac): Likewise.
23502         * modules/unictype/property-paragraph-separator (Depends-on,
23503         configure.ac): Likewise.
23504         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
23505         Likewise.
23506         * modules/unictype/property-pattern-white-space (Depends-on,
23507         configure.ac): Likewise.
23508         * modules/unictype/property-private-use (Depends-on, configure.ac):
23509         Likewise.
23510         * modules/unictype/property-punctuation (Depends-on, configure.ac):
23511         Likewise.
23512         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
23513         Likewise.
23514         * modules/unictype/property-radical (Depends-on, configure.ac):
23515         Likewise.
23516         * modules/unictype/property-sentence-terminal (Depends-on,
23517         configure.ac): Likewise.
23518         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
23519         Likewise.
23520         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
23521         * modules/unictype/property-terminal-punctuation (Depends-on,
23522         configure.ac): Likewise.
23523         * modules/unictype/property-titlecase (Depends-on, configure.ac):
23524         Likewise.
23525         * modules/unictype/property-unassigned-code-value (Depends-on,
23526         configure.ac): Likewise.
23527         * modules/unictype/property-unified-ideograph (Depends-on,
23528         configure.ac): Likewise.
23529         * modules/unictype/property-uppercase (Depends-on, configure.ac):
23530         Likewise.
23531         * modules/unictype/property-variation-selector (Depends-on,
23532         configure.ac): Likewise.
23533         * modules/unictype/property-white-space (Depends-on, configure.ac):
23534         Likewise.
23535         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
23536         Likewise.
23537         * modules/unictype/property-xid-start (Depends-on, configure.ac):
23538         Likewise.
23539         * modules/unictype/property-zero-width (Depends-on, configure.ac):
23540         Likewise.
23541         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
23542         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
23543         Likewise.
23544
23545 2009-12-31  Bruno Haible  <bruno@clisp.org>
23546
23547         Remove unnecessary AC_C_INLINE invocation.
23548         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
23549         since 2009-08-21.
23550
23551 2009-12-31  Jim Meyering  <meyering@redhat.com>
23552
23553         maint.mk: don't require explicit gpg_key_ID in cfg.mk
23554         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
23555         With this change, we can all remove the gpg_key_ID = ... definition
23556         from our respective cfg.mk files.
23557
23558         maint.mk: create announcement template in ~/, not in /tmp
23559         * top/maint.mk (emit_upload_commands): Adjust.
23560         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
23561         Remove temporary file, .ci-msg.
23562
23563 2009-12-31  Eric Blake  <ebb9@byu.net>
23564
23565         link-warning: always build headers with link warnings
23566         * modules/arpa_inet (Makefile.am): Always build replacement
23567         header.
23568         * modules/ctype (Makefile.am): Likewise.
23569         * modules/dirent (Makefile.am): Likewise.
23570         * modules/inttypes (Makefile.am): Likewise.
23571         * modules/langinfo (Makefile.am): Likewise.
23572         * modules/locale (Makefile.am): Likewise.
23573         * modules/spawn (Makefile.am): Likewise.
23574         * modules/sys_file (Makefile.am): Likewise.
23575         * modules/sys_ioctl (Makefile.am): Likewise.
23576         * modules/sys_select (Makefile.am): Likewise.
23577         * modules/sys_socket (Makefile.am): Likewise.
23578         * modules/sys_times (Makefile.am): Likewise.
23579         * modules/sys_utsname (Makefile.am): Likewise.
23580         * modules/sys_wait (Makefile.am): Likewise.
23581         * modules/wchar (Makefile.am): Likewise.
23582         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
23583         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
23584         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
23585         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
23586         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
23587         Likewise.
23588         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23589         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23590         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
23591         Likewise.
23592         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
23593         Likewise.
23594         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23595         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
23596         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
23597         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23598         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23599         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23600         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23601         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
23602         (gl_WCHAR_H_DEFAULTS): Likewise.
23603
23604 2009-12-31  Eric Blake  <ebb9@byu.net>
23605
23606         signal, spawn: use link warnings
23607         * lib/signal.in.h (sigset_t): Make unconditional.
23608         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
23609         (sigpending, sigprocmask, sigaction): Add link warnings.
23610         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
23611         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
23612         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
23613         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
23614         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
23615         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
23616         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
23617         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
23618         (posix_spawn_file_actions_destroy)
23619         (posix_spawn_file_actions_addopen)
23620         (posix_spawn_file_actions_addclose)
23621         (posix_spawn_file_actions_adddup2): Likewise.
23622         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
23623         * tests/test-signal.c (main): Enhance test.
23624
23625         spawn: improve wrapper support
23626         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
23627         (gl_SPAWN_H_DEFAULTS): New defaults.
23628         * modules/spawn (Makefile.am): Substitute them.
23629         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
23630         Only declare if missing or broken.
23631
23632         sys_times, sys_utsname: use include_next
23633         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
23634         header.
23635         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
23636         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23637         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23638         * modules/sys_times (Depends-on): Add include_next.
23639         (Makefile.am): Substitute additional values.
23640         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23641         * lib/sys_times.in.h (includes): Include native header, if
23642         available.
23643         * lib/sys_utsname.in.h (includes): Likewise.
23644         * tests/test-sys_times.c (main): Enhance test.
23645
23646         fdutimensat: revert prior patch
23647         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
23648         utimens.h.
23649         Reported by Bruno Haible.
23650
23651 2009-12-30  Eric Blake  <ebb9@byu.net>
23652
23653         sys_wait: drop link-warning dependency
23654         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
23655         link-warning efforts.
23656         * lib/sys_wait.in.h: Likewise.
23657
23658         fdutimensat: remove bogus dependency
23659         * modules/fdutimensat (Depends-on): Drop inline.
23660
23661         unistd: fix typo
23662         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
23663
23664 2009-12-30  Bruno Haible  <bruno@clisp.org>
23665
23666         Fix compilation error with Solaris cc.
23667         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
23668         * lib/unicase/u16-is-invariant.c: Likewise.
23669         * lib/unicase/u32-is-invariant.c: Likewise.
23670         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23671
23672 2009-12-30  Bruno Haible  <bruno@clisp.org>
23673
23674         Fix test crash.
23675         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
23676         locales.
23677         Reported by Simon Josefsson <simon@josefsson.org>.
23678
23679 2009-12-30  Bruno Haible  <bruno@clisp.org>
23680
23681         Fix compilation error on most platforms.
23682         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
23683         Reported by Simon Josefsson <simon@josefsson.org>
23684         and Nelson H. F. Beebe <beebe@math.utah.edu>.
23685
23686 2009-12-30  Eric Blake  <ebb9@byu.net>
23687
23688         futimens, utimensat: work around ntfs-3g bug
23689         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
23690         a ctime bug is present, and expand workaround to cover ntfs-3g.
23691         * lib/utimens.c (fdutimens, lutimens): Likewise.
23692         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
23693         (validate_timespec): Adjust return value.
23694         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
23695         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23696         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
23697
23698 2009-12-29  Eric Blake  <ebb9@byu.net>
23699
23700         link-warning: make usage consistent
23701         * modules/ctype (Depends-on): Add link-warning.
23702         (Makefile.am): Update rules accordingly.
23703         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23704         * modules/locale (Depends-on, Makefile.am): Likewise.
23705         * modules/sys_file (Makefile.am): Likewise.
23706         * modules/getopt-posix (Makefile.am): Delete unused link warning
23707         efforts.
23708         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
23709         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
23710         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
23711         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
23712
23713         stdio: remove unused variables
23714         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
23715         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
23716         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23717
23718         tests: test more substitute headers
23719         * modules/ctype-tests: New file.
23720         * modules/dirent-tests: Likewise.
23721         * modules/spawn-tests: Likewise.
23722         * modules/sys_file-tests: Likewise.
23723         * modules/sys_ioctl-tests: Likewise.
23724         * modules/sys_wait-tests: Likewise.
23725         * tests/test-ctype.c: Likewise.
23726         * tests/test-dirent.c: Likewise.
23727         * tests/test-spawn.c: Likewise.
23728         * tests/test-sys_file.c: Likewise.
23729         * tests/test-sys_ioctl.c: Likewise.
23730         * tests/test-sys_wait.c: Likewise.
23731         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
23732         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
23733         whether or not flock is in use.
23734
23735         tests: remove License section from module
23736         * modules/arpa_inet-tests: Remove unneeded section.
23737         * modules/byteswap-tests: Likewise.
23738         * modules/ceilf-tests: Likewise.
23739         * modules/ceill-tests: Likewise.
23740         * modules/crypto/des-tests: Likewise.
23741         * modules/crypto/gc-arcfour-tests: Likewise.
23742         * modules/crypto/gc-arctwo-tests: Likewise.
23743         * modules/crypto/gc-des-tests: Likewise.
23744         * modules/crypto/gc-hmac-md5-tests: Likewise.
23745         * modules/crypto/gc-hmac-sha1-tests: Likewise.
23746         * modules/crypto/gc-md2-tests: Likewise.
23747         * modules/crypto/gc-md4-tests: Likewise.
23748         * modules/crypto/gc-md5-tests: Likewise.
23749         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
23750         * modules/crypto/gc-rijndael-tests: Likewise.
23751         * modules/crypto/gc-sha1-tests: Likewise.
23752         * modules/crypto/gc-tests: Likewise.
23753         * modules/crypto/md2-tests: Likewise.
23754         * modules/crypto/md4-tests: Likewise.
23755         * modules/fcntl-h-tests: Likewise.
23756         * modules/floorf-tests: Likewise.
23757         * modules/floorl-tests: Likewise.
23758         * modules/frexp-nolibm-tests: Likewise.
23759         * modules/frexp-tests: Likewise.
23760         * modules/frexpl-nolibm-tests: Likewise.
23761         * modules/frexpl-tests: Likewise.
23762         * modules/getaddrinfo-tests: Likewise.
23763         * modules/inttypes-tests: Likewise.
23764         * modules/isfinite-tests: Likewise.
23765         * modules/isinf-tests: Likewise.
23766         * modules/ldexpl-tests: Likewise.
23767         * modules/locale-tests: Likewise.
23768         * modules/math-tests: Likewise.
23769         * modules/netdb-tests: Likewise.
23770         * modules/netinet_in-tests: Likewise.
23771         * modules/printf-frexp-tests: Likewise.
23772         * modules/printf-frexpl-tests: Likewise.
23773         * modules/priv-set-tests: Likewise.
23774         * modules/random_r-tests: Likewise.
23775         * modules/round-tests: Likewise.
23776         * modules/roundf-tests: Likewise.
23777         * modules/roundl-tests: Likewise.
23778         * modules/search-tests: Likewise.
23779         * modules/select-tests: Likewise.
23780         * modules/signal-tests: Likewise.
23781         * modules/stdbool-tests: Likewise.
23782         * modules/stddef-tests: Likewise.
23783         * modules/stdint-tests: Likewise.
23784         * modules/stdio-tests: Likewise.
23785         * modules/stdlib-tests: Likewise.
23786         * modules/string-tests: Likewise.
23787         * modules/strings-tests: Likewise.
23788         * modules/sys_select-tests: Likewise.
23789         * modules/sys_socket-tests: Likewise.
23790         * modules/sys_stat-tests: Likewise.
23791         * modules/sys_time-tests: Likewise.
23792         * modules/sys_utsname-tests: Likewise.
23793         * modules/sysexits-tests: Likewise.
23794         * modules/time-tests: Likewise.
23795         * modules/trunc-tests: Likewise.
23796         * modules/truncf-tests: Likewise.
23797         * modules/truncl-tests: Likewise.
23798         * modules/tsearch-tests: Likewise.
23799         * modules/unistd-tests: Likewise.
23800         * modules/wchar-tests: Likewise.
23801         * modules/wctype-tests: Likewise.
23802
23803         tests: fix license on several tests
23804         * tests/test-des.c: Update to GPLv3+.
23805         * tests/test-flock.c: Likewise.
23806         * tests/test-fsync.c: Likewise.
23807         * tests/test-futimens.h: Likewise.
23808         * tests/test-gc-arcfour.c: Likewise.
23809         * tests/test-gc-arctwo.c: Likewise.
23810         * tests/test-gc-des.c: Likewise.
23811         * tests/test-gc-hmac-md5.c: Likewise.
23812         * tests/test-gc-hmac-sha1.c: Likewise.
23813         * tests/test-gc-md2.c: Likewise.
23814         * tests/test-gc-md4.c: Likewise.
23815         * tests/test-gc-md5.c: Likewise.
23816         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23817         * tests/test-gc-rijndael.c: Likewise.
23818         * tests/test-gc-sha1.c: Likewise.
23819         * tests/test-gc.c: Likewise.
23820         * tests/test-getcwd.c: Likewise.
23821         * tests/test-link.c: Likewise.
23822         * tests/test-link.h: Likewise.
23823         * tests/test-lutimens.h: Likewise.
23824         * tests/test-md2.c: Likewise.
23825         * tests/test-md4.c: Likewise.
23826         * tests/test-mkdir.h: Likewise.
23827         * tests/test-rename.c: Likewise.
23828         * tests/test-rename.h: Likewise.
23829         * tests/test-safe-alloc.c: Likewise.
23830         * tests/test-utimens-common.h: Likewise.
23831         * tests/test-utimens.h: Likewise.
23832
23833         maint: sync license texts
23834         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
23835         * doc/gpl-3.0.texi: Revert copyright year update.
23836         * doc/lgpl-3.0.texi: Likewise.
23837
23838 2009-12-29  Jim Meyering  <meyering@redhat.com>
23839
23840         update nearly all FSF copyright year lists to include 2009
23841         The files named by the following are exempted:
23842             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
23843               test -f "$dst" && { echo "$dst"; continue; }
23844               test -d "$dst" || continue
23845               echo "$dst"/$(basename "$src")
23846             done > exempt
23847             git ls-files tests/unictype >> exempt
23848         In the remaining files, convert to all-interval notation if
23849         - there is already at least one year interval like 2000-2003
23850         - the file is maintained by me
23851         - the file is in lib/uni*/, where that style already prevails
23852         Otherwise, use update-copyright's default.
23853
23854 2009-12-29  Simon Josefsson  <simon@josefsson.org>
23855         and Eric Blake  <ebb9@byu.net>
23856
23857         tests: don't require debug system() to pass
23858         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
23859         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23860         * tests/test-unlink.h (test_unlink_func): Likewise.
23861         * tests/test-fstatat.c (main): ...into callers.
23862         * tests/test-lstat.c (main): Likewise.
23863         * tests/test-rmdir.c (main): Likewise.
23864         * tests/test-unlink.c (main): Likewise.
23865         * tests/test-unlinkat.c (main): Likewise.
23866         * tests/test-areadlink-with-size.c (main): Don't require a
23867         debug-only system call to pass, aiding cross-testing to mingw.
23868         * tests/test-areadlink.c (main): Likewise.
23869         * tests/test-areadlinkat-with-size.c (main): Likewise.
23870         * tests/test-areadlinkat.c (main): Likewise.
23871         * tests/test-canonicalize-lgpl.c (main): Likewise.
23872         * tests/test-canonicalize.c (main): Likewise.
23873         * tests/test-chown.c (main): Likewise.
23874         * tests/test-fchownat.c (main): Likewise.
23875         * tests/test-lchown.c (main): Likewise.
23876         * tests/test-fdutimensat.c (main): Likewise.
23877         * tests/test-futimens.c (main): Likewise.
23878         * tests/test-link.c (main): Likewise.
23879         * tests/test-linkat.c (main): Likewise.
23880         * tests/test-mkdir.c (main): Likewise.
23881         * tests/test-mkdirat.c (main): Likewise.
23882         * tests/test-mkfifo.c (main): Likewise.
23883         * tests/test-mkfifoat.c (main): Likewise.
23884         * tests/test-mknod.c (main): Likewise.
23885         * tests/test-readlink.c (main): Likewise.
23886         * tests/test-remove.c (main): Likewise.
23887         * tests/test-rename.c (main): Likewise.
23888         * tests/test-renameat.c (main): Likewise.
23889         * tests/test-symlink.c (main): Likewise.
23890         * tests/test-symlinkat.c (main): Likewise.
23891         * tests/test-utimens.c (main): Likewise.
23892         * tests/test-utimensat.c (main): Likewise.
23893
23894 2009-12-29  Simon Josefsson  <simon@josefsson.org>
23895
23896         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
23897         on $(UNUSED_PARAMETER_H) to avoid build failure.
23898
23899 2009-12-28  Jim Meyering  <meyering@redhat.com>
23900
23901         update-copyright: you may specify a max. line length other than 72
23902         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23903
23904         maint: use consistent FSF copyright line syntax
23905         * lib/posixtm.c: Add missing comma in FSF copyright line.
23906         * lib/posixtm.h: Likewise.
23907         * lib/getugroups.c: Add missing ", Inc.".
23908
23909         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
23910         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
23911         FSF copyright line.  Remove trailing blanks.
23912
23913 2009-12-28  Eric Blake  <ebb9@byu.net>
23914
23915         test-dup2: reduce dependencies
23916         * modules/cloexec (Configure.ac): Set witness.
23917         * modules/dup2-tests (Depends-on): Drop cloexec.
23918         * tests/test-dup2.c (main): Skip portion of test if cloexec module
23919         not present.
23920         Suggested by Bruno Haible.
23921
23922 2009-12-26  Bruno Haible  <bruno@clisp.org>
23923
23924         Remove an unneeded dependency.
23925         * modules/fseterr (Depends-on): Remove dup2.
23926
23927 2009-12-26  Eric Blake  <ebb9@byu.net>
23928
23929         tests: use macros.h in more places
23930         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
23931         (ASSERT_STREAM): Provide default of stderr.
23932         * tests/test-dirent-safer.c: Include macros.h, using alternate
23933         stream for assertions.
23934         * tests/test-dup-safer.c: Likewise.
23935         * tests/test-freopen-safer.c: Likewise.
23936         * tests/test-getopt.c: Likewise.
23937         * tests/test-openat-safer.c: Likewise.
23938         * tests/test-pipe.c: Likewise.
23939         * tests/test-popen-safer.c: Likewise.
23940         * modules/dirent-safer-tests (Files): Include macros.h.
23941         * modules/unistd-safer-tests (Files): Likewise.
23942         * modules/freopen-safer-tests (Files): Likewise.
23943         * modules/getopt-posix-tests (Files): Likewise.
23944         * modules/openat-safer-tests (Files): Likewise.
23945         * modules/pipe-tests (Files): Likewise.
23946
23947 2009-12-26  Bruno Haible  <bruno@clisp.org>
23948
23949         javacomp: Portability fix.
23950         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
23951         that it also works on Solaris.
23952
23953 2009-12-26  Bruno Haible  <bruno@clisp.org>
23954
23955         localename: Fix storage allocation of gl_locale_name_thread's result.
23956         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
23957         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
23958         all platforms that have 'uselocale'.
23959         (gl_locale_name_thread_unsafe): New function, extracted from
23960         gl_locale_name_thread.
23961         (gl_locale_name_thread): Call struniq on all platforms that have
23962         'uselocale'.
23963         * tests/test-localename.c (test_locale_name_thread): Check that the
23964         resulting strings are permanently allocated.
23965         * modules/localename-tests (Depends-on): Add strdup.
23966
23967 2009-12-26  Bruno Haible  <bruno@clisp.org>
23968
23969         * tests/test-localename.c (categories): Fill in the strings.
23970
23971 2009-12-26  Jim Meyering  <meyering@redhat.com>
23972
23973         isdir: complete the removal of m4/isdir.m4
23974         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
23975
23976         isdir: clean up, since at least grep still uses it
23977         * lib/isdir.c: Include "isdir.h".
23978         (S_ISDIR): Remove now-unneeded definition.
23979         * modules/isdir (Files): Add lib/isdir.h.
23980         * lib/isdir.h: New file, with declaration.
23981         * m4/isdir.m4: Remove file -- unneeded.
23982
23983 2009-12-25  Bruno Haible  <bruno@clisp.org>
23984
23985         selinux-h: Make generated .h files standalone.
23986         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
23987         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
23988         * lib/se-selinux.in.h: Likewise.
23989         * modules/selinux-h (Depends-on): Add unused-parameter.
23990         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
23991         selinux/selinux.h and selinux/context.h.
23992         Suggested by Eric Blake.
23993
23994 2009-12-25  Bruno Haible  <bruno@clisp.org>
23995
23996         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
23997         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
23998         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
23999         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
24000         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
24001
24002 2009-12-24  Bruno Haible  <bruno@clisp.org>
24003
24004         openat: Fix warning.
24005         * lib/openat-proc.c: Include <unistd.h>.
24006
24007 2009-12-24  Bruno Haible  <bruno@clisp.org>
24008
24009         New module 'unused-parameter'.
24010         * build-aux/unused-parameter.h: New file, extracted from earlier
24011         gnulib-common.m4.
24012         * modules/unused-parameter: New file.
24013         * lib/unistr.h: Include unused-parameter.h.
24014         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
24015         _GL_UNUSED.
24016         * modules/unistr/base (Depends-on): Add unused-parameter.
24017
24018 2009-12-24  Bruno Haible  <bruno@clisp.org>
24019
24020         Add missing dependencies to 'extensions' module.
24021         * m4/extensions.m4: Add comment.
24022         * modules/accept4 (Depends-on): Add extensions.
24023         * modules/dup3 (Depends-on): Likewise.
24024         * modules/fcntl (Depends-on): Likewise.
24025         * modules/futimens (Depends-on): Likewise.
24026         * modules/mknod (Depends-on): Likewise.
24027         * modules/pipe2 (Depends-on): Likewise.
24028         * modules/stat-time (Depends-on): Likewise.
24029         * modules/strcasestr-simple (Depends-on): Likewise.
24030         * modules/strsignal (Depends-on): Likewise.
24031         * modules/utimensat (Depends-on): Likewise.
24032         * modules/localcharset (Depends-on): Likewise. Needed because of
24033         gl_FCNTL_O_FLAGS.
24034         * modules/wcrtomb (Depends-on): Likewise. Needed because of
24035         AC_TYPE_MBSTATE_T.
24036         * modules/wcsnrtombs (Depends-on): Likewise.
24037         * modules/wcsrtombs (Depends-on): Likewise.
24038
24039 2009-12-24  Bruno Haible  <bruno@clisp.org>
24040
24041         binary-io: Avoid gcc warning due to SET_BINARY.
24042         * lib/binary-io.h (SET_BINARY): Cast the result to void.
24043         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
24044
24045 2009-12-24  Bruno Haible  <bruno@clisp.org>
24046
24047         Avoid future namespace pollution on glibc systems.
24048         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
24049         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
24050         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
24051         glibc systems.
24052
24053 2009-12-24  Bruno Haible  <bruno@clisp.org>
24054
24055         Refactor common macros used in tests.
24056         * tests/macros.h: New file.
24057         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
24058         and/or <stdlib.h>, if appropriate.
24059         (ASSERT, SIZEOF): Remove macros.
24060         * tests/test-areadlink-with-size.c: Likewise.
24061         * tests/test-areadlinkat.c: Likewise.
24062         * tests/test-areadlinkat-with-size.c: Likewise.
24063         * tests/test-argmatch.c: Likewise.
24064         * tests/test-argv-iter.c: Likewise.
24065         * tests/test-array-mergesort.c: Likewise.
24066         * tests/test-array_list.c: Likewise.
24067         * tests/test-array_oset.c: Likewise.
24068         * tests/test-avltree_list.c: Likewise.
24069         * tests/test-avltree_oset.c: Likewise.
24070         * tests/test-avltreehash_list.c: Likewise.
24071         * tests/test-base64.c: Likewise.
24072         * tests/test-binary-io.c: Likewise.
24073         * tests/test-bitrotate.c: Likewise.
24074         * tests/test-btowc.c: Likewise.
24075         * tests/test-byteswap.c: Likewise.
24076         * tests/test-c-ctype.c: Likewise.
24077         * tests/test-c-stack.c: Likewise.
24078         * tests/test-c-strcasecmp.c: Likewise.
24079         * tests/test-c-strcasestr.c: Likewise.
24080         * tests/test-c-strncasecmp.c: Likewise.
24081         * tests/test-c-strstr.c: Likewise.
24082         * tests/test-canonicalize-lgpl.c: Likewise.
24083         * tests/test-canonicalize.c: Likewise.
24084         * tests/test-carray_list.c: Likewise.
24085         * tests/test-ceilf1.c: Likewise.
24086         * tests/test-ceilf2.c: Likewise.
24087         * tests/test-ceill.c: Likewise.
24088         * tests/test-chown.c: Likewise.
24089         * tests/test-cloexec.c: Likewise.
24090         * tests/test-copy-acl.c: Likewise.
24091         * tests/test-copy-file.c: Likewise.
24092         * tests/test-count-one-bits.c: Likewise.
24093         * tests/test-dprintf-posix.c: Likewise.
24094         * tests/test-dup2.c: Likewise.
24095         * tests/test-dup3.c: Likewise.
24096         * tests/test-duplocale.c: Likewise.
24097         * tests/test-fbufmode.c: Likewise.
24098         * tests/test-fchdir.c: Likewise.
24099         * tests/test-fchownat.c: Likewise.
24100         * tests/test-fcntl-safer.c: Likewise.
24101         * tests/test-fcntl.c: Likewise.
24102         * tests/test-fdopendir.c: Likewise.
24103         * tests/test-fdutimensat.c: Likewise.
24104         * tests/test-fflush2.c: Likewise.
24105         * tests/test-file-has-acl.c: Likewise.
24106         * tests/test-filevercmp.c: Likewise.
24107         * tests/test-flock.c: Likewise.
24108         * tests/test-floorf1.c: Likewise.
24109         * tests/test-floorf2.c: Likewise.
24110         * tests/test-floorl.c: Likewise.
24111         * tests/test-fnmatch.c: Likewise.
24112         * tests/test-fopen.h: Likewise.
24113         * tests/test-fpending.c: Likewise.
24114         * tests/test-fprintf-posix.c: Likewise.
24115         * tests/test-fpurge.c: Likewise.
24116         * tests/test-freadable.c: Likewise.
24117         * tests/test-freadahead.c: Likewise.
24118         * tests/test-freading.c: Likewise.
24119         * tests/test-freadptr.c: Likewise.
24120         * tests/test-freadptr2.c: Likewise.
24121         * tests/test-freadseek.c: Likewise.
24122         * tests/test-freopen.c: Likewise.
24123         * tests/test-frexp.c: Likewise.
24124         * tests/test-frexpl.c: Likewise.
24125         * tests/test-fseek.c: Likewise.
24126         * tests/test-fseeko.c: Likewise.
24127         * tests/test-fstatat.c: Likewise.
24128         * tests/test-fstrcmp.c: Likewise.
24129         * tests/test-fsync.c: Likewise.
24130         * tests/test-ftell.c: Likewise.
24131         * tests/test-ftello.c: Likewise.
24132         * tests/test-func.c: Likewise.
24133         * tests/test-futimens.c: Likewise.
24134         * tests/test-fwritable.c: Likewise.
24135         * tests/test-fwriting.c: Likewise.
24136         * tests/test-getcwd.c: Likewise.
24137         * tests/test-getdate.c: Likewise.
24138         * tests/test-getdelim.c: Likewise.
24139         * tests/test-getdtablesize.c: Likewise.
24140         * tests/test-getgroups.c: Likewise.
24141         * tests/test-getline.c: Likewise.
24142         * tests/test-getndelim2.c: Likewise.
24143         * tests/test-glob.c: Likewise.
24144         * tests/test-hash.c: Likewise.
24145         * tests/test-i-ring.c: Likewise.
24146         * tests/test-iconv-utf.c: Likewise.
24147         * tests/test-iconv.c: Likewise.
24148         * tests/test-idpriv-drop.c: Likewise.
24149         * tests/test-idpriv-droptemp.c: Likewise.
24150         * tests/test-inet_ntop.c: Likewise.
24151         * tests/test-inet_pton.c: Likewise.
24152         * tests/test-isblank.c: Likewise.
24153         * tests/test-isfinite.c: Likewise.
24154         * tests/test-isinf.c: Likewise.
24155         * tests/test-isnan.c: Likewise.
24156         * tests/test-isnand.h: Likewise.
24157         * tests/test-isnanf.h: Likewise.
24158         * tests/test-isnanl.h: Likewise.
24159         * tests/test-lchown.c: Likewise.
24160         * tests/test-ldexpl.c: Likewise.
24161         * tests/test-link.c: Likewise.
24162         * tests/test-linkat.c: Likewise.
24163         * tests/test-linked_list.c: Likewise.
24164         * tests/test-linkedhash_list.c: Likewise.
24165         * tests/test-localename.c: Likewise.
24166         * tests/test-lseek.c: Likewise.
24167         * tests/test-lstat.c: Likewise.
24168         * tests/test-mbmemcasecmp.c: Likewise.
24169         * tests/test-mbmemcasecoll.c: Likewise.
24170         * tests/test-mbrtowc.c: Likewise.
24171         * tests/test-mbscasecmp.c: Likewise.
24172         * tests/test-mbscasestr1.c: Likewise.
24173         * tests/test-mbscasestr2.c: Likewise.
24174         * tests/test-mbscasestr3.c: Likewise.
24175         * tests/test-mbscasestr4.c: Likewise.
24176         * tests/test-mbschr.c: Likewise.
24177         * tests/test-mbscspn.c: Likewise.
24178         * tests/test-mbsinit.c: Likewise.
24179         * tests/test-mbsncasecmp.c: Likewise.
24180         * tests/test-mbsnrtowcs.c: Likewise.
24181         * tests/test-mbspbrk.c: Likewise.
24182         * tests/test-mbspcasecmp.c: Likewise.
24183         * tests/test-mbsrchr.c: Likewise.
24184         * tests/test-mbsrtowcs.c: Likewise.
24185         * tests/test-mbsspn.c: Likewise.
24186         * tests/test-mbsstr1.c: Likewise.
24187         * tests/test-mbsstr2.c: Likewise.
24188         * tests/test-mbsstr3.c: Likewise.
24189         * tests/test-memchr.c: Likewise.
24190         * tests/test-memchr2.c: Likewise.
24191         * tests/test-memcmp.c: Likewise.
24192         * tests/test-memmem.c: Likewise.
24193         * tests/test-memrchr.c: Likewise.
24194         * tests/test-mkdir.c: Likewise.
24195         * tests/test-mkdirat.c: Likewise.
24196         * tests/test-mkfifo.c: Likewise.
24197         * tests/test-mkfifoat.c: Likewise.
24198         * tests/test-mknod.c: Likewise.
24199         * tests/test-nanosleep.c: Likewise.
24200         * tests/test-nl_langinfo.c: Likewise.
24201         * tests/test-obstack-printf.c: Likewise.
24202         * tests/test-open.c: Likewise.
24203         * tests/test-openat.c: Likewise.
24204         * tests/test-pipe-filter-gi1.c: Likewise.
24205         * tests/test-pipe-filter-gi2-main.c: Likewise.
24206         * tests/test-pipe-filter-ii1.c: Likewise.
24207         * tests/test-pipe-filter-ii2-main.c: Likewise.
24208         * tests/test-pipe2.c: Likewise.
24209         * tests/test-popen.h: Likewise.
24210         * tests/test-posixtm.c: Likewise.
24211         * tests/test-pread.c: Likewise.
24212         * tests/test-printf-frexp.c: Likewise.
24213         * tests/test-printf-frexpl.c: Likewise.
24214         * tests/test-printf-posix.c: Likewise.
24215         * tests/test-priv-set.c: Likewise.
24216         * tests/test-quotearg.c: Likewise.
24217         * tests/test-random_r.c: Likewise.
24218         * tests/test-rawmemchr.c: Likewise.
24219         * tests/test-rbtree_list.c: Likewise.
24220         * tests/test-rbtree_oset.c: Likewise.
24221         * tests/test-rbtreehash_list.c: Likewise.
24222         * tests/test-readlink.c: Likewise.
24223         * tests/test-remove.c: Likewise.
24224         * tests/test-rename.c: Likewise.
24225         * tests/test-renameat.c: Likewise.
24226         * tests/test-rmdir.c: Likewise.
24227         * tests/test-round1.c: Likewise.
24228         * tests/test-roundf1.c: Likewise.
24229         * tests/test-roundl.c: Likewise.
24230         * tests/test-safe-alloc.c: Likewise.
24231         * tests/test-sameacls.c: Likewise.
24232         * tests/test-set-mode-acl.c: Likewise.
24233         * tests/test-setenv.c: Likewise.
24234         * tests/test-sigaction.c: Likewise.
24235         * tests/test-signbit.c: Likewise.
24236         * tests/test-sleep.c: Likewise.
24237         * tests/test-snprintf-posix.c: Likewise.
24238         * tests/test-snprintf.c: Likewise.
24239         * tests/test-sprintf-posix.c: Likewise.
24240         * tests/test-stat-time.c: Likewise.
24241         * tests/test-stat.c: Likewise.
24242         * tests/test-strcasestr.c: Likewise.
24243         * tests/test-strchrnul.c: Likewise.
24244         * tests/test-strerror.c: Likewise.
24245         * tests/test-striconv.c: Likewise.
24246         * tests/test-striconveh.c: Likewise.
24247         * tests/test-striconveha.c: Likewise.
24248         * tests/test-strsignal.c: Likewise.
24249         * tests/test-strstr.c: Likewise.
24250         * tests/test-strtod.c: Likewise.
24251         * tests/test-strverscmp.c: Likewise.
24252         * tests/test-symlink.c: Likewise.
24253         * tests/test-symlinkat.c: Likewise.
24254         * tests/test-trunc1.c: Likewise.
24255         * tests/test-trunc2.c: Likewise.
24256         * tests/test-truncf1.c: Likewise.
24257         * tests/test-truncf2.c: Likewise.
24258         * tests/test-truncl.c: Likewise.
24259         * tests/test-uname.c: Likewise.
24260         * tests/test-unlink.c: Likewise.
24261         * tests/test-unlinkat.c: Likewise.
24262         * tests/test-unsetenv.c: Likewise.
24263         * tests/test-usleep.c: Likewise.
24264         * tests/test-utimens.c: Likewise.
24265         * tests/test-utimensat.c: Likewise.
24266         * tests/test-vasnprintf-posix.c: Likewise.
24267         * tests/test-vasnprintf-posix2.c: Likewise.
24268         * tests/test-vasnprintf.c: Likewise.
24269         * tests/test-vasprintf-posix.c: Likewise.
24270         * tests/test-vasprintf.c: Likewise.
24271         * tests/test-vdprintf-posix.c: Likewise.
24272         * tests/test-vfprintf-posix.c: Likewise.
24273         * tests/test-vprintf-posix.c: Likewise.
24274         * tests/test-vsnprintf-posix.c: Likewise.
24275         * tests/test-vsnprintf.c: Likewise.
24276         * tests/test-vsprintf-posix.c: Likewise.
24277         * tests/test-wcrtomb.c: Likewise.
24278         * tests/test-wcsnrtombs.c: Likewise.
24279         * tests/test-wcsrtombs.c: Likewise.
24280         * tests/test-wctype.c: Likewise.
24281         * tests/test-wcwidth.c: Likewise.
24282         * tests/test-xfprintf-posix.c: Likewise.
24283         * tests/test-xmemdup0.c: Likewise.
24284         * tests/test-xprintf-posix.c: Likewise.
24285         * tests/test-xvasprintf.c: Likewise.
24286         * tests/unicase/test-locale-language.c: Likewise.
24287         * tests/unicase/test-mapping-part1.h: Likewise.
24288         * tests/unicase/test-predicate-part1.h: Likewise.
24289         * tests/unicase/test-u8-casecmp.c: Likewise.
24290         * tests/unicase/test-u8-casecoll.c: Likewise.
24291         * tests/unicase/test-u8-casefold.c: Likewise.
24292         * tests/unicase/test-u8-is-cased.c: Likewise.
24293         * tests/unicase/test-u8-is-casefolded.c: Likewise.
24294         * tests/unicase/test-u8-is-lowercase.c: Likewise.
24295         * tests/unicase/test-u8-is-titlecase.c: Likewise.
24296         * tests/unicase/test-u8-is-uppercase.c: Likewise.
24297         * tests/unicase/test-u8-tolower.c: Likewise.
24298         * tests/unicase/test-u8-totitle.c: Likewise.
24299         * tests/unicase/test-u8-toupper.c: Likewise.
24300         * tests/unicase/test-u16-casecmp.c: Likewise.
24301         * tests/unicase/test-u16-casecoll.c: Likewise.
24302         * tests/unicase/test-u16-casefold.c: Likewise.
24303         * tests/unicase/test-u16-is-cased.c: Likewise.
24304         * tests/unicase/test-u16-is-casefolded.c: Likewise.
24305         * tests/unicase/test-u16-is-lowercase.c: Likewise.
24306         * tests/unicase/test-u16-is-titlecase.c: Likewise.
24307         * tests/unicase/test-u16-is-uppercase.c: Likewise.
24308         * tests/unicase/test-u16-tolower.c: Likewise.
24309         * tests/unicase/test-u16-totitle.c: Likewise.
24310         * tests/unicase/test-u16-toupper.c: Likewise.
24311         * tests/unicase/test-u32-casecmp.c: Likewise.
24312         * tests/unicase/test-u32-casecoll.c: Likewise.
24313         * tests/unicase/test-u32-casefold.c: Likewise.
24314         * tests/unicase/test-u32-is-cased.c: Likewise.
24315         * tests/unicase/test-u32-is-casefolded.c: Likewise.
24316         * tests/unicase/test-u32-is-lowercase.c: Likewise.
24317         * tests/unicase/test-u32-is-titlecase.c: Likewise.
24318         * tests/unicase/test-u32-is-uppercase.c: Likewise.
24319         * tests/unicase/test-u32-tolower.c: Likewise.
24320         * tests/unicase/test-u32-totitle.c: Likewise.
24321         * tests/unicase/test-u32-toupper.c: Likewise.
24322         * tests/unicase/test-ulc-casecmp.c: Likewise.
24323         * tests/unicase/test-ulc-casecoll.c: Likewise.
24324         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24325         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
24326         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24327         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24328         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
24329         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
24330         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24331         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24332         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24333         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
24334         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24335         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24336         * tests/unictype/test-bidi_byname.c: Likewise.
24337         * tests/unictype/test-bidi_name.c: Likewise.
24338         * tests/unictype/test-bidi_of.c: Likewise.
24339         * tests/unictype/test-bidi_test.c: Likewise.
24340         * tests/unictype/test-block_list.c: Likewise.
24341         * tests/unictype/test-block_of.c: Likewise.
24342         * tests/unictype/test-block_test.c: Likewise.
24343         * tests/unictype/test-categ_and.c: Likewise.
24344         * tests/unictype/test-categ_and_not.c: Likewise.
24345         * tests/unictype/test-categ_byname.c: Likewise.
24346         * tests/unictype/test-categ_name.c: Likewise.
24347         * tests/unictype/test-categ_none.c: Likewise.
24348         * tests/unictype/test-categ_of.c: Likewise.
24349         * tests/unictype/test-categ_or.c: Likewise.
24350         * tests/unictype/test-categ_test_withtable.c: Likewise.
24351         * tests/unictype/test-combining.c: Likewise.
24352         * tests/unictype/test-decdigit.c: Likewise.
24353         * tests/unictype/test-digit.c: Likewise.
24354         * tests/unictype/test-mirror.c: Likewise.
24355         * tests/unictype/test-numeric.c: Likewise.
24356         * tests/unictype/test-pr_byname.c: Likewise.
24357         * tests/unictype/test-pr_test.c: Likewise.
24358         * tests/unictype/test-predicate-part1.h: Likewise.
24359         * tests/unictype/test-scripts.c: Likewise.
24360         * tests/unictype/test-sy_c_ident.c: Likewise.
24361         * tests/unictype/test-sy_java_ident.c: Likewise.
24362         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
24363         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
24364         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
24365         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
24366         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
24367         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
24368         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
24369         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
24370         * tests/uninorm/test-canonical-decomposition.c: Likewise.
24371         * tests/uninorm/test-compat-decomposition.c: Likewise.
24372         * tests/uninorm/test-composition.c: Likewise.
24373         * tests/uninorm/test-decomposing-form.c: Likewise.
24374         * tests/uninorm/test-decomposition.c: Likewise.
24375         * tests/uninorm/test-u8-nfc.c: Likewise.
24376         * tests/uninorm/test-u8-nfd.c: Likewise.
24377         * tests/uninorm/test-u8-nfkc.c: Likewise.
24378         * tests/uninorm/test-u8-nfkd.c: Likewise.
24379         * tests/uninorm/test-u8-normcmp.c: Likewise.
24380         * tests/uninorm/test-u8-normcoll.c: Likewise.
24381         * tests/uninorm/test-u16-nfc.c: Likewise.
24382         * tests/uninorm/test-u16-nfd.c: Likewise.
24383         * tests/uninorm/test-u16-nfkc.c: Likewise.
24384         * tests/uninorm/test-u16-nfkd.c: Likewise.
24385         * tests/uninorm/test-u16-normcmp.c: Likewise.
24386         * tests/uninorm/test-u16-normcoll.c: Likewise.
24387         * tests/uninorm/test-u32-nfc.c: Likewise.
24388         * tests/uninorm/test-u32-nfd.c: Likewise.
24389         * tests/uninorm/test-u32-nfkc.c: Likewise.
24390         * tests/uninorm/test-u32-nfkd.c: Likewise.
24391         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24392         * tests/uninorm/test-u32-normcmp.c: Likewise.
24393         * tests/uninorm/test-u32-normcoll.c: Likewise.
24394         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
24395         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
24396         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
24397         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
24398         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
24399         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
24400         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24401         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24402         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
24403         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
24404         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
24405         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
24406         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
24407         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24408         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24409         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
24410         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
24411         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
24412         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
24413         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
24414         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24415         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24416         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
24417         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
24418         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
24419         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
24420         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
24421         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24422         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24423         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
24424         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
24425         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
24426         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
24427         * tests/uniwidth/test-u8-strwidth.c: Likewise.
24428         * tests/uniwidth/test-u8-width.c: Likewise.
24429         * tests/uniwidth/test-u16-strwidth.c: Likewise.
24430         * tests/uniwidth/test-u16-width.c: Likewise.
24431         * tests/uniwidth/test-u32-strwidth.c: Likewise.
24432         * tests/uniwidth/test-u32-width.c: Likewise.
24433         * tests/uniwidth/test-uc_width.c: Likewise.
24434         * tests/uniwidth/test-uc_width2.c: Likewise.
24435         * modules/acl-tests (Files): Add tests/macros.h.
24436         * modules/areadlink-tests (Files): Likewise.
24437         * modules/areadlink-with-size-tests (Files): Likewise.
24438         * modules/areadlinkat-tests (Files): Likewise.
24439         * modules/areadlinkat-with-size-tests (Files): Likewise.
24440         * modules/argmatch-tests (Files): Likewise.
24441         * modules/argv-iter-tests (Files): Likewise.
24442         * modules/array-list-tests (Files): Likewise.
24443         * modules/array-mergesort-tests (Files): Likewise.
24444         * modules/array-oset-tests (Files): Likewise.
24445         * modules/avltree-list-tests (Files): Likewise.
24446         * modules/avltree-oset-tests (Files): Likewise.
24447         * modules/avltreehash-list-tests (Files): Likewise.
24448         * modules/base64-tests (Files): Likewise.
24449         * modules/binary-io-tests (Files): Likewise.
24450         * modules/bitrotate-tests (Files): Likewise.
24451         * modules/btowc-tests (Files): Likewise.
24452         * modules/byteswap-tests (Files): Likewise.
24453         * modules/c-ctype-tests (Files): Likewise.
24454         * modules/c-stack-tests (Files): Likewise.
24455         * modules/c-strcase-tests (Files): Likewise.
24456         * modules/c-strcasestr-tests (Files): Likewise.
24457         * modules/c-strstr-tests (Files): Likewise.
24458         * modules/canonicalize-lgpl-tests (Files): Likewise.
24459         * modules/canonicalize-tests (Files): Likewise.
24460         * modules/carray-list-tests (Files): Likewise.
24461         * modules/ceilf-tests (Files): Likewise.
24462         * modules/ceill-tests (Files): Likewise.
24463         * modules/chown-tests (Files): Likewise.
24464         * modules/cloexec-tests (Files): Likewise.
24465         * modules/copy-file-tests (Files): Likewise.
24466         * modules/count-one-bits-tests (Files): Likewise.
24467         * modules/dprintf-posix-tests (Files): Likewise.
24468         * modules/dup2-tests (Files): Likewise.
24469         * modules/dup3-tests (Files): Likewise.
24470         * modules/duplocale-tests (Files): Likewise.
24471         * modules/fbufmode-tests (Files): Likewise.
24472         * modules/fchdir-tests (Files): Likewise.
24473         * modules/fcntl-safer-tests (Files): Likewise.
24474         * modules/fcntl-tests (Files): Likewise.
24475         * modules/fdopendir-tests (Files): Likewise.
24476         * modules/fdutimensat-tests (Files): Likewise.
24477         * modules/fflush-tests (Files): Likewise.
24478         * modules/filevercmp-tests (Files): Likewise.
24479         * modules/flock-tests (Files): Likewise.
24480         * modules/floorf-tests (Files): Likewise.
24481         * modules/floorl-tests (Files): Likewise.
24482         * modules/fnmatch-tests (Files): Likewise.
24483         * modules/fopen-safer-tests (Files): Likewise.
24484         * modules/fopen-tests (Files): Likewise.
24485         * modules/fpending-tests (Files): Likewise.
24486         * modules/fprintf-posix-tests (Files): Likewise.
24487         * modules/fpurge-tests (Files): Likewise.
24488         * modules/freadable-tests (Files): Likewise.
24489         * modules/freadahead-tests (Files): Likewise.
24490         * modules/freading-tests (Files): Likewise.
24491         * modules/freadptr-tests (Files): Likewise.
24492         * modules/freadseek-tests (Files): Likewise.
24493         * modules/freopen-tests (Files): Likewise.
24494         * modules/frexp-nolibm-tests (Files): Likewise.
24495         * modules/frexp-tests (Files): Likewise.
24496         * modules/frexpl-nolibm-tests (Files): Likewise.
24497         * modules/frexpl-tests (Files): Likewise.
24498         * modules/fseek-tests (Files): Likewise.
24499         * modules/fseeko-tests (Files): Likewise.
24500         * modules/fstrcmp-tests (Files): Likewise.
24501         * modules/fsync-tests (Files): Likewise.
24502         * modules/ftell-tests (Files): Likewise.
24503         * modules/ftello-tests (Files): Likewise.
24504         * modules/func-tests (Files): Likewise.
24505         * modules/futimens-tests (Files): Likewise.
24506         * modules/fwritable-tests (Files): Likewise.
24507         * modules/fwriting-tests (Files): Likewise.
24508         * modules/getcwd-tests (Files): Likewise.
24509         * modules/getdate-tests (Files): Likewise.
24510         * modules/getdelim-tests (Files): Likewise.
24511         * modules/getdtablesize-tests (Files): Likewise.
24512         * modules/getgroups-tests (Files): Likewise.
24513         * modules/getline-tests (Files): Likewise.
24514         * modules/getndelim2-tests (Files): Likewise.
24515         * modules/glob-tests (Files): Likewise.
24516         * modules/hash-tests (Files): Likewise.
24517         * modules/i-ring-tests (Files): Likewise.
24518         * modules/iconv-tests (Files): Likewise.
24519         * modules/iconv_open-utf-tests (Files): Likewise.
24520         * modules/idpriv-drop-tests (Files): Likewise.
24521         * modules/idpriv-droptemp-tests (Files): Likewise.
24522         * modules/inet_ntop-tests (Files): Likewise.
24523         * modules/inet_pton-tests (Files): Likewise.
24524         * modules/isblank-tests (Files): Likewise.
24525         * modules/isfinite-tests (Files): Likewise.
24526         * modules/isinf-tests (Files): Likewise.
24527         * modules/isnan-tests (Files): Likewise.
24528         * modules/isnand-nolibm-tests (Files): Likewise.
24529         * modules/isnand-tests (Files): Likewise.
24530         * modules/isnanf-nolibm-tests (Files): Likewise.
24531         * modules/isnanf-tests (Files): Likewise.
24532         * modules/isnanl-nolibm-tests (Files): Likewise.
24533         * modules/isnanl-tests (Files): Likewise.
24534         * modules/lchown-tests (Files): Likewise.
24535         * modules/ldexpl-tests (Files): Likewise.
24536         * modules/link-tests (Files): Likewise.
24537         * modules/linkat-tests (Files): Likewise.
24538         * modules/linked-list-tests (Files): Likewise.
24539         * modules/linkedhash-list-tests (Files): Likewise.
24540         * modules/localename-tests (Files): Likewise.
24541         * modules/lseek-tests (Files): Likewise.
24542         * modules/lstat-tests (Files): Likewise.
24543         * modules/mbmemcasecmp-tests (Files): Likewise.
24544         * modules/mbmemcasecoll-tests (Files): Likewise.
24545         * modules/mbrtowc-tests (Files): Likewise.
24546         * modules/mbscasecmp-tests (Files): Likewise.
24547         * modules/mbscasestr-tests (Files): Likewise.
24548         * modules/mbschr-tests (Files): Likewise.
24549         * modules/mbscspn-tests (Files): Likewise.
24550         * modules/mbsinit-tests (Files): Likewise.
24551         * modules/mbsncasecmp-tests (Files): Likewise.
24552         * modules/mbsnrtowcs-tests (Files): Likewise.
24553         * modules/mbspbrk-tests (Files): Likewise.
24554         * modules/mbspcasecmp-tests (Files): Likewise.
24555         * modules/mbsrchr-tests (Files): Likewise.
24556         * modules/mbsrtowcs-tests (Files): Likewise.
24557         * modules/mbsspn-tests (Files): Likewise.
24558         * modules/mbsstr-tests (Files): Likewise.
24559         * modules/memchr-tests (Files): Likewise.
24560         * modules/memchr2-tests (Files): Likewise.
24561         * modules/memcmp-tests (Files): Likewise.
24562         * modules/memmem-tests (Files): Likewise.
24563         * modules/memrchr-tests (Files): Likewise.
24564         * modules/mkdir-tests (Files): Likewise.
24565         * modules/mkfifo-tests (Files): Likewise.
24566         * modules/mkfifoat-tests (Files): Likewise.
24567         * modules/mknod-tests (Files): Likewise.
24568         * modules/nanosleep-tests (Files): Likewise.
24569         * modules/nl_langinfo-tests (Files): Likewise.
24570         * modules/obstack-printf-tests (Files): Likewise.
24571         * modules/open-tests (Files): Likewise.
24572         * modules/openat-tests (Files): Likewise.
24573         * modules/pipe-filter-gi-tests (Files): Likewise.
24574         * modules/pipe-filter-ii-tests (Files): Likewise.
24575         * modules/pipe2-tests (Files): Likewise.
24576         * modules/popen-safer-tests (Files): Likewise.
24577         * modules/popen-tests (Files): Likewise.
24578         * modules/posixtm-tests (Files): Likewise.
24579         * modules/pread-tests (Files): Likewise.
24580         * modules/printf-frexp-tests (Files): Likewise.
24581         * modules/printf-frexpl-tests (Files): Likewise.
24582         * modules/printf-posix-tests (Files): Likewise.
24583         * modules/priv-set-tests (Files): Likewise.
24584         * modules/quotearg-tests (Files): Likewise.
24585         * modules/random_r-tests (Files): Likewise.
24586         * modules/rawmemchr-tests (Files): Likewise.
24587         * modules/rbtree-list-tests (Files): Likewise.
24588         * modules/rbtree-oset-tests (Files): Likewise.
24589         * modules/rbtreehash-list-tests (Files): Likewise.
24590         * modules/readlink-tests (Files): Likewise.
24591         * modules/remove-tests (Files): Likewise.
24592         * modules/rename-tests (Files): Likewise.
24593         * modules/renameat-tests (Files): Likewise.
24594         * modules/rmdir-tests (Files): Likewise.
24595         * modules/round-tests (Files): Likewise.
24596         * modules/roundf-tests (Files): Likewise.
24597         * modules/roundl-tests (Files): Likewise.
24598         * modules/safe-alloc-tests (Files): Likewise.
24599         * modules/setenv-tests (Files): Likewise.
24600         * modules/sigaction-tests (Files): Likewise.
24601         * modules/signbit-tests (Files): Likewise.
24602         * modules/sleep-tests (Files): Likewise.
24603         * modules/snprintf-posix-tests (Files): Likewise.
24604         * modules/snprintf-tests (Files): Likewise.
24605         * modules/sprintf-posix-tests (Files): Likewise.
24606         * modules/stat-tests (Files): Likewise.
24607         * modules/stat-time-tests (Files): Likewise.
24608         * modules/strcasestr-tests (Files): Likewise.
24609         * modules/strchrnul-tests (Files): Likewise.
24610         * modules/strerror-tests (Files): Likewise.
24611         * modules/striconv-tests (Files): Likewise.
24612         * modules/striconveh-tests (Files): Likewise.
24613         * modules/striconveha-tests (Files): Likewise.
24614         * modules/strsignal-tests (Files): Likewise.
24615         * modules/strstr-tests (Files): Likewise.
24616         * modules/strtod-tests (Files): Likewise.
24617         * modules/strverscmp-tests (Files): Likewise.
24618         * modules/symlink-tests (Files): Likewise.
24619         * modules/symlinkat-tests (Files): Likewise.
24620         * modules/trunc-tests (Files): Likewise.
24621         * modules/truncf-tests (Files): Likewise.
24622         * modules/truncl-tests (Files): Likewise.
24623         * modules/uname-tests (Files): Likewise.
24624         * modules/unicase/cased-tests (Files): Likewise.
24625         * modules/unicase/ignorable-tests (Files): Likewise.
24626         * modules/unicase/locale-language-tests (Files): Likewise.
24627         * modules/unicase/tolower-tests (Files): Likewise.
24628         * modules/unicase/totitle-tests (Files): Likewise.
24629         * modules/unicase/toupper-tests (Files): Likewise.
24630         * modules/unicase/u8-casecmp-tests (Files): Likewise.
24631         * modules/unicase/u8-casecoll-tests (Files): Likewise.
24632         * modules/unicase/u8-casefold-tests (Files): Likewise.
24633         * modules/unicase/u8-is-cased-tests (Files): Likewise.
24634         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
24635         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
24636         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
24637         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
24638         * modules/unicase/u8-tolower-tests (Files): Likewise.
24639         * modules/unicase/u8-totitle-tests (Files): Likewise.
24640         * modules/unicase/u8-toupper-tests (Files): Likewise.
24641         * modules/unicase/u16-casecmp-tests (Files): Likewise.
24642         * modules/unicase/u16-casecoll-tests (Files): Likewise.
24643         * modules/unicase/u16-casefold-tests (Files): Likewise.
24644         * modules/unicase/u16-is-cased-tests (Files): Likewise.
24645         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
24646         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
24647         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
24648         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
24649         * modules/unicase/u16-tolower-tests (Files): Likewise.
24650         * modules/unicase/u16-totitle-tests (Files): Likewise.
24651         * modules/unicase/u16-toupper-tests (Files): Likewise.
24652         * modules/unicase/u32-casecmp-tests (Files): Likewise.
24653         * modules/unicase/u32-casecoll-tests (Files): Likewise.
24654         * modules/unicase/u32-casefold-tests (Files): Likewise.
24655         * modules/unicase/u32-is-cased-tests (Files): Likewise.
24656         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
24657         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
24658         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
24659         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
24660         * modules/unicase/u32-tolower-tests (Files): Likewise.
24661         * modules/unicase/u32-totitle-tests (Files): Likewise.
24662         * modules/unicase/u32-toupper-tests (Files): Likewise.
24663         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
24664         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
24665         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
24666         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
24667         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
24668         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
24669         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
24670         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
24671         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
24672         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
24673         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
24674         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
24675         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
24676         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
24677         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
24678         * modules/unictype/bidicategory-name-tests (Files): Likewise.
24679         * modules/unictype/bidicategory-of-tests (Files): Likewise.
24680         * modules/unictype/bidicategory-test-tests (Files): Likewise.
24681         * modules/unictype/block-list-tests (Files): Likewise.
24682         * modules/unictype/block-of-tests (Files): Likewise.
24683         * modules/unictype/block-test-tests (Files): Likewise.
24684         * modules/unictype/category-C-tests (Files): Likewise.
24685         * modules/unictype/category-Cc-tests (Files): Likewise.
24686         * modules/unictype/category-Cf-tests (Files): Likewise.
24687         * modules/unictype/category-Cn-tests (Files): Likewise.
24688         * modules/unictype/category-Co-tests (Files): Likewise.
24689         * modules/unictype/category-Cs-tests (Files): Likewise.
24690         * modules/unictype/category-L-tests (Files): Likewise.
24691         * modules/unictype/category-Ll-tests (Files): Likewise.
24692         * modules/unictype/category-Lm-tests (Files): Likewise.
24693         * modules/unictype/category-Lo-tests (Files): Likewise.
24694         * modules/unictype/category-Lt-tests (Files): Likewise.
24695         * modules/unictype/category-Lu-tests (Files): Likewise.
24696         * modules/unictype/category-M-tests (Files): Likewise.
24697         * modules/unictype/category-Mc-tests (Files): Likewise.
24698         * modules/unictype/category-Me-tests (Files): Likewise.
24699         * modules/unictype/category-Mn-tests (Files): Likewise.
24700         * modules/unictype/category-N-tests (Files): Likewise.
24701         * modules/unictype/category-Nd-tests (Files): Likewise.
24702         * modules/unictype/category-Nl-tests (Files): Likewise.
24703         * modules/unictype/category-No-tests (Files): Likewise.
24704         * modules/unictype/category-P-tests (Files): Likewise.
24705         * modules/unictype/category-Pc-tests (Files): Likewise.
24706         * modules/unictype/category-Pd-tests (Files): Likewise.
24707         * modules/unictype/category-Pe-tests (Files): Likewise.
24708         * modules/unictype/category-Pf-tests (Files): Likewise.
24709         * modules/unictype/category-Pi-tests (Files): Likewise.
24710         * modules/unictype/category-Po-tests (Files): Likewise.
24711         * modules/unictype/category-Ps-tests (Files): Likewise.
24712         * modules/unictype/category-S-tests (Files): Likewise.
24713         * modules/unictype/category-Sc-tests (Files): Likewise.
24714         * modules/unictype/category-Sk-tests (Files): Likewise.
24715         * modules/unictype/category-Sm-tests (Files): Likewise.
24716         * modules/unictype/category-So-tests (Files): Likewise.
24717         * modules/unictype/category-Z-tests (Files): Likewise.
24718         * modules/unictype/category-Zl-tests (Files): Likewise.
24719         * modules/unictype/category-Zp-tests (Files): Likewise.
24720         * modules/unictype/category-Zs-tests (Files): Likewise.
24721         * modules/unictype/category-and-not-tests (Files): Likewise.
24722         * modules/unictype/category-and-tests (Files): Likewise.
24723         * modules/unictype/category-byname-tests (Files): Likewise.
24724         * modules/unictype/category-name-tests (Files): Likewise.
24725         * modules/unictype/category-none-tests (Files): Likewise.
24726         * modules/unictype/category-of-tests (Files): Likewise.
24727         * modules/unictype/category-or-tests (Files): Likewise.
24728         * modules/unictype/category-test-withtable-tests (Files): Likewise.
24729         * modules/unictype/combining-class-tests (Files): Likewise.
24730         * modules/unictype/ctype-alnum-tests (Files): Likewise.
24731         * modules/unictype/ctype-alpha-tests (Files): Likewise.
24732         * modules/unictype/ctype-blank-tests (Files): Likewise.
24733         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
24734         * modules/unictype/ctype-digit-tests (Files): Likewise.
24735         * modules/unictype/ctype-graph-tests (Files): Likewise.
24736         * modules/unictype/ctype-lower-tests (Files): Likewise.
24737         * modules/unictype/ctype-print-tests (Files): Likewise.
24738         * modules/unictype/ctype-punct-tests (Files): Likewise.
24739         * modules/unictype/ctype-space-tests (Files): Likewise.
24740         * modules/unictype/ctype-upper-tests (Files): Likewise.
24741         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
24742         * modules/unictype/decimal-digit-tests (Files): Likewise.
24743         * modules/unictype/digit-tests (Files): Likewise.
24744         * modules/unictype/mirror-tests (Files): Likewise.
24745         * modules/unictype/numeric-tests (Files): Likewise.
24746         * modules/unictype/property-alphabetic-tests (Files): Likewise.
24747         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
24748         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
24749         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
24750         Likewise.
24751         * modules/unictype/property-bidi-block-separator-tests (Files):
24752         Likewise.
24753         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
24754         Likewise.
24755         * modules/unictype/property-bidi-common-separator-tests (Files):
24756         Likewise.
24757         * modules/unictype/property-bidi-control-tests (Files): Likewise.
24758         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
24759         Likewise.
24760         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
24761         Likewise.
24762         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
24763         Likewise.
24764         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
24765         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
24766         Likewise.
24767         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
24768         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
24769         Likewise.
24770         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
24771         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
24772         * modules/unictype/property-bidi-segment-separator-tests (Files):
24773         Likewise.
24774         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
24775         * modules/unictype/property-byname-tests (Files): Likewise.
24776         * modules/unictype/property-combining-tests (Files): Likewise.
24777         * modules/unictype/property-composite-tests (Files): Likewise.
24778         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
24779         * modules/unictype/property-dash-tests (Files): Likewise.
24780         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
24781         * modules/unictype/property-default-ignorable-code-point-tests (Files):
24782         Likewise.
24783         * modules/unictype/property-deprecated-tests (Files): Likewise.
24784         * modules/unictype/property-diacritic-tests (Files): Likewise.
24785         * modules/unictype/property-extender-tests (Files): Likewise.
24786         * modules/unictype/property-format-control-tests (Files): Likewise.
24787         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
24788         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
24789         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
24790         * modules/unictype/property-hex-digit-tests (Files): Likewise.
24791         * modules/unictype/property-hyphen-tests (Files): Likewise.
24792         * modules/unictype/property-id-continue-tests (Files): Likewise.
24793         * modules/unictype/property-id-start-tests (Files): Likewise.
24794         * modules/unictype/property-ideographic-tests (Files): Likewise.
24795         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
24796         * modules/unictype/property-ids-trinary-operator-tests (Files):
24797         Likewise.
24798         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
24799         * modules/unictype/property-iso-control-tests (Files): Likewise.
24800         * modules/unictype/property-join-control-tests (Files): Likewise.
24801         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
24802         * modules/unictype/property-line-separator-tests (Files): Likewise.
24803         * modules/unictype/property-logical-order-exception-tests (Files):
24804         Likewise.
24805         * modules/unictype/property-lowercase-tests (Files): Likewise.
24806         * modules/unictype/property-math-tests (Files): Likewise.
24807         * modules/unictype/property-non-break-tests (Files): Likewise.
24808         * modules/unictype/property-not-a-character-tests (Files): Likewise.
24809         * modules/unictype/property-numeric-tests (Files): Likewise.
24810         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
24811         * modules/unictype/property-other-default-ignorable-code-point-tests
24812         (Files): Likewise.
24813         * modules/unictype/property-other-grapheme-extend-tests (Files):
24814         Likewise.
24815         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
24816         * modules/unictype/property-other-id-start-tests (Files): Likewise.
24817         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
24818         * modules/unictype/property-other-math-tests (Files): Likewise.
24819         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
24820         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
24821         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
24822         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
24823         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
24824         * modules/unictype/property-private-use-tests (Files): Likewise.
24825         * modules/unictype/property-punctuation-tests (Files): Likewise.
24826         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
24827         * modules/unictype/property-radical-tests (Files): Likewise.
24828         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
24829         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
24830         * modules/unictype/property-space-tests (Files): Likewise.
24831         * modules/unictype/property-terminal-punctuation-tests (Files):
24832         Likewise.
24833         * modules/unictype/property-test-tests (Files): Likewise.
24834         * modules/unictype/property-titlecase-tests (Files): Likewise.
24835         * modules/unictype/property-unassigned-code-value-tests (Files):
24836         Likewise.
24837         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
24838         * modules/unictype/property-uppercase-tests (Files): Likewise.
24839         * modules/unictype/property-variation-selector-tests (Files): Likewise.
24840         * modules/unictype/property-white-space-tests (Files): Likewise.
24841         * modules/unictype/property-xid-continue-tests (Files): Likewise.
24842         * modules/unictype/property-xid-start-tests (Files): Likewise.
24843         * modules/unictype/property-zero-width-tests (Files): Likewise.
24844         * modules/unictype/scripts-tests (Files): Likewise.
24845         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
24846         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
24847         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
24848         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
24849         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
24850         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
24851         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
24852         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
24853         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
24854         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
24855         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
24856         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
24857         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
24858         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
24859         * modules/uninorm/composition-tests (Files): Likewise.
24860         * modules/uninorm/decomposing-form-tests (Files): Likewise.
24861         * modules/uninorm/decomposition-tests (Files): Likewise.
24862         * modules/uninorm/filter-tests (Files): Likewise.
24863         * modules/uninorm/nfc-tests (Files): Likewise.
24864         * modules/uninorm/nfd-tests (Files): Likewise.
24865         * modules/uninorm/nfkc-tests (Files): Likewise.
24866         * modules/uninorm/nfkd-tests (Files): Likewise.
24867         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
24868         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
24869         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
24870         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
24871         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
24872         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
24873         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
24874         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
24875         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
24876         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
24877         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
24878         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
24879         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
24880         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
24881         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
24882         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
24883         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
24884         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
24885         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
24886         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
24887         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
24888         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
24889         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
24890         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
24891         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
24892         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
24893         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
24894         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
24895         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
24896         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
24897         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
24898         * modules/uniwidth/u8-width-tests (Files): Likewise.
24899         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
24900         * modules/uniwidth/u16-width-tests (Files): Likewise.
24901         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
24902         * modules/uniwidth/u32-width-tests (Files): Likewise.
24903         * modules/uniwidth/width-tests (Files): Likewise.
24904         * modules/unlink-tests (Files): Likewise.
24905         * modules/unsetenv-tests (Files): Likewise.
24906         * modules/usleep-tests (Files): Likewise.
24907         * modules/utimens-tests (Files): Likewise.
24908         * modules/utimensat-tests (Files): Likewise.
24909         * modules/vasnprintf-posix-tests (Files): Likewise.
24910         * modules/vasnprintf-tests (Files): Likewise.
24911         * modules/vasprintf-posix-tests (Files): Likewise.
24912         * modules/vasprintf-tests (Files): Likewise.
24913         * modules/vdprintf-posix-tests (Files): Likewise.
24914         * modules/vfprintf-posix-tests (Files): Likewise.
24915         * modules/vprintf-posix-tests (Files): Likewise.
24916         * modules/vsnprintf-posix-tests (Files): Likewise.
24917         * modules/vsnprintf-tests (Files): Likewise.
24918         * modules/vsprintf-posix-tests (Files): Likewise.
24919         * modules/wcrtomb-tests (Files): Likewise.
24920         * modules/wcsnrtombs-tests (Files): Likewise.
24921         * modules/wcsrtombs-tests (Files): Likewise.
24922         * modules/wctype-tests (Files): Likewise.
24923         * modules/wcwidth-tests (Files): Likewise.
24924         * modules/xmemdup0-tests (Files): Likewise.
24925         * modules/xprintf-posix-tests (Files): Likewise.
24926         * modules/xvasprintf-tests (Files): Likewise.
24927
24928 2009-12-24  Eric Blake  <ebb9@byu.net>
24929
24930         test-nanosleep: fix typo
24931         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
24932         patch.
24933         Reported by Bruno Haible.
24934
24935 2009-12-24  Bruno Haible  <bruno@clisp.org>
24936
24937         Reduce namespace pollution on glibc systems.
24938         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
24939         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
24940         systems.
24941         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
24942         <getopt.h> on glibc systems.
24943         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
24944         systems.
24945         * lib/fcntl.c: Include <unistd.h> here instead.
24946
24947 2009-12-24  Bruno Haible  <bruno@clisp.org>
24948
24949         * lib/stdlib.in.h (includes): Fix typo in today's commit.
24950
24951 2009-12-24  Eric Blake  <ebb9@byu.net>
24952
24953         tests: add signature checks
24954         * tests/signature.h (SIGNATURE_CHECK): New file.
24955         * modules/atexit-tests (Files): Use it.
24956         * modules/btowc-tests (Files): Likewise.
24957         * modules/canonicalize-lgpl-tests (Files): Likewise.
24958         * modules/ceilf-tests (Files): Likewise.
24959         * modules/ceill-tests (Files): Likewise.
24960         * modules/chown-tests (Files): Likewise.
24961         * modules/dprintf-posix-tests (Files): Likewise.
24962         * modules/dup2-tests (Files): Likewise.
24963         * modules/dup3-tests (Files): Likewise.
24964         * modules/duplocale-tests (Files): Likewise.
24965         * modules/fchdir-tests (Files): Likewise.
24966         * modules/fcntl-tests (Files): Likewise.
24967         * modules/fdopendir-tests (Files): Likewise.
24968         * modules/fflush-tests (Files): Likewise.
24969         * modules/flock-tests (Files): Likewise.
24970         * modules/floorf-tests (Files): Likewise.
24971         * modules/floorl-tests (Files): Likewise.
24972         * modules/fnmatch-tests (Files): Likewise.
24973         * modules/fopen-tests (Files): Likewise.
24974         * modules/fprintf-posix-tests (Files): Likewise.
24975         * modules/freopen-tests (Files): Likewise.
24976         * modules/frexp-nolibm-tests (Files): Likewise.
24977         * modules/frexp-tests (Files): Likewise.
24978         * modules/frexpl-nolibm-tests (Files): Likewise.
24979         * modules/frexpl-tests (Files): Likewise.
24980         * modules/fseek-tests (Files): Likewise.
24981         * modules/fseeko-tests (Files): Likewise.
24982         * modules/fsync-tests (Files): Likewise.
24983         * modules/ftell-tests (Files): Likewise.
24984         * modules/ftello-tests (Files): Likewise.
24985         * modules/futimens-tests (Files): Likewise.
24986         * modules/getaddrinfo-tests (Files): Likewise.
24987         * modules/getcwd-tests (Files): Likewise.
24988         * modules/getdelim-tests (Files): Likewise.
24989         * modules/getdtablesize-tests (Files): Likewise.
24990         * modules/getgroups-tests (Files): Likewise.
24991         * modules/gethostname-tests (Files): Likewise.
24992         * modules/getline-tests (Files): Likewise.
24993         * modules/getopt-posix-tests (Files): Likewise.
24994         * modules/gettimeofday-tests (Files): Likewise.
24995         * modules/glob-tests (Files): Likewise.
24996         * modules/iconv-tests (Files): Likewise.
24997         * modules/inet_ntop-tests (Files): Likewise.
24998         * modules/inet_pton-tests (Files): Likewise.
24999         * modules/isblank-tests (Files): Likewise.
25000         * modules/lchown-tests (Files): Likewise.
25001         * modules/ldexpl-tests (Files): Likewise.
25002         * modules/link-tests (Files): Likewise.
25003         * modules/linkat-tests (Files): Likewise.
25004         * modules/lseek-tests (Files): Likewise.
25005         * modules/lstat-tests (Files): Likewise.
25006         * modules/mbrtowc-tests (Files): Likewise.
25007         * modules/mbsinit-tests (Files): Likewise.
25008         * modules/mbsnrtowcs-tests (Files): Likewise.
25009         * modules/mbsrtowcs-tests (Files): Likewise.
25010         * modules/memchr-tests (Files): Likewise.
25011         * modules/memcmp-tests (Files): Likewise.
25012         * modules/memmem-tests (Files): Likewise.
25013         * modules/memrchr-tests (Files): Likewise.
25014         * modules/mkdir-tests (Files): Likewise.
25015         * modules/mkfifo-tests (Files): Likewise.
25016         * modules/mkfifoat-tests (Files): Likewise.
25017         * modules/mknod-tests (Files): Likewise.
25018         * modules/nanosleep-tests (Files): Likewise.
25019         * modules/nl_langinfo-tests (Files): Likewise.
25020         * modules/obstack-printf-tests (Files): Likewise.
25021         * modules/open-tests (Files): Likewise.
25022         * modules/openat-tests (Files): Likewise.
25023         * modules/perror-tests (Files): Likewise.
25024         * modules/pipe2-tests (Files): Likewise.
25025         * modules/poll-tests (Files): Likewise.
25026         * modules/popen-tests (Files): Likewise.
25027         * modules/posix_spawn-tests (Files): Likewise.
25028         * modules/posix_spawnp-tests (Files): Likewise.
25029         * modules/pread-tests (Files): Likewise.
25030         * modules/printf-posix-tests (Files): Likewise.
25031         * modules/pty-tests (Files): Likewise.
25032         * modules/random_r-tests (Files): Likewise.
25033         * modules/rawmemchr-tests (Files): Likewise.
25034         * modules/readlink-tests (Files): Likewise.
25035         * modules/remove-tests (Files): Likewise.
25036         * modules/rename-tests (Files): Likewise.
25037         * modules/renameat-tests (Files): Likewise.
25038         * modules/rmdir-tests (Files): Likewise.
25039         * modules/round-tests (Files): Likewise.
25040         * modules/roundf-tests (Files): Likewise.
25041         * modules/roundl-tests (Files): Likewise.
25042         * modules/select-tests (Files): Likewise.
25043         * modules/setenv-tests (Files): Likewise.
25044         * modules/sigaction-tests (Files): Likewise.
25045         * modules/sleep-tests (Files): Likewise.
25046         * modules/snprintf-posix-tests (Files): Likewise.
25047         * modules/snprintf-tests (Files): Likewise.
25048         * modules/sprintf-posix-tests (Files): Likewise.
25049         * modules/stat-tests (Files): Likewise.
25050         * modules/strcasestr-tests (Files): Likewise.
25051         * modules/strchrnul-tests (Files): Likewise.
25052         * modules/strerror-tests (Files): Likewise.
25053         * modules/strsignal-tests (Files): Likewise.
25054         * modules/strstr-tests (Files): Likewise.
25055         * modules/strtod-tests (Files): Likewise.
25056         * modules/strverscmp-tests (Files): Likewise.
25057         * modules/symlink-tests (Files): Likewise.
25058         * modules/symlinkat-tests (Files): Likewise.
25059         * modules/times-tests (Files): Likewise.
25060         * modules/trunc-tests (Files): Likewise.
25061         * modules/truncf-tests (Files): Likewise.
25062         * modules/truncl-tests (Files): Likewise.
25063         * modules/tsearch-tests (Files): Likewise.
25064         * modules/uname-tests (Files): Likewise.
25065         * modules/unlink-tests (Files): Likewise.
25066         * modules/unsetenv-tests (Files): Likewise.
25067         * modules/usleep-tests (Files): Likewise.
25068         * modules/utimensat-tests (Files): Likewise.
25069         * modules/vasprintf-tests (Files): Likewise.
25070         * modules/vdprintf-posix-tests (Files): Likewise.
25071         * modules/vfprintf-posix-tests (Files): Likewise.
25072         * modules/vprintf-posix-tests (Files): Likewise.
25073         * modules/vsnprintf-posix-tests (Files): Likewise.
25074         * modules/vsnprintf-tests (Files): Likewise.
25075         * modules/vsprintf-posix-tests (Files): Likewise.
25076         * modules/wcrtomb-tests (Files): Likewise.
25077         * modules/wcsnrtombs-tests (Files): Likewise.
25078         * modules/wcsrtombs-tests (Files): Likewise.
25079         * modules/wcwidth-tests (Files): Likewise.
25080         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
25081         * tests/test-isinf.c (isinf): Likewise.
25082         * tests/test-isnan.c (isnan): Likewise.
25083         * tests/test-signbit.c (signbit): Likewise.
25084         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
25085         declaration, either as macro or with correct signature.
25086         (select): Ensure function under test is declared with correct
25087         signature in correct header.
25088         * tests/test-atexit.c (atexit): Likewise.
25089         * tests/test-btowc.c (btowc): Likewise.
25090         * tests/test-canonicalize-lgpl.c (realpath)
25091         (canonicalize_file_name): Likewise.
25092         * tests/test-ceilf1.c (ceilf): Likewise.
25093         * tests/test-ceill.c (ceill): Likewise.
25094         * tests/test-chown.c (chown): Likewise.
25095         * tests/test-dprintf-posix.c (dprintf): Likewise.
25096         * tests/test-dup2.c (dup2): Likewise.
25097         * tests/test-dup3.c (dup3): Likewise.
25098         * tests/test-duplocale.c (duplocale): Likewise.
25099         * tests/test-fchdir.c (fchdir): Likewise.
25100         * tests/test-fchownat.c (fchownat): Likewise.
25101         * tests/test-fcntl.c (fcntl): Likewise.
25102         * tests/test-fdopendir.c (fdopendir): Likewise.
25103         * tests/test-fflush.c (fflush): Likewise.
25104         * tests/test-flock.c (flock): Likewise.
25105         * tests/test-floorf1.c (floorf): Likewise.
25106         * tests/test-floorl.c (floorl): Likewise.
25107         * tests/test-fnmatch.c (fnmatch): Likewise.
25108         * tests/test-fopen.c (fopen): Likewise.
25109         * tests/test-fprintf-posix.c (fprintf): Likewise.
25110         * tests/test-freopen.c (freopen): Likewise.
25111         * tests/test-frexp.c (frexp): Likewise.
25112         * tests/test-frexpl.c (frexpl): Likewise.
25113         * tests/test-fseek.c (fseek): Likewise.
25114         * tests/test-fseeko.c (fseeko): Likewise.
25115         * tests/test-fstatat.c (fstatat): Likewise.
25116         * tests/test-fsync.c (fsync): Likewise.
25117         * tests/test-ftell.c (ftell): Likewise.
25118         * tests/test-ftello.c (ftello): Likewise.
25119         * tests/test-futimens.c (futimens): Likewise.
25120         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
25121         (gai_strerror): Likewise.
25122         * tests/test-getcwd.c (getcwd): Likewise.
25123         * tests/test-getdelim.c (getdelim): Likewise.
25124         * tests/test-getdtablesize.c (getdtablesize): Likewise.
25125         * tests/test-getgroups.c (getgroups): Likewise.
25126         * tests/test-gethostname.c (gethostname): Likewise.
25127         * tests/test-getline.c (getline): Likewise.
25128         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
25129         Likewise.
25130         * tests/test-gettimeofday.c (gettimeofday): Likewise.
25131         * tests/test-glob.c (glob, globfree): Likewise.
25132         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
25133         * tests/test-inet_ntop.c (inet_ntop): Likewise.
25134         * tests/test-inet_pton.c (inet_pton): Likewise.
25135         * tests/test-isblank.c (isblank): Likewise.
25136         * tests/test-lchown.c (lchown): Likewise.
25137         * tests/test-ldexpl.c (ldexpl): Likewise.
25138         * tests/test-link.c (link): Likewise.
25139         * tests/test-linkat.c (linkat): Likewise.
25140         * tests/test-lseek.c (lseek): Likewise.
25141         * tests/test-lstat.c (lstat): Likewise.
25142         * tests/test-mbrtowc.c (mbrtowc): Likewise.
25143         * tests/test-mbsinit.c (mbsinit): Likewise.
25144         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
25145         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
25146         * tests/test-memchr.c (memchr): Likewise.
25147         * tests/test-memcmp.c (memcmp): Likewise.
25148         * tests/test-memmem.c (memmem): Likewise.
25149         * tests/test-memrchr.c (memrchr): Likewise.
25150         * tests/test-mkdir.c (mkdir): Likewise.
25151         * tests/test-mkdirat.c (mkdirat): Likewise.
25152         * tests/test-mkfifo.c (mkfifo): Likewise.
25153         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
25154         * tests/test-mknod.c (mknod): Likewise.
25155         * tests/test-nanosleep.c (nanosleep): Likewise.
25156         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
25157         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
25158         Likewise.
25159         * tests/test-open.c (open): Likewise.
25160         * tests/test-openat.c (openat): Likewise.
25161         * tests/test-perror.c (perror): Likewise.
25162         * tests/test-pipe2.c (pipe2): Likewise.
25163         * tests/test-poll.c (poll): Likewise.
25164         * tests/test-popen.c (popen, pclose): Likewise.
25165         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
25166         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
25167         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
25168         (posix_spawn_file_actions_destroy)
25169         (posix_spawn_file_actions_addclose)
25170         (posix_spawn_file_actions_addopen)
25171         (posix_spawn_file_actions_adddup2): Likewise.
25172         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
25173         * tests/test-pread.c (pread): Likewise.
25174         * tests/test-printf-posix.c (printf): Likewise.
25175         * tests/test-pty.c (openpty, forkpty): Likewise.
25176         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
25177         (random_r): Likewise.
25178         * tests/test-rawmemchr.c (rawmemchr): Likewise.
25179         * tests/test-readlink.c (readlink): Likewise.
25180         * tests/test-remove.c (remove): Likewise.
25181         * tests/test-rename.c (rename): Likewise.
25182         * tests/test-renameat.c (renameat): Likewise.
25183         * tests/test-rmdir.c (rmdir): Likewise.
25184         * tests/test-round1.c (round): Likewise.
25185         * tests/test-roundf1.c (roundf): Likewise.
25186         * tests/test-roundl.c (roundl): Likewise.
25187         * tests/test-setenv.c (setenv): Likewise.
25188         * tests/test-sigaction.c (sigaction): Likewise.
25189         * tests/test-sleep.c (sleep): Likewise.
25190         * tests/test-snprintf.c (snprintf): Likewise.
25191         * tests/test-sprintf-posix.c (sprintf): Likewise.
25192         * tests/test-stat.c (stat): Likewise.
25193         * tests/test-stpncpy.c (stpncpy): Likewise.
25194         * tests/test-strcasestr.c (strcasestr): Likewise.
25195         * tests/test-strchrnul.c (strchrnul): Likewise.
25196         * tests/test-strerror.c (strerror): Likewise.
25197         * tests/test-strsignal.c (strsignal): Likewise.
25198         * tests/test-strstr.c (strstr): Likewise.
25199         * tests/test-strtod.c (strtod): Likewise.
25200         * tests/test-strverscmp.c (strverscmp): Likewise.
25201         * tests/test-symlink.c (symlink): Likewise.
25202         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
25203         * tests/test-times.c (times): Likewise.
25204         * tests/test-trunc1.c (trunc): Likewise.
25205         * tests/test-truncf1.c (truncf): Likewise.
25206         * tests/test-truncl.c (truncl): Likewise.
25207         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
25208         Likewise.
25209         * tests/test-uname.c (uname): Likewise.
25210         * tests/test-unlink.c (unlink): Likewise.
25211         * tests/test-unlinkat.c (unlinkat): Likewise.
25212         * tests/test-unsetenv.c (unsetenv): Likewise.
25213         * tests/test-usleep.c (usleep): Likewise.
25214         * tests/test-utimensat.c (utimensat): Likewise.
25215         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
25216         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
25217         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
25218         * tests/test-vprintf-posix.c (vprintf): Likewise.
25219         * tests/test-vsnprintf.c (vsnprintf): Likewise.
25220         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
25221         * tests/test-wcrtomb.c (wcrtomb): Likewise.
25222         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
25223         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
25224         * tests/test-wcwidth.c (wcwidth): Likewise.
25225
25226         build: pull in conditional headers during GNULIB_POSIXCHECK
25227         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
25228         definitions from any conditionally-included headers.
25229         * lib/stdlib.in.h (includes): Likewise.
25230         * lib/unistd.in.h (includes): Likewise.
25231
25232 2009-12-24  Bruno Haible  <bruno@clisp.org>
25233
25234         * tests/test-argv-iter.c: Include header file being tested immediately
25235         after config.h.
25236         * tests/test-base64.c: Likewise.
25237         * tests/test-flock.c: Likewise.
25238         * tests/test-fsync.c: Likewise.
25239         * tests/test-getdate.c: Likewise.
25240         * tests/test-getndelim2.c: Likewise.
25241         * tests/test-isfinite.c: Likewise.
25242         * tests/test-isinf.c: Likewise.
25243         * tests/test-strerror.c: Likewise.
25244         * tests/test-strsignal.c: Likewise.
25245
25246 2009-12-23  Eric Blake  <ebb9@byu.net>
25247
25248         unistd: work around cygwin bug
25249         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
25250         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
25251         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25252
25253 2009-12-23  Bruno Haible  <bruno@clisp.org>
25254
25255         localename: More tests.
25256         * tests/test-localename.c (SIZEOF): New macro.
25257         (categories): New variable.
25258         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
25259         test_locale_name_default): Add test w.r.t. thread locale.
25260         (test_locale_name_thread): New function.
25261         (main): Invoke it.
25262
25263         localename: Make aware of thread locale.
25264         * lib/localename.h (gl_locale_name_thread): New declaration.
25265         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
25266         behaviour with respect to thread locale.
25267         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
25268         <langinfo.h>, glthread/lock.h.
25269         (SIZE_BITS): New macro.
25270         (string_hash): New function.
25271         (struct hash_node): New type.
25272         (HASH_TABLE_SIZE): New macro.
25273         (struniq_hash_table, struniq_lock): New variables.
25274         (struniq): New function.
25275         (gl_locale_name_thread): New function.
25276         (gl_locale_name): Invoke it.
25277         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
25278         * modules/localename (Depends-on): Add lock.
25279         Reported by Mike Gran <spk121@yahoo.com>.
25280
25281 2009-12-23  Eric Blake  <ebb9@byu.net>
25282
25283         va-args: new module
25284         * modules/va-args: New file.
25285         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
25286         * MODULES.html.sh (Core language properties): Mention it.
25287
25288         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
25289         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
25290         named alias for __attribute__((__unused__)).
25291         * lib/chown.c: Update client.
25292         * lib/fchmodat.c: Likewise.
25293         * lib/fts.c: Likewise.
25294         * lib/getdate.y: Likewise.
25295         * lib/getgroups.c: Likewise.
25296         * lib/getopt.c: Likewise.
25297         * lib/getugroups.c: Likewise.
25298         * lib/mkdir.c: Likewise.
25299         * lib/mkfifo.c: Likewise.
25300         * lib/mkfifoat.c: Likewise.
25301         * lib/mknod.c: Likewise.
25302         * lib/mknodat.c: Likewise.
25303         * lib/readlink.c: Likewise.
25304         * lib/se-context.in.h: Likewise.
25305         * lib/se-selinux.in.h: Likewise.
25306         * lib/sockets.c: Likewise.
25307         * lib/symlink.c: Likewise.
25308         * lib/symlinkat.c: Likewise.
25309         * lib/unicodeio.c: Likewise.
25310         * lib/unistr.h: Likewise.
25311         * tests/test-areadlink.c: Likewise.
25312         * tests/test-areadlinkat.c: Likewise.
25313         * tests/test-filenamecat.c: Likewise.
25314         * tests/test-fseeko.c: Likewise.
25315         * tests/test-ftello.c: Likewise.
25316         * tests/test-getdate.c: Likewise.
25317         * tests/test-getgroups.c: Likewise.
25318         * tests/test-gethostname.c: Likewise.
25319         * tests/test-quotearg.c: Likewise.
25320         * tests/test-version-etc.c: Likewise.
25321         * tests/test-xalloc-die.c: Likewise.
25322         * tests/test-xfprintf-posix.c: Likewise.
25323         * tests/test-xprintf-posix.c: Likewise.
25324         * tests/test-xvasprintf.c: Likewise.
25325
25326         tests: avoid compiler warnings
25327         * tests/test-fcntl.c (main): Delete unused parameters.
25328         * tests/test-freopen-safer.c (main): Likewise.
25329         * tests/test-xalloc-die.c (main): Mark unused parameters.
25330         * tests/test-fseeko.c (main): Likewise.
25331         * tests/test-ftello.c (main): Likewise.
25332         * tests/test-nanosleep.c (main): Avoid declaration warning.
25333         * tests/test-sleep.c (main): Likewise.
25334         * tests/test-unsetenv.c (main): Silence warning about string
25335         literal.
25336         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25337
25338 2009-12-23  Bruno Haible  <bruno@clisp.org>
25339
25340         * tests/test-localename.c (test_locale_name): New function, extracted
25341         from main. Also test mixed situations.
25342         (test_locale_name_posix, test_locale_name_environ,
25343         test_locale_name_default): New functions.
25344         (main): Invoke them all.
25345         * modules/localename-tests (configure.ac): Test for newlocale.
25346
25347 2009-12-23  Bruno Haible  <bruno@clisp.org>
25348
25349         unistd: Ensure getcwd gets declared before being overridden.
25350         * lib/unistd.in.h: Conditionally include <io.h>.
25351
25352 2009-12-22  Bruno Haible  <bruno@clisp.org>
25353
25354         wchar: Diagnose broken combination of glibc and gcc versions and flags.
25355         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
25356         (gl_WCHAR_H): Invoke it.
25357         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
25358         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
25359         Reported by Karl Berry <karl@freefriends.org>.
25360
25361 2009-12-22  Eric Blake  <ebb9@byu.net>
25362
25363         math, unistd: avoid redundant includes
25364         * lib/math.in.h (isnan): No need to re-include <math.h>.
25365         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
25366
25367         getsubopt: work around cygwin bug
25368         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
25369         avoid conflicting with system getsubopt.
25370         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
25371         bug.
25372
25373         getopt: synchronize from glibc
25374         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
25375         parameter order.  Adjust all callers.
25376         (_getopt_internal_r, main): Adjust quoting in error messages.
25377         Drop considerations for outdated POSIX 1003.2 error message.
25378         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
25379         callers.
25380         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
25381
25382         test-getopt: test stderr behavior
25383         * modules/getopt-posix-tests (Depends-on): Add dup2.
25384         * tests/test-getopt.c (ASSERT): Avoid stderr.
25385         (main): Move stderr to a temporary file.
25386         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
25387         Instead, add parameter to inform caller if output occurred.
25388         (test_getopt): Adjust all existing tests to expect silence, and
25389         add new tests of leading ":".
25390         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25391         glibc shortcomings with leading "-:" or "+:" in optstring.
25392         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25393         Likewise.
25394         * doc/posix-functions/getopt.texi (getopt): Likewise.
25395
25396         test-getopt: enhance test
25397         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
25398         supports optind=0.
25399         * tests/test-getopt.c (OPTIND_MIN): Move...
25400         * tests/test-getopt.h (OPTIND_MIN): ...here.
25401         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
25402         Require that optind=0 works, since modern BSD supports it in
25403         addition to optreset, and since coreutils expects it.
25404         (test_getopt_long_only): New test.
25405         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25406         glibc shortcomings with 'W;', and enforcement of optind=0.
25407         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25408         Likewise.
25409
25410 2009-12-21  Bruno Haible  <bruno@clisp.org>
25411
25412         localename: Improvements for MacOS X and Cygwin.
25413         * lib/localename.h (gl_locale_name_environ): New declaration.
25414         * lib/localename.c (gl_locale_name_environ): New function, extracted from
25415         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
25416         (gl_locale_name_posix): Invoke it.
25417         (gl_locale_name_default): Add comments. Use Windows native API also on
25418         Cygwin.
25419
25420 2009-12-21  Bruno Haible  <bruno@clisp.org>
25421
25422         Update list of Win32 locale ids.
25423         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
25424         (LANG_SAMI): Renamed from LANG_SAAMI.
25425         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
25426         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
25427         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
25428         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
25429         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
25430         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
25431         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
25432         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
25433         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
25434         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
25435         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
25436         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
25437         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
25438         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
25439         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
25440         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
25441         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
25442         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
25443         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
25444         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
25445         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
25446         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
25447         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
25448         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
25449         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
25450         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
25451         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
25452         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
25453         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
25454         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
25455         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
25456         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
25457         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
25458         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
25459         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
25460         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
25461         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
25462         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
25463         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
25464         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
25465         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
25466         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
25467         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
25468         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
25469         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
25470         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
25471         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
25472         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
25473         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
25474         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
25475         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
25476         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
25477         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
25478         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
25479         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
25480         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
25481         Add more languages and countries for Sami, Sorbian. Add more countries
25482         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
25483         for Pashto. Change country for Syriac, Tswana.
25484
25485 2009-12-21  Eric Blake  <ebb9@byu.net>
25486
25487         test-utimens: avoid spurious failure
25488         * tests/test-chown.h (nap): Factor...
25489         * tests/nap.h: ...into new file.
25490         * tests/test-lchown.h (nap): Avoid duplication.
25491         * tests/test-utimens-common.h (nap): Use shared implementation,
25492         necessary on file systems with 1-second resolution.
25493         * modules/chown-tests (Files): Include new file.
25494         * modules/fdutimensat-tests (Files): Likewise.
25495         * modules/futimens-tests (Files): Likewise.
25496         * modules/lchown-tests (Files): Likewise.
25497         * modules/openat-tests (Files): Likewise.
25498         * modules/utimens-tests (Files): Likewise.
25499         * modules/utimensat-tests (Files): Likewise.
25500
25501 2009-12-19  Eric Blake  <ebb9@byu.net>
25502
25503         futimens, utimensat: work around Linux bug
25504         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
25505         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25506         * lib/utimensat.c (rpl_utimensat): Work around it.
25507         * lib/futimens.c (rpl_futimens): Adjust comment.
25508
25509         utimens: work around Linux ctime bug
25510         * lib/utimens.c (detect_ctime_bug): New helper function.
25511         (update_timespec): Differentiate between workaround needed for
25512         this bug vs. what is needed for systems that lack utimensat.
25513         (fdutimens, lutimens): Work around bug.
25514
25515         utimens: check for ctime update
25516         * tests/test-utimens-common.h (check_ctime): Define.
25517         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
25518         * tests/test-futimens.h (test_futimens): Likewise.
25519         * tests/test-lutimens.h (test_lutimens): Likewise.
25520         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25521         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25522
25523 2009-12-19  Bruno Haible  <bruno@clisp.org>
25524
25525         dprintf-posix: Check against memory leak fixed on 2009-12-15.
25526         * tests/test-dprintf-posix2.sh: New file.
25527         * tests/test-dprintf-posix2.c: New file.
25528         * modules/dprintf-posix-tests (Files): Add them.
25529         (configure.ac): Check for getrlimit and setrlimit.
25530         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25531
25532 2009-12-19  Bruno Haible  <bruno@clisp.org>
25533
25534         fprintf-posix: Check against memory leak fixed on 2009-12-15.
25535         * tests/test-fprintf-posix3.sh: New file.
25536         * tests/test-fprintf-posix3.c: New file.
25537         * modules/fprintf-posix-tests (Files): Add them.
25538         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25539
25540 2009-12-19  Eric Blake  <ebb9@byu.net>
25541
25542         dirfd: fix prototype
25543         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
25544         * lib/dirfd.c (dirfd): Likewise.
25545
25546         canonicalize: reduce memory usage
25547         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
25548         allocation to size.
25549         Reported by Solar Designer <solar@openwall.com>.
25550
25551 2009-12-19  Bruno Haible  <bruno@clisp.org>
25552
25553         New module attribute 'Applicability'.
25554         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
25555         * gnulib-tool: New option --extract-applicability.
25556         (func_usage): Document it.
25557         (sed_extract_prog): Recognize it.
25558         (func_get_applicability): New function.
25559         (func_import): Generalize handling of 'link-warning' module.
25560         * modules/link-warning (Applicability): New section.
25561         * modules/arg-nonnull (Applicability): New section.
25562         Repoted by Simon Josefsson <simon@josefsson.org>.
25563
25564 2009-12-19  Bruno Haible  <bruno@clisp.org>
25565
25566         fflush: tweak
25567         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
25568         * lib/fseeko.c (rpl_fseeko): Likewise.
25569
25570 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
25571
25572         * lib/gl_list.h: Fix typo in comment.
25573
25574 2009-12-16  Eric Blake  <ebb9@byu.net>
25575
25576         fcntl: use to simplify other modules
25577         * modules/cloexec (Depends-on): Add fcntl.
25578         * modules/fchdir (Depends-on): Likewise.
25579         * modules/fd-safer-flag (Depends-on): Likewise.
25580         * modules/unistd-safer (Depends-on): Likewise.
25581         * modules/dup3 (configure.ac): Set module indicator.
25582         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
25583         missing.
25584         * lib/fchdir.c (_gl_register_dup): Fix comment.
25585         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
25586         * lib/dup-safer.c (dup_safer): Likewise.
25587         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
25588         * lib/dup3.c (dup3): Likewise.
25589         * tests/test-fchdir.c (main): Enhance test.
25590         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
25591
25592         fcntl: port portions of fcntl to mingw
25593         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
25594         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
25595         replacement for mingw.
25596         * modules/fcntl (Description): Update.
25597         (Depends-on): Add dup2.
25598         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
25599         * modules/fcntl-h (Makefile.am): Substitute it.
25600         * lib/fcntl.in.h (fcntl): Update declaration.
25601         (F_DUPFD, F_GETFD): New macros, when needed.
25602         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25603         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
25604         * tests/test-fcntl.c (check_flags, main): Enhance test for items
25605         we now guarantee.
25606
25607         fcntl: work around cygwin bug in F_DUPFD
25608         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
25609         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
25610         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
25611         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
25612         * doc/posix-functions/fcntl.texi (fcntl): Document it.
25613
25614         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
25615         * modules/fcntl (Files): List new files.
25616         (configure.ac): Run a test.
25617         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
25618         * lib/fcntl.c (rpl_fcntl): Likewise.
25619         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
25620         (gl_FCNTL_H): Always replace fcntl.h.
25621         * modules/fcntl-h (Makefile.am): Substitute witnesses.
25622         * lib/fcntl.in.h (fcntl): Declare replacement.
25623         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
25624         needed, plus a witness.
25625         * doc/posix-functions/fcntl.texi (fcntl): Document this.
25626         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25627         * tests/test-fcntl.c: New file.
25628         * modules/fcntl-tests: Likewise.
25629
25630         binary-io: avoid potential compilation warning
25631         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
25632         directives.
25633
25634         fflush: avoid compilation error on NetBSD
25635         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
25636         between off_t and fpos_t, since the latter is sometimes a struct.
25637         * lib/fseeko.c (rpl_fseeko): Likewise.
25638         Reported by Alexander Nasonov <alnsn@yandex.ru>.
25639
25640 2009-12-15  Eric Blake  <ebb9@byu.net>
25641
25642         fcntl-h, stdio, sys_ioctl: fix declarations
25643         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
25644         function must not take arguments.
25645         * lib/sys_ioctl.in.h (ioctl): Likewise.
25646         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
25647         (open): Add a link warning.
25648
25649 2009-12-15  Jim Meyering  <meyering@redhat.com>
25650
25651         areadlink, areadlink-with-size: relax license to LGPLv2+
25652         * modules/areadlink (License): Relax to LGPLv2+.
25653         * modules/areadlink-with-size (License): Likewise.
25654
25655 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
25656             Bruno Haible  <bruno@clisp.org>
25657
25658         *printf: Fix memory leak.
25659         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
25660         * lib/vfprintf.c (vfprintf): Likewise.
25661         * lib/dprintf.c (dprintf): Likewise.
25662         * lib/vdprintf.c (vdprintf): Likewise.
25663
25664 2009-12-14  Eric Blake  <ebb9@byu.net>
25665
25666         accept4: adjust module dependencies
25667         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
25668
25669         utimens: one more try at avoiding compiler warning
25670         * lib/utimens.c (lutimens): Lower scope of result.
25671
25672 2009-12-13  Bruno Haible  <bruno@clisp.org>
25673
25674         Move the malloc checking from module 'list' to new module 'xlist'.
25675         * modules/xlist: New file.
25676         * lib/gl_xlist.h: New file.
25677         * lib/gl_xlist.c: New file.
25678         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
25679         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
25680         gl_list_add_last, gl_list_add_before, gl_list_add_after,
25681         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
25682         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
25683         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
25684         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
25685         gl_sortedlist_nx_add): New declarations.
25686         (struct gl_list_implementation): Rename and change methods accordingly.
25687         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
25688         (gl_list_nx_create): Renamed from gl_list_create.
25689         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25690         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25691         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25692         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25693         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25694         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25695         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25696         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25697         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
25698         gl_list_create_empty.
25699         (gl_list_nx_create): Renamed from gl_list_create.
25700         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25701         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25702         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25703         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25704         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25705         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25706         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25707         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25708         * lib/gl_array_list.c: Don't include xalloc.h.
25709         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
25710         NULL upon out-of-memory.
25711         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
25712         out-of-memory.
25713         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
25714         Change return type to 'int'.
25715         (gl_array_nx_set_at): Renamed from gl_array_set_at.
25716         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25717         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
25718         upon out-of-memory.
25719         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
25720         upon out-of-memory.
25721         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
25722         upon out-of-memory.
25723         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
25724         upon out-of-memory.
25725         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
25726         out-of-memory.
25727         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
25728         Update.
25729         (gl_array_list_implementation): Update.
25730         * lib/gl_carray_list.c: Don't include xalloc.h.
25731         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
25732         Return NULL upon out-of-memory.
25733         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
25734         out-of-memory.
25735         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
25736         Change return type to 'int'.
25737         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
25738         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25739         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
25740         upon out-of-memory.
25741         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
25742         upon out-of-memory.
25743         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
25744         out-of-memory.
25745         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
25746         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
25747         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
25748         Update.
25749         (gl_carray_list_implementation): Update.
25750         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
25751         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
25752         gl_linked_create_empty. Return NULL upon out-of-memory.
25753         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
25754         out-of-memory.
25755         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
25756         Change return type to 'int'. Return -1 upon out-of-memory.
25757         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
25758         out-of-memory.
25759         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
25760         upon out-of-memory.
25761         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
25762         upon out-of-memory.
25763         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
25764         NULL upon out-of-memory.
25765         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
25766         upon out-of-memory.
25767         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
25768         out-of-memory.
25769         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
25770         Update.
25771         * lib/gl_linked_list.c: Don't include xalloc.h.
25772         (gl_linked_list_implementation): Update.
25773         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
25774         (add_to_bucket): Change return type to 'int'.
25775         (gl_linkedhash_list_implementation): Update.
25776         * lib/gl_anytree_list1.h (free_subtree): New function.
25777         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
25778         gl_tree_create_empty. Return NULL upon out-of-memory.
25779         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
25780         Change return type to 'int'. Return -1 upon out-of-memory.
25781         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
25782         out-of-memory.
25783         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
25784         (gl_tree_remove_node): New function, moved here from
25785         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
25786         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
25787         Update.
25788         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
25789         malloc, not xmalloc. Return NULL upon out-of-memory.
25790         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
25791         out-of-memory.
25792         (gl_tree_remove_node_from_tree): New function, extracted from
25793         gl_tree_remove_node.
25794         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
25795         upon out-of-memory.
25796         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
25797         out-of-memory.
25798         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
25799         upon out-of-memory.
25800         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
25801         upon out-of-memory.
25802         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
25803         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
25804         not xmalloc. Return NULL upon out-of-memory.
25805         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
25806         out-of-memory.
25807         (gl_tree_remove_node_from_tree): New function, extracted from
25808         gl_tree_remove_node.
25809         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
25810         upon out-of-memory.
25811         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
25812         out-of-memory.
25813         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
25814         upon out-of-memory.
25815         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
25816         upon out-of-memory.
25817         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
25818         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
25819         gl_anytree_list1.h before gl_anyavltree_list2.h.
25820         (gl_avltree_list_implementation): Update.
25821         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
25822         gl_anytree_list1.h before gl_anyavltree_list2.h.
25823         (gl_rbtree_list_implementation): Update.
25824         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
25825         Change return type to 'int'. Return -1 upon out-of-memory. Use
25826         __builtin_expect.
25827         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
25828         (gl_avltreehash_list_implementation): Update.
25829         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
25830         (gl_rbtreehash_list_implementation): Update.
25831         * modules/array-list (Depends-on): Remove xalloc.
25832         * modules/carray-list (Depends-on): Likewise.
25833         * modules/linked-list (Depends-on): Likewise.
25834         * modules/linkedhash-list (Depends-on): Likewise.
25835         * modules/avltree-list (Depends-on): Likewise.
25836         * modules/rbtree-list (Depends-on): Likewise.
25837         * modules/avltreehash-list (Depends-on): Likewise.
25838         * modules/rbtreehash-list (Depends-on): Likewise.
25839
25840         * modules/xsublist: New file.
25841         * lib/gl_xsublist.h: New file.
25842         * lib/gl_xsublist.c: New file.
25843         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
25844         (gl_sublist_nx_create): New declaration.
25845         * lib/gl_sublist.c: Don't include xalloc.h.
25846         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
25847         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
25848         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
25849         Change return type to 'int'. Return -1 upon out-of-memory.
25850         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
25851         upon out-of-memory.
25852         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
25853         NULL upon out-of-memory.
25854         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
25855         upon out-of-memory.
25856         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
25857         NULL upon out-of-memory.
25858         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
25859         NULL upon out-of-memory.
25860         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
25861         upon out-of-memory.
25862         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
25863         (gl_sublist_list_implementation): Update.
25864         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
25865         upon out-of-memory.
25866         * modules/sublist (Depends-on): Remove xalloc.
25867
25868         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
25869         * tests/test-carray_list.c: Likewise.
25870         * tests/test-linked_list.c: Likewise.
25871         * tests/test-linkedhash_list.c: Likewise.
25872         * tests/test-avltree_list.c: Likewise.
25873         * tests/test-rbtree_list.c: Likewise.
25874         * tests/test-avltreehash_list.c: Likewise.
25875         * tests/test-rbtreehash_list.c: Likewise.
25876         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
25877         * modules/carray-list-tests (Makefile.am): Likewise.
25878         * modules/linked-list-tests (Makefile.am): Likewise.
25879         * modules/linkedhash-list-tests (Makefile.am): Likewise.
25880         * modules/avltree-list-tests (Makefile.am): Likewise.
25881         * modules/rbtree-list-tests (Makefile.am): Likewise.
25882         * modules/avltreehash-list-tests (Makefile.am): Likewise.
25883         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
25884
25885         * NEWS: Mention the changes.
25886
25887         * lib/clean-temp.c: Include gl_xlist.h.
25888         * modules/clean-temp (Depends-on): Add xlist.
25889
25890         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
25891         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
25892
25893         * tests/test-array_oset.c: Include gl_xlist.h.
25894         * modules/array-oset-tests (Depends-on): Add xlist.
25895
25896         Reported by José E. Marchesi <jemarch@gnu.org>.
25897
25898 2009-12-13  Bruno Haible  <bruno@clisp.org>
25899
25900         Move the malloc checking from module 'oset' to new module 'xoset'.
25901         * modules/xoset: New file.
25902         * lib/gl_xoset.h: New file.
25903         * lib/gl_xoset.c: New file.
25904         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
25905         declarations.
25906         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
25907         (struct gl_oset_implementation): Rename and change methods accordingly.
25908         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
25909         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
25910         'int'. Mark as __warn_unused_result__.
25911         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
25912         gl_oset_create_empty.
25913         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
25914         'int'.
25915         * lib/gl_array_oset.c: Don't include xalloc.h.
25916         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
25917         malloc, not xmalloc.
25918         (grow): Change return type to 'int'. Don't call xalloc_die.
25919         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
25920         to 'int'.
25921         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
25922         'int'.
25923         (gl_array_oset_implementation): Update.
25924         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
25925         gl_tree_create_empty.
25926         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
25927         'int'.
25928         * lib/gl_avltree_oset.c: Don't include xalloc.h.
25929         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
25930         xmalloc.
25931         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
25932         not xmalloc.
25933         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
25934         xmalloc.
25935         (gl_avltree_oset_implementation): Update.
25936         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
25937         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
25938         xmalloc.
25939         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
25940         not xmalloc.
25941         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
25942         xmalloc.
25943         (gl_rbtree_oset_implementation): Update.
25944         * modules/array-oset (Depends-on): Remove xalloc.
25945         * modules/avltree-oset (Depends-on): Likewise.
25946         * modules/rbtree-oset (Depends-on): Likewise.
25947         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
25948         * tests/test-avltree_oset.c: Likewise.
25949         * tests/test-rbtree_oset.c: Likewise.
25950         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
25951         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
25952         * modules/rbtree-oset-tests (Makefile.am): Likewise.
25953         * NEWS: Mention the change.
25954
25955 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
25956
25957         maint.mk: allow a project to override release-prep commands
25958         * top/maint.mk (alpha, beta, stable): Move release-preparatory
25959         commands into a new rule.
25960         (release-prep): New rule.
25961         (release-prep-hook): New overridable variable.
25962
25963 2009-12-13  Bruno Haible  <bruno@clisp.org>
25964
25965         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
25966
25967 2009-12-13  Jim Meyering  <meyering@redhat.com>
25968
25969         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
25970         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
25971
25972 2009-12-12  Bruno Haible  <bruno@clisp.org>
25973
25974         duplocale: Tweak.
25975         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
25976
25977 2009-12-12  Karl Berry  <karl@gnu.org>
25978
25979         * config/srclist.txt (strtoll.c): tab changes, no more sync.
25980
25981 2009-12-12  Bruno Haible  <bruno@clisp.org>
25982
25983         * m4/po.m4: Undo incorrect untabification.
25984
25985 2009-12-12  Bruno Haible  <bruno@clisp.org>
25986
25987         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
25988         * modules/c-strtod (Depends-on): Add locale.
25989         * modules/c-strtold (Depends-on): Likewise.
25990
25991 2009-12-12  Bruno Haible  <bruno@clisp.org>
25992
25993         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
25994
25995 2009-12-11  Eric Blake  <ebb9@byu.net>
25996
25997         setenv: relax requirement in light of POSIX ruling
25998         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
25999         not NULL.
26000         * tests/test-setenv.c (main): Relax test.
26001         * tests/test-unsetenv.c (main): Likewise.
26002         * doc/posix-functions/setenv.texi (setenv): Document this.
26003         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26004
26005 2009-12-11  Bruno Haible  <bruno@clisp.org>
26006
26007         New module 'fd-safer-flag'.
26008         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
26009         * lib/dup-safer.c (dup_safer_flag): Remove function.
26010         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
26011         * lib/fd-safer.c (fd_safer_flag): Remove function.
26012         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
26013         * modules/cloexec (configure.ac): Drop indicator macro.
26014         * modules/fd-safer-flag: New file.
26015         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
26016         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
26017         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
26018
26019 2009-12-11  Bruno Haible  <bruno@clisp.org>
26020
26021         Tests for module 'nl_langinfo'.
26022         * modules/nl_langinfo-tests: New file.
26023         * tests/test-nl_langinfo.sh: New file.
26024         * tests/test-nl_langinfo.c: New file.
26025
26026         New module 'nl_langinfo'.
26027         * lib/nl_langinfo.c: New file.
26028         * m4/nl_langinfo.m4: New file.
26029         * modules/nl_langinfo: New file.
26030         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
26031
26032 2009-12-11  Bruno Haible  <bruno@clisp.org>
26033
26034         Tests for module 'langinfo'.
26035         * modules/langinfo-tests: New file.
26036         * tests/test-langinfo.c: New file.
26037
26038         New module 'langinfo'.
26039         * lib/langinfo.in.h: New file.
26040         * m4/langinfo_h.m4: New file.
26041         * modules/langinfo: New file.
26042         * doc/posix-headers/langinfo.texi: Mention the new module.
26043
26044 2009-12-11  Bruno Haible  <bruno@clisp.org>
26045
26046         * lib/config.charset: Untabify.
26047
26048 2009-12-11  Bruno Haible  <bruno@clisp.org>
26049
26050         * modules/unistd-safer (configure.ac): Drop indicator macro.
26051
26052 2009-12-11  Bruno Haible  <bruno@clisp.org>
26053
26054         Move pipe2-safer code to its own file.
26055         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
26056         * lib/pipe-safer.c (pipe2_safer): Remove function.
26057         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
26058         (Makefile.am): Add it to lib_SOURCES.
26059
26060 2009-12-10  Bruno Haible  <bruno@clisp.org>
26061
26062         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
26063
26064 2009-12-10  Bruno Haible  <bruno@clisp.org>
26065
26066         Declare which arguments expect non-NULL values, for GCC and clang.
26067         * build-aux/arg-nonnull.h: New file.
26068         * modules/arg-nonnull: New file.
26069         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
26070         (inet_ntop, inet_pton): Use it.
26071         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
26072         (closedir, dirfd, opendir, scandir, alphasort): Use it.
26073         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
26074         (open, openat): Use it.
26075         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
26076         (fnmatch): Use it.
26077         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
26078         (getopt, getopt_long, getopt_long_only): Use it.
26079         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
26080         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
26081         Use it.
26082         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
26083         (iconv_open): Use it.
26084         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
26085         (strtoimax, strtoumax): Use it.
26086         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
26087         (duplocale): Use it.
26088         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
26089         (frexp, frexpl): Use it.
26090         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
26091         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
26092         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
26093         (tsearch, tfind, tdelete, twalk): Use it.
26094         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
26095         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26096         sigpending): Use it.
26097         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
26098         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26099         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26100         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26101         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26102         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26103         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26104         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26105         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26106         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26107         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26108         Use it.
26109         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
26110         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
26111         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
26112         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
26113         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
26114         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
26115         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
26116         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
26117         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
26118         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
26119         strtoull, unsetenv): Use it.
26120         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
26121         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26122         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26123         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
26124         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
26125         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
26126         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
26127         (strcasecmp, strncasecmp): Use it.
26128         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
26129         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
26130         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
26131         rpl_setsockopt): Use it.
26132         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
26133         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
26134         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
26135         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
26136         (gettimeofday): Use it.
26137         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
26138         (times): Use it.
26139         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
26140         (uname): Use it.
26141         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
26142         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
26143         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
26144         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
26145         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
26146         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
26147         unlinkat, write): Use it.
26148         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
26149         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
26150         * lib/argv-iter.h: Include arg-nonnull.h.
26151         (_ATTRIBUTE_NONNULL_): Remove macro.
26152         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
26153         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
26154         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
26155         optimization.
26156         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
26157         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
26158         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
26159         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
26160         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
26161         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
26162         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
26163         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
26164         * modules/arpa_inet (Depends-on): Add arg-nonnull.
26165         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
26166         * modules/dirent (Depends-on): Add arg-nonnull.
26167         (Makefile.am): Insert arg-nonnull.h into dirent.h.
26168         * modules/fcntl-h (Depends-on): Add arg-nonnull.
26169         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
26170         * modules/fnmatch (Depends-on): Add arg-nonnull.
26171         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
26172         * modules/getopt-posix (Depends-on): Add arg-nonnull.
26173         (Makefile.am): Insert arg-nonnull.h into getopt.h.
26174         * modules/glob (Depends-on): Add arg-nonnull.
26175         (Makefile.am): Insert arg-nonnull.h into glob.h.
26176         * modules/iconv_open (Depends-on): Add arg-nonnull.
26177         (Makefile.am): Insert arg-nonnull.h into iconv.h.
26178         * modules/inttypes (Depends-on): Add arg-nonnull.
26179         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
26180         * modules/locale (Depends-on): Add arg-nonnull.
26181         (Makefile.am): Insert arg-nonnull.h into locale.h.
26182         * modules/math (Depends-on): Add arg-nonnull.
26183         (Makefile.am): Insert arg-nonnull.h into math.h.
26184         * modules/netdb (Depends-on): Add arg-nonnull.
26185         (Makefile.am): Insert arg-nonnull.h into netdb.h.
26186         * modules/search (Depends-on): Add arg-nonnull.
26187         (Makefile.am): Insert arg-nonnull.h into search.h.
26188         * modules/signal (Depends-on): Add arg-nonnull.
26189         (Makefile.am): Insert arg-nonnull.h into signal.h.
26190         * modules/spawn (Depends-on): Add arg-nonnull.
26191         (Makefile.am): Insert arg-nonnull.h into spawn.h.
26192         * modules/stdio (Depends-on): Add arg-nonnull.
26193         (Makefile.am): Insert arg-nonnull.h into stdio.h.
26194         * modules/stdlib (Depends-on): Add arg-nonnull.
26195         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
26196         * modules/string (Depends-on): Add arg-nonnull.
26197         (Makefile.am): Insert arg-nonnull.h into string.h.
26198         * modules/strings (Depends-on): Add arg-nonnull.
26199         (Makefile.am): Insert arg-nonnull.h into strings.h.
26200         * modules/sys_socket (Depends-on): Add arg-nonnull.
26201         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
26202         * modules/sys_stat (Depends-on): Add arg-nonnull.
26203         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
26204         * modules/sys_time (Depends-on): Add arg-nonnull.
26205         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
26206         * modules/sys_times (Depends-on): Add arg-nonnull.
26207         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
26208         * modules/sys_utsname (Depends-on): Add arg-nonnull.
26209         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
26210         * modules/time (Depends-on): Add arg-nonnull.
26211         (Makefile.am): Insert arg-nonnull.h into time.h.
26212         * modules/unistd (Depends-on): Add arg-nonnull.
26213         (Makefile.am): Insert arg-nonnull.h into unistd.h.
26214         * modules/wchar (Depends-on): Add arg-nonnull.
26215         (Makefile.am): Insert arg-nonnull.h into wchar.h.
26216         * modules/argv-iter (Depends-on): Add arg-nonnull.
26217         * tests/test-canonicalize.c (null_ptr): New function.
26218         (main): Use it.
26219         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
26220         (main): Use it.
26221         * tests/test-memmem.c (null_ptr): New function.
26222         (main): Use it.
26223         Reported by Jim Meyering.
26224
26225 2009-12-10  Bruno Haible  <bruno@clisp.org>
26226
26227         Use spaces for indentation, not tabs.
26228         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26229         * m4/*.m4: Untabify.
26230         * build-aux/*.h: Untabify.
26231         * tests/**/*.[hc]: Untabify.
26232         * README: New section "Indent with spaces, not TABs", based on
26233         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
26234         * NEWS: Mention the change.
26235
26236 2009-12-10  Bruno Haible  <bruno@clisp.org>
26237
26238         pty test: Fix link error.
26239         * modules/pty-tests (Makefile.am): Add the default LDADD value to
26240         test_pty_LDADD.
26241
26242 2009-12-07  Simon Josefsson  <simon@josefsson.org>
26243
26244         * modules/pty: New file.
26245         * modules/pty-tests: New file.
26246         * m4/pty.m4: New file.
26247         * tests/test-pty.c: New file.
26248         * doc/glibc-headers/pty.texi: Modified.
26249         * doc/glibc-functions/forkpty.texi: Modified.
26250         * doc/glibc-functions/openpty.texi: Modified.
26251
26252 2009-12-10  Bruno Haible  <bruno@clisp.org>
26253
26254         Avoid syntax error in C++ mode.
26255         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
26256
26257 2009-12-10  Bruno Haible  <bruno@clisp.org>
26258
26259         Use sed with option -e.
26260         * gnulib-tool (func_version, func_emit_copyright_notice,
26261         func_emit_initmacro_end, func_import, func_create_testdir): Pass
26262         option -e to sed.
26263         * modules/link-warning (Makefile.am): Likewise.
26264
26265 2009-12-10  Jim Meyering  <meyering@redhat.com>
26266
26267         mgetgroups: do not write bytes beyond end of malloc'd buffer
26268         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
26269         username, we call getgroups with a one-element-shorter buffer,
26270         but still told it the length was original, max_n_groups.
26271
26272 2009-12-09  Eric Blake  <ebb9@byu.net>
26273
26274         cloexec: relax license
26275         * modules/cloexec (Maintainer): Add myself.
26276         (License): Use LGPL, not GPL.
26277
26278         link-warning: optimize generation
26279         * modules/link-warning (Makefile.am): Reduce process usage.
26280
26281 2009-12-09  Bruno Haible  <bruno@clisp.org>
26282
26283         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
26284         workaround was added on 2009-11-17.
26285
26286 2009-12-09  Jim Meyering  <meyering@redhat.com>
26287             Bruno Haible  <bruno@clisp.org>
26288
26289         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
26290         * modules/link-warning (Makefile.am): Make the comment-removing sed
26291         command more robust in the face of bootstrap-prepended comment lines.
26292
26293 2009-12-09  Bruno Haible  <bruno@clisp.org>
26294
26295         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
26296         most one group.
26297
26298 2009-12-09  Simon Josefsson <simon@josefsson.org>
26299             Bruno Haible  <bruno@clisp.org>
26300
26301         * build-aux/link-warning.h: Add copyright notice.
26302         * modules/link-warning (Makefile.am): Generate link-warning.h from
26303         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
26304         * NEWS: Mention change in link-warning module.
26305         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
26306         * modules/dirent (Makefile.am): Add dependency to dirent.h.
26307         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
26308         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
26309         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
26310         * modules/math (Makefile.am): Add dependency to math.h.
26311         * modules/search (Makefile.am): Add dependency to search.h.
26312         * modules/signal (Makefile.am): Add dependency to signal.h.
26313         * modules/spawn (Makefile.am): Add dependency to spawn.h.
26314         * modules/stdio (Makefile.am): Add dependency to stdio.h.
26315         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
26316         * modules/string (Makefile.am): Add dependency to string.h.
26317         * modules/strings (Makefile.am): Add dependency to strings.h.
26318         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
26319         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
26320         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
26321         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
26322         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
26323         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
26324         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
26325         * modules/unistd (Makefile.am): Add dependency to unistd.h.
26326         * modules/wchar (Makefile.am): Add dependency to wchar.h.
26327
26328 2009-12-09  Bruno Haible  <bruno@clisp.org>
26329
26330         fchdir: Optimize away rpl_fstat when possible.
26331         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
26332         REPLACE_OPEN_DIRECTORY.
26333         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
26334
26335 2009-12-09  Bruno Haible  <bruno@clisp.org>
26336
26337         * lib/fchdir.c: Update comment.
26338
26339 2009-12-09  Bruno Haible  <bruno@clisp.org>
26340
26341         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
26342
26343 2009-12-08  Eric Blake  <ebb9@byu.net>
26344
26345         fchdir: avoid memory leak on re-registration.
26346         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
26347
26348 2009-12-08  Jim Meyering  <meyering@redhat.com>
26349
26350         init.sh: avoid Solaris 10 /bin/sh portability problem
26351         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
26352         sourced script:
26353           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
26354           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
26355           bar
26356         tests/init.sh relied on that, accepting a --set-path=DIR argument,
26357         and two tests used that idiom.
26358         * tests/init.sh: Update suggested usage comments.
26359         (path_prepend_): New function, to be used in place
26360         of the --src-path=DIR option.
26361         (setup_): Move PATH-prepending code into path_prepend_.
26362         * tests/test-pread.sh: Adapt to new usage.
26363         * tests/test-xalloc-die.sh: Likewise.
26364
26365 2009-12-08  Simon Josefsson  <simon@josefsson.org>
26366
26367         * doc/gnulib.texi (Glibc pty.h): Add.
26368         * doc/glibc-functions/forkpty.texi: Add.
26369         * doc/glibc-functions/openpty.texi: Add.
26370         Suggested by Bruno Haible.
26371
26372 2009-12-08  Eric Blake  <ebb9@byu.net>
26373
26374         fchdir: fix logic bugs
26375         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
26376         * tests/test-fchdir.c (main): Enhance test.
26377         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
26378         is in use.
26379
26380         dup2: fix logic bugs
26381         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
26382         REPLACE_DUP2 to decide when rpl_dup2 is needed.
26383         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
26384         exists.
26385         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
26386
26387 2009-12-07  Eric Blake  <ebb9@byu.net>
26388
26389         unlink: fix m4 detection
26390         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
26391
26392         unistd-safer: add unit test
26393         * modules/unistd-safer-tests: New file.
26394         * tests/test-dup-safer.c: Likewise.
26395         * tests/test-cloexec.c (setmode): Avoid compiler warning.
26396         * tests/test-dup2.c (setmode): Likewise.
26397         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
26398
26399         cloexec: preserve text vs. binary across dup_cloexec
26400         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
26401         mode.
26402         * modules/dup2-tests (Depends-on): Add binary-io.
26403         * modules/cloexec-tests (Depends-on): Likewise.
26404         * tests/test-dup2.c (setmode, is_mode): New helpers.
26405         (main): Add tests that translation mode is preserved.
26406         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
26407         Reported by Bruno Haible.
26408
26409         mgetgroups: reduce duplicate listings
26410         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
26411         resulting array.
26412         * tests/test-chown.h (test_chown): Simplify client.
26413         * tests/test-lchown.h (test_lchown): Likewise.
26414
26415 2009-12-06  Bruno Haible  <bruno@clisp.org>
26416
26417         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
26418         value.
26419
26420 2009-12-06  Bruno Haible  <bruno@clisp.org>
26421
26422         * lib/progname.c: Include stdio.h, stdlib.h.
26423         (set_program_name): Reject a NULL argument.
26424
26425 2009-12-05  Eric Blake  <ebb9@byu.net>
26426
26427         pipe2-safer: new module
26428         * modules/pipe2-safer: New file.
26429         * lib/unistd-safer.h (pipe2_safer): New prototype.
26430         * lib/unistd--.h (pipe2): New wrapper.
26431         * lib/pipe-safer.c (pipe2_safer): New function.
26432         * modules/pipe (Depends-on): Add pipe2-safer.
26433         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
26434
26435         stdlib-safer: preserve cloexec flag for mkostemp[s]
26436         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
26437         fd_safer_flag.
26438
26439         unistd-safer: allow preservation of cloexec status via flag
26440         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
26441         prototypes.
26442         * lib/dup-safer.c (dup_safer_flag): New function.
26443         * lib/fd-safer.c (fd_safer_flag): Likewise.
26444         * modules/cloexec (configure.ac): Set witness.
26445
26446         test-dup2: enhance test
26447         * modules/dup2-tests (Depends-on): Add cloexec.
26448         * tests/test-dup2.c (main): Enhance test.
26449
26450         cloexec: add dup_cloexec
26451         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
26452         header and comments.
26453         * lib/cloexec.c (set_cloexec_flag): Add comments.
26454         (dup_cloexec): New function, with mingw implementation borrowed
26455         from...
26456         * lib/w32spawn.h (dup_noinherit): ...here.
26457         * modules/execute (Depends-on): Add cloexec.
26458         * modules/pipe (Depends-on): Likewise.
26459         * modules/cloexec (Depends-on): Add dup2.
26460         * modules/cloexec-tests (Files): New file.
26461         * tests/test-cloexec.c: Likewise.
26462
26463         test-xalloc-die: fix test for mingw
26464         * modules/xalloc-die-tests (Files): Add tests/init.sh.
26465         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
26466         directory and .exe suffix off argv[0] output.
26467
26468         test-fseeko: fix test for mingw
26469         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
26470         than undefining fseek, so test will pass on mingw.
26471
26472 2009-12-05  Bruno Haible  <bruno@clisp.org>
26473
26474         * lib/progname.h (set_program_name): Clarify specification.
26475         * lib/progname.c (set_program_name): Likewise.
26476         Reported by Jim Meyering.
26477
26478 2009-12-05  Jim Meyering  <meyering@redhat.com>
26479
26480         maint.mk: backslash-escape parens in default regexp
26481         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
26482         backslash-escape the literal parentheses.
26483
26484         maint.mk: news-date-check: use grep -E
26485         * top/maint.mk (today): Define a Make variable, not a...
26486         (news-date-check): ...shell variable.
26487         (news-date-regexp): Use the Make variable.
26488         Use grep's -E option.  Change the failing diagnostic to mention
26489         the variable, $(news-date-regexp).
26490
26491 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
26492
26493         maintainer-makefile: allow customization of NEWS entry format
26494         * top/maint.mk (news-date-regexp): New overridable variable.
26495         (news-date-check): Use it.
26496
26497 2009-12-04  Eric Blake  <ebb9@byu.net>
26498
26499         mgetgroups: add xgetgroups, and avoid ENOSYS failures
26500         * lib/mgetgroups.h (xgetgroups): New prototype.
26501         * lib/mgetgroups.c (xgetgroups): New wrapper.
26502         (mgetgroups): Handle ENOSYS.
26503         * modules/mgetgroups (Depends-on): Add realloc.
26504         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
26505
26506         mgetgroups: avoid argument promotion issues with -1
26507         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
26508         for invalid gid_t.
26509         * tests/test-chown.h (getegid, test_chown): Likewise.
26510         * tests/test-lchown.h (getegid, test_lchown): Likewise.
26511
26512 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
26513
26514         exclude: Fix header file problems.
26515         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
26516
26517 2009-12-01  Jim Meyering  <meyering@redhat.com>
26518
26519         fts: fts_open: do not let an empty string cause immediate failure
26520         This is required in support of GNU rm, for which the command
26521         "rm A '' B" must process and remove both A and B, in spite of
26522         the empty string argument.
26523         * lib/fts.c (fts_open): Do not let the presence of an empty string
26524         cause fts_open to fail immediately.  Most fts-using tools must be
26525         able to process all arguments, in order, and can be expected to
26526         diagnose such arguments themselves.
26527
26528 2009-11-30  Eric Blake  <ebb9@byu.net>
26529
26530         utimens: fix compilation error
26531         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
26532         Declare variable at right scope.
26533
26534 2009-11-29  Jim Meyering  <meyering@redhat.com>
26535
26536         bootstrap: handle perl-5.11's changed --version output
26537         * build-aux/bootstrap (get_version): Handle perl separately,
26538         since perl-5.11's --version output is different.
26539
26540 2009-11-28  Jim Meyering  <meyering@redhat.com>
26541
26542         userspec: depend on the inttostr module, too
26543         * modules/userspec (Depends-on): Add inttostr.
26544
26545         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
26546         * lib/userspec.c (parse_with_separator): Do not accept a user ID
26547         number of MAXUID when it evaluates to (uid_t) -1.
26548         Likewise for group ID.  Reported by Matt McCutchen in
26549         <http://savannah.gnu.org/bugs/?28113>
26550
26551         userspec: reformat to use spaces, not TABs
26552         * lib/userspec.c: Expand TABs to spaces.
26553         Add Emacs' "indent-tabs-mode: nil" hint.
26554
26555 2009-11-27  Eric Blake  <ebb9@byu.net>
26556
26557         getopt-gnu: flush out another BSD bug
26558         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
26559         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
26560         flush out BSD bug.
26561         * tests/test-getopt.h (test_getopt): End lists with NULL.
26562         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26563         (test_getopt_long_posix): Enhance test.
26564         * modules/getopt-posix-tests (Depends-on): Add stdbool.
26565         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
26566         getopt-gnu.
26567         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26568         Likewise.
26569
26570 2009-11-27  Simon Josefsson  <simon@josefsson.org>
26571
26572         * modules/idpriv-droptemp-tests (Notice): Fix text.
26573
26574 2009-11-27  Jim Meyering  <meyering@redhat.com>
26575
26576         test-xalloc-die: avoid spurious failure due to libtool argv difference
26577         In a libtool-enabled project, this test would fail due to a difference
26578         in the emitted program name, e.g.,
26579         -test-xalloc-die: memory exhausted
26580         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
26581         Use program to avoid that.
26582         * modules/xalloc-die-tests (Depends-on): Add progname.
26583         * tests/test-xalloc-die.c: Include progname.h".
26584         (program_name): Remove decl.
26585         (main): Call set_program_name.
26586         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
26587
26588 2009-11-26  Richard Jones  <rjones@redhat.com>
26589
26590         w32sock: leave win32 error in place.
26591         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
26592
26593 2009-11-26  Eric Blake  <ebb9@byu.net>
26594
26595         init.sh: suggest to use skip_ and fail_ functions in comments
26596         * tests/init.sh: Add a sentence.
26597
26598 2009-11-25  Bruno Haible  <bruno@clisp.org>
26599
26600         init.sh: add documentation in comments
26601         * tests/init.sh: Add some developer and user documentation.
26602
26603 2009-11-26  Jim Meyering  <meyering@redhat.com>
26604
26605         init.sh: accommodate even those who specify bogus srcdir manually
26606         * tests/init.sh: Normally, srcdir is guaranteed by automake and
26607         configure-time tests to be sanitized, so that there is no need to
26608         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
26609         (with no double quotes) suffices.  However, since tests may be
26610         invoked manually, and since you may explicitly set srcdir to the
26611         name of a directory containing spaces, do quote its uses here.
26612         * tests/test-pread.sh: Likewise.
26613         Suggested by Bruno Haible.
26614
26615         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
26616         * tests/test-pread.sh: Write no data into the pipe, because
26617         test-pread actually reads none.  This avoids a diagnostic,
26618         "bash: echo: write error: Broken pipe", that arises in the unusual
26619         event something is ignoring SIGPIPE, and might be interpreted
26620         as some sort of failure.  Reported by Bruno Haible.
26621
26622 2009-11-25  Jim Meyering  <meyering@redhat.com>
26623
26624         test-pread: cover failure with ESPIPE and EINVAL
26625         * tests/test-pread.c (main): Test for failure, too.
26626         * tests/test-pread.sh: Invoke with stdin on a pipe.
26627         Suggested by Eric Blake.
26628
26629         pread: improvement and fix
26630         * modules/pread (Depends-on): Depend on lseek, for portability to
26631         e.g., mingw.  Suggested by Eric Blake.
26632         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
26633
26634         unistd.in.h: correct declaration of pread
26635         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
26636         Reported by Richard W.M. Jones.
26637
26638         test-pread.sh: distribute the test script
26639         * modules/pread-tests (Files): Include test-pread.sh.
26640
26641         test-pread.sh: clean up
26642         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
26643         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
26644         That is unnecessary, since it's always ".".
26645         Suggestion from Eric Blake.
26646
26647         test-pread.sh: make executable
26648         * tests/test-pread.sh: Set executable bit.
26649         Reported by Eric Blake.
26650
26651         correct typo in test-pread.sh
26652         * tests/test-pread.sh: Add #! line.
26653
26654         test pread
26655         * tests/test-pread.c: New file.
26656         * tests/test-pread.sh: Likewise.
26657         * modules/pread-tests: Likewise.
26658
26659         pread: new module
26660         * modules/pread: New file.
26661         * lib/unistd.in.h (pread): Define/declare.
26662         * lib/pread.c (pread): New file.
26663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
26664         * modules/unistd (Makefile.am): Substitute witnesses.
26665         * doc/posix-functions/pread.texi (pread): Update.
26666         * MODULES.html.sh: Add pread.
26667
26668 2009-11-25  Jim Meyering  <meyering@redhat.com>
26669
26670         tests/init.sh: new file to be used via most *.sh tests
26671         * tests/init.sh: New file.
26672
26673 2009-11-25  Eric Blake  <ebb9@byu.net>
26674
26675         utimens: work around older Linux failure with symlinks
26676         * lib/utimens.c (lutimensat_works_really): New variable.
26677         (fdutimens, lutimens): Use it to manage kernels that support
26678         nanosecond times on files, but not on symlinks.
26679         Reported by OndÅ™ej Vašík.
26680
26681         utimes: fix configure grammar
26682         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
26683
26684 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
26685
26686         regex: Fix fastmap for multibyte character ranges.
26687         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
26688         characters when a multibyte character range is included.
26689
26690 2009-11-22  Andy Wingo  <wingo@pobox.com>
26691
26692         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
26693         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
26694
26695 2009-11-24  Bruno Haible  <bruno@clisp.org>
26696
26697         doc: Most *_l functions exist in MacOS X 10.5.
26698         * doc/posix-functions/duplocale.texi: Update platforms list.
26699         * doc/posix-functions/freelocale.texi: Likewise.
26700         * doc/posix-functions/newlocale.texi: Likewise.
26701         * doc/posix-functions/uselocale.texi: Likewise.
26702         * doc/posix-functions/isalnum_l.texi: Likewise.
26703         * doc/posix-functions/isalpha_l.texi: Likewise.
26704         * doc/posix-functions/isblank_l.texi: Likewise.
26705         * doc/posix-functions/iscntrl_l.texi: Likewise.
26706         * doc/posix-functions/isdigit_l.texi: Likewise.
26707         * doc/posix-functions/isgraph_l.texi: Likewise.
26708         * doc/posix-functions/islower_l.texi: Likewise.
26709         * doc/posix-functions/isprint_l.texi: Likewise.
26710         * doc/posix-functions/ispunct_l.texi: Likewise.
26711         * doc/posix-functions/isspace_l.texi: Likewise.
26712         * doc/posix-functions/isupper_l.texi: Likewise.
26713         * doc/posix-functions/iswalnum_l.texi: Likewise.
26714         * doc/posix-functions/iswalpha_l.texi: Likewise.
26715         * doc/posix-functions/iswblank_l.texi: Likewise.
26716         * doc/posix-functions/iswcntrl_l.texi: Likewise.
26717         * doc/posix-functions/iswctype_l.texi: Likewise.
26718         * doc/posix-functions/iswdigit_l.texi: Likewise.
26719         * doc/posix-functions/iswgraph_l.texi: Likewise.
26720         * doc/posix-functions/iswlower_l.texi: Likewise.
26721         * doc/posix-functions/iswprint_l.texi: Likewise.
26722         * doc/posix-functions/iswpunct_l.texi: Likewise.
26723         * doc/posix-functions/iswspace_l.texi: Likewise.
26724         * doc/posix-functions/iswupper_l.texi: Likewise.
26725         * doc/posix-functions/iswxdigit_l.texi: Likewise.
26726         * doc/posix-functions/isxdigit_l.texi: Likewise.
26727         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
26728         * doc/posix-functions/strcasecmp_l.texi: Likewise.
26729         * doc/posix-functions/strcoll_l.texi: Likewise.
26730         * doc/posix-functions/strfmon_l.texi: Likewise.
26731         * doc/posix-functions/strftime_l.texi: Likewise.
26732         * doc/posix-functions/strncasecmp_l.texi: Likewise.
26733         * doc/posix-functions/strxfrm_l.texi: Likewise.
26734         * doc/posix-functions/tolower_l.texi: Likewise.
26735         * doc/posix-functions/toupper_l.texi: Likewise.
26736         * doc/posix-functions/towctrans_l.texi: Likewise.
26737         * doc/posix-functions/towlower_l.texi: Likewise.
26738         * doc/posix-functions/towupper_l.texi: Likewise.
26739         * doc/posix-functions/wcscoll_l.texi: Likewise.
26740         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
26741         * doc/posix-functions/wctrans_l.texi: Likewise.
26742         * doc/posix-functions/wctype_l.texi: Likewise.
26743         * doc/glibc-functions/strptime_l.texi: Likewise.
26744         * doc/glibc-functions/strtod_l.texi: Likewise.
26745         * doc/glibc-functions/strtof_l.texi: Likewise.
26746         * doc/glibc-functions/strtol_l.texi: Likewise.
26747         * doc/glibc-functions/strtold_l.texi: Likewise.
26748         * doc/glibc-functions/strtoll_l.texi: Likewise.
26749         * doc/glibc-functions/strtoul_l.texi: Likewise.
26750         * doc/glibc-functions/strtoull_l.texi: Likewise.
26751         * doc/glibc-functions/wcsftime_l.texi: Likewise.
26752         * doc/glibc-functions/wcstod_l.texi: Likewise.
26753         * doc/glibc-functions/wcstof_l.texi: Likewise.
26754         * doc/glibc-functions/wcstol_l.texi: Likewise.
26755         * doc/glibc-functions/wcstold_l.texi: Likewise.
26756         * doc/glibc-functions/wcstoll_l.texi: Likewise.
26757         * doc/glibc-functions/wcstoul_l.texi: Likewise.
26758         * doc/glibc-functions/wcstoull_l.texi: Likewise.
26759
26760 2009-11-24  Bruno Haible  <bruno@clisp.org>
26761
26762         duplocale: Fix logic bug.
26763         * lib/duplocale.c: Don't include <langinfo.h>.
26764         (_NL_LOCALE_NAME): Remove macro.
26765         (rpl_duplocale): Use setlocale instead of nl_langinfo.
26766         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
26767
26768 2009-11-23  Jim Meyering  <meyering@redhat.com>
26769
26770         test-update-copyright: don't hard-code /usr/bin/perl
26771         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
26772         perl to print the current year.  Gilles Espinasse reported that
26773         the replaced use of perl was hard-coded as /usr/bin/perl.
26774
26775 2009-11-23  Bruno Haible  <bruno@clisp.org>
26776
26777         duplocale: Add support for glibc 2.3.x.
26778         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
26779
26780 2009-11-22  Bruno Haible  <bruno@clisp.org>
26781
26782         vasnprintf: Tiny optimization.
26783         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
26784         MacOS X.
26785
26786 2009-11-22  Bruno Haible  <bruno@clisp.org>
26787
26788         Tests for module 'duplocale'.
26789         * modules/duplocale-tests: New file.
26790         * tests/test-duplocale.c: New file.
26791
26792         New module 'duplocale'.
26793         * m4/duplocale.m4: New file.
26794         * lib/locale.in.h (duplocale): New declaration.
26795         * lib/duplocale.c: New file.
26796         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
26797         gl_LOCALE_H_DEFAULTS): New macros.
26798         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
26799         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
26800         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
26801         REPLACE_DUPLOCALE.
26802         * modules/duplocale: New file.
26803         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
26804
26805 2009-11-22  Bruno Haible  <bruno@clisp.org>
26806
26807         * modules/locale-tests (configure.ac): Test for newlocale function.
26808         * tests/test-locale.c: When the system has extended locale functions,
26809         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
26810
26811         locale: Make locale_t available when possible.
26812         * lib/locale.in.h: Include <xlocale.h> when it exists.
26813         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
26814         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
26815         * modules/locale (Depends-on): Add extensions.
26816         (Makefile.am): Also substitute HAVE_XLOCALE_H.
26817         * doc/posix-headers/locale.texi: Document the problem with locale_t.
26818
26819 2009-11-22  Bruno Haible  <bruno@clisp.org>
26820
26821         Add comments.
26822         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
26823         invocation.
26824         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
26825         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26826         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26827
26828 2009-11-22  Bruno Haible  <bruno@clisp.org>
26829
26830         error: account for the possibility of freopen (stdout).
26831         * lib/error.c: Include <unistd.h>.
26832         (flush_stdout): New function, extracted from error and error_at_line.
26833         Determine stdout's fd dynamically.
26834         (error, error_at_line): Invoke flush_stdout.
26835         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
26836         * modules/error (Depends-on): Add unistd.
26837
26838 2009-11-22  Bruno Haible  <bruno@clisp.org>
26839
26840         diffseq: Add comment.
26841         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
26842
26843 2009-11-22  Jim Meyering  <meyering@redhat.com>
26844
26845         c-stack: avoid defining an unused static function
26846         * lib/c-stack.c (find_stack_direction): Do not define this function
26847         when it will not be used.
26848
26849         diffseq: avoid spurious gcc warnings
26850         * lib/diffseq.h (IF_LINT2): Define.
26851         (compareseq): Use it to initialize two members of "part".
26852         This avoids two used-uninitialized warnings.
26853
26854 2009-11-21  Jim Meyering  <meyering@redhat.com>
26855
26856         c-stack: avoid "ignoring return value of `write'" warning
26857         * lib/c-stack.c: Include "ignore-value.h".
26858         (die): Explicitly ignore each write return value.
26859         * modules/c-stack (Depends-on): Add ignore-value.
26860
26861 2009-11-21  Bruno Haible  <bruno@clisp.org>
26862
26863         diffseq: reduce scope of variable 'best'.
26864         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
26865         variable, earlier used for two different purposes.
26866
26867 2009-11-21  Jim Meyering  <meyering@redhat.com>
26868
26869         diffseq: remove useless assignment to "best"
26870         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
26871         assignment.  At that point "best" is already guaranteed to be zero.
26872
26873 2009-11-20  Eric Blake  <ebb9@byu.net>
26874
26875         build: mention ftp redirector in release announcements
26876         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
26877         values that used to come from cfg.mk; mention FTP redirect URL.
26878         * build-aux/announce-gen: Mention the mirror list.
26879         Suggested by Karl Berry.
26880
26881         nanosleep: improve port to mingw
26882         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
26883         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
26884         LIB_NANOSLEEP, but only when needed.
26885         * modules/select (Link): Document LIBSOCKET.
26886         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
26887         enough.
26888
26889         nanosleep: work around cygwin bug
26890         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
26891         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
26892         bug.
26893         (getnow): Delete, not needed.
26894         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
26895         LIB_CLOCK_GETTIME.
26896         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
26897         clock-time, gettime.
26898         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
26899         bug.
26900         * modules/nanosleep-tests: New test.
26901         * tests/test-nanosleep.c: New file.
26902
26903         sleep: work around cygwin bug
26904         * lib/sleep.c (rpl_sleep): Work around the bug.
26905         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
26906         (gl_PREREQ_SLEEP): Delete unused macro.
26907         * modules/sleep (Depends-on): Add verify.
26908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
26909         * modules/unistd (Makefile.am): Substitute witness.
26910         * lib/unistd.in.h (sleep): Update prototype.
26911         * doc/posix-functions/sleep.texi (sleep): Document the bug.
26912         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
26913         * modules/sleep-tests (Depends-on): Check for alarm.
26914
26915 2009-11-20  Jim Meyering  <meyering@redhat.com>
26916
26917         maint.mk: improve sc_prohibit_magic_number_exit
26918         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
26919         so it does not match uses like System.exit(1).
26920         Add comments showing how to correct all offenders.
26921
26922 2009-11-19  Eric Blake  <ebb9@byu.net>
26923
26924         xalloc-die-tests: add missing library
26925         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
26926
26927         test-xvasprintf: silence compiler warnings
26928         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
26929         empty string from gcc.
26930
26931 2009-11-19  Jim Meyering  <meyering@redhat.com>
26932
26933         xfreopen: new module, from coreutils
26934         * modules/xfreopen: New module.
26935         * lib/xfreopen.c: New file.
26936         * lib/xfreopen.h: New file.
26937         * MODULES.html.sh (File stream based Input/Output"): Add it.
26938
26939 2009-11-19  Eric Blake  <ebb9@byu.net>
26940
26941         manywarnings: depend on warnings
26942         * modules/manywarnings (Depends-on): Add warnings.
26943
26944         build: avoid compiler warnings
26945         * lib/select.c (rpl_select): Delete unused variable.
26946         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
26947
26948 2009-11-18  Eric Blake  <ebb9@byu.net>
26949
26950         tests: avoid false negative with --with-packager
26951         * tests/test-version-etc.sh: Discard packager information.
26952         * tests/test-argp-version-etc-1.sh: Likewise.
26953         Reported by Mike Frysinger.
26954
26955         utimens: fix regression on Solaris
26956         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
26957         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
26958         can only change fd timestamps via futimesat.  Instead, use an
26959         additional witness macro to avoid BSD bug.
26960         Reported by Jim Meyering.
26961
26962 2009-11-17  Eric Blake  <ebb9@byu.net>
26963
26964         usleep: use it to simplify tests
26965         * modules/stat-time-tests (Depends-on): Add usleep.
26966         (configure.ac): Drop usleep check.
26967         * modules/chown-tests (Depends-on, configure.ac): Likewise.
26968         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
26969         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
26970         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
26971         * modules/openat-tests (Depends-on, configure.ac): Likewise.
26972         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
26973         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
26974         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
26975         Likewise.
26976         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
26977         * tests/test-lchown.h (nap): Likewise.
26978         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
26979         * tests/test-stat-time.c (nap): Likewise.
26980         * tests/test-utimens-common.h (nap): Update comments.
26981
26982         usleep: new module
26983         * modules/usleep: New file.
26984         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
26985         * lib/usleep.c (usleep): Likewise.
26986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
26987         * modules/unistd (Makefile.am): Substitute witnesses.
26988         * lib/unistd.in.h (usleep): Add declaration.
26989         * doc/pastposix-functions/usleep.texi (usleep): Document this.
26990         * MODULES.html.sh (Date and time): Likewise.
26991         * modules/usleep-tests (Depends-on): New test.
26992         * tests/test-usleep.c: New file.
26993
26994         chown: work around OpenBSD bug
26995         * lib/chown.c (rpl_chown): Work around the bug.
26996         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
26997         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
26998         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
26999         * modules/chown (Depends-on): Add stdbool.
27000         * modules/lchown (Depends-on): Likewise.
27001         * doc/posix-functions/chown.texi (chown): Document the bug.
27002         * doc/posix-functions/lchown.texi (lchown): Likewise.
27003         * tests/test-lchown.h (test_chown): Relax test.
27004
27005         mkstemp: avoid conflict with C++ keyword template
27006         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
27007         * lib/mkostemp.c (mkostemp): Likewise.
27008         * lib/mkostemps.c (mkostemps): Likewise.
27009         * lib/mkstemp.c (mkstemp): Likewise.
27010         * lib/mkstemps.c (mkstemps): Likewise.
27011
27012         xalloc-die-tests: optimize
27013         * tests/test-xalloc-die.sh: Reduce number of processes.
27014
27015 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27016
27017         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
27018         patch from ludo@gnu.org (Ludovic Courtès).
27019
27020 2009-11-17  Jim Meyering  <meyering@redhat.com>
27021
27022         version-etc: use proper license string
27023         * modules/version-etc (License): Use LGPL, not LGPLv3+.
27024         * modules/version-etc-fsf: Likewise.
27025
27026 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27027
27028         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
27029         printed to stdout.  Deal with EOL differences.
27030
27031 2009-11-17  Eric Blake  <ebb9@byu.net>
27032
27033         unsetenv: work around Solaris bug
27034         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
27035         * lib/unsetenv.c (rpl_unsetenv): Work around it.
27036         Reported by Jim Meyering.
27037
27038         vasnprintf: avoid compiler warnings
27039         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
27040         variables.
27041         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
27042
27043 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27044
27045         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
27046         settings since xalloc-die is no longer the self test,
27047         xalloc-die.sh is.
27048
27049 2009-11-17  Jim Meyering  <meyering@redhat.com>
27050
27051         test-xalloc-die.sh: make the code agree with the commit log
27052         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
27053         at the end, just in case you happen to have a test-xalloc-die
27054         program in some other PATH directory.
27055
27056         test-xalloc-die.sh: fix a portability bug
27057         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
27058         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
27059         Otherwise, argv[0] (as often seen in diagnostics) would be too
27060         system-dependent, sometimes with, and sometimes without the leading "./".
27061
27062         version-etc-fsf: relax license to LGPLv3+
27063         * modules/version-etc-fsf (License): Relax license.
27064
27065 2009-11-16  Eric Blake  <ebb9@byu.net>
27066
27067         xalloc-die-tests: avoid printing null pointer
27068         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
27069         shell script.
27070         * tests/test-xalloc-die.c (program_name): Declare.
27071         * tests/test-xalloc-die.sh (tmpfiles): New file.
27072
27073         setenv, unsetenv: work around various bugs
27074         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
27075         (setenv) [HAVE_SETENV]: Work around bugs.
27076         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
27077         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
27078         for bugs.
27079         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
27080         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
27081         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
27082         * modules/stdlib (Makefile.am): Update substitutions.
27083         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
27084         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
27085         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27086         * modules/setenv-tests: New test.
27087         * modules/unsetenv-tests: Likewise.
27088         * tests/test-setenv.c: New file.
27089         * tests/test-unsetenv.c: Likewise.
27090
27091 2009-11-16  Jim Meyering  <meyering@redhat.com>
27092
27093         version-etc: relax license to LGPLv3+
27094         * modules/version-etc (License): Relax license.
27095
27096         better AC_REQUIRE expanded-before-required-warning avoidance
27097         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
27098         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
27099         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
27100         which is no longer needed.
27101
27102 2009-11-16  Eric Blake  <ebb9@byu.net>
27103
27104         test-freading: clean up temporary file
27105         * tests/test-freading.c (main): Remove file on success, and use
27106         ASSERT more liberally.
27107         Reported by Jim Meyering.
27108
27109 2009-11-16  Jim Meyering  <meyering@redhat.com>
27110
27111         avoid new AC_REQUIRE expanded-before-required warnings
27112         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
27113         merely using it.
27114         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
27115         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
27116
27117 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27118
27119         * tests/test-xalloc-die.c: New file.
27120         * modules/xalloc-die-tests: New file.
27121         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
27122         XFAIL_TESTS so it can be appended by modules.
27123
27124 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27125
27126         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
27127         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
27128
27129 2009-11-14  Eric Blake  <ebb9@byu.net>
27130
27131         fnmatch: avoid compiler warning
27132         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
27133         to silence compiler warning about mismatch signedness in ?:.
27134         Reported by Robert Millan.
27135
27136         intprops: add double-inclusion guard
27137         * lib/intprops.h: Allow idempotent includes.
27138         Suggested by Bruce Korb.
27139
27140         openat: detect Solaris fchownat bug
27141         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
27142         penalizing glibc chownat when only lchownat is broken.
27143         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
27144         trailing slash bugs.
27145         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
27146         * modules/openat-tests (Files): Include more files.
27147         (Depends-on): Add mgetgroups, sleep, stat-time.
27148         (configure.ac): Add additional checks.
27149         (Makefile.am): Build new test.
27150         * tests/test-fchownat.c: New file.
27151
27152         lchown: detect Solaris and FreeBSD bug
27153         * lib/lchown.c (rpl_lchown): Work around bug.
27154         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
27155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27156         * modules/unistd (Makefile.am): Populate it.
27157         * lib/unistd.in.h (lchown): Update declaration.
27158         * doc/posix-functions/lchown.texi (lchown): Document the bug.
27159         * modules/lchown-tests: New file.
27160         * tests/test-lchown.h (test_lchown): Likewise.
27161         * tests/test-lchown.c (main): Likewise.
27162
27163         chown: detect Solaris and FreeBSD bug
27164         * lib/chown.c (rpl_chown): Work around bug.
27165         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
27166         (gl_PREREQ_CHOWN): Delete.
27167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27168         * modules/unistd (Makefile.am): Populate it.
27169         * lib/unistd.in.h (chown): Update declaration.
27170         * lib/lchown.c (chown): Update client.
27171         * modules/lchown (Depends-on): Add lstat.
27172         * doc/posix-functions/chown.texi (chown): Document the bug.
27173         * doc/posix-functions/getgroups.texi (getgroups): Document
27174         getgroups pitfall.
27175         * modules/chown-tests: New file.
27176         * tests/test-chown.h (test_chown): Likewise.
27177         * tests/test-chown.c (main): Likewise.
27178
27179 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
27180
27181         gnulib-tool: correctly detect absence of m4 directories
27182         * gnulib-tool: Avoid extra newline on data passed to wc -l.
27183
27184 2009-11-14  Jim Meyering  <meyering@redhat.com>
27185
27186         maint.mk: Prohibit inclusion of "xalloc.h" without use.
27187         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27188
27189 2009-11-14  John W. Eaton  <jwe@gnu.org>
27190
27191         strftime.h: wrap funtion declaration in extern "C" block
27192         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
27193
27194 2009-11-13  Eric Blake  <ebb9@byu.net>
27195
27196         getgroups: avoid compiler warning
27197         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
27198
27199         getgroups: work around FreeBSD bug
27200         * lib/getgroups.c (rpl_getgroups): Work around the bug.
27201         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
27202         * doc/posix-functions/getgroups.texi (getgroups): Document it.
27203         * tests/test-getgroups.c (main): Fix buffer overrun.
27204
27205         getgroups: avoid compilation failure
27206         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
27207         * modules/getgroups (Depends-on): Add stdint.
27208
27209 2009-11-13  Jim Meyering  <meyering@redhat.com>
27210
27211         test-getgroups: avoid compilation failure
27212         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
27213
27214 2009-11-13  Eric Blake  <ebb9@byu.net>
27215
27216         mgetgroups: new module, taken from coreutils
27217         * modules/mgetgroups: New file.
27218         * lib/mgetgroups.h: Likewise.
27219         * lib/mgetgroups.c (mgetgroups): Likewise.
27220         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
27221         * MODULES.html.sh (Users and groups): Mention it.
27222
27223         getgroups: don't expose GETGROUPS_T to user
27224         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
27225         an element at a time if GETGROUPS_T is wrong size.
27226         * lib/getugroups.h (getugroups): Change signature.
27227         * lib/unistd.in.h (getgroups): Likewise.
27228         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
27229         signature needs fixing.
27230         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
27231         AC_TYPE_GETGROUPS.
27232         * modules/group-member (Depends-on): Add getgroups.
27233         * lib/group-member.c (group_info, get_group_info): Use gid_t.
27234         (group_member): Rely on getgroups replacement.
27235         * lib/getugroups.c (getugroups): Use gid_t.
27236         * tests/test-getgroups.c (main): Likewise.
27237         * NEWS: Mention the signature change.
27238         * doc/posix-functions/getgroups.texi (getgroups): Mention the
27239         problem with signature.
27240         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
27241         GETGROUPS_T is still useful for setgroups.
27242
27243         getgroups, getugroups: provide stubs for mingw
27244         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
27245         * lib/getugroups.c (getugroups): Likewise.
27246         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
27247         function.  Modernize replacement scheme.
27248         (gl_PREREQ_GETGROUPS): Delete.
27249         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
27250         * modules/getgroups (configure.ac): Declare witness.
27251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27252         * modules/unistd (Depends-on): Substitute witness.
27253         * lib/unistd.in.h (getgroups): Declare replacement.
27254
27255         getgroups: avoid calling exit
27256         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
27257         drop xalloc.
27258         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
27259         dependencies.
27260         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
27261         exiting, in the rare case of malloc failure.
27262
27263         getgroups: fix logic error
27264         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
27265         has more than 20 groups.
27266         * modules/getgroups-tests: New test.
27267         * tests/test-getgroups.c: New file.
27268
27269 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27270
27271         * tests/test-base64.c: Improve.
27272
27273 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27274
27275         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
27276         Blake <ebb9@byu.net>.
27277
27278 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27279
27280         * tests/test-xvasprintf.c: Add %s%s related checks.
27281
27282 2009-11-12  Eric Blake  <ebb9@byu.net>
27283
27284         version-etc: match standards.texi style
27285         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
27286         and use <> only for URLs.
27287
27288 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
27289
27290         fts: do not fail on a submount during traversal
27291         * lib/fts.c (fts_build): Read the stat info again after opening
27292         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
27293         Original report at http://bugzilla.redhat.com/501848.
27294
27295 2009-11-12  Jim Meyering  <meyering@redhat.com>
27296
27297         bootstrap: sync from coreutils
27298         * build-aux/bootstrap (bootstrap_epilogue): New function.
27299         Use git_modules_config in one more place.  This make bootstrap's
27300         --gnulib-srcdir option more useful for testing.
27301
27302         bootstrap: generalize autoheader check
27303         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
27304         AC_CONFIG_HEADERS.
27305
27306 2009-11-11  Eric Blake  <ebb9@byu.net>
27307
27308         mkfifoat: use new modules for Solaris and BSD bugs
27309         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
27310         * lib/mkfifoat.c (mknodat): Split...
27311         * lib/mknodat.c (mknodat): ...into new file.
27312         * modules/mkfifoat (Files): Ship new file.
27313         (Depends-on): Add mkfifo, mknod.
27314         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
27315         (Depends-on): Add symlink.
27316         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
27317         redundant with test_mkfifo.h.
27318         (do_mkfifoat, do_mknodat): New helpers.
27319
27320         mknod: new module
27321         * modules/mknod: New file.
27322         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
27323         * lib/mknod.c (mknod): Likewise.
27324         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27325         defaults.
27326         * modules/sys_stat (Makefile.am): Substitute them.
27327         * lib/sys_stat.in.h (mknod): Declare replacement.
27328         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27329         Document it.
27330         * doc/posix-functions/mknod.texi (mknod): Likewise.
27331         * modules/mknod-tests: New test.
27332         * tests/test-mknod.c: Likewise.
27333
27334         mkfifo: new module
27335         * modules/mkfifo: New file.
27336         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27337         * lib/mkfifo.c (mkfifo): Likewise.
27338         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27339         defaults.
27340         * modules/sys_stat (Makefile.am): Substitute them.
27341         * lib/sys_stat.in.h (mkfifo): Declare replacement.
27342         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27343         Document it.
27344         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
27345         * modules/mkfifo-tests: New test.
27346         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
27347         from test-mkfifoat.c.
27348         * tests/test-mkfifo.c: New file.
27349
27350         readlink: detect FreeBSD bug
27351         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
27352         slash on symlink.
27353         * doc/posix-functions/readlink.texi (readlink): Document the bug.
27354         * tests/test-readlink.h (test_readlink): Enhance test.
27355
27356         symlink: detect FreeBSD bug
27357         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
27358         slash on symlink.
27359         * doc/posix-functions/symlink.texi (symlink): Document the bug.
27360         * tests/test-symlink.h (test_symlink): Enhance test.
27361
27362 2009-11-10  Eric Blake  <ebb9@byu.net>
27363
27364         link: detect FreeBSD bug
27365         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
27366         symlink.
27367         * doc/posix-functions/link.texi (link): Document the bug.
27368         * tests/test-link.h (test_link): Enhance test.
27369         * tests/test-linkat.c (main): Update caller.
27370
27371         unlink, remove: detect FreeBSD bug
27372         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
27373         slash on symlink.
27374         * doc/posix-functions/unlink.texi (unlink): Document the bug.
27375         * doc/posix-functions/remove.texi (remove): Likewise.
27376         * tests/test-unlink.h (test_unlink): Enhance test.
27377         * tests/test-remove.c (main): Likewise.
27378
27379 2009-11-09  Eric Blake  <ebb9@byu.net>
27380
27381         rename: detect FreeBSD bug
27382         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
27383         slash on symlink.
27384         * modules/renameat-tests (Depends-on): Add filenamecat.
27385         * tests/test-rename.h (test_rename): Allow one more errno.
27386         * tests/test-renameat.c (main): Likewise.
27387         * doc/posix-functions/rename.texi (rename): Document the bug.
27388
27389         open: detect FreeBSD bug
27390         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
27391         symlink.
27392         * doc/posix-functions/open.texi (open): Document the bug.
27393         * doc/posix-functions/utimes.texi (utimes): Likewise.
27394         * tests/test-open.h (test_open): Add parameters, and test symlink
27395         handling.
27396         * tests/test-open.c (main): Adjust caller.
27397         * tests/test-fcntl-safer.c (main): Likewise.
27398         * modules/open-tests (Depends-on): Add stdbool, symlink.
27399         * modules/fcntl-safer-tests (Depends-on): Likewise.
27400         * tests/test-openat.c (main): Add test-open tests.
27401
27402         stat: detect FreeBSD bug
27403         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
27404         symlink.
27405         * doc/posix-functions/stat.texi (stat): Document the bug.
27406         * tests/test-stat.h (test_stat_func): Add argument.
27407         * tests/test-stat.c (main): Adjust caller.
27408         * tests/test-fstatat.c (main): Likewise.
27409         * modules/stat-tests (Depends-on): Add stdbool, symlink.
27410         Reported by Jim Meyering.
27411
27412 2009-11-09  James Youngman  <jay@gnu.org>
27413
27414         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
27415         * lib/strftime.c: Correct placement of #include "ignore-value.h".
27416
27417 2009-11-08  Jim Meyering  <meyering@redhat.com>
27418
27419         utimens: remove invalid futimesat call
27420         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
27421         It used the file descriptor of the target file as the DIR_FD
27422         parameter and NULL as the file name.  That caused failure with
27423         errno == EFAULT on FreeBSD-8.0-rc2
27424
27425 2009-11-07  Eric Blake  <ebb9@byu.net>
27426
27427         fflush, freadseek: use fseeko, not fseek
27428         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
27429         (clear_ungetc_buffer): Avoid potential problems on large files.
27430         * lib/freadseek.c (freadseek): Likewise.
27431         * modules/freadseek (Depends-on): Add fseeko.
27432         * modules/fseek (configure.ac): Set a witness.
27433         * tests/test-fflush.c (main): Use fseeko.
27434         * tests/test-fpurge.c (fseek): Disable link warning.
27435         * tests/test-freadable.c (fseek): Likewise.
27436         * tests/test-freading.c (fseek): Likewise.
27437         * tests/test-fseeko.c (fseek): Likewise.
27438         * tests/test-ftell.c (fseek): Likewise.
27439         * tests/test-ftello.c (fseek): Likewise.
27440         * tests/test-fwritable.c (fseek): Likewise.
27441         * tests/test-fwriting.c (fseek): Likewise.
27442
27443 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27444
27445         * modules/memchr (Depends-on): Drop getpagesize dependency.
27446
27447 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27448
27449         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
27450         Reported by Ludovic Courtès.
27451         * build-aux/pmccabe2html: Improve example usage.
27452         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
27453
27454 2009-11-06  Jim Meyering  <meyering@redhat.com>
27455
27456         do-release-commit-and-tag: New module.
27457         Automate the release-commit and tag process.
27458         * build-aux/do-release-commit-and-tag: New script, from coreutils.
27459         * modules/do-release-commit-and-tag: New file.
27460         * MODULES.html.sh (Support for maintaining and releasing): Add it.
27461
27462 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27463
27464         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
27465         because test-select.c uses inet_pton.
27466
27467 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27468
27469         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
27470         GETADDRINFO_LIB.  Bump serial number.
27471         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
27472         Suggested by Eric Blake <ebb9@byu.net>.
27473
27474 2009-11-05  Eric Blake  <ebb9@byu.net>
27475
27476         strtod: detect darwin bug
27477         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
27478         Reported by Leo Davis.
27479
27480         freopen-safer: new module
27481         * modules/freopen-safer: New module.
27482         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
27483         * lib/freopen-safer.c (freopen_safer): New file.
27484         * lib/stdio-safer.h (freopen_safer): New declaration.
27485         * lib/stdio--.h (freopen): New override.
27486         * MODULES.html.sh (File stream based Input/Output): Mention it.
27487         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
27488         freopen-safer module.
27489         * doc/posix-functions/stderr.texi (stderr): Likewise.
27490         * doc/posix-functions/stdin.texi (stdin): Likewise.
27491         * doc/posix-functions/stdout.texi (stdout): Likewise.
27492         * modules/freopen-safer-tests: New test.
27493         * tests/test-reopen-safer.c: New file.
27494
27495 2009-11-05  Jim Meyering  <meyering@redhat.com>
27496
27497         maint.mk: Prohibit inclusion of "close-stream.h" without use.
27498         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27499
27500 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27501
27502         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
27503
27504 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27505
27506         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
27507
27508 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27509
27510         Fix link error.
27511         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27512         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27513
27514 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27515
27516         * tests/test-func.c: Also test value of __func__.
27517
27518 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27519
27520         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
27521         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
27522
27523 2009-11-05  Bruno Haible  <bruno@clisp.org>
27524
27525         Fix link error.
27526         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27527         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27528         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
27529
27530 2009-11-05  Bruno Haible  <bruno@clisp.org>
27531
27532         Tests for module 'inet_pton'.
27533         * modules/inet_pton-tests: New file.
27534         * tests/test-inet_pton.c: New file.
27535
27536 2009-11-05  Bruno Haible  <bruno@clisp.org>
27537
27538         Tests for module 'inet_ntop'.
27539         * modules/inet_ntop-tests: New file.
27540         * tests/test-inet_ntop.c: New file.
27541
27542 2009-11-04  Eric Blake  <ebb9@byu.net>
27543
27544         stdlib-safer: wrap all mkstemp variants
27545         * modules/mkostemp (configure.ac): Set witness.
27546         * modules/mkostemps (configure.ac): Likewise.
27547         * modules/mkstemps (configure.ac): Likewise.
27548         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
27549         (mkstemps_safer): Wrap more functions.
27550         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
27551         wrapping.
27552         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
27553         (mkstemps_safer): Implement the wrappers.
27554
27555         mkstemps, mkostemps: new modules
27556         * modules/mkostemps: New module.
27557         * modules/mkstemps: Likewise.
27558         * lib/mkostemps.c (mkostemps): New file.
27559         * lib/mkstemps.c (mkstemps): Likewise.
27560         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
27561         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
27562         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
27563         * modules/stdlib (Makefile.am): Substitute them.
27564         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
27565         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
27566         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27567         * doc/gnulib.texi (Glibc stdlib.h): Include them.
27568         * MODULES.html.sh (File system functions): Mention them.
27569
27570         tempname: resync from glibc
27571         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
27572         same values for __GT_FILE as glibc.  Abort even when assertions
27573         are disabled.
27574         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
27575         match its value otherwise.  Allow idempotent inclusion.
27576         * lib/mkdtemp.c (mkdtemp): Adjust caller.
27577         * lib/mkostemp.c (mkostemp): Likewise.
27578         * lib/mkstemp.c (mkstemp): Likewise.
27579         * lib/tmpfile.c (tmpfile): Likewise.
27580         * NEWS: Document this.
27581
27582         utimens: fix use of futimens on older Linux
27583         * lib/utimens.c (fdutimens): Use updated, rather than original,
27584         timespec to avoid bug in older Linux kernel.
27585         Reported by Simon Josefsson.
27586
27587 2009-11-04  Bruno Haible  <bruno@clisp.org>
27588
27589         Make num_processors more flexible and consistent.
27590         * lib/nproc.h (enum nproc_query): New type.
27591         (num_processors): Add a 'query' argument.
27592         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
27593         (num_processors): Add a 'query' argument. Test the value of the
27594         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
27595         mingw, count the number of CPUs available for the current process.
27596         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
27597         Check for sched_getaffinity and sched_getaffinity_np.
27598         * modules/nproc (Depends-on): Add c-ctype, extensions.
27599         * NEWS: Mention the change.
27600
27601 2009-11-03  Bruno Haible  <bruno@clisp.org>
27602
27603         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
27604
27605 2009-11-03  Jim Meyering  <meyering@redhat.com>
27606
27607         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
27608         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
27609         if it is defined.
27610
27611 2009-11-02  Eric Blake  <ebb9@byu.net>
27612
27613         mktime, timegm: share common declaration
27614         * lib/mktime-internal.h: New file.
27615         * lib/mktime.c: Use it rather than open-coding a declaration.
27616         * lib/timegm.c: Likewise.
27617         * modules/mktime (Files): Ship it.
27618         * modules/timegm (Files): Likewise.
27619         Suggested by Bruno Haible.
27620
27621         test-update-copyright: update test to match script changes
27622         * tests/test-update-copyright.sh: Avoid hard-coding perl
27623         location.  Don't update *.bak created by earlier runs.
27624
27625 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27626             Simon Josefsson  <simon@josefsson.org>
27627             Bruno Haible  <bruno@clisp.org>
27628
27629         Fix link error on Solaris 8.
27630         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
27631         also in libnsl. Define also INET_PTON_LIB.
27632         * modules/inet_pton (Link): New section.
27633
27634 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27635             Bruno Haible  <bruno@clisp.org>
27636
27637         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
27638         * modules/inet_ntop (Link): New section.
27639         Reported by Boyan Kasarov <bkasarov@gmail.com>.
27640
27641 2009-11-02  Eric Blake  <ebb9@byu.net>
27642
27643         maint: avoid compiler warnings in m4 macros
27644         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
27645         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
27646
27647 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27648
27649         * m4/pmccabe2html.m4: Remove file.
27650         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
27651         function.  Change maintainer.
27652         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
27653         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
27654         Courtès).
27655
27656 2009-10-31  Eric Blake  <ebb9@byu.net>
27657
27658         fseeko: fix m4 regression
27659         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
27660         regression from 2009-10-27.
27661         Reported by Ralf Wildenhues.
27662
27663 2009-10-31  Jim Meyering  <meyering@redhat.com>
27664
27665         inttostr: aesthetics and improved (compile-time) safety
27666         Define inttype_is_signed rather than inttype_is_unsigned,
27667         since the sole use is via "#if inttype_is_signed".
27668         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
27669         inttype_is_unsigned.
27670         * lib/offtostr.c (inttype_is_signed): Likewise.
27671         * lib/uinttostr.c (inttype_is_signed): Likewise.
27672         * lib/umaxtostr.c (inttype_is_signed): Likewise.
27673         * lib/inttostr.c (inttostr): Use verify to cross-check the
27674         inttype_is_signed value and the signedness of the actual type.
27675         * modules/inttostr (Depends-on): Add verify.
27676
27677 2009-10-30  Eric Blake  <ebb9@byu.net>
27678
27679         build: avoid compiler warnings
27680         * lib/fchmodat.c (lchmod): Mark unused variables.
27681         * lib/getopt.c (_getopt_initialize): Likewise.
27682         * lib/mktime.c (__mktime_internal): Provide prototype.
27683         * lib/inttostr.c (inttostr): Avoid compiler warning even with
27684         older gcc that do not understand #pragma GCC diagnostic.
27685         * lib/uinttostr.c (inttype_is_unsigned): Define.
27686         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
27687
27688 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
27689
27690         stat: fix compilation on AIX
27691         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
27692         only see struct stat64.
27693
27694 2009-10-30  Eric Blake  <ebb9@byu.net>
27695
27696         exclude: make more robust
27697         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
27698         rather than masking a coding bug.
27699         Suggested by Bruno Haible.
27700
27701 2009-10-30  Jim Meyering  <meyering@redhat.com>
27702
27703         perl scripts: remove #!/usr/bin/perl in favor of more portable...
27704         Rather than putting #!/usr/bin/perl on the first line,
27705         start with a variant of what's recommended by "man perlrun" that
27706         invokes the first "perl" program from your shell's search path.
27707         * build-aux/gitlog-to-changelog: Replace #!... as above.
27708         Add a "Local Variables" perl mode setting.
27709         Prompted by a patch from Ludovic Courtès.
27710         Improved by Eric Blake.
27711         * build-aux/useless-if-before-free: Likewise.
27712         * build-aux/announce-gen: Likewise.
27713         * build-aux/update-copyright: Likewise.
27714
27715 2009-10-29  Eric Blake  <ebb9@byu.net>
27716
27717         filenamecat-lgpl: adjust clients
27718         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
27719         filenamecat.
27720         * modules/renameat (Depends-on): Likewise.
27721
27722         filenamecat: split into filenamecat-lgpl
27723         * modules/filenamecat-lgpl: New module.
27724         * modules/filenamecat (Files): Move library-safe files into
27725         filenamecat-lgpl.
27726         (Depends-on): Add filenamecat-lgpl.
27727         (configure.ac): Declare witness.
27728         * lib/filenamecat.h (file_name_concat): Only declare when using
27729         GPL module.
27730         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
27731         Move...
27732         * lib/filenamecat-lgpl.c: ...into new file.
27733         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
27734         (gl_FILE_NAME_CONCAT): Use it.
27735         * MODULES.html.sh (File system functions): Mention new module.
27736
27737         argp: avoid memory leak
27738         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
27739         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
27740         base_name, since the latter malloc()s and can call exit().
27741         Leak introduced 2006-07-03.
27742
27743         dirname-lgpl: adjust clients that don't need full dirname
27744         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
27745         * modules/filenamecat (Depends-on): Likewise.
27746         * modules/linkat (Depends-on): Likewise.
27747         * modules/mkancesdirs (Depends-on): Likewise.
27748         * modules/mkdir (Depends-on): Likewise.
27749         * modules/openat (Depends-on): Likewise.
27750         * modules/savewd (Depends-on): Likewise.
27751         * modules/rename (Depends-on): Likewise.
27752         (License): Relax license.
27753         * modules/mkdir-tests (Depends-on): Drop progname.
27754         (Makefile.am): Delete unneeded LDADD.
27755         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
27756
27757         dirname: split into dirname-lgpl
27758         * modules/dirname-lgpl: New module.
27759         * modules/dirname (Files): Move library-safe files into
27760         dirname-lgpl.
27761         (Depends-on): Add dirname-lgpl.
27762         (configure.ac): Declare witness.
27763         * modules/double-slash-root (License): Relax license.
27764         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
27765         module.
27766         * lib/dirname.c (dir_len, mdir_name): Move...
27767         * lib/dirname-lgpl.c: ...into new file.
27768         * lib/basename.c (last_component, base_len): Move...
27769         * lib/basename-lgpl.c: ...into new file.
27770         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
27771         (gl_DIRNAME): Use it.
27772         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
27773         Mention new module.
27774         * modules/dirname-tests (Depends-on): Add progname.
27775         * tests/test-dirname.c (program_name): Delete.
27776
27777         mkdir: make safe for libraries
27778         * modules/mkdir (Depends-on): Drop xalloc.
27779         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
27780         exit.
27781
27782         tests: avoid some compiler warnings
27783         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
27784         literals.
27785         * tests/test-memchr.c (main): Avoid type mismatch.
27786         * tests/test-arpa_inet.c (main): Avoid unused parameters.
27787         * tests/test-base64.c (main): Likewise.
27788         * tests/test-getdelim.c (main): Likewise.
27789         * tests/test-gethostname.c (main): Likewise.
27790         * tests/test-getline.c (main): Likewise.
27791         * tests/test-netinet_in.c (main): Likewise.
27792         * tests/test-select.c (open_server_socket, main): Likewise.
27793         * tests/test-select-stdin.c (main): Likewise.
27794         * tests/test-sockets.c (main): Likewise.
27795         * tests/test-strsignal.c (main): Likewise.
27796         * tests/test-sys_select.c (main): Likewise.
27797         * tests/test-sys_socket.c (main): Likewise.
27798         * tests/test-u64.c (main): Likewise.
27799         * tests/test-xfprintf-posix.c (main): Likewise.
27800         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
27801
27802         sockets: avoid compiler warning
27803         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
27804
27805         maint: detect usage(1) and other suspicious exits
27806         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
27807
27808 2009-10-29  Jim Meyering  <meyering@redhat.com>
27809
27810         timespec: long-to-int truncation could make timespec_cmp malfunction
27811         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
27812         a multiple of 2^32 nanoseconds as no difference.
27813
27814 2009-10-28  Jim Meyering  <meyering@redhat.com>
27815
27816         fprintftime: wrap macro code argument in "do {...} while(0)"
27817         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
27818         cpy macro must be a statement that can be followed by a semicolon.
27819         Now that the else clause contains a comment and is hence longer
27820         than one line, I require curly braces.  That in turn requires
27821         that we wrap this code block in the standard do...while(0).
27822
27823         fprintftime: remove stray semicolon from previous change
27824         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
27825
27826         fprintftime: avoid a warning about ignored fwrite return value
27827         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
27828         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
27829         that is unsafe.
27830         * modules/fprintftime (Depends-on): Add ignore-value.
27831
27832         exclude: avoid an unwarranted warning
27833         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
27834
27835 2009-10-27  Eric Blake  <ebb9@byu.net>
27836
27837         fseek: avoid compilation failure when fflush is replaced
27838         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
27839         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
27840         module is in use.
27841         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
27842         module is not in use; since REPLACE_FSEEK worked otherwise.
27843         (GNULIB_FTELLO): Likewise for ftell.
27844         Reported by Ian Beckwith and others.
27845
27846 2009-10-27  Bruno Haible  <bruno@clisp.org>
27847
27848         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
27849         Reported by Jim Meyering.
27850
27851 2009-10-27  Jim Meyering  <jim@meyering.net>
27852             Bruno Haible  <bruno@clisp.org>
27853
27854         Avoid warning despite dropping the return value of fwrite.
27855         * lib/unicodeio.c: Include ignore-value.h.
27856         (fwrite_success_callback): Explicitly ignore fwrite's return value.
27857         * modules/unicodeio (Depends-on): Add ignore-value.
27858
27859 2009-10-26  Eric Blake  <ebb9@byu.net>
27860
27861         areadlinkat: fix fallback path
27862         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
27863         pointer and zero.
27864
27865 2009-10-22  Pádraig Brady  <P@draigBrady.com>
27866
27867         Use a better IO block size for modern systems
27868         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
27869         * lib/md2.c: Likewise.
27870         * lib/md4.c: Likewise.
27871         * lib/md5.c: Likewise.
27872         * lib/sha1.c: Likewise.
27873         * lib/sha256.c: Likewise.
27874         * lib/sha512.c: Likewise.
27875
27876 2009-10-22  Eric Blake  <ebb9@byu.net>
27877
27878         tests: avoid several compiler warnings
27879         * tests/test-getcwd.c (main): Avoid buffer underflow.
27880         * tests/test-getdate.c (main): String literals are not safe with
27881         putenv, so use setenv.  Declare unused argument.
27882         * modules/getdate-tests (Depends-on): Add setenv.
27883         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
27884         problems with string literals in char *.
27885         * tests/test-hash.c (main): Avoid shadowing declaration.
27886         (insert_new): Treat string literals as char const *.
27887         * tests/test-getopt.h (test_getopt): Likewise.
27888         (getopt_loop): Alter types to minimize casting elsewhere.
27889         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
27890         (test_getopt_long_posix): Likewise.
27891         (do_getopt_long): Add wrapper to minimize casting.
27892         * tests/test-atexit.c (clear_temp_file): Use void.
27893         * tests/test-areadlink-with-size.c (main): Declare unused
27894         arguments.
27895         * tests/test-areadlink.c (main): Likewise.
27896         * tests/test-areadlinkat-with-size.c (main): Likewise.
27897         * tests/test-areadlinkat.c (main): Likewise.
27898         * tests/test-canonicalize-lgpl.c (main): Likewise.
27899         * tests/test-canonicalize.c (main): Likewise.
27900         * tests/test-dirent-safer.c (main): Likewise.
27901         * tests/test-dirname.c (main): Likewise.
27902         * tests/test-dup2.c (main): Likewise.
27903         * tests/test-fchdir.c (main): Likewise.
27904         * tests/test-fcntl-h.c (main): Likewise.
27905         * tests/test-fcntl-safer.c (main): Likewise.
27906         * tests/test-fdopendir.c (main): Likewise.
27907         * tests/test-fdutimensat.c (main): Likewise.
27908         * tests/test-fflush.c (main): Likewise.
27909         * tests/test-filenamecat.c (main): Likewise.
27910         * tests/test-filevercmp.c (main): Likewise.
27911         * tests/test-fopen-safer.c (main): Likewise.
27912         * tests/test-fopen.c (main): Likewise.
27913         * tests/test-fpending.c (main): Likewise.
27914         * tests/test-fpurge.c (main): Likewise.
27915         * tests/test-freading.c (main): Likewise.
27916         * tests/test-fstatat.c (main): Likewise.
27917         * tests/test-fsync.c (main): Likewise.
27918         * tests/test-futimens.c (main): Likewise.
27919         * tests/test-getndelim2.c (main): Likewise.
27920         * tests/test-gettimeofday.c (main): Likewise.
27921         * tests/test-getopt.c (main): Likewise.
27922         * tests/test-i-ring.c (main): Likewise.
27923         * tests/test-inttypes.c (main): Likewise.
27924         * tests/test-link.c (main): Likewise.
27925         * tests/test-lstat.c (main): Likewise.
27926         * tests/test-math.c (main): Likewise.
27927         * tests/test-md5.c (main): Likewise.
27928         * tests/test-memchr2.c (main): Likewise.
27929         * tests/test-memrchr.c (main): Likewise.
27930         * tests/test-mkdir.c (main): Likewise.
27931         * tests/test-mkdirat.c (main): Likewise.
27932         * tests/test-mkfifoat.c (main): Likewise.
27933         * tests/test-open.c (main): Likewise.
27934         * tests/test-openat-safer.c (main): Likewise.
27935         * tests/test-openat.c (main): Likewise.
27936         * tests/test-quotearg.c (main): Likewise.
27937         * tests/test-rawmemchr.c (main): Likewise.
27938         * tests/test-readlink.c (main): Likewise.
27939         * tests/test-remove.c (main): Likewise.
27940         * tests/test-rename.c (main): Likewise.
27941         * tests/test-renameat.c (main): Likewise.
27942         * tests/test-rmdir.c (main): Likewise.
27943         * tests/test-sha1.c (main): Likewise.
27944         * tests/test-signal.c (main): Likewise.
27945         * tests/test-sigaction.c (main): Likewise.
27946         * tests/test-stat.c (main): Likewise.
27947         * tests/test-stat-time.c (main): Likewise.
27948         * tests/test-stddef.c (main): Likewise.
27949         * tests/test-stdint.c (main): Likewise.
27950         * tests/test-stdio.c (main): Likewise.
27951         * tests/test-stdlib.c (main): Likewise.
27952         * tests/test-strchrnul.c (main): Likewise.
27953         * tests/test-strerror.c (main): Likewise.
27954         * tests/test-string.c (main): Likewise.
27955         * tests/test-strtod.c (main): Likewise.
27956         * tests/test-strverscmp.c (main): Likewise.
27957         * tests/test-symlink.c (main): Likewise.
27958         * tests/test-symlinkat.c (main): Likewise.
27959         * tests/test-sys_stat.c (main): Likewise.
27960         * tests/test-sys_time.c (main): Likewise.
27961         * tests/test-time.c (main): Likewise.
27962         * tests/test-unistd.c (main): Likewise.
27963         * tests/test-unlink.c (main): Likewise.
27964         * tests/test-unlinkat.c (main): Likewise.
27965         * tests/test-utimens.c (main): Likewise.
27966         * tests/test-utimensat.c (main): Likewise.
27967         * tests/test-version-etc.c (main): Likewise.
27968         * tests/test-wchar.c (main): Likewise.
27969         * tests/test-wctype.c (main): Likewise.
27970         * tests/test-xprintf-posix.c (main): Likewise.
27971         * tests/test-posixtm.c (main): Likewise.
27972         (STREQ): Delete unused macro.
27973         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
27974         shadowed variables.
27975         * tests/test-memchr.c (main): Likewise.
27976
27977 2009-10-21  Eric Blake  <ebb9@byu.net>
27978
27979         areadlinkat: avoid failure on older glibc
27980         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
27981         rather than mis-comparing 0 against FUNC_RESULT of char*.
27982
27983 2009-10-21  Bruno Haible  <bruno@clisp.org>
27984
27985         * modules/stpncpy (License): Relicense under LGPLv2+.
27986         Reported by David Lutterkort <lutter@redhat.com>.
27987
27988 2009-10-20  Eric Blake  <ebb9@byu.net>
27989
27990         utimensat: work around Solaris 9 bug
27991         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
27992         has trailing slash bugs.
27993         * tests/test-lutimens.h (test_lutimens): Enhance test.
27994         * tests/test-utimens.h (test_utimens): Likewise.
27995         * doc/posix-functions/utime.texi (utime): Enhance documentation.
27996         * doc/posix-functions/utimes.texi (utimes): Likewise.
27997         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27998         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
27999         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
28000         * doc/posix-functions/futimens.texi (futimens): Likewise.
28001
28002         fdutimensat: new module
28003         * modules/fdutimensat: New file.
28004         * lib/fdutimensat.c (fdutimensat): Likewise.
28005         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
28006         * MODULES.html.sh (File system functions): Mention module.
28007         * modules/fdutimensat-tests: New test.
28008         * tests/test-fdutimensat.c: Likewise.
28009
28010         doc: regenerate INSTALL
28011         * doc/INSTALL: Reflect recent autoconf update.
28012         * doc/INSTALL.ISO: Likewise.
28013         * doc/INSTALL.UTF-8: Likewise.
28014
28015 2009-10-20  Pádraig Brady  <P@draigBrady.com>
28016
28017         acl: warn if ACL support is not detected
28018         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
28019
28020 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
28021
28022         * lib/nproc.h: Add extern "C" block for C++.
28023
28024 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
28025             Bruno Haible  <bruno@clisp.org>
28026
28027         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
28028         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
28029         * doc/posix-functions/isalpha.texi: Likewise.
28030         * doc/posix-functions/isblank.texi: Likewise.
28031         * doc/posix-functions/iscntrl.texi: Likewise.
28032         * doc/posix-functions/isdigit.texi: Likewise.
28033         * doc/posix-functions/isgraph.texi: Likewise.
28034         * doc/posix-functions/islower.texi: Likewise.
28035         * doc/posix-functions/isprint.texi: Likewise.
28036         * doc/posix-functions/ispunct.texi: Likewise.
28037         * doc/posix-functions/isspace.texi: Likewise.
28038         * doc/posix-functions/isupper.texi: Likewise.
28039         * doc/posix-functions/isxdigit.texi: Likewise.
28040
28041 2009-10-18  Bruno Haible  <bruno@clisp.org>
28042
28043         Tests for module 'isblank'.
28044         * modules/isblank-tests: New file.
28045         * tests/test-isblank.c: New file.
28046
28047         New module 'isblank'.
28048         * lib/isblank.c: New file.
28049         * m4/isblank.m4: New file.
28050         * modules/isblank: New file.
28051         * doc/posix-functions/isblank.texi: Mention the new module.
28052
28053 2009-10-18  Bruno Haible  <bruno@clisp.org>
28054
28055         New module 'ctype'.
28056         * lib/ctype.in.h: New file.
28057         * m4/ctype.m4: New file.
28058         * modules/ctype: New file.
28059         * doc/posix-headers/ctype.texi: Mention the new module.
28060
28061 2009-10-18  Jim Meyering  <meyering@redhat.com>
28062
28063         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
28064         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
28065         right after its initialization, rather than farther down.
28066         Keeping these in close proximity makes it easier to ensure
28067         that each such variable is initialized.  E.g.,
28068
28069             LIB_CLOCK_GETTIME=
28070             AC_SUBST([LIB_CLOCK_GETTIME])
28071
28072         This change also increments these serial numbers.
28073         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
28074         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28075         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28076
28077 2009-10-18  Bruno Haible  <bruno@clisp.org>
28078
28079         Don't let environment variables perturb build.
28080         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
28081         (gl_PREREQ_GETHRXTIME): ... not here.
28082
28083 2009-10-18  Bruno Haible  <bruno@clisp.org>
28084
28085         Avoid symlink attack in localcharset module.
28086         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
28087         (O_NOFOLLOW): Define fallback.
28088         (get_charset_aliases): Don't open the file if it is a symbolic link.
28089         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
28090         gl_FCNTL_H.
28091         (gl_FCNTL_H): Require it.
28092         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
28093         * modules/localcharset (Files): Add m4/fcntl_h.m4.
28094         Reported by Fergal Glynn <fglynn@veracode.com>.
28095
28096 2009-10-18  Bruno Haible  <bruno@clisp.org>
28097
28098         Implement nproc for mingw.
28099         * lib/nproc.c: Include <windows.h>
28100         (num_processors): On native Windows platforms, try GetSystemInfo.
28101
28102 2009-10-18  Bruno Haible  <bruno@clisp.org>
28103
28104         Implement nproc for IRIX.
28105         * lib/nproc.c: Include <sys/sysmp.h>.
28106         (num_processors): On IRIX systems, try sysmp.
28107         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
28108
28109 2009-10-18  Bruno Haible  <bruno@clisp.org>
28110
28111         Implement nproc for HP-UX.
28112         * lib/nproc.c: Include <sys/pstat.h>
28113         (num_processors): On HP-UX systems, try pstat_getdynamic.
28114         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
28115         pstat_getdynamic.
28116
28117 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
28118             Bruno Haible  <bruno@clisp.org>
28119
28120         Implement nproc for NetBSD, OpenBSD.
28121         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
28122         (ARRAY_SIZE): New macro.
28123         (num_processors): On BSD systems, try sysctl of HW_NCPU.
28124         * m4/nproc.m4: New file.
28125         * modules/nproc (Files): Add m4/nproc.m4.
28126         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
28127         (Makefile.am): Instead, augment lib_SOURCES.
28128
28129 2009-10-18  Bruno Haible  <bruno@clisp.org>
28130
28131         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
28132         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
28133         sys/param.h.
28134
28135 2009-10-16  Eric Blake  <ebb9@byu.net>
28136
28137         utimensat: new module
28138         * modules/utimensat: New file.
28139         * lib/utimensat.c (utimensat): Likewise.
28140         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28141         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
28142         so we can work around Linux bugs.
28143         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28144         * modules/sys_stat (Makefile.am): Substitute them.
28145         * lib/sys_stat.in.h (utimensat): Declare it.
28146         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28147         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28148         * modules/utimensat-tests: New test.
28149         * tests/test-utimensat.c: Likewise.
28150
28151         utimens: let lutimens work on non-symlinks
28152         * lib/utimens.c (lutimens): Fall back to utimens rather than
28153         failing with ENOSYS, when file is not a symlink.
28154         (utimens): Reduce redirection.
28155         * tests/test-lutimens.h (test_lutimens): Update test to cover
28156         non-symlinks.
28157         * tests/test-utimens.h (test_utimens): Update test to cover
28158         symlinks.
28159         * tests/test-utimens.c (main): Update caller.
28160
28161         utimens: cache whether utimensat syscall works
28162         * lib/utimens.c (utimensat_works_really): New cache variable.
28163         (fdutimens, lutimens): Use it to avoid failing syscall.
28164
28165         test-stat-time, test-utimens: improve portability
28166         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
28167         ext4 on alpha, and for cygwin.
28168         * tests/test-utimens-common.h: New file.
28169         (nap): Factor delays into single function.
28170         * tests/test-lutimens.h (test_lutimens): Use new header.
28171         * tests/test-futimens.h (test_futimens): Likewise.
28172         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
28173         timestamps to occur from same machine, as was done previously for
28174         test_utimens.
28175         * modules/utimens-tests (Files): Ship new file.
28176         * modules/futimens-tests (Files): Likewise.
28177         Reported in part by Jim Meyering.
28178
28179         sys_stat: sort replacement declarations
28180         * lib/sys_stat.in.h: Sort declarations.
28181         * lib/futimens.c (futimens): Fix typo.
28182
28183 2009-10-15  Jim Meyering  <meyering@redhat.com>
28184
28185         don't let environment settings perturb build
28186         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
28187         could cause a configure-time and/or build-time malfunction.
28188         Typically, a configure-time function-in-library test is performed
28189         via code like this:
28190
28191           LIB_VAR=
28192           AC_SUBST([LIB_VAR])
28193           prefix_saved_LIBS=$LIBS
28194             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
28195                        [test "$ac_cv_search_FUNC" = "none required" ||
28196                         LIB_VAR=$ac_cv_search_FUNC])
28197           LIBS=$prefix_saved_LIBS
28198
28199         However, in each of the files affected by this change, the LIB_VAR=
28200         initialization was omitted.  Thus, when set in the environment, its
28201         value would propagate into generated Makefiles when FUNC is not found
28202         in LIB_NAME.
28203         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
28204         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28205         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28206
28207 2009-10-14  Eric Blake  <ebb9@byu.net>
28208
28209         fchdir: avoid infinite recursion in mingw
28210         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
28211         recursing.
28212
28213         test-stat-time: port to mingw
28214         * tests/test-stat-time.c (force_unlink): Return a value.
28215         (test_ctime) [W32]: Fix compilation error.
28216         (nap): Don't call usleep with too large an argument.  Use
28217         force_unlink.
28218         * doc/pastposix-functions/usleep.texi (usleep): Document the
28219         portability issue.
28220
28221 2009-10-13  Jim Meyering  <meyering@redhat.com>
28222
28223         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
28224         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
28225         * modules/pipe-filter-ii: Likewise.
28226         * modules/sys_socket-tests: Likewise.
28227         * modules/tsearch-tests: Likewise.
28228         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
28229         (check): Depend on it.
28230
28231 2009-10-12  Eric Blake  <ebb9@byu.net>
28232
28233         utimens-tests: port to NFS file systems
28234         * tests/test-utimens.h (test_utimens): Refactor utimecmp
28235         comparisons to avoid spurious failures from timestamp drift
28236         between NFS machines.
28237
28238 2009-10-12  Eric Blake  <ebb9@byu.net>
28239
28240         stat-time-tests: minor cleanups
28241         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
28242         * tests/test-stat-time.c (nap): Separate assignment from call.
28243         Suggested by Paolo Bonzini and Bruno Haible.
28244
28245         sys_stat: guarantee struct timespec
28246         * lib/sys_stat.in.h (includes): Always include <time.h>
28247         * modules/sys_stat (Depends-on): Add time.
28248         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
28249         mode_t permission values.
28250         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
28251         get at subsecond timestamps.
28252
28253 2009-10-10  Eric Blake  <ebb9@byu.net>
28254
28255         futimens: new module
28256         * modules/futimens: New file.
28257         * lib/futimens.c (futimens): Likewise.
28258         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
28259         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
28260         we can work around Linux bugs.
28261         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28262         * modules/sys_stat (Makefile.am): Substitute them.
28263         * lib/sys_stat.in.h (futimens): Declare it.
28264         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28265         * doc/posix-functions/futimens.texi (futimens): Likewise.
28266         * modules/futimens-tests: New test.
28267         * tests/test-futimens.c: Likewise.
28268
28269         utimens: introduce fdutimens
28270         * lib/utimens.h (fdutimens): New prototype.
28271         * lib/utimens.c (gl_futimens): Move guts...
28272         (fdutimens): ...to new interface.
28273         * tests/test-utimens.c (do_fdutimens): Use it.
28274
28275         utimens: add UTIME_NOW and UTIME_OMIT support
28276         * lib/utimens.c (validate_timespec, update_timespec): New helper
28277         functions.
28278         (gl_futimens, lutimens): Use them.
28279         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
28280         stdbool, sys_stat.
28281         (Link): Mention resulting library dependency.
28282         * modules/utimecmp (Link): Likewise.
28283         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
28284         (Makefile.am): Pick up library dependency.
28285         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
28286         definition.
28287         * tests/test-sys_stat.c: Test the definitions.
28288         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
28289         * NEWS: Document library dependency.
28290
28291         utimecmp: support symlink timestamps
28292         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
28293         hashing when possible.  Use pathconf when available.
28294         (SYSCALL_RESOLUTION): Recognize tighter resolution.
28295         * modules/utimecmp (Depends-on): Add lstat.
28296
28297         utimens: add lutimens interface
28298         * lib/utimens.c (lutimens): New function.
28299         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
28300         * lib/utimens.h (lutimens): Declare new interface.
28301         * tests/test-utimens.c (main): Enhance test.
28302         * tests/test-lutimens.h (test_lutimens): New file.
28303         * modules/utimens-tests (Files): Distribute it.
28304         (Depends-on): Add symlink.
28305         (configure.ac): Check for usleep.
28306
28307         utimens: validate futimens usage
28308         * lib/utimens.c (gl_futimens): Require valid fd up front, using
28309         fewer syscalls on failure later on.  Avoid compiler warning on
28310         mingw.
28311         * modules/utimens (Depends-on): Add dup2.
28312
28313         utimens: add test
28314         * modules/utimens-tests: New test.
28315         * tests/test-utimens.h: New file.
28316         * tests/test-futimens.h: Likewise.
28317         * tests/test-utimens.c: Likewise.
28318
28319         doc: mention timestamp portability issues
28320         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
28321         instead.
28322         * doc/posix-functions/utime.texi (utime): Likewise.
28323         * doc/posix-functions/utimes.texi (utimes): Likewise.
28324         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
28325         instead.
28326         * doc/posix-functions/futimens.texi (futimens): Mention utimens
28327         module.
28328         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28329         Mention weakness with symlink timestamps.
28330         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
28331         to utimensat/futimens instead.
28332         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
28333
28334         test-dup2: enhance test
28335         * tests/test-dup2.c (main): Also check AT_FDCWD.
28336
28337         test-stat-time: avoid more spurious failures
28338         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
28339         xfs; and avoid race if the two timestamps cross quantization edge.
28340
28341         relocatable: prefer 'file system' over 'filesystem'
28342         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
28343         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
28344         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
28345         * doc/relocatable.texi (Enabling Relocatability): Likewise.
28346         * lib/relocatable.c (compute_curr_prefix): Likewise.
28347
28348 2009-10-10  Jim Meyering  <meyering@redhat.com>
28349
28350         stat-time-tests: check for the usleep function
28351         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
28352
28353 2009-10-10  Bruno Haible  <bruno@clisp.org>
28354
28355         * modules/xnanosleep: Put the Link section after the Include section.
28356
28357 2009-10-09  Eric Blake  <ebb9@byu.net>
28358
28359         dup2: work around FreeBSD 6.1 bug
28360         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
28361         * doc/posix-functions/dup2.texi (dup2): Document it.
28362         Reported by Nelson H. F. Beebe and Jim Meyering.
28363
28364         test-stat-time: port to buggy NFS clients
28365         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
28366         (test_ctime): Also skip test if mtime and ctime are skewed.
28367
28368         maint: prefer 'file system' over 'filesystem'
28369         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28370         * doc/posix-functions/lstat.texi (lstat): Likewise.
28371         * lib/file-has-acl.c (file_has_acl): Likewise.
28372         * lib/fwriteerror.c [TEST]: Likewise.
28373         * tests/test-areadlink.h (test_areadlink): Likewise.
28374         * tests/test-areadlinkat-with-size.c (main): Likewise.
28375         * tests/test-areadlinkat.c (main): Likewise.
28376         * tests/test-canonicalize-lgpl.c (main): Likewise.
28377         * tests/test-canonicalize.c (main): Likewise.
28378         * tests/test-fstatat.c (main): Likewise.
28379         * tests/test-linkat.c (main): Likewise.
28380         * tests/test-lstat.h (test_lstat_func): Likewise.
28381         * tests/test-mkdir.h (test_mkdir): Likewise.
28382         * tests/test-readlink.h (test_readlink): Likewise.
28383         * tests/test-remove.c (main): Likewise.
28384         * tests/test-rename.h (test_rename): Likewise.
28385         * tests/test-renameat.c (main): Likewise.
28386         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28387         * tests/test-symlink.h (test_symlink): Likewise.
28388         * tests/test-symlinkat.c (main): Likewise.
28389         * tests/test-unlink.h (test_unlink_func): Likewise.
28390         * tests/test-unlinkat.c (main): Likewise.
28391
28392         maint: make realtime library usage explicit
28393         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
28394         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
28395         * modules/settime (Link): Likewise.
28396         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
28397
28398         test-stat-time: speed up execution
28399         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
28400         warning on mingw.
28401         (nap): New helper function.
28402         (prepare_test): Use it to reduce sleep time.
28403         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
28404         execution.
28405         * modules/stat-time-tests (configure.ac): Check for usleep.
28406
28407 2009-10-09  Jim Meyering  <meyering@redhat.com>
28408
28409         selinux-h: always use getfilecon wrappers
28410         * lib/getfilecon.c: New file.
28411         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
28412         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
28413         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
28414         (fgetfilecon): Provide a stub.
28415         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
28416         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
28417         file unconditionally.
28418         When <selinux/selinux.h> is found, arrange to use wrappers.
28419         * modules/selinux-h (Files): Add getfilecon.c.
28420         (Makefile.am): Substitute include-next-related bits
28421         into the now-always-generated selinux/selinux.h file.
28422         * doc/glibc-functions/lgetfilecon.texi: New file.
28423         * doc/glibc-functions/fgetfilecon.texi: New file.
28424         * doc/glibc-functions/getfilecon.texi: New file.
28425         * doc/glibc-functions/getfilecon-desc.texi: New file.
28426         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
28427         which to pull in the new files.
28428         * MODULES.html.sh (Misc): Add selinux-h.
28429
28430 2009-10-08  Jim Meyering  <meyering@redhat.com>
28431
28432         unistd: fix comment typo
28433         * lib/unistd.in.h (euidaccess): Fix a comment typo.
28434
28435 2009-10-08  Eric Blake  <ebb9@byu.net>
28436
28437         areadlink: use SIZE_MAX consistently
28438         * modules/areadlink (Depends-on): Add stdint.
28439         * modules/areadlink-with-size (Depends-on): Likewise.
28440         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
28441         gives NULL; drop sys/types, since unistd gives size_t; and add
28442         stdint for SIZE_MAX.
28443         (SIZE_MAX): Rely on headers.
28444         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
28445         and add stdint.
28446         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
28447         (SIZE_MAX): Likewise.
28448         (INITIAL_BUF_SIZE): Turn into enum.
28449         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
28450
28451 2009-10-08  Jim Meyering  <meyering@redhat.com>
28452
28453         areadlinkat: avoid compilation failure
28454         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
28455         Fix typo in comment.
28456
28457 2009-10-07  Eric Blake  <ebb9@byu.net>
28458
28459         areadlinkat-with-size: new module
28460         * modules/areadlinkat-with-size: New module.
28461         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
28462         * lib/areadlink.h (areadlinkat): Declare it.
28463         * MODULES.html.sh (File system functions): Mention it.
28464         * modules/areadlinkat-with-size-tests: New test.
28465         * tests/test-areadlinkat-with-size.c: New file.
28466
28467         xreadlinkat: new module
28468         * modules/xreadlinkat: New module.
28469         * lib/xreadlinkat.c (xreadlinkat): New file.
28470         * lib/xreadlink.h (xreadlinkat): Declare it.
28471         * MODULES.html.sh (File system functions): Mention it.
28472
28473         areadlinkat: new module
28474         * lib/at-func.c (FUNC_FAIL): New define.
28475         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
28476         * modules/areadlinkat: New module.
28477         * lib/linkat.c (areadlinkat): Move...
28478         * lib/areadlinkat.c (areadlinkat): ...to new file.
28479         * lib/areadlink.h (areadlinkat): Declare it.
28480         * modules/linkat (Depends-on): Add areadlinkat.
28481         * MODULES.html.sh (File system functions): Mention it.
28482         * modules/areadlinkat-tests: New test.
28483         * tests/test-areadlinkat.c: New file.
28484
28485         areadlink, areadlink-with-size: add tests
28486         * modules/areadlink-tests: New test.
28487         * modules/areadlink-with-size-tests: Likewise.
28488         * tests/test-areadlink.h: New file.
28489         * tests/test-areadlink.c: Likewise.
28490         * tests/test-areadlink-with-size.c: Likewise.
28491
28492         maint: minor cleanups
28493         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
28494         _UNUSED_PARAMETER_ instead.
28495         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
28496         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
28497         * modules/linkat-tests (Files): Distribute test-link.h.
28498
28499         openat, utimens: whitespace cleanup
28500         * lib/openat.c: Prefer space throughout, rather than mix of 8
28501         spaces vs. tabs.
28502         * lib/at-func.c: Likewise.
28503         * lib/utimens.c: Likewise.
28504
28505         openat: avoid using wrong fd
28506         * lib/openat.c (openat_permissive): Reject user's fd if saving the
28507         working directory chooses same fd.
28508         * lib/at-func.c (AT_FUNC_NAME): Likewise.
28509
28510         mkdir, mkdirat: fix cygwin 1.5.x bug
28511         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
28512         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
28513         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
28514         bug.
28515         (gl_PREREQ_MKDIR): Delete unused macro.
28516         * modules/mkdir (Files): Track file rename.
28517         (configure.ac): Update macro name.
28518         * modules/openat (Depends-on): Add mkdir.
28519         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
28520
28521         mkdir, mkdirat: add tests
28522         * modules/mkdir-tests: New test.
28523         * tests/test-mkdir.h: New file.
28524         * tests/test-mkdir.c: Likewise.
28525         * tests/test-mkdirat.c: Likewise.
28526         * modules/openat-tests (Files): Add new files.
28527         (Makefile.am): Run new test.
28528
28529 2009-10-06  Eric Blake  <ebb9@byu.net>
28530
28531         doc: tweak *at function documentation
28532         * doc/posix-functions/faccessat.texi (faccessat): Mention
28533         known issue with replacement.
28534         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
28535         * doc/posix-functions/linkat.texi (linkat): Likewise.
28536         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28537         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28538         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28539         * doc/posix-functions/renameat.texi (renameat): Likewise.
28540         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28541
28542         openat: fix GNU/Hurd bug in unlinkat
28543         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
28544         broken.
28545         * doc/posix-functions/unlink.texi (unlink): Document this.
28546         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
28547
28548         fdopendir: fix GNU/Hurd bug
28549         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
28550         allowing non-directory fds.
28551         * lib/fdopendir.c (rpl_fdopendir): Work around it.
28552         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
28553         * modules/dirent (Makefile.am): Substitute it.
28554         * lib/dirent.in.h (fdopendir): Declare replacement.
28555         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
28556         * tests/test-fdopendir.c (main): Test something other than
28557         /dev/null, since on Hurd that behaves like a directory.
28558
28559         test-symlink: port to GNU/Hurd
28560         * tests/test-symlink.h (test_symlink): Relax expected errno.
28561
28562         doc: tweak more cygwin information
28563         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
28564         now compatible with glibc.
28565         * doc/posix-functions/getopt.texi (getopt): Likewise.
28566
28567         getopt-gnu: add another test
28568         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
28569         guarantee behavior relied on by m4.
28570         * tests/test-getopt.c (main): Use it.
28571         * modules/getopt-posix-tests (Depends-on): Add setenv.
28572         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
28573
28574         getopt: fix compilation on darwin
28575         * lib/getopt.in.h (includes): Leave breadcrumbs during system
28576         include.
28577         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
28578         Reported by Ludovic Courtès.
28579
28580 2009-10-06  Bruno Haible  <bruno@clisp.org>
28581
28582         * modules/size_max (Description): Discourage its use.
28583         Reported by Simon Josefsson.
28584
28585 2009-10-06  Jim Meyering  <meyering@redhat.com>
28586
28587         linkat: avoid compilation failure
28588         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
28589
28590 2009-10-05  Eric Blake  <ebb9@byu.net>
28591
28592         linkat: support Linux 2.6.17
28593         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
28594         linkat on Linux, but allow cache variable override.
28595         * lib/linkat.c (rpl_linkat): Define override.
28596         * modules/linkat (Depends-on): Add symlinkat.
28597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
28598         * modules/unistd (Makefile.am): Substitute it.
28599         * lib/unistd.in.h (linkat): Declare replacement.
28600         Reported by Pádraig Brady.
28601
28602         quotearg: port test to systems with C.UTF-8 locale
28603         * tests/test-quotearg.c (struct result_strings): Add another
28604         member, differentiating between C.ASCII and C.UTF-8 handling.
28605         (compare_strings): Add parameter.
28606         (main): Adjust all callers.
28607
28608         getopt: avoid clash with FreeBSD _getopt_internal
28609         * lib/getopt.in.h (_getopt_internal): Override the name.
28610         * lib/getopt_int.h (includes): Pick up any overrides.
28611         Reported by Reuben Thomas.
28612
28613         hash: allow C89 compilation
28614         * lib/hash.c (check_tuning): Move declaration before statement.
28615         Reported by Reuben Thomas.
28616
28617 2009-10-05  Karl Berry  <karl@gnu.org>
28618
28619         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
28620
28621 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
28622             Bruno Haible  <bruno@clisp.org>
28623
28624         * lib/uname.c (uname): Use a table-driven algorithm to compute
28625         Windows NT versions.
28626
28627 2009-10-04  Bruno Haible  <bruno@clisp.org>
28628
28629         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
28630         program_invocation_short_name.
28631         * modules/progname (configure.ac): Test for presence of
28632         program_invocation_short_name.
28633         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
28634
28635 2009-10-04  Bruno Haible  <bruno@clisp.org>
28636
28637         * lib/progname.c (set_program_name): Fix comment.
28638         Reported by Jim Meyering.
28639
28640 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28641             Bruno Haible  <bruno@clisp.org>
28642
28643         * lib/uname.c: Include <string.h>.
28644         (uname): Do only one call to GetVersionEx in the common case.
28645
28646 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28647             Bruno Haible  <bruno@clisp.org>
28648
28649         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
28650         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
28651         (uname): Add support for Windows CE and various non-x86 CPU types.
28652
28653 2009-10-03  Bruno Haible  <bruno@clisp.org>
28654
28655         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
28656         invocation to tests/configure.ac.
28657         Reported by Ian Beckwith <ianb@erislabs.net>.
28658
28659 2009-10-02  Eric Blake  <ebb9@byu.net>
28660
28661         fchdir: avoid compiler warning
28662         * lib/fchdir.c (canonicalize_file_name)
28663         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
28664
28665         test-open: support mingw errno values
28666         * tests/test-open.h (test_open): Relax test.
28667         * tests/test-fopen.h (test_fopen): Likewise.
28668         * tests/test-openat-safer.c (main): Likewise.
28669
28670         open: fix opening directory on mingw
28671         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
28672
28673         test-open: on GNU/Hurd, /dev/null is a directory
28674         * tests/test-fopen.h (main): Rename...
28675         (test_fopen): ...to this.  Use a guaranteed non-directory when
28676         confirming open behavior on trailing slash.
28677         * tests/test-openat-safer.c (main): Likewise.
28678         * tests/test-open.h (main): Likewise....
28679         (test_open): ...to this.
28680         * tests/test-fopen.c (main): Adjust caller.
28681         * tests/test-fopen-safer.c (main): Likewise.
28682         * tests/test-open.c (main): Likewise.
28683         * tests/test-fcntl-safer.c (main): Likewise.
28684         Reported by Samuel Thibault.
28685
28686         rename, fchdir: don't ignore chdir failure
28687         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
28688         * lib/rename.c (rpl_rename) [W32]: Likewise.
28689         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
28690         an empty destination directory if source cannot be renamed,
28691         although there is still possibility for failure.
28692         * doc/posix-functions/rename.texi (rename): Document the race.
28693         Reported by Jim Meyering.
28694
28695         maint: cleanup whitespace in recent commits
28696         * lib/rename.c (rpl_rename): Remove tabs.
28697         * tests/test-link.h (test_link): Likewise.
28698         * lib/fchdir.c (get_name): Likewise.
28699         Reported by Jim Meyering.
28700
28701 2009-10-02  Ben Pfaff  <blp@gnu.org>
28702
28703         relocatable-prog-wrapper: Add missing dependency on
28704         double-slash-root.
28705         * modules/relocatable-prog-wrapper: Add dependency.
28706         Reported by Ian Beckwith <ianb@erislabs.net>.
28707
28708 2009-10-02  Eric Blake  <ebb9@byu.net>
28709
28710         renameat: fix Solaris bugs
28711         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
28712         needed fixing.
28713         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
28714         * modules/stdio (Makefile.am): Substitute it.
28715         * lib/stdio.in.h (renameat): Declare replacement.
28716         * lib/renameat.c (rpl_renameat): Implement fix.
28717
28718         renameat: new module
28719         * modules/renameat: New file.
28720         * lib/renameat.c (renameat): Likewise.
28721         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
28722         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
28723         * modules/stdio (Makefile.am): Substitute them.
28724         * lib/stdio.in.h (renameat): Declare it.
28725         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28726         * doc/posix-functions/renameat.texi (renameat): Likewise.
28727         * modules/renameat-tests: New test.
28728         * tests/test-renameat.c: Likewise.
28729
28730         rename: fix mingw bugs
28731         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
28732         directory overwrite bugs.
28733
28734         rename: fix another cygwin 1.5 bug
28735         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
28736         checks.
28737         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
28738         unnecessary cygwin workarounds.  Also work around bug with moving
28739         full directory onto an empty one.
28740         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
28741
28742         rename-dest-slash: merge into rename module
28743         * modules/rename-dest-slash (Status): Mark obsolete.
28744         (Depends-on): Add rename.
28745         (Files): Let rename do it all.
28746         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
28747         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
28748         * m4/rename-dest-slash.m4: ...so this file can be deleted.
28749         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
28750         * lib/rename.c (rpl_rename): Update comments.
28751
28752         rename: fix cygwin 1.5.x bugs
28753         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
28754         * lib/rename.c (rpl_rename): Work around them.
28755         * modules/rename (Depends-on): Add same-inode.
28756
28757         rename: fix Solaris 10 bug
28758         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
28759         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
28760         was the only bug.
28761
28762         rename: fix Solaris 9 bug
28763         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
28764         on non-directory.  Avoid calling exit.
28765         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
28766         strdup.
28767         * modules/rename-tests (Depends-on): Drop lstat.
28768         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
28769         (gl_PREREQ_RENAME): Delete unused macro.
28770
28771         rename-dest-slash: fix NetBSD bug
28772         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
28773         links.
28774         * modules/rename-dest-slash (Depends-on): Add same-inode.
28775
28776         rename-tests: new test, exposes several platform bugs
28777         * modules/rename-tests: New file.
28778         * tests/test-rename.h: Likewise.
28779         * tests/test-rename.c: Likewise.
28780         * doc/posix-functions/rename.texi (rename): Improve documentation,
28781         including bugs that will eventually be fixed in gnulib.
28782
28783 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
28784
28785         * lib/uname.c: Include <stdlib.h>
28786         (uname): Assume version info is available.
28787
28788 2009-10-02  Jim Meyering  <meyering@redhat.com>
28789
28790         gnu-web-doc-update: correct --help output
28791         * build-aux/gnu-web-doc-update: Make --help output relevant.
28792
28793         gnu-web-doc-update: add standard options
28794         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
28795
28796         gnu-web-doc-update: New module.
28797         Use this script to automatically update the on-line web documentation
28798         for your GNU project at http://www.gnu.org/software/$pkg/manual/
28799         * modules/gnu-web-doc-update: New file, from coreutils.
28800         * build-aux/gnu-web-doc-update: New script.
28801
28802 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
28803
28804         link: LoadLibrary is not needed.
28805         * lib/link.c: Use GetModuleHandle.
28806
28807 2009-10-01  Eric Blake  <ebb9@byu.net>
28808
28809         getopt: bump serial number
28810         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
28811         change.
28812
28813         tests: tighten link, rmdir, and remove tests
28814         * tests/test-link.h (includes): No need to use <config.h> here.
28815         Clean up if directory hard link was created, otherwise test for
28816         trailing '.'.
28817         * tests/test-linkat.c (main): Simplify.
28818         * tests/test-remove.c (main): Enhance test for trailing '.'.
28819         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28820
28821 2009-10-01  Jim Meyering  <meyering@redhat.com>
28822
28823         maint.mk: requiring "make major" was annoying, for a "minor" release.
28824         What is intended is "stable", to contrast with alpha and beta,
28825         so require "make stable", not "make major".
28826         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
28827         (get_tool_versions): Likewise.
28828         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
28829
28830 2009-09-30  Ben Pfaff  <blp@gnu.org>
28831
28832         Fix broken build of replacement for Windows tmpfile().
28833         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
28834         flags argument added along with the 'mkostemp' module.
28835
28836 2009-09-28  Bruno Haible  <bruno@clisp.org>
28837
28838         Avoid identifier clash with POSIX function 'remove' defined as a macro.
28839         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
28840         to 'remove_elt'.
28841         (gl_list_remove): Update.
28842         * lib/gl_list.c (gl_list_remove): Update.
28843         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
28844         to 'remove_elt'.
28845         (gl_oset_remove): Update.
28846         * lib/gl_list.c (gl_oset_remove): Update.
28847         Reported by Eric Blake.
28848
28849 2009-09-28  Eric Blake  <ebb9@byu.net>
28850
28851         doc: mention yet more cygwin 1.7 status
28852         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
28853         cygwin.
28854         * doc/glibc-functions/execvpe.texi (execvpe): New file.
28855         * doc/gnulib.texi (Glibc unistd.h): Mention it.
28856
28857         argp: fix test failure
28858         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
28859         that are not upper-case.  Pass correct range to tolower.
28860
28861 2009-09-27  Jim Meyering  <meyering@redhat.com>
28862
28863         test-yesno: work around sparc-dash here-document infelicity
28864         Without this change, the literal \177 byte in a here document
28865         would make dash 0.5.5.1-3 access uninitialized memory.
28866         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
28867         Instead, use a marker, "@", and filter through tr to create the desired
28868         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
28869
28870 2009-09-27  Bruno Haible  <bruno@clisp.org>
28871
28872         Disable untested support for new flavours of ACLs on AIX.
28873         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
28874         progress.
28875         * lib/set-mode-acl.c (qset_acl): Likewise.
28876
28877 2008-12-07  Bruno Haible  <bruno@clisp.org>
28878
28879         Add support for new flavours of ACLs on AIX. (Untested.)
28880         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
28881         (file_has_acl): Add support for newer AIX.
28882         * lib/set-mode-acl.c (qset_acl): Likewise.
28883         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
28884         Rainer Tammer <tammer@tammer.net>.
28885
28886 2009-09-26  Eric Blake  <ebb9@byu.net>
28887
28888         argp: fix compilation of getopt
28889         * lib/getopt.in.h (includes): Use different guard than glibc.
28890         Reported by Sergey Poznyakoff.
28891
28892         doc: mention more cygwin 1.7 status
28893         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
28894         bug.
28895         * doc/posix-functions/execl.texi (execl): Likewise.
28896         * doc/posix-functions/execle.texi (execle): Likewise.
28897         * doc/posix-functions/execlp.texi (execlp): Likewise.
28898         * doc/posix-functions/execv.texi (execv): Likewise.
28899         * doc/posix-functions/execve.texi (execve): Likewise.
28900         * doc/posix-functions/execvp.texi (execvp): Likewise.
28901         * doc/glibc-functions/canonicalize_file_name.texi
28902         (canonicalize_file_name): Cygwin 1.7 now provides this.
28903         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
28904         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
28905         on AT_SYMLINK_NOFOLLOW.
28906
28907 2009-09-24  Eric Blake  <ebb9@byu.net>
28908
28909         test-linkat: make test more robust
28910         * tests/test-linkat.c (main): Avoid collision with EEXIST.
28911
28912         getopt: fix inclusion guards for cygwin
28913         * modules/getopt-posix (Depends-on): Add include-next.
28914         (Makefile.am): Substitute more items in replacement header.
28915         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
28916         <getopt.h>.
28917         * lib/getopt.in.h (includes): Use split inclusion guard, and
28918         prefer <getopt.h> over include <unistd.h> when one is present.
28919         (option): Also override name of 'struct option'.
28920
28921         same-inode: revert prior change; it is not yet ready
28922         * NEWS: Undo mention of this change.
28923         * lib/same-inode.h (same-inode.h): Undo tri-state change.
28924         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
28925         * lib/cycle-check.c (cycle_check): Likewise.
28926         * lib/same.c (same_name): Likewise.
28927         * lib/at-func2.c (at_func2): Likewise.
28928
28929 2009-09-23  Eric Blake  <ebb9@byu.net>
28930
28931         linkat: new module
28932         * modules/linkat: New file.
28933         * lib/at-func2.c (at_func2): Likewise.
28934         * lib/linkat.c (linkat): Likewise.
28935         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28936         * lib/openat-priv.h (at_func2): Add declaration.
28937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28938         * modules/unistd (Makefile.am): Substitute them.
28939         * lib/unistd.in.h (linkat): Declare it.
28940         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28941         * doc/posix-functions/linkat.texi (linkat): Likewise.
28942         * doc/posix-functions/link.texi (link): Tweak wording.
28943         * tests/test-link.c (main): Move guts...
28944         * tests/test-link.h (test_link): ...into new file.
28945         * modules/linkat-tests: New test.
28946         * tests/test-linkat.c: Likewise.
28947         * modules/link-tests (Files): Ship new file.
28948         (Depends-on): Add stdbool.
28949
28950         dirname: add library-safe mdir_name
28951         * lib/dirname.h (mdir_name): New prototype.
28952         * lib/dirname.c (dir_name): Move guts...
28953         (mdir_name): ...to new function that avoids xalloc_die.
28954
28955         fchdir: another mingw fix
28956         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
28957         * lib/fchdir.c (get_name): New helper method; skips canonicalize
28958         on mingw (where it has not yet been ported), and make it optional
28959         elsewhere.
28960         (_gl_register_fd): Use it.
28961
28962         same-inode: make SAME_INODE tri-state, to port to mingw
28963         * NEWS: Mention this change.
28964         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
28965         st_ino always being 0.
28966         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
28967         * lib/cycle-check.c (cycle_check): Likewise.
28968         * lib/same.c (same_name): Likewise.
28969
28970         lstat: avoid mingw compilation error
28971         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
28972         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
28973         lstat ourselves.
28974         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
28975         was adequate.
28976         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
28977         the checks for lstat.
28978         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
28979
28980         link: fix test failure on Solaris 9
28981         * lib/link.c (rpl_link): Don't assume link will catch bogus
28982         trailing slash on source.
28983
28984         test-symlinkat: enhance test
28985         * tests/test-readlink.c (main): Move guts...
28986         * tests/test-readlink.h (test_readlink): ...into new file.
28987         * tests/test-symlink.c (main): Move guts...
28988         * tests/test-symlink.h (test_symlink): ...into new file.
28989         * tests/test-symlinkat.c (main): Use new files for further
28990         coverage.
28991         (do_symlink, do_readlink): New helper functions.
28992         * modules/symlink-tests (Files): Ship new file.
28993         (Depends-on): Add stdbool.
28994         * modules/readlink-tests (Files): Ship new file.
28995         (Depends-on): Add stdbool.
28996         * modules/symlinkat-tests (Files): Use new files.
28997
28998 2009-09-23  Eric Blake  <ebb9@byu.net>
28999
29000         readlink: document portability issue with symlink length
29001         * doc/posix-functions/lstat.texi (lstat): Mention that some file
29002         systems have bogus st_size on symlinks, and mention the
29003         areadlink-with-size module.
29004         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29005         * doc/posix-functions/readlink.texi (readlink): Mention the
29006         areadlink module, and ERANGE failure.
29007         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29008         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
29009
29010         readlink: fix Solaris 9 bug with trailing slash
29011         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
29012         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
29013         * doc/posix-functions/readlink.texi (readlink): Document this.
29014         * modules/readlink-tests: New test.
29015         * tests/test-readlink.c: Likewise.
29016
29017         readlink: fix cygwin 1.5.x bug with return type
29018         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
29019         * lib/unistd.in.h (readlink): Use ssize_t.
29020         * lib/readlink.c (readlink): Likewise.
29021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29022         * modules/unistd (Makefile.am): Substitute it.
29023         * lib/unistd.in.h (readlink): Declare replacement.
29024         * doc/posix-functions/readlink.texi (readlink): Document this.
29025
29026         symlink: use throughout gnulib
29027         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
29028         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
29029         symlink is not used.
29030         * modules/symlinkat (Depends-on): Add symlink.
29031         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29032         * modules/canonicalize-tests (Depends-on): Likewise.
29033         * modules/lstat-tests (Depends-on): Likewise.
29034         * modules/openat-tests (Depends-on): Likewise.
29035         * modules/remove-tests (Depends-on): Likewise.
29036         * modules/rmdir-tests (Depends-on): Likewise.
29037         * modules/unlink-tests (Depends-on): Likewise.
29038         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
29039         * tests/test-canonicalize.c (symlink): Likewise.
29040         * tests/test-fstatat.c (symlink): Likewise.
29041         * tests/test-lstat.c (symlink): Likewise.
29042         * tests/test-remove.c (symlink): Likewise.
29043         * tests/test-rmdir.c (symlink): Likewise.
29044         * tests/test-unlink.c (symlink): Likewise.
29045         * tests/test-unlinkat.c (symlink): Likewise.
29046
29047         symlink: new module, for Solaris 9 bug
29048         * modules/symlink: New file.
29049         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29050         * lib/symlink.c: Likewise.
29051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29052         * modules/unistd (Makefile.am): Substitute them.
29053         * lib/unistd.in.h (symlink): Declare replacement.
29054         * MODULES.html.sh (File system functions): Mention it.
29055         * doc/posix-functions/symlink.texi (symlink): Likewise.
29056         * modules/symlink-tests: New test.
29057         * tests/test-symlink.c: Likewise.
29058
29059 2009-09-23  Bruno Haible  <bruno@clisp.org>
29060
29061         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
29062         when needed.
29063         Test case: gnulib-tool --import --with-tests atexit inttypes.
29064         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
29065
29066 2009-09-23  Bruno Haible  <bruno@clisp.org>
29067
29068         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
29069         subcommand, not in a subshell.
29070
29071 2009-09-22  Eric Blake  <ebb9@byu.net>
29072
29073         unistd: sort replacement declarations
29074         * lib/unistd.in.h: Sort declarations.
29075
29076         open, openat: minor optimization
29077         * lib/open.c (open): If open succeeded, len is non-zero.
29078         * lib/openat.c (rpl_openat): Likewise.
29079
29080         link-follow: ensure correct result
29081         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
29082         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
29083         distinguish between possible failures.
29084
29085 2009-09-21  Eric Blake  <ebb9@byu.net>
29086
29087         fts: avoid compiler warning
29088         * lib/fts.c (dirent_inode_sort_may_be_useful)
29089         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
29090
29091 2009-09-19  Bruno Haible  <bruno@clisp.org>
29092
29093         * lib/progreloc.c (canonicalize_file_name): New declaration.
29094
29095 2009-09-19  Eric Blake  <ebb9@byu.net>
29096
29097         link: fix quoting
29098         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
29099
29100         openat: fix openat bugs on Solaris 9
29101         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
29102         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
29103         * modules/openat (Depends-on): Add open.
29104         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
29105         * modules/fcntl-h (Makefile.am): Substitute it.
29106         * lib/fcntl.in.h (openat): Declare replacement.
29107         * doc/posix-functions/openat.texi (openat): Document this.
29108
29109         openat: move fstatat and unlinkat into correct files
29110         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
29111         compiled.
29112         * lib/openat.c (fstatat, unlinkat): Move...
29113         * lib/fstatat.c (fstatat): ...into correct files.
29114         * lib/unlinkat.c (unlinkat): Likewise.
29115
29116         openat: fix unlinkat bugs on Solaris 9
29117         * lib/unlinkat.c (unlinkat): New file.
29118         * modules/openat (Depends-on): Add unlink.
29119         (Files): Distribute it.
29120         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
29121         trailing slash behavior is broken.
29122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29123         * modules/unistd (Makefile.am): Substitute it.
29124         * lib/unistd.in.h (unlinkat): Declare replacement.
29125         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
29126
29127         openat: fix fstatat bugs on Solaris 9
29128         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
29129         stat.
29130         * doc/posix-functions/fstatat.texi (fstatat): Document this.
29131
29132         test-unlinkat: enhance test, to expose Solaris 9 bug
29133         * tests/test-unlink.c (main): Factor guts...
29134         * tests/test-unlink.h (test_rmdir_func): ...into new file.
29135         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
29136         * tests/test-rmdir.c (main): Adjust caller.
29137         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
29138         (unlinker): New helper function.
29139         (rmdirat): Enhance check.
29140         * modules/rmdir-tests (Depends-on): Add stdbool.
29141         * modules/unlink-tests (Depends-on): Likewise.
29142         (Files): Add test-unlink.h.
29143         * modules/openat-tests (Files): Likewise.
29144         (Depends-on): Add unlinkdir.
29145
29146         test-fstatat: new test, to expose Solaris 9 bugs
29147         * tests/test-stat.c (main): Factor guts...
29148         * tests/test-stat.h (test_stat_func): ...into new file.
29149         * tests/test-lstat.c (main): Factor guts...
29150         * tests/test-lstat.h (test_lstat_func): ...into new file.
29151         * tests/test-fstatat.c: New file.
29152         * modules/stat-tests (Files): Add test-stat.h.
29153         * modules/lstat-tests (Files): Add test-lstat.h.
29154         (Depends-on): Add stdbool.
29155         * modules/openat-tests (Depends-on): Add pathmax.
29156         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
29157         (Makefile.am): Run new test.
29158
29159         remove: new module, for mingw and Solaris 9 bugs
29160         * modules/remove: New file.
29161         * lib/remove.c: Likewise.
29162         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
29163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29164         * modules/stdio (Makefile.am): Use them.
29165         * lib/stdio.in.h (remove): Declare replacement.
29166         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29167         * doc/posix-functions/remove.texi (remove): Likewise.
29168         * modules/remove-tests: New test.
29169         * tests/test-remove.c: Likewise.
29170
29171         unlink: new module, for Solaris 9 bug
29172         * modules/unlink: New file.
29173         * lib/unlink.c: Likewise.
29174         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29176         * modules/unistd (Makefile.am): Use them.
29177         * lib/unistd.in.h (stat): Declare replacement.
29178         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29179         * doc/posix-functions/unlink.texi (unlink): Likewise.
29180         * modules/unlink-tests: New test.
29181         * tests/test-unlink.c: Likewise.
29182
29183         lstat: fix Solaris 9 bug
29184         * lib/lstat.c (lstat): Also check for trailing slash on
29185         non-symlink, non-directories.  Use stat module to simplify logic.
29186         * doc/posix-functions/lstat.texi (lstat): Document it.
29187         * modules/lstat-tests (Depends-on): Add errno, same-inode.
29188         (configure.ac): Check for symlink.
29189         * tests/test-lstat.c (main): Add more tests.
29190
29191         stat: add as dependency to other modules
29192         * modules/chown (Depends-on): Add stat.
29193         * modules/euidaccess (Depends-on): Likewise.
29194         * modules/fchdir (Depends-on): Likewise.
29195         * modules/isdir (Depends-on): Likewise.
29196         * modules/link (Depends-on): Likewise.
29197         * modules/lstat (Depends-on): Likewise.
29198         * modules/mkdir-p (Depends-on): Likewise.
29199         * modules/modechange (Depends-on): Likewise.
29200         * modules/open (Depends-on): Likewise.
29201         * modules/readlink (Depends-on): Likewise.
29202         * modules/same (Depends-on): Likewise.
29203
29204         stat: fix Solaris 9 bug
29205         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
29206         slash.
29207         * lib/stat.c (rpl_stat): Work around it.
29208         * doc/posix-functions/stat.texi (stat): Update documentation.
29209
29210         stat: new module, for mingw bug
29211         * modules/stat: New file.
29212         * lib/stat.c: Likewise.
29213         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29214         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29215         * modules/sys_stat (Makefile.am): Use them.
29216         * lib/sys_stat.in.h (stat): Declare replacement.
29217         * lib/openat.c (fstatat): Deal with lstat and stat being function
29218         macros.
29219         * modules/openat (Depends-on): Add inline.
29220         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29221         * doc/posix-functions/stat.texi (stat): Likewise.
29222         * modules/stat-tests: New test.
29223         * tests/test-stat.c: Likewise.
29224
29225 2009-09-19  Jim Meyering  <meyering@redhat.com>
29226
29227         syntax-check: detect unnecessary inclusion of canonicalize.h
29228         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
29229
29230 2009-09-19  Eric Blake  <ebb9@byu.net>
29231
29232         canonicalize-lgpl: adjust clients to use correct header
29233         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29234         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
29235         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
29236         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
29237         * lib/progreloc.c (includes): Likewise.
29238
29239 2009-09-19  Jim Meyering  <meyering@redhat.com>
29240
29241         test-posixtm.c: correct a comment
29242         * tests/test-posixtm.c: Correct first-line comment.
29243         Spotted by Eric Blake.
29244
29245 2009-09-16  Jim Meyering  <meyering@redhat.com>
29246
29247         posixtm-tests: make T const-correct; add a test case
29248         * tests/test-posixtm.c (T): Declare const.
29249         Add a test for -(2^31+1).
29250         Remove useless can-succeed-only-in-2002 test.
29251
29252         posixtm-tests: adjust the sole failing test
29253         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
29254         expected output matches what mktime now produces.  Cross-checked via
29255         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
29256
29257         posixtm: move #ifdef'd tests into a new module
29258         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
29259         * tests/test-posixtm.c: ... this new file.
29260         * modules/posixtm-tests: New module.
29261
29262 2009-09-19  Eric Blake  <ebb9@byu.net>
29263
29264         openat: simplify use of at-func.c
29265         * lib/at-func.c (includes): Include prerequisites here, to
29266         simplify requirements on client files.
29267         * lib/openat-priv.h: Add double-inclusion guard.
29268         * lib/faccessat.c (includes): Simplify.
29269         * lib/fchmodat.c (includes): Likewise.
29270         * lib/fchownat.c (includes): Likewise.
29271         * lib/mkdirat.c (includes): Likewise.
29272         * lib/mkfifoat.c (includes): Likewise.
29273         * lib/symlinkat.c (includes): Likewise.
29274
29275         openat: allow return of fd 0
29276         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
29277         * modules/save-cwd (Depends-on): Replace fcntl-safer with
29278         unistd-safer.
29279         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
29280         <fcntl.h>; this module does not leak fds.
29281         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
29282         must be allowed to return 0, leaving openat_safer to add the
29283         safety.
29284         (openat_permissive): Avoid writing to just-opened fd 2 if
29285         restoring the current directory fails.
29286         * lib/openat-die.c (openat_restore_fail): Add comment.
29287         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
29288         (save_cwd): Guarantee safe fd, but without use of open_safer.
29289         * tests/test-openat.c: New test.
29290         * modules/openat-tests (Files, Makefile.am): Distribute and build
29291         new file.
29292
29293         relocatable-prog-wrapper: fix build
29294         * modules/relocatable-prog-wrapper (Files): Update name of
29295         canonicalize m4 file, broken on 2009-09-17.
29296         Reported by emad hajjar <aleppos@hotmail.com>.
29297
29298 2009-09-19  Bruno Haible  <bruno@clisp.org>
29299
29300         * lib/safe-alloc.h: Use the standard header with GPL copyright.
29301         * lib/safe-alloc.c: Likewise.
29302         Reported by Ian Beckwith <ianb@erislabs.net>.
29303
29304 2009-09-18  Bruno Haible  <bruno@clisp.org>
29305
29306         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
29307         Reported by <erobles@sensacd.com.mx>.
29308
29309 2009-09-17  Eric Blake  <ebb9@byu.net>
29310
29311         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
29312         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
29313         slashes when checking if last component is missing.
29314         * tests/test-canonicalize.c (main): Test this.
29315
29316         canonicalize, canonicalize-lgpl: honor // if distinct from /
29317         * modules/canonicalize (Files): Add double-slash-root.m4.
29318         * modules/canonicalize-lgpl (Files): Likewise.
29319         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29320         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
29321         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
29322         fallback definition.
29323         (canonicalize_filename_mode): Use it to protect //.
29324         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
29325         (__realpath): Likewise.
29326         * tests/test-canonicalize.c (main): Test this.
29327         * tests/test-canonicalize-lgpl.c (main): Likewise.
29328         * modules/canonicalize-tests (Depends-on): Add same-inode.
29329         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29330
29331         canonicalize-lgpl: fix glibc bug with trailing slash
29332         * m4/canonicalize-lgpl.m4: Move contents...
29333         * m4/canonicalize.m4: ...here.
29334         (gl_CANONICALIZE_LGPL): Factor realpath check...
29335         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
29336         glibc 2.3.5 bug, fixed 2005-04-27.
29337         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
29338         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
29339         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
29340         * modules/canonicalize-lgpl (Files): Manage file rename.
29341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29342         * modules/stdlib (Makefile.am): Substitute witness.
29343         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
29344         is needed.
29345         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
29346         replacement is required.
29347         * lib/canonicalize.c (canonicalize_file_name): Likewise.
29348         * doc/glibc-functions/canonicalize_file_name.texi
29349         (canonicalize_file_name): Document this.
29350         * doc/posix-functions/realpath.texi (realpath): Likewise.
29351
29352         canonicalize-lgpl: reject non-directory with trailing slash
29353         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
29354         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
29355         catches failures in glibc 2.3.5.
29356         * tests/test-canonicalize.c (main): Likewise.
29357
29358         canonicalize-lgpl: use native realpath if it works
29359         * lib/canonicalize-lgpl.c (realpath): Guard with
29360         FUNC_REALPATH_WORKS.
29361         * lib/stdlib.in.h (realpath): Make declaration optional based on
29362         HAVE_REALPATH.
29363         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
29364         native realpath works.
29365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29366         * modules/stdlib (Makefile.am): Substitute witness.
29367
29368         canonicalize, canonicalize-lgpl: use <stdlib.h>
29369         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
29370         (Include): Mention <stdlib.h>.
29371         (configure.ac): Mention functions we provide.
29372         * modules/canonicalize (configure.ac): Likewise.
29373         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
29374         realpath if canonicalize_file_name is missing.
29375         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
29376         * modules/stdlib (Makefile.am): Substitute witnesses.
29377         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
29378         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
29379         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
29380         * NEWS: Document this.
29381         * doc/glibc-functions/canonicalize_file_name.texi
29382         (canonicalize_file_name): Likewise.
29383         * doc/posix-functions/realpath.texi (realpath): Likewise.
29384         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
29385
29386         test-canonicalize: consolidate into single C program
29387         * tests/test-canonicalize.sh: Delete; move setup into...
29388         * tests/test-canonicalize.c (main): ...the program, making it
29389         easier to run in debugger.  Add some tests.
29390         * modules/canonicalize-tests (Files): Remove unused file.
29391         (Depends-on): Add progname.
29392         (configure.ac, Makefile.am): Simplify.
29393
29394         test-canonicalize-lgpl: consolidate into single C program
29395         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
29396         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
29397         easier to run in debugger.  Add some tests.
29398         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
29399         (configure.ac, Makefile.am): Simplify.
29400
29401         canonicalize: avoid resolvepath
29402         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
29403         unnecessary checks.
29404         * lib/canonicalize.c (includes): Simplify.
29405         (canonicalize_file_name): Drop resolvepath implementation.
29406         * modules/canonicalize (Depends-on): Drop filenamecat.
29407
29408         canonicalize: don't lose errno
29409         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
29410         over calls to free.
29411
29412         canonicalize: simplify errno handling
29413         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
29414         assignment.
29415
29416         canonicalize, canonicalize-lgpl: update module dependencies
29417         * modules/canonicalize (Depends-on): Add extensions, lstat,
29418         pathmax, stdlib.
29419         (Files): Drop pathmax.h.
29420         (configure.ac): Adjust macro name.
29421         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
29422         lstat, stdlib, sys_stat.
29423         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
29424         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
29425         extensions.
29426         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
29427         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
29428         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
29429         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
29430         declaration, if available.
29431         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
29432         we can rely on the readlink module.
29433         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
29434         (includes): Use <unistd.h> unconditionally.
29435
29436 2009-09-17  Eric Blake  <ebb9@byu.net>
29437
29438         maint: make Include sections of modules consistent
29439         * modules/alloca: Use only header name; no need to list #include.
29440         * modules/alloca-opt: Likewise.
29441         * modules/arpa_inet: Likewise.
29442         * modules/canon-host: Likewise.
29443         * modules/configmake: Likewise.
29444         * modules/dirent: Likewise.
29445         * modules/eealloc: Likewise.
29446         * modules/environ: Likewise.
29447         * modules/fchdir: Likewise.
29448         * modules/fcntl: Likewise.
29449         * modules/fcntl-h: Likewise.
29450         * modules/gethrxtime: Likewise.
29451         * modules/gettime: Likewise.
29452         * modules/ignore-value: Likewise.
29453         * modules/inet_ntop: Likewise.
29454         * modules/inet_pton: Likewise.
29455         * modules/inttypes: Likewise.
29456         * modules/isnand-nolibm: Likewise.
29457         * modules/isnanf-nolibm: Likewise.
29458         * modules/mbchar: Likewise.
29459         * modules/mbfile: Likewise.
29460         * modules/mbiter: Likewise.
29461         * modules/mbuiter: Likewise.
29462         * modules/netdb: Likewise.
29463         * modules/netinet_in: Likewise.
29464         * modules/nproc: Likewise.
29465         * modules/pagealign_alloc: Likewise.
29466         * modules/poll: Likewise.
29467         * modules/printf-frexp: Likewise.
29468         * modules/pthread: Likewise.
29469         * modules/putenv: Likewise.
29470         * modules/random_r: Likewise.
29471         * modules/relocatable-prog: Likewise.
29472         * modules/search: Likewise.
29473         * modules/select: Likewise.
29474         * modules/selinux-h: Likewise.
29475         * modules/settime: Likewise.
29476         * modules/signal: Likewise.
29477         * modules/size_max: Likewise.
29478         * modules/socklen: Likewise.
29479         * modules/ssize_t: Likewise.
29480         * modules/stdarg: Likewise.
29481         * modules/stdbool: Likewise.
29482         * modules/stddef: Likewise.
29483         * modules/stdint: Likewise.
29484         * modules/stdio: Likewise.
29485         * modules/stdlib: Likewise.
29486         * modules/string: Likewise.
29487         * modules/strings: Likewise.
29488         * modules/sys_file: Likewise.
29489         * modules/sys_ioctl: Likewise.
29490         * modules/sys_select: Likewise.
29491         * modules/sys_socket: Likewise.
29492         * modules/sys_stat: Likewise.
29493         * modules/sys_time: Likewise.
29494         * modules/sys_times: Likewise.
29495         * modules/sys_utsname: Likewise.
29496         * modules/sys_wait: Likewise.
29497         * modules/sysexits: Likewise.
29498         * modules/time: Likewise.
29499         * modules/times: Likewise.
29500         * modules/tmpfile: Likewise.
29501         * modules/trim: Likewise.
29502         * modules/unistd: Likewise.
29503         * modules/wchar: Likewise.
29504         * modules/wctype: Likewise.
29505
29506 2009-09-17  Bruno Haible  <bruno@clisp.org>
29507
29508         Make getdate.y compile on QNX and NetBSD 5 / i386.
29509         * m4/getdate.m4 (gl_GETDATE): Conditionally define
29510         TIME_T_FITS_IN_LONG_INT.
29511         * lib/getdate.y (long_time_t): New type.
29512         (relative_time): Change type of 'seconds' field to long_time_t.
29513         (get_date): Update types of local variables. Check against overflow
29514         during conversion from long_time_t to time_t.
29515         Reported by Matt Kraai <kraai@ftbfs.org>
29516         and Hasso Tepper <hasso@netbsd.org>.
29517
29518 2009-09-17  Bruno Haible  <bruno@clisp.org>
29519
29520         * modules/COPYING: Update copyright years.
29521         * modules/README: Likeiwse.
29522         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
29523         Reported by Ian Beckwith <ianb@erislabs.net>.
29524
29525 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29526
29527         * users.txt: Update references for gnuit package.
29528
29529 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29530
29531         * m4/getdelim.m4: Fix typo in copyright line.
29532
29533 2009-09-17  Bruno Haible  <bruno@clisp.org>
29534
29535         * lib/atoll.c: Use the standard header with GPL copyright.
29536         * lib/argz.in.h: Likewise.
29537         * lib/glob.c: Likewise.
29538         * lib/glob-libc.h: Likewise.
29539         * lib/random_r.c: Likewise.
29540         * lib/siglist.h: Likewise.
29541         * lib/strsignal.c: Likewise.
29542         Reported by Ian Beckwith <ianb@erislabs.net>.
29543
29544 2009-09-17  Eric Blake  <ebb9@byu.net>
29545
29546         rmdir: ensure correct dependency order
29547         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
29548
29549 2009-09-17  Bruno Haible  <bruno@clisp.org>
29550
29551         Disable assertion that fails on NetBSD 5 / i386.
29552         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
29553         Reported by Sam Steingold <sds@gnu.org>
29554         and Hasso Tepper <hasso@netbsd.org>.
29555
29556 2009-09-16  Eric Blake  <ebb9@byu.net>
29557
29558         unlinkdir: port to mingw
29559         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
29560         on which no one can unlink a directory.
29561
29562         stdlib: sort witness names
29563         * modules/stdlib (Makefile.am): Sort replacements.
29564         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
29565         * lib/stdlib.in.h: Likewise.
29566
29567         parse-duration-tests: avoid link failure
29568         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
29569         LIBINTL.
29570         Reported by Tom G. Christensen.
29571
29572         openat-tests: ensure unlinkat behaves like rmdir
29573         * tests/test-rmdir.c (main): Factor guts...
29574         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
29575         * modules/rmdir-tests (Files): Ship new file.
29576         * modules/openat-tests: New test.
29577         * tests/test-unlinkat.c: Likewise.
29578
29579         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
29580         * modules/rmdir-errno (Status, Notice): Now obsolete.
29581
29582         rmdir: work around cygwin 1.5.x and mingw bugs
29583         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
29584         * lib/rmdir.c (rmdir): Work around it.
29585         * modules/rmdir (Status, Notice): No longer obsolete.
29586         (Files): Add dos.m4.
29587         (Depends-on): Add unistd.
29588         (configure.ac): Set witnesses.
29589         (License): Relax to LGPLv2+.
29590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
29591         * modules/unistd (Makefile.am): Substitute witnesses.
29592         * lib/unistd.in.h (rmdir): Declare replacement.
29593         * doc/posix-functions/rmdir.texi (rmdir): Document this.
29594         * modules/rmdir-tests: New tests.
29595         * tests/test-rmdir.c: Likewise.
29596
29597 2009-09-15  Eric Blake  <ebb9@byu.net>
29598
29599         fchdir: improve use of replacement functions
29600         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
29601         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
29602         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
29603         REPLACE_CLOSEDIR.
29604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
29605         * modules/sys_stat (Makefile.am): Substitute correct witness.
29606         * modules/dirent (Makefile.am): Likewise.
29607         * modules/unistd (Makefile.am): Likewise.
29608         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
29609         * lib/unistd.in.h (dup): Likewise.
29610         * lib/sys_stat.in.h (fstat): Likewise.
29611
29612         maint: ignore gnulib-tool temp files
29613         * .gitignore: Ignore files created during gnulib-tool --test.
29614
29615 2009-09-13  Jim Meyering  <meyering@redhat.com>
29616
29617         posixtm: don't reject a time that specify "60" as the number of seconds
29618         * lib/posixtm.c (posixtime): The code to reject invalid dates
29619         would also reject a time specified with the .60 suffix.
29620         But POSIX allows that, in order to accommodate leap seconds.
29621         So don't reject it.
29622         (main): Adjust tests accordingly.
29623         * modules/posixtm (Depends-on): Add stpcpy.
29624
29625 2009-09-11  Jim Meyering  <meyering@redhat.com>
29626
29627         announce-gen: include [$release_type] in emitted Subject:
29628         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
29629         e.g., [stable] in the emitted Subject: line.
29630
29631 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29632
29633         Remove obsolete macros from several modules.
29634         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
29635         obsolete Autoconf macros with their modern counterparts.
29636         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
29637         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
29638         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
29639         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
29640         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
29641         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29642         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29643         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29644         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29645         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
29646         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
29647         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
29648         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
29649         * m4/sockets.m4 (gl_SOCKETS): Likewise.
29650         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
29651         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
29652         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
29653         * m4/time_r.m4 (gl_TIME_R): Likewise.
29654         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29655         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
29656         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29657
29658         Fix copyright header in build-aux scripts.
29659         * build-aux/git-version-gen: Fix copyright header to match GPLv3
29660         recommendation.
29661         * build-aux/ncftpput-ftp: Likewise.
29662         * build-aux/update-copyright: Likewise.
29663
29664 2009-09-09  Eric Blake  <ebb9@byu.net>
29665
29666         test-link: allow Linux choice of errno
29667         * tests/test-link.c (main): Relax test for alternate error.
29668
29669         strndup: fix improper m4 caching
29670         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
29671         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
29672         (gl_PREREQ_STRNDUP): Delete.
29673         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
29674         * modules/string (Makefile.am): Substitute it.
29675         * lib/string.in.h (strndup): Modernize prototype.
29676
29677         getcwd: port to mingw
29678         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
29679         different from the POSIX assumptions made throughout the getcwd
29680         module; fortunately, the mingw getcwd does not need replacement.
29681         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
29682         * modules/getcwd-tests: New test.
29683         * tests/test-getcwd.c: Likewise.
29684
29685         link: fix platform bugs
29686         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
29687         * lib/link.c (link): Work around them.  Fix related mingw bug.
29688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
29689         * modules/unistd (Makefile.am): Substitute it.
29690         * lib/unistd.in.h (link): Declare replacement.
29691         * doc/posix-functions/link.texi (link): Document this.
29692         * modules/link (Depends-on): Add strdup-posix, sys_stat.
29693
29694         test-link: consolidate into single C program, test more cases
29695         * tests/test-link.sh: Delete.
29696         * tests/test-link.c: Test more error conditions.  Exposes bugs on
29697         at least Cygwin and Solaris.
29698         * modules/link-tests (Files): Remove unused file.
29699         (Depends-on): Add errno, sys_stat.
29700         (Makefile.am): Simplify.
29701
29702 2009-09-08  Bruno Haible  <bruno@clisp.org>
29703
29704         Work around towlower, towupper bug on mingw.
29705         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
29706         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
29707         * doc/posix-functions/towlower.texi: Mention the mingw bug.
29708         * doc/posix-functions/towupper.texi: Likewise.
29709         Reported by Eric Blake.
29710
29711 2009-09-08  Jim Meyering  <meyering@redhat.com>
29712
29713         build: don't try to run autoheader if we don't use it
29714         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
29715         is not used in configure.ac.
29716
29717 2009-09-08  Eric Blake  <ebb9@byu.net>
29718
29719         euidaccess: fix compilation error
29720         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
29721
29722         rawmemchr: relax license
29723         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
29724         okay.
29725         Reported by Jim Meyering.
29726
29727         mkfifoat: new module
29728         * modules/mkfifoat: New file.
29729         * lib/mkfifoat.c: Likewise.
29730         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
29731         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29732         * modules/sys_stat (Makefile.am): Use them.
29733         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
29734         * MODULES.html.sh (File system functions): Mention module.
29735         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
29736         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
29737         * modules/mkfifoat-tests: New test.
29738         * tests/test-mkfifoat.c: Likewise.
29739
29740         strchrnul: relax license
29741         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
29742         okay.
29743         Reported by Jim Meyering.
29744
29745 2009-09-08  Eric Blake  <ebb9@byu.net>
29746
29747         fstatat: fix compilation on Solaris
29748         * lib/fstatat.c (includes): Add fcntl.h.
29749         Reported by Pádraig Brady.
29750
29751 2009-09-07  Eric Blake  <ebb9@byu.net>
29752
29753         rename: modernize replacement
29754         * modules/rename (Depends-on): Add stdio.
29755         (configure.ac): Declare witness.
29756         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
29757         stdio take care of replacement.
29758         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
29759         * modules/stdio (Makefile.am): Substitute them.
29760         * lib/stdio.in.h (rename): Declare replacement.
29761         * lib/rename.c (includes): Allow cross-compilation to non-windows
29762         machines.
29763         * doc/posix-functions/rename.texi (rename): Improve
29764         documentation.
29765
29766         stdio: sort witness names
29767         * modules/stdio (Makefile.am): Sort replacements.
29768         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29769         * lib/stdio.in.h: Likewise.
29770
29771         getcwd: minor cleanups
29772         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
29773         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
29774
29775         openat: provide more convenience names
29776         * modules/faccessat (configure.ac): Add C witness.
29777         * lib/unistd.in.h (readlinkat): Fix typo.
29778         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
29779         convenience wrappers.
29780         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
29781         wrappers in syntax checks.
29782
29783 2009-09-06  Eric Blake  <ebb9@byu.net>
29784
29785         doc: fix comments in recent patches
29786         * lib/faccessat.c: Mention correct function.
29787         * lib/fchmodat.c: Likewise.
29788         * lib/fchownat.c: Likewise.
29789         * lib/symlinkat.c: Likewise.
29790         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
29791         constants.
29792
29793         faccessat, symlinkat: continue cleanup of previous patch
29794         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
29795         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
29796         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
29797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
29798         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
29799         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
29800         set.
29801
29802 2009-09-06  Bruno Haible  <bruno@clisp.org>
29803
29804         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
29805         (fstatat): Declare if GNULIB_FSTATAT is set.
29806         (mkdirat): Declare if GNULIB_MKDIRAT is set.
29807         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
29808         (unlinkat): Declare if GNULIB_UNLINKAT is set.
29809         * modules/fcntl-h (Files): Remove m4/openat.m4.
29810         * modules/sys_stat (Files): Remove m4/openat.m4.
29811         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
29812         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
29813         * modules/unistd (Files): Remove m4/openat.m4.
29814         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
29815         GNULIB_OPENAT.
29816         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
29817         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
29818         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
29819         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
29820         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
29821         gl_OPENAT_DEFAULTS.
29822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
29823         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
29824         Don't require gl_OPENAT_DEFAULTS.
29825         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
29826         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
29827         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
29828         (gl_OPENAT_DEFAULTS): Remove macro.
29829
29830 2009-09-06  Bruno Haible  <bruno@clisp.org>
29831
29832         * modules/openat (configure.ac): Remove unneeded witness.
29833
29834 2009-09-06  Bruno Haible  <bruno@clisp.org>
29835
29836         Set errno to ENOSYS when a function is entirely unsupported.
29837         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
29838         EOPNOTSUPP.
29839         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
29840         * modules/chown (Depends-on): Remove errno.
29841
29842 2009-09-06  Bruno Haible  <bruno@clisp.org>
29843
29844         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
29845
29846 2009-09-06  Bruno Haible  <bruno@clisp.org>
29847
29848         * lib/sys_stat.in.h: Fix preprocessor command indentation.
29849
29850 2009-09-06  Ben Pfaff  <blp@gnu.org>
29851             Bruno Haible  <bruno@clisp.org>
29852
29853         Work around a glibc bug in strtok_r.
29854         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
29855         Undefine if UNDEFINE_STRTOK_R is set.
29856         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
29857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29858         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
29859         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
29860         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
29861         UNDEFINE_STRTOK_R.
29862         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
29863
29864 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29865
29866         exclude: minor fix
29867         * lib/exclude.c: Include wctype.h
29868
29869 2009-09-06  Akim Demaille  <demaille@gostai.com>
29870
29871         bootstrap: improve error message
29872         * build-aux/bootstrap (find_tool): Upon failure, report the list
29873         of candidates.
29874         Honor the initial value of the envvar.
29875
29876 2009-09-05  Eric Blake  <ebb9@byu.net>
29877
29878         symlinkat: new module
29879         * modules/symlinkat: New file.
29880         * lib/symlinkat.c: Likewise.
29881         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
29882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29883         * modules/unistd (Makefile.am): Use them.
29884         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
29885         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
29886         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
29887         * MODULES.html.sh (File system functions): Mention module.
29888         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29889         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29890         * modules/symlinkat-tests: New test.
29891         * tests/test-symlinkat.c: Likewise.
29892
29893         test-openat-safer: add more checks
29894         * tests/test-openat-safer.c (main): Check more code paths.
29895
29896 2009-09-05  Jim Meyering  <meyering@redhat.com>
29897
29898         syntax-check: detect unnecessary inclusion of openat.h
29899         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
29900
29901 2009-09-05  Bruno Haible  <bruno@clisp.org>
29902
29903         Support towlower, towupper.
29904         * doc/posix-functions/towlower.texi: Mention module wctype.
29905         * doc/posix-functions/towupper.texi: Likewise.
29906         * lib/wctype.in.h (towlower, towupper): New functions.
29907         * tests/test-wctype.c: Include stdio.h, stdlib.h.
29908         (ASSERT): New macro.
29909         (e): New variable.
29910         (main): Test also towlower, towupper. Test WEOF argument.
29911         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29912
29913 2009-09-05  Bruno Haible  <bruno@clisp.org>
29914
29915         Fix conversion behaviour when the input is invalid.
29916         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
29917         mark occurring in first pass of indirect conversion.
29918         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
29919         input.
29920         Found by clang's static analyzer.
29921
29922 2009-09-05  Bruno Haible  <bruno@clisp.org>
29923
29924         * tests/test-striconveh.c (main): Test indirect conversion on platforms
29925         where direct conversion is possible.
29926
29927 2009-09-04  Eric Blake  <ebb9@byu.net>
29928
29929         openat: fail with ENOENT on empty name
29930         * lib/openat-proc.c (openat_proc_name): Special-case the empty
29931         buffer.
29932
29933         link-follow: fix logic bug in prior patch
29934         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
29935         reversed sense of yes and no in prior patch.  Avoid confusing
29936         compilation failure with desired semantics.
29937
29938         link-follow: accomodate mingw and cross-compilation
29939         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
29940         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
29941         cross-compilation results to -1, to make linkat easier to
29942         implement when cross-compiling.  Trivially support mingw.
29943         * modules/link-follow (configure.ac): Call new name.
29944         * NEWS: Mention this.
29945
29946 2009-09-03  Eric Blake  <ebb9@byu.net>
29947
29948         faccessat: compile replacement
29949         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
29950         needed.
29951
29952         fts: fix compilation error
29953         * lib/fts.c (includes): Re-add "openat.h", for
29954         openat_needs_fchdir.
29955
29956         faccessat: new module
29957         * modules/faccessat: New file.
29958         * lib/faccessat.c: Likewise.
29959         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
29960         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29961         * modules/unistd (Makefile.am): Use it.
29962         * lib/unistd.in.h (faccessat): Declare it.
29963         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
29964         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
29965         * MODULES.html.sh (File system functions): Mention it.
29966         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
29967         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
29968
29969         euidaccess: prefer POSIX over non-standard implementation
29970         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
29971         * lib/euidaccess.c (euidaccess): Use it if available.
29972
29973         openat: make template easier to use
29974         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
29975         AT_FUNC_F2 to be undefined.
29976         (VALIDATE_FLAG): New macro; use it to reject bad flags.
29977         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
29978         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
29979         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
29980         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
29981         Likewise.
29982         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
29983         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
29984         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
29985         Likewise.
29986
29987         openat: declare in POSIX headers
29988         * NEWS: Mention this.
29989         * modules/openat (configure.ac): Declare witnesses.
29990         (Depends-on): Add fcntl-h, sys_stat, unistd.
29991         (Include): Mention correct headers.
29992         * modules/fcntl-h (Depends-on): Add link-warning.
29993         (Files): Add openat.m4.
29994         (Makefile.am): Substitute witnesses.
29995         * modules/sys_stat (Files, Makefile.am): Likewise.
29996         * modules/unistd (Files, Makefile.am): Likewise.
29997         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
29998         (gl_OPENAT_DEFAULTS): New macro.
29999         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
30000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
30001         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
30002         (SYS_STAT_H): Remove unused variable.
30003         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
30004         * lib/fcntl--.h (includes): Remove unneeded header.
30005         * lib/openat-safer.c (includes): Likewise.
30006         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
30007         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
30008         appropriate headers.
30009         (__OPENAT_PREFIX): Delete.
30010         * lib/fcntl.in.h (openat): Provide declaration.
30011         (AT_FDCWD): Fix Solaris bug.
30012         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
30013         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
30014         * lib/fchmodat.c (includes):  Adjust to find declaration.
30015         * lib/fchownat.c (includes): Likewise.
30016         * lib/mkdirat.c (includes): Likewise.
30017         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
30018         still visible.
30019
30020 2009-09-02  Eric Blake  <ebb9@byu.net>
30021
30022         errno: use consistently
30023         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
30024         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
30025         * lib/canonicalize.c (ELOOP): Likewise.
30026         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
30027         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
30028         * lib/lchown.c (EOPNOTSUPP): Likewise.
30029         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
30030         * lib/savewd.c (ESTALE): Likewise.
30031         * lib/settime.c (ENOSYS): Likewise.
30032         * lib/utimens.c (ENOSYS): Likewise.
30033         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
30034         * lib/chdir-safer.c (ELOOP): Likewise.
30035         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
30036         * modules/c-stack (Depends-on): Add errno.
30037         * modules/canonicalize (Depends-on): Likewise.
30038         * modules/chdir-safer (Depends-on): Likewise.
30039         * modules/fdopendir (Depends-on): Likewise.
30040         * modules/inet_ntop (Depends-on): Likewise.
30041         * modules/inet_pton (Depends-on): Likewise.
30042         * modules/lchown (Depends-on): Likewise.
30043         * modules/openat (Depends-on): Likewise.
30044         * modules/savewd (Depends-on): Likewise.
30045         * modules/settime (Depends-on): Likewise.
30046         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
30047
30048         fts: avoid leaking fds
30049         * modules/fts (Depends-on): Add cloexec.
30050         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
30051         flag.
30052
30053         fts: make directory fds more robust
30054         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
30055         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
30056
30057         backupfile, chdir-long, fts, savedir: make safer
30058         * lib/backupfile.c (includes): Use "dirent--.h", since
30059         numbered_backup can write to stderr during readdir.
30060         * lib/savedir.c (includes): Likewise.
30061         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
30062         emulation can write to stderr on failure.
30063         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
30064         * lib/getcwd.c: Document why opendir_safer is unused.
30065         * lib/glob.c: Likewise.
30066         * lib/scandir.c: Likewise.
30067         * lib/openat-proc.c: Likewise, for open_safer.
30068         * modules/backupfile (Depends-on): Add dirent-safer.
30069         * modules/savedir (Depends-on): Likewise.
30070         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
30071         * modules/chdir-long (Depends-on): Add openat-safer.
30072
30073         openat-safer: new module
30074         * modules/openat-safer: New file.
30075         * lib/openat-safer.c: Likewise.
30076         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
30077         * lib/fcntl-safer.h (openat_safer): Declare.
30078         * lib/fcntl--.h (openat): Override.
30079         * MODULES.html.sh (File descriptor based I/O): Mention it.
30080         * lib/openat.h: Add double-inclusion guards.
30081         * lib/openat.c (includes): Only include "fcntl-safer.h", not
30082         "fcntl--.h", so we can implement openat.
30083         * modules/openat-safer-tests: New test.
30084         * tests/test-openat-safer.c: New file.
30085
30086         dirent-safer: new module
30087         * modules/dirent-safer: New file.
30088         * lib/dirent--.h: Likewise.
30089         * lib/dirent-safer.h: Likewise.
30090         * lib/opendir-safer.c: Likewise.
30091         * m4/dirent-safer.m4: Likewise.
30092         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
30093         * modules/dirent-safer-tests: New test.
30094         * tests/test-dirent-safer.c: New file.
30095         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
30096
30097         fdopendir: optimize on mingw
30098         * lib/unistd.in.h (_gl_directory_name): New prototype.
30099         * lib/fchdir.c (_gl_directory_name): Implement it.
30100         (fchdir): Use it to simplify implementation.
30101         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
30102         fchdir, when available, to avoid calling [f]chdir().
30103
30104         fdopendir: split into its own module
30105         * lib/openat.c (fdopendir): Move...
30106         * lib/fdopendir.c: ...into new file.
30107         * modules/fdopendir: New module.
30108         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
30109         * modules/openat (Depends-on): Add fdopendir.
30110         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
30111         fdopendir here.
30112         * modules/savedir (Depends-on): Only need fdopendir, not full
30113         openat.
30114         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
30115         * lib/openat.h (fdopendir): Drop prototype.
30116         * lib/dirent.in.h (fdopendir): Provide prototype.
30117         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
30118         * modules/dirent (Makefile.am): Substitute them.
30119         * MODULES.html.sh (File system functions): Mention it.
30120         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
30121         * modules/fdopendir-tests: New file.
30122         * tests/test-fdopendir.c: Likewise.
30123
30124         fchdir: use more consistent macro convention
30125         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
30126         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
30127         REPLACE_FCHDIR, rather than relying on config.h macros.
30128         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
30129         inside a single make-time REPLACE_FCHDIR block, rather than using
30130         the config.h FCHDIR_REPLACEMENT.
30131         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
30132         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
30133         Manage fstat replacement.
30134         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
30135         REPLACE_FCHDIR.
30136         * modules/sys_stat (Files): Add m4/unistd_h.m4.
30137         (Makefile.am): Substitute REPLACE_FCHDIR.
30138         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
30139         FCHDIR_REPLACEMENT.
30140         * lib/dup-safer.c (dup_safer): Likewise.
30141         * lib/dup2.c (rpl_dup2): Likewise.
30142         * lib/dup3.c (rpl_dup3): Likewise.
30143         * lib/open.c (rpl_open): Likewise.
30144
30145         fchdir: simplify error handling, and support dup3
30146         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
30147         stdbool, malloc-posix, realloc-posix.
30148         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
30149         (ensure_dirs_slot): Return false on allocation failure.
30150         (rpl_dup2): Delete.
30151         (_gl_register_dup): New function.
30152         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
30153         (_gl_register_fd): Close fd on allocation failure.
30154         * lib/fcntl.in.h (_gl_register_fd): Update signature.
30155         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
30156         prototype.
30157         (rpl_dup2_fchdir): Delete prototype.
30158         * lib/open.c (open): Update caller.
30159         * lib/dup2.c (dup2): Track fchdir metadata.
30160         * lib/dup3.c (dup3): Likewise.
30161         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
30162         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
30163
30164 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30165
30166         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
30167         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
30168         don't pass arguments to AC_OUTPUT.
30169
30170 2009-09-02  Bruno Haible  <bruno@clisp.org>
30171
30172         * modules/mkdtemp (License): Relicense under LGPLv2+.
30173         Reported by Paolo Bonzini.
30174
30175 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30176
30177         Replace uses of obsolete autoconf macros in Jim's modules.
30178         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
30179         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
30180         can evoke a warning from autoconf when run with -Wobsolete
30181         enabled.  They were declared obsolete for good reasons (see
30182         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
30183         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
30184         should not continue using the deprecated macros.
30185         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
30186         obsolete Autoconf macros with modern counterparts.
30187         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30188         * m4/dos.m4 (gl_AC_DOS): Likewise.
30189         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
30190         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
30191         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
30192         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
30193         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
30194         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
30195         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
30196         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
30197         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30198         Likewise.
30199         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
30200         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
30201         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
30202         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
30203         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
30204         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
30205
30206 2009-09-01  Eric Blake  <ebb9@byu.net>
30207
30208         fchdir: fix off-by-one bug in previous patch
30209         * lib/fchdir.c (rpl_fstat): Use correct bounds.
30210         (_gl_unregister_fd): Delete useless if.
30211
30212 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
30213
30214         maint.mk: sort the list of syntax-check rules
30215         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
30216         easier to get a sense of progress when the rules are run sequentially
30217         and take a long time.
30218
30219 2009-09-01  Simon Josefsson  <simon@josefsson.org>
30220
30221         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
30222         * modules/netinet_in: Likewise.
30223         * modules/sys_file: Likewise.
30224         * modules/sys_ioctl: Likewise.
30225         * modules/sys_select: Likewise.
30226         * modules/sys_socket: Likewise.
30227         * modules/sys_stat: Likewise.
30228         * modules/sys_time: Likewise.
30229         * modules/sys_times: Likewise.
30230         * modules/sys_utsname: Likewise.
30231         * modules/sys_wait: Likewise.
30232
30233 2009-09-01  Jim Meyering  <meyering@redhat.com>
30234
30235         fts: help ensure that return values are not ignored
30236         * lib/fts_.h (__GNUC_PREREQ): Define.
30237         (__attribute_warn_unused_result__): Define.
30238         (fts_children, fts_close, fts_open, fts_read): Declare with
30239         __attribute_warn_unused_result__.
30240
30241         fts: fts_close now fails also when closing a dir file descriptor fails
30242         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
30243         and propagate to caller, along with errno.
30244
30245         announce-gen: correct formatting in --help output
30246         * build-aux/announce-gen (usage): Move the one-line description in
30247         --help output "up", to where it belongs, just after Usage:.
30248
30249 2009-08-31  Eric Blake  <ebb9@byu.net>
30250
30251         fchdir: port to mingw
30252         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
30253         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
30254         opened, then use a substitute.
30255         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
30256         replacement.
30257         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
30258         (_gl_register_fd): No need to check stat if open already filters
30259         all directories.
30260         (fchdir): Fix error condition to match POSIX.
30261         * modules/fchdir (Depends-on): Add sys_stat.
30262         * doc/posix-functions/open.texi (open): Document the limitation.
30263         * modules/fchdir-tests: New file.
30264         * tests/test-fchdir.c: Likewise.
30265
30266         canonicalize: allow cross-testing from cygwin to mingw
30267         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
30268         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
30269         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
30270         Likewise.
30271         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
30272         target does not support symlinks.
30273         * tests/test-canonicalize-lgpl.sh: Likewise.
30274
30275         chown: avoid compilation warning on mingw
30276         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
30277         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
30278         mingw.
30279         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30280         * modules/chown (Depends-on): Add errno.
30281
30282 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30283
30284         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
30285         command.
30286
30287 2009-08-31  Jim Meyering  <meyering@redhat.com>
30288
30289         canonicalize: remove useless initialization
30290         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
30291         initialization of local, "end".
30292
30293 2009-08-30  Bruno Haible  <bruno@clisp.org>
30294
30295         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
30296         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
30297         ENOSYS.
30298
30299 2009-08-30  Bruno Haible  <bruno@clisp.org>
30300
30301         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
30302         /usr/xpg4/bin/tr when it exists.
30303         * tests/test-pipe-filter-gi1.sh: Likewise.
30304
30305 2009-08-30  Bruno Haible  <bruno@clisp.org>
30306
30307         Work around deficient /usr/bin/id program on Solaris.
30308         * tests/test-file-has-acl.sh (ID): New variable.
30309         * tests/test-set-mode-acl.sh (ID): Likewise.
30310         * tests/test-copy-acl.sh (ID): Likewise.
30311         * tests/test-copy-file.sh (ID): Likewise.
30312
30313 2009-08-30  Bruno Haible  <bruno@clisp.org>
30314
30315         New module 'xstriconveh'.
30316         * lib/xstriconveh.h: New file.
30317         * lib/xstriconveh.c: New file.
30318         * modules/xstriconveh: New file.
30319
30320 2009-08-30  Bruno Haible  <bruno@clisp.org>
30321
30322         Make it easier to use mem_cd_iconveh.
30323         * lib/striconveh.h (iconveh_t): New type.
30324         (iconveh_open, iconveh_close): New declarations.
30325         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30326         with a single 'const iconveh_t *' argument.
30327         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
30328         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30329         with a single 'const iconveh_t *' argument.
30330         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
30331         * tests/test-striconveh.c (main): Update.
30332         * NEWS: Mention the change.
30333
30334 2009-08-30  Bruno Haible  <bruno@clisp.org>
30335
30336         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
30337         problem.
30338
30339 2009-08-30  Bruno Haible  <bruno@clisp.org>
30340
30341         Work around iconv_open problem on Solaris.
30342         * lib/iconv_open-solaris.gperf: New file.
30343         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
30344         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
30345         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
30346         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
30347         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
30348         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
30349
30350 2009-08-29  Jim Meyering  <meyering@redhat.com>
30351
30352         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
30353         * top/maint.mk (cvs-check): Remove target; it was just an alias
30354         to the better-named vc-diff-check.
30355         (maintainer-distcheck): Remove rule.  It was used only from
30356         the (alpha/beta/major) target, and all of its commands but one
30357         were coreutils-specific.
30358         (vc-dist): Remove rule.
30359         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
30360         Run vc-diff-check, not vc-dist.
30361         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
30362
30363 2009-08-27  Bruno Haible  <bruno@clisp.org>
30364
30365         * tests/test-bitrotate.c (main): Remove test that uses a shift count
30366         of 0.
30367
30368 2009-08-27  Bruno Haible  <bruno@clisp.org>
30369
30370         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
30371         compilers.
30372         * doc/func.texi: Document the SunPRO C bug.
30373
30374 2009-08-27  Bruno Haible  <bruno@clisp.org>
30375
30376         Fix link error on Solaris.
30377         * tests/test-parse-duration.c (xstrdup): Remove function.
30378
30379 2009-08-26  Pádraig Brady  <P@draigbrady.com>
30380
30381         ignore-value: handle pointer types, too
30382         * lib/ignore-value.h (__attribute__): Remove definition.
30383         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
30384         of a more concise and more-often effective "(void) i" statement.
30385         (ignore_ptr): New function to suppress warnings from functions that
30386         return pointers, and to make it explicit that one function doesn't
30387         handle all cases.
30388
30389 2009-08-25  Bruno Haible  <bruno@clisp.org>
30390
30391         dup2: work around a Linux bug.
30392         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
30393         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
30394         * doc/posix-functions/dup2.texi: Mention the Linux bug.
30395         Reported by Simon Josefsson.
30396
30397 2009-08-25  Jim Meyering  <meyering@redhat.com>
30398
30399         libguestfs uses gnulib
30400         * users.txt: Add libguestfs.
30401
30402 2009-08-24  Eric Blake  <ebb9@byu.net>
30403
30404         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
30405         * lib/pipe2.c (includes): Add binary-io.h.
30406         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
30407
30408 2009-08-24  Bruno Haible  <bruno@clisp.org>
30409
30410         Tolerate declared but missing accept4 syscall.
30411         * lib/accept4.c (accept4): Invoke original accept4 function first, if
30412         available.
30413         * lib/sys_socket.in.h (accept4): If the function is already present,
30414         override it.
30415         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
30416         * modules/accept4 (Makefile.am): Compile accept4.c always.
30417         Reported by Paolo Bonzini and Eric Blake.
30418
30419 2009-08-23  Bruno Haible  <bruno@clisp.org>
30420
30421         New module 'accept4'.
30422         * lib/sys_socket.in.h (accept4): New declaration.
30423         * lib/accept4.c: New file.
30424         * m4/accept4.m4: New file.
30425         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30426         GNULIB_ACCEPT4, HAVE_ACCEPT4.
30427         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
30428         HAVE_ACCEPT4.
30429         * modules/accept4: New file.
30430         * doc/glibc-functions/accept4.texi: Mention the new module.
30431
30432 2009-08-24  Jim Meyering  <meyering@redhat.com>
30433
30434         progname: also set global program_invocation_name, when possible
30435         Before this change, a libtool-enabled program that calls glibc's
30436         error function would report the program name as
30437         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
30438         * modules/progname (configure.ac): Check for a declaration of
30439         program_invocation_name.
30440         * lib/progname.c:  Include <errno.h>.
30441         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
30442         Set program_invocation_name.
30443
30444 2009-08-23  Bruno Haible  <bruno@clisp.org>
30445
30446         * lib/dup3.c: Include <string.h>.
30447
30448 2009-08-23  Bruno Haible  <bruno@clisp.org>
30449
30450         * lib/dup3.c (dup3): Test only once whether the system actually exists.
30451         * lib/pipe2.c (pipe2): Likewise.
30452         Suggested by Eric Blake.
30453
30454 2009-08-23  Bruno Haible  <bruno@clisp.org>
30455
30456         Tolerate declared but missing dup3 syscall.
30457         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
30458         * lib/unistd.in.h (dup3): If the function is already present,
30459         override it.
30460         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
30461         * modules/dup3 (Makefile.am): Compile dup3.c always.
30462         Reported by Paolo Bonzini.
30463
30464 2009-08-23  Bruno Haible  <bruno@clisp.org>
30465
30466         Tolerate declared but missing pipe2 syscall.
30467         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
30468         available.
30469         * lib/unistd.in.h (pipe2): If the function is already present,
30470         override it.
30471         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
30472         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
30473         Reported by Paolo Bonzini.
30474
30475 2009-08-23  Bruno Haible  <bruno@clisp.org>
30476
30477         * lib/pipe2.c (pipe2): Move #ifs inside function.
30478
30479 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30480
30481         quotearg: document limitations of quote_these_too
30482         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
30483         those limitations are created.
30484         * lib/quotearg.h (set_char_quoting): Document that digits and
30485         letters that are special after backslash are not permitted.
30486         (quotearg_char): Cross-reference set_char_quoting documentation.
30487
30488 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
30489
30490         quotearg: implement custom_quoting_style
30491         * lib/quotearg.c: (struct quoting_options): Add left_quote and
30492         right_quote fields.
30493         (set_custom_quoting): New public function.
30494         (quotearg_buffer_restyled): Add left_quote and right_quote
30495         arguments, handle them very much like locale quoting, and update
30496         all uses.
30497         (quotearg_n_custom): New public function.
30498         (quotearg_n_custom_mem): New public function.
30499         (quotearg_custom): New public function.
30500         (quotearg_custom_mem): New public function.
30501         * lib/quotearg.h: Prototype and document new public functions.
30502         (enum quoting_style): For escape_quoting_style and
30503         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
30504         ignored even though they're otherwise like c_quoting_style.
30505         Add custom_quoting_style member and document with comparison to
30506         clocale_quoting_style.
30507         * tests/test-quotearg.c (custom_quotes): New array.
30508         (custom_results): New array.
30509         (main): Extend to test custom quoting.
30510
30511 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30512
30513         quotearg: fix right quote escaping when it's in quote_these_too
30514         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
30515         quote, be sure to prepend only one backslash.
30516         * tests/test-quotearg.c (use_quote_double_quotes): New function.
30517         (main): Test it.
30518
30519 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30520
30521         quotearg-tests: test escaping of embedded locale quotes
30522         * tests/test-quotearg.c (struct result_strings): Add member for
30523         new input.
30524         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
30525         (inputs): Add new input.
30526         (results_g): Add expected results.
30527         (flag_results): Likewise.
30528         (locale_results): Likewise.
30529         (compare_strings): Check those.
30530
30531 2009-08-23  Bruno Haible  <bruno@clisp.org>
30532
30533         Tests for module 'dup3'.
30534         * modules/dup3-tests: New file.
30535         * tests/test-dup3.c: New file.
30536
30537         New module 'dup3'.
30538         * lib/unistd.in.h (dup3): New declaration.
30539         * lib/dup3.c: New file.
30540         * m4/dup3.m4: New file.
30541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
30542         HAVE_DUP3.
30543         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
30544         * modules/dup3: New file.
30545         * doc/glibc-functions/dup3.texi: Mention the new module.
30546
30547 2009-08-23  Bruno Haible  <bruno@clisp.org>
30548
30549         Tweak the dup2 test.
30550         * tests/test-dup2.c (main): Create the test file empty. Verify that an
30551         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
30552         the test file is still empty. Fix argument order of lseek.
30553
30554 2009-08-23  Bruno Haible  <bruno@clisp.org>
30555
30556         Avoid test link errors when the modules getopt-gnu, gettext are used.
30557         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
30558         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30559
30560 2009-08-23  Bruno Haible  <bruno@clisp.org>
30561
30562         Fix getdtablesize() on mingw.
30563         * lib/getdtablesize.c (getdtablesize): Implement differently.
30564         * lib/unistd.in.h (getdtablesize): Improve comment.
30565
30566 2009-08-23  Bruno Haible  <bruno@clisp.org>
30567
30568         New module 'mkostemp'.
30569         Based on Ulrich Drepper's 2007-08-10 change in glibc.
30570         * lib/stdlib.in.h (mksotemp): New declaration.
30571         * lib/mkostemp.c: New file, from glibc with modifications.
30572         * lib/tempname.h (GT_FILE): Remove outdated comment.
30573         (gen_tempname): Add flags argument.
30574         * lib/tempname.c (__GT_BIGFILE): Remove macro.
30575         (__GT_FILE): Map to 1.
30576         (small_open, large_open): Remove macros.
30577         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
30578         * lib/mkstemp.c (mkstemp): Update.
30579         * lib/mkdtemp.c (mkdtemp): Likewise.
30580         * m4/mkostemp.m4: New file.
30581         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
30582         HAVE_MKOSTEMP.
30583         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
30584         HAVE_MKOSTEMP.
30585         * modules/mkostemp: New file, based on modules/mkstemp.
30586         * doc/glibc-functions/mkostemp.texi: Mention the new module.
30587         * NEWS: Mention the change.
30588
30589 2009-08-23  Bruno Haible  <bruno@clisp.org>
30590
30591         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
30592         Reported by Eric Blake.
30593
30594 2009-08-23  Bruno Haible  <bruno@clisp.org>
30595
30596         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
30597         Reported by Eric Blake.
30598
30599 2009-08-23  Bruno Haible  <bruno@clisp.org>
30600
30601         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
30602         * modules/pipe2 (Depends-on): Likewise.
30603
30604 2009-08-23  Eric Blake  <ebb9@byu.net>
30605
30606         fcntl-h: add O_TTY_INIT support
30607         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
30608         * tests/test-fcntl-h.c (o): Test it.
30609         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30610
30611         fcntl-h: rename from fcntl, in preparation for fcntl(2)
30612         * modules/fcntl: Move <fcntl.h> header replacement...
30613         * modules/fcntl-h: ...to new name, so as not to collide with
30614         like-named function.
30615         * tests/test-fcntl.c: Rename...
30616         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
30617         * modules/fcntl-tests: Rename...
30618         * modules/fcntl-h-tests: ...to this.  Update test file name.
30619         * modules/chdir-long (Depends-on): Update clients.
30620         * modules/chdir-safer (Depends-on): Likewise.
30621         * modules/fcntl-safer (Depends-on): Likewise.
30622         * modules/fts (Depends-on): Likewise.
30623         * modules/mkancesdirs (Depends-on): Likewise.
30624         * modules/mkdir-p (Depends-on): Likewise.
30625         * modules/open (Depends-on): Likewise.
30626         * modules/savewd (Depends-on): Likewise.
30627         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
30628         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30629
30630 2009-08-22  Bruno Haible  <bruno@clisp.org>
30631
30632         * modules/binary-io (License): Relicense under LGPL.
30633         * modules/pipe2 (License): Likewise.
30634
30635 2009-08-22  Bruno Haible  <bruno@clisp.org>
30636
30637         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
30638         return value.
30639         * lib/pipe-filter-gi.c (filter_init): Likewise.
30640         Reported by Eric Blake.
30641
30642 2009-08-22  Bruno Haible  <bruno@clisp.org>
30643
30644         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
30645         * modules/pipe (Depends-on): Add pipe2.
30646
30647 2009-08-22  Bruno Haible  <bruno@clisp.org>
30648
30649         Tests for module 'pipe2'.
30650         * modules/pipe2-tests: New file.
30651         * tests/test-pipe2.c: New file.
30652
30653         New module 'pipe2'.
30654         * lib/unistd.in.h (pipe2): New declaration.
30655         * lib/pipe2.c: New file.
30656         * m4/pipe2.m4: New file.
30657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
30658         HAVE_PIPE2.
30659         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
30660         * modules/pipe2: New file.
30661         * doc/glibc-functions/pipe2.texi: Mention the new module.
30662
30663 2009-08-22  Bruno Haible  <bruno@clisp.org>
30664
30665         Reference some new glibc functions.
30666         * doc/glibc-functions/accept4.texi: New file.
30667         * doc/glibc-functions/dup3.texi: New file.
30668         * doc/glibc-functions/mkostemp.texi: New file.
30669         * doc/glibc-functions/pipe2.texi: New file.
30670         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
30671         (Glibc sys/socket.h): Refer to accept4.
30672         (Glibc unistd.h): Refer to dup3, pipe2.
30673         Reported by Eric Blake.
30674
30675 2009-08-22  Jim Meyering  <meyering@redhat.com>
30676             Bruno Haible  <bruno@clisp.org>
30677
30678         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
30679         This makes it so packages using automake-1.11's silent-rules option
30680         can print e.g., a single "GEN    configmake.h" line, rather than
30681         the 30+ statements that perform the job.  If you want to see the
30682         actual commands, you can still run "make V=1".
30683         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
30684         so that make output is abbreviated when those variables are defined
30685         appropriately.
30686         * modules/argz: Likewise.
30687         * modules/arpa_inet: Likewise.
30688         * modules/byteswap: Likewise.
30689         * modules/configmake: Likewise.
30690         * modules/dirent: Likewise.
30691         * modules/errno: Likewise.
30692         * modules/fcntl: Likewise.
30693         * modules/float: Likewise.
30694         * modules/fnmatch: Likewise.
30695         * modules/getopt-posix: Likewise.
30696         * modules/glob: Likewise.
30697         * modules/iconv_open: Likewise.
30698         * modules/inttypes: Likewise.
30699         * modules/localcharset: Likewise.
30700         * modules/locale: Likewise.
30701         * modules/math: Likewise.
30702         * modules/netdb: Likewise.
30703         * modules/netinet_in: Likewise.
30704         * modules/poll: Likewise.
30705         * modules/posix_spawnp-tests: Likewise.
30706         * modules/sched: Likewise.
30707         * modules/search: Likewise.
30708         * modules/selinux-h: Likewise.
30709         * modules/signal: Likewise.
30710         * modules/spawn: Likewise.
30711         * modules/stdarg: Likewise.
30712         * modules/stdbool: Likewise.
30713         * modules/stddef: Likewise.
30714         * modules/stdint: Likewise.
30715         * modules/stdio: Likewise.
30716         * modules/stdlib: Likewise.
30717         * modules/string: Likewise.
30718         * modules/strings: Likewise.
30719         * modules/sys_file: Likewise.
30720         * modules/sys_ioctl: Likewise.
30721         * modules/sys_select: Likewise.
30722         * modules/sys_socket: Likewise.
30723         * modules/sys_stat: Likewise.
30724         * modules/sys_time: Likewise.
30725         * modules/sys_times: Likewise.
30726         * modules/sys_utsname: Likewise.
30727         * modules/sys_wait: Likewise.
30728         * modules/sysexits: Likewise.
30729         * modules/time: Likewise.
30730         * modules/unistd: Likewise.
30731         * modules/wchar: Likewise.
30732         * modules/wctype: Likewise.
30733
30734 2009-08-22  Jim Meyering  <meyering@redhat.com>
30735
30736         announce-gen: detect write failure
30737         * build-aux/announce-gen: Add Coda at end.
30738         Remove equivalent-but-more-verbose block at top.
30739
30740 2009-08-19  Akim Demaille  <demaille@gostai.com>
30741
30742         bootstrap: --help to stdout.
30743         * bootstrap (usage): Don't send --help to stderr.
30744         Use a here doc instead of a long string.
30745
30746 2009-08-21  Eric Blake  <ebb9@byu.net>
30747
30748         test-popen-safer: split from test-popen
30749         * tests/test-popen.c (main): Move...
30750         * tests/test-popen.h: ...into new file.
30751         * tests/test-popen-safer2.c: New file.
30752         * modules/popen-tests (Files): Add test-popen.h.
30753         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
30754         Suggested by Bruno Haible.
30755
30756         test-fcntl-safer: split from test-open
30757         * tests/test-open.c (main): Move...
30758         * tests/test-open.h: ...into new file.
30759         * tests/test-fcntl-safer.c: New file.
30760         * modules/open-tests (Files): Add test-open.h.
30761         * modules/fcntl-safer-tests: New file.
30762         Suggested by Bruno Haible.
30763
30764         test-fopen-safer: split from test-fopen
30765         * tests/test-fopen.c (main): Move...
30766         * tests/test-fopen.h: ...into new file.
30767         * tests/test-fopen-safer.c: New file.
30768         * modules/fopen-tests (Files): Add test-fopen.h.
30769         * modules/fopen-safer-tests: New file.
30770         Suggested by Bruno Haible.
30771
30772 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
30773
30774         popen-safer: test O_CLOEXEC at run-time.
30775         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
30776
30777 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
30778
30779         fcntl: move more flags to the header
30780         * lib/cloexec.c: Do not define FD_CLOEXEC here.
30781         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
30782         * lib/fcntl.in.h: Do both things here.
30783
30784 2009-08-21  Jim Meyering  <meyering@redhat.com>
30785
30786         consistently remove $@-t before redirecting to it
30787         * modules/argz: Remove $@-t and $@ before redirecting to the former.
30788         * modules/alloca-opt: Likewise.
30789         * modules/byteswap: Likewise.
30790         * modules/fnmatch: Likewise.
30791         * modules/getopt-posix: Likewise.
30792         * modules/glob: Likewise.
30793         * modules/poll: Likewise.
30794         * modules/posix_spawnp-tests: Likewise.
30795         * modules/sys_socket: Likewise.
30796         * modules/sysexits: Likewise.
30797
30798 2009-08-21  Eric Blake  <ebb9@byu.net>
30799
30800         popen: simplify access to original popen
30801         * lib/popen.c (rpl_popen): No need to worry about popen being a
30802         macro.
30803         Reported by Bruno Haible.
30804
30805 2009-08-20  Eric Blake  <ebb9@byu.net>
30806
30807         build: avoid some compiler warnings
30808         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
30809         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
30810         type.
30811         (new_exclude_segment, excluded_file_pattern_p)
30812         (excluded_file_name_p): Reduce scope.
30813         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
30814         old-style declaration.
30815
30816 2009-08-20  Simon Josefsson  <simon@josefsson.org>
30817
30818         * tests/test-exclude1.sh: Handle Windows EOL.
30819         * tests/test-exclude2.sh: Likewise.
30820         * tests/test-exclude3.sh: Likewise.
30821         * tests/test-exclude4.sh: Likewise.
30822         * tests/test-exclude5.sh: Likewise.
30823         * tests/test-exclude6.sh: Likewise.
30824         * tests/test-exclude7.sh: Likewise.
30825
30826 2009-08-19  Akim Demaille  <demaille@gostai.com>
30827
30828         bootstrap: find sha1sum when named gsha1sum.
30829         * bootstrap (find_tool): New.
30830         ($SHA1SUM): New.
30831         Use it.
30832
30833 2009-08-20  Jim Meyering  <meyering@redhat.com>
30834
30835         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
30836         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
30837         expression that converts "." in a file name to "\." in the resulting
30838         regexp.  Start with a dummy statement, so that prior shell variable
30839         definitions are expanded portably.  Reported by Simon Josefsson.
30840
30841 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
30842
30843         Fix polling for writeability of a screen buffer.
30844         * lib/poll.c: Distinguish input and screen buffers for the
30845         Win32 implementation.
30846         * lib/select.c: Likewise.
30847
30848 2009-08-19  Eric Blake  <ebb9@byu.net>
30849
30850         popen-safer: prevent popen from clobbering std descriptors
30851         * modules/popen-safer: New file.
30852         * lib/popen-safer.c: Likewise.
30853         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
30854         * lib/stdio--.h (popen): Provide override.
30855         * lib/stdio-safer.h (popen_safer): Provide declaration.
30856         * tests/test-popen.c (includes): Partially test this.
30857         * modules/popen-safer-tests: New file, for more tests.
30858         * tests/test-popen-safer.c: Likewise.
30859         * MODULES.html.sh (file stream based Input/Output): Mention it.
30860
30861         tests: test some of the *-safer modules
30862         * modules/fopen-safer (Depends-on): Add fopen.
30863         * modules/fcntl-safer (Depends-on): Add fcntl.
30864         * modules/stdlib-safer (Depends-on): Add stdlib.
30865         (configure.ac): Set indicator.
30866         * modules/unistd-safer (configure.ac): Likewise.
30867         * modules/tmpfile-safer (configure.ac): Likewise.
30868         (Depends-on): Add tmpfile.
30869         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
30870         active.
30871         * tests/test-fopen.c (includes): Test safer versions when they are
30872         in use.
30873         * tests/test-open.c (includes): Likewise.
30874
30875         popen: fix cygwin 1.5 bug when stdin closed
30876         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
30877         * modules/popen: New file.
30878         * modules/popen-tests: Likewise.
30879         * tests/test-popen.c: Likewise.
30880         * m4/popen.m4: Likewise.
30881         * lib/popen.c: Likewise.
30882         * lib/stdio.in.h (popen): New declaration.
30883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
30884         * modules/stdio (Makefile.am): Likewise.
30885         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
30886
30887 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
30888
30889         maint.mk: give full control over update-copyright exclusions
30890         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
30891         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
30892         (update-copyright): Don't force inclusion of top-level
30893         ChangeLog.  Don't force exclusion of all COPYING files, but make
30894         them the default exclusion instead.
30895
30896 2009-08-16  Bruno Haible  <bruno@clisp.org>
30897
30898         Fix test failures on Solaris 10.
30899         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
30900         tests when Solaris iconv() is used.
30901         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
30902         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
30903         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
30904         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
30905         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
30906
30907 2009-08-16  Bruno Haible  <bruno@clisp.org>
30908
30909         Fix test failures on Solaris 10.
30910         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
30911         'tr' program and pass it as first argument.
30912         * tests/test-pipe-filter-gi1.sh: Likewise.
30913         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
30914         program as first argument.
30915         * tests/test-pipe-filter-gi1.c (main): Likewise.
30916
30917 2009-08-16  Eric Blake  <ebb9@byu.net>
30918
30919         fpurge: fix previous commits
30920         * modules/fpurge (Makefile.am): Make replacement conditional,
30921         partially reverting 2007-04-29 change; missed in previous
30922         attempt.
30923         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
30924         is missing.
30925
30926 2009-08-16  Bruno Haible  <bruno@clisp.org>
30927
30928         Clarify fpurge's effect on the file position.
30929         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
30930         * tests/test-fpurge.c (main): Make a second pass for checking the file
30931         position.
30932
30933 2009-08-16  Bruno Haible  <bruno@clisp.org>
30934
30935         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
30936         declaration of fpurge is missing.
30937         * tests/test-fpurge.c (main): Check that the file has not more contents
30938         than expected. Close the file before removing it.
30939
30940 2009-08-15  Eric Blake  <ebb9@byu.net>
30941
30942         fpurge: don't wrap working cygwin implementation
30943         * lib/fpurge.c (fpurge): Fix comment typo.
30944         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
30945         1.7 to avoid replacement.
30946         * tests/test-fpurge.c (main): Enhance test.
30947
30948 2009-08-15  Eric Blake  <ebb9@byu.net>
30949         and Jim Meyering  <meyering@redhat.com>
30950
30951         test-update-copyright: skip if perl is insufficient
30952         * tests/test-update-copyright.sh: Failure to run maintainer tool
30953         should not cause testsuite failure on cygwin 1.5.
30954
30955 2009-08-14  Eric Blake  <ebb9@byu.net>
30956
30957         doc: mention more functions added in cygwin 1.7.0
30958         * doc/posix-headers/limits.texi (limits.h): Update for recent
30959         cygwin additions.
30960         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
30961         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
30962         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
30963         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
30964         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
30965
30966 2009-08-14  Eric Blake  <ebb9@byu.net>
30967
30968         maint.mk: simplify update-copyright rule
30969         * top/maint.mk (update-copyright-local): Delete, and document how
30970         to do it in cfg.mk instead.
30971         (update-copyright-exclude-regexp): Delete, and document how to do
30972         it in .x-update-copyright instead.
30973         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
30974         exclude ChangeLog.
30975
30976 2009-08-14  Bruno Haible  <bruno@clisp.org>
30977
30978         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
30979
30980 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30981
30982         maint.mk: support update-copyright-env
30983         * top/maint.mk (update-copyright-env): Define place-holder.
30984         (update-copyright): Expand $(update-copyright-env) before
30985         invoking update-copyright.
30986
30987 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30988
30989         update-copyright: implement forced reformatting
30990         * build-aux/update-copyright: Implement and document
30991         UPDATE_COPYRIGHT_FORCE.
30992         * tests/test-update-copyright.sh: Test it.
30993
30994 2009-08-14  Eric Blake  <ebb9@byu.net>
30995         and Bruno Haible  <bruno@clisp.org>
30996
30997         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
30998         * tests/test-locale.c: Revert previous patch related to NULL.
30999         * tests/test-stdio.c: Likewise.
31000         * tests/test-stdlib.c: Likewise.
31001         * tests/test-string.c: Likewise.
31002         * tests/test-unistd.c: Likewise.
31003         * modules/time-tests (Depends-on): Add verify.
31004         * modules/wchar-tests (Depends-on): Likewise.
31005         * tests/test-time.c: Test for NULL compliance.
31006         * tests/test-wchar.c: Likewise.
31007         * modules/locale (Depends-on): Add stddef.
31008         * modules/stdio (Depends-on): Likewise.
31009         * modules/stdlib (Depends-on): Likewise.
31010         * modules/string (Depends-on): Likewise.
31011         * modules/time (Depends-on): Likewise.
31012         * modules/unistd (Depends-on): Likewise.
31013         * modules/wchar (Depends-on): Likewise.
31014         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
31015         * lib/stdlib.in.h (includes): Likewise.
31016         * lib/string.in.h (includes): Likewise.
31017         * lib/time.in.h (includes): Likewise.
31018         * lib/unistd.in.h (includes): Likewise.
31019         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
31020         replaced.
31021         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31022         * m4/stddef_h.m4: New file.
31023         * modules/stddef: Likewise.
31024         * lib/stddef.in.h: Likewise.
31025         * modules/stddef-tests: Likewise.
31026         * tests/test-stddef.c: Likewise.
31027         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
31028         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
31029         * doc/posix-headers/locale.texi (locale.h): Likewise.
31030         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
31031         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31032         * doc/posix-headers/string.texi (string.h): Likewise.
31033         * doc/posix-headers/time.texi (time.h): Likewise.
31034         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
31035         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
31036
31037 2009-08-14  Eric Blake  <ebb9@byu.net>
31038
31039         doc: improve git diff of texinfo files
31040         * .gitattributes: Add rule for *.texi files, with hint on how to
31041         use it.
31042         Copied from m4, and based on a report by Bruno Haible.
31043
31044 2009-08-14  Bruno Haible  <bruno@clisp.org>
31045
31046         Disable multithread support by default on Cygwin 1.5.x for real.
31047         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
31048
31049 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31050
31051         update-copyright: much ado about intervals
31052         * build-aux/update-copyright: Implement and document
31053         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
31054         of copyright year intervals.
31055         Also, document UPDATE_COPYRIGHT_YEAR.
31056         * tests/test-update-copyright.sh: Test it.
31057
31058         update-copyright: convert 2-digit to 4-digit years
31059         * build-aux/update-copyright: Implement and document.
31060         * tests/test-update-copyright.sh: Update.
31061
31062 2009-08-14  Jim Meyering  <meyering@redhat.com>
31063
31064         test-exclude: avoid coreutils "make check" failure
31065         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
31066         just as in test-argmatch.c.
31067
31068 2009-08-13  Eric Blake  <ebb9@byu.net>
31069
31070         test-dup2: fix bad assumption
31071         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
31072         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
31073
31074         test-version-etc: fix CRLF portability issue
31075         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
31076         recognize \r.
31077         * tests/test-argp-version-etc-1.sh: Likewise.
31078
31079         getopt: update client modules
31080         * modules/argp (Depends-on): Use getopt-gnu.
31081         * modules/git-merge-changelog (Depends-on): Likewise.
31082         * modules/long-options (Depends-on): Likewise.
31083         * modules/xstrtol (Depends-on): Likewise.
31084
31085 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31086
31087         * tests/test-version-etc.sh: Don't fail on different
31088         project/version.  Don't fail on CRLF differences.  Rewrite to use
31089         multiple -e instead of multiple sed forks, suggested by Eric Blake
31090         <ebb9@byu.net>.
31091         * tests/test-argp-version-etc-1.sh: Likewise.
31092
31093 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31094
31095         * tests/test-version-etc.sh: Don't fail on different
31096         project/version.
31097
31098 2009-08-12  Bruno Haible  <bruno@clisp.org>
31099
31100         Tests for modules 'getopt-posix', 'getopt-gnu'.
31101         * modules/getopt-posix-tests: New file.
31102         * tests/test-getopt.c: New file.
31103         * tests/test-getopt.h: New file.
31104         * tests/test-getopt_long.h: New file.
31105
31106         New modules 'getopt-posix', 'getopt-gnu'.
31107         * modules/getopt-gnu: New file, renamed from modules/getopt.
31108         * modules/getopt-posix: New file.
31109         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
31110         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
31111         (gl_GETOPT): Remove macro.
31112         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
31113         Disable the test against BSD systems that declare optreset. Test
31114         against mingw bug. Test against lack of support of optional arguments
31115         on many platforms.
31116         * doc/glibc-headers/getopt.texi: Update module name and list of
31117         relevant platforms.
31118         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
31119         'getopt-gnu' and more portability problems.
31120         * NEWS: Mention the changes.
31121
31122 2009-08-12  Bruno Haible  <bruno@clisp.org>
31123
31124         Ensure that optarg etc. get declared by <unistd.h>.
31125         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
31126         AC_USE_SYSTEM_EXTENSIONS.
31127         * modules/getopt (Depends-on): Add 'extensions'.
31128
31129 2009-08-12  Bruno Haible  <bruno@clisp.org>
31130
31131         Avoid test link errors.
31132         * modules/pipe-filter-ii-tests (Makefile.am): Define
31133         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
31134         * modules/pipe-filter-gi-tests (Makefile.am): Define
31135         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
31136         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31137
31138 2009-08-12  Bruno Haible  <bruno@clisp.org>
31139
31140         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
31141         gl_GETOPT_SUBSTITUTE before.
31142         (gl_GETOPT): Use it.
31143         * m4/argp.m4 (gl_ARGP): Update.
31144         Reported by Sergey Poznyakoff.
31145
31146         * m4/getopt.m4: Reorder macros.
31147         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
31148         (gl_GETOPT_SUBSTITUTE): Remove macro.
31149
31150 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31151
31152         Minor improvement in gitlog-to-changelog
31153
31154         * build-aux/gitlog-to-changelog: New option `--format' makes
31155         output format string configurable.
31156
31157 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31158
31159         Optimize exclude: use hash tables for non-wildcard patterns.
31160
31161         * lib/exclude.c: Include hash.h and mbuiter.h
31162         (struct exclude_pattern, exclude_segment): New data types.
31163         (struct exclude): Rewrite.
31164         (fnmatch_pattern_has_wildcards): New function.
31165         (new_exclude_segment, free_exclude_segment): New functions.
31166         (excluded_file_pattern_p, excluded_file_name_p): New functions.
31167         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
31168         * lib/exclude.h (is_fnmatch_pattern): New prototype.
31169         * modules/exclude: Depend on hash and mbuiter.
31170
31171         * modules/exclude-tests: New file.
31172         * tests/test-exclude.c: New file.
31173         * tests/test-exclude1.sh: New file.
31174         * tests/test-exclude2.sh: New file.
31175         * tests/test-exclude3.sh: New file.
31176         * tests/test-exclude4.sh: New file.
31177         * tests/test-exclude5.sh: New file.
31178         * tests/test-exclude6.sh: New file.
31179         * tests/test-exclude7.sh: New file.
31180
31181 2009-08-12  Bruno Haible  <bruno@clisp.org>
31182
31183         Ensure that getopt() gets declared by <unistd.h>.
31184         * lib/unistd.in.h: Conditionally include getopt.h.
31185         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
31186         Set GNULIB_UNISTD_H_GETOPT.
31187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31188         GNULIB_UNISTD_H_GETOPT.
31189         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
31190
31191 2009-08-12  Bruno Haible  <bruno@clisp.org>
31192
31193         Clarify logic.
31194         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
31195         gl_replace_getopt instead of GETOPT_H.
31196
31197 2009-08-12  Bruno Haible  <bruno@clisp.org>
31198
31199         * m4/getopt.m4: Add comments.
31200
31201 2009-08-12  Bruno Haible  <bruno@clisp.org>
31202
31203         Disable multithread support by default on Cygwin 1.5.x.
31204         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
31205         set gl_use_threads=no if not specified otherwise.
31206
31207 2009-08-11  Bruno Haible  <bruno@clisp.org>
31208
31209         Avoid compilation error on NetBSD 5.0.
31210         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
31211         * tests/test-stdio.c: Likewise.
31212         * tests/test-stdlib.c: Likewise.
31213         * tests/test-string.c: Likewise.
31214         * tests/test-unistd.c: Likewise.
31215         Reported by Greg Troxel <gdt@ir.bbn.com>
31216         at <https://savannah.gnu.org/support/?106973>.
31217
31218 2009-08-11  Bruno Haible  <bruno@clisp.org>
31219
31220         * modules/dup2-tests (Depends-on): Remove close.
31221
31222         Undo 2009-07-19 commit.
31223         * modules/acl-tests (Depends-on): Remove close.
31224         * modules/binary-io-tests (Depends-on): Likewise.
31225         * modules/closein-tests (Depends-on): Likewise.
31226         * modules/flock-tests (Depends-on): Likewise.
31227         * modules/fsync-tests (Depends-on): Likewise.
31228         * modules/lseek-tests (Depends-on): Likewise.
31229         * modules/pipe-tests (Depends-on): Likewise.
31230         * modules/posix_spawn-tests (Depends-on): Likewise.
31231         * modules/posix_spawnp-tests (Depends-on): Likewise.
31232         * modules/stat-time-tests (Depends-on): Likewise.
31233         * modules/yesno-tests (Depends-on): Likewise.
31234
31235 2009-08-10  Bruno Haible  <bruno@clisp.org>
31236
31237         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
31238
31239 2009-08-10  Bruno Haible  <bruno@clisp.org>
31240
31241         Fix a gcc warning.
31242         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
31243
31244 2009-08-10  Bruno Haible  <bruno@clisp.org>
31245
31246         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
31247         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
31248         not only the first time.
31249         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
31250         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
31251         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
31252         is 1, not only the the first time.
31253
31254 2009-08-10  Bruno Haible  <bruno@clisp.org>
31255
31256         Make it possible to use module 'gethostname' without module 'close'.
31257         * lib/unistd.in.h (close): Evoke a link error only if
31258         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31260         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31261         * modules/unistd (Makefile.am): Substitute
31262         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31263         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
31264         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31265         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31266         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31267         * modules/sys_ioctl (Makefile.am): Substitute
31268         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31269         * modules/socket (configure.ac): On native Windows, set
31270         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
31271         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31272         Reported by Sam Steingold <sds@gnu.org>.
31273
31274 2009-08-10  Bruno Haible  <bruno@clisp.org>
31275
31276         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
31277         * modules/ioctl (configure.ac): Likewise.
31278
31279 2009-08-10  Bruno Haible  <bruno@clisp.org>
31280
31281         Avoid collision between gnulib wrapper and libintl wrapper.
31282         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
31283         already defined in intl/printf.c.
31284         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
31285         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
31286
31287 2009-08-09  Bruno Haible  <bruno@clisp.org>
31288
31289         Make <sys/select.h> really self-contained, also on Solaris 10.
31290         * lib/sys_select.in.h: Include <string.h>.
31291         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
31292         Solaris 10 problem.
31293         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
31294         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
31295         Reported by Jim Meyering.
31296
31297 2009-08-09  Bruno Haible  <bruno@clisp.org>
31298
31299         Avoid warnings from 'aclocal' that are due to a use of macro name
31300         AM_XGETTEXT_OPTION that is not defined in automake.
31301         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
31302         automake.
31303         * modules/error (configure.ac): Likewise.
31304         * modules/propername (configure.ac): Likewise.
31305         * modules/vasprintf (configure.ac): Likewise.
31306         * modules/verror (configure.ac): Likewise.
31307         * modules/xprintf (configure.ac): Likewise.
31308         * modules/xvasprintf (configure.ac): Likewise.
31309
31310 2009-08-08  Bruno Haible  <bruno@clisp.org>
31311
31312         Avoid compilation error in C++ mode.
31313         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
31314         Reported by Sam Steingold <sds@gnu.org>.
31315
31316 2009-08-08  Bruno Haible  <bruno@clisp.org>
31317
31318         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
31319         for the various Unix platforms.
31320         * doc/posix-headers/limits.texi: Update platforms list regarding
31321         HOST_NAME_MAX.
31322         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31323
31324 2009-08-07  Jim Meyering  <meyering@redhat.com>
31325
31326         selinux-at: fix typo in a comment
31327         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
31328         Spotted by Paolo Bonzini.
31329
31330         selinux-at: remove redundant m4 code, add documentation
31331         * modules/selinux-at (configure.ac): Remove redundant code.
31332         LIB_SELINUX is already set via the dependent module, selinux-h.
31333         (Include): Add quotes around selinux-at.h.
31334         * lib/selinux-at.h: Add documentation.
31335         Reported by Bruno Haible in
31336         http://marc.info/?l=gnulib-bug&m=124958988300749
31337
31338 2009-08-07  Bruno Haible  <bruno@clisp.org>
31339
31340         Avoid link error on MacOS X 10.3 and 10.4.
31341         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
31342         on non-ELF systems.
31343         * lib/argp-pv.c (argp_program_version): Likewise.
31344         Reported by Simon Josefsson.
31345
31346 2009-08-07  Simon Josefsson  <simon@josefsson.org>
31347
31348         * tests/test-version-etc.sh: Use $EXEEXT.
31349
31350 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
31351
31352         update-copyright: update documentation to point to maint.mk
31353         * build-aux/update-copyright: Here.
31354
31355 2009-08-06  Jim Meyering  <meyering@redhat.com>
31356
31357         maint.mk: support update-copyright-local
31358         * top/maint.mk (update-copyright-local): Define place-holder.
31359         (update-copyright): Depend on $(update-copyright-local).
31360
31361 2009-08-06  Jim Meyering  <meyering@redhat.com>
31362
31363         selinux-at: new module
31364         Initially written for coreutils, this module will soon be
31365         used by findutils, too.
31366         * MODULES.html.sh [Misc]: Add selinux-at.
31367         * lib/selinux-at.h: New file, from coreutils.
31368         * lib/selinux-at.c: Likewise.
31369         * modules/selinux-at: Likewise.
31370         (License): Change from LGPL to GPL, since it depends
31371         on the GPL'd openat module.
31372
31373         doc: update README
31374         * README: Remove references to cogito.
31375         Remove cvs-repo-updating instructions from 2007.
31376         Don't imply that CVS is better if you have limited disk space.
31377
31378 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31379
31380         update-copyright: support C-style comments
31381         * build-aux/update-copyright: Implement and document.
31382         * tests/test-update-copyright.sh: Test.
31383
31384 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31385
31386         update-copyright: support omitted "(C)"
31387         * build-aux/update-copyright: Implement and document.  Also,
31388         allow variable whitespace before "(C)".
31389         * tests/test-update-copyright.sh: Test.
31390
31391 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31392
31393         update-copyright: don't trip on non-FSF copyright statements
31394         * build-aux/update-copyright: Fix so that the first correctly
31395         formatted FSF copyright statement is recognized no matter what
31396         appears before it.  Update documentation.
31397         * tests/test-update-copyright.sh: Test that.
31398
31399 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31400
31401         update-copyright: clean up code a little
31402         * build-aux/update-copyright: Append "_re" to the name of any
31403         variable holding a regular expression.
31404         Replace "old" and "new" with "stmt" in variable names.
31405         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
31406         handled correctly.
31407         Format code more consistently.
31408
31409 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31410
31411         update-copyright-tests: improve portability
31412         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
31413         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
31414
31415 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31416
31417         update-copyright: support @copyright{} and &copy;
31418         * build-aux/update-copyright: Implement and document.
31419         * tests/test-update-copyright.sh: Test.
31420
31421 2009-08-04  Jim Meyering  <meyering@redhat.com>
31422
31423         update-copyright-tests: correctly test EOL=\r\n handling
31424         * tests/test-update-copyright.sh: Put \r at the end of some lines
31425         for the dos-eol tests.  Based on a patch by Joel E. Denny.
31426
31427         maint.mk: make update-copyright exclusion list more configurable
31428         * top/maint.mk (update-copyright): Default to excluding COPYING,
31429         but allow an override, in case someone does want to update that file.
31430
31431         maint.mk: don't update copyright date in COPYING
31432         * top/maint.mk (update-copyright): Exclude COPYING.
31433
31434         maint.mk: add a copyright-updating rule
31435         * top/maint.mk (update-copyright): New rule.
31436         Derived from coreutils/Makefile.am.
31437
31438         update-copyright: rename some variables
31439         * build-aux/update-copyright: Rename a few variables for clarity.
31440         Tweak syntax.  List Joel E. Denny as coauthor.
31441
31442 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31443
31444         update-copyright: fix bug for 2-digit last year and add tests
31445         * build-aux/update-copyright: Fix bug.
31446         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
31447         specified.
31448         * modules/update-copyright-tests: New
31449         * tests/test-update-copyright.sh: New.
31450
31451 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31452
31453         update-copyright: handle leading tabs in line prefix
31454         * build-aux/update-copyright: Count leading tabs as 8 spaces
31455         when computing margin.  This helps with the formatting of
31456         ChangeLogs, for example.
31457         Fix documentation a little.
31458
31459 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31460
31461         update-copyright: support EOL=\r\n
31462         * build-aux/update-copyright: Implement that.
31463
31464 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31465
31466         update-copyright: automatically format copyright statements
31467         * build-aux/update-copyright: Implement that.
31468         Also, be a little more predictable and safer by always failing
31469         when the full copyright format is not perfectly recognized as an
31470         unbroken whole.  Discussed at
31471         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
31472         Rewrite documentation.
31473
31474 2009-08-03  Bruno Haible  <bruno@clisp.org>
31475
31476         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
31477
31478 2009-08-02  Bruno Haible  <bruno@clisp.org>
31479
31480         Tests for module 'uname'.
31481         * modules/uname-tests: New file.
31482         * tests/test-uname.c: New file.
31483
31484         New module 'uname'.
31485         * lib/uname.c: New file.
31486         * m4/uname.m4: New file.
31487         * modules/uname: New file.
31488         * doc/posix-functions/uname.texi: Mention the new module.
31489
31490 2009-08-02  Bruno Haible  <bruno@clisp.org>
31491
31492         Tests for module 'sys_utsname'.
31493         * modules/sys_utsname-tests: New file.
31494         * tests/test-sys_utsname.c: New file.
31495
31496         New module 'sys_utsname'.
31497         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
31498         * m4/sys_utsname_h.m4: New file.
31499         * modules/sys_utsname: New file.
31500         * doc/posix-headers/sys_utsname.texi: Mention the new module.
31501
31502 2009-08-02  Bruno Haible  <bruno@clisp.org>
31503
31504         Implicitly initialize the sockets library.
31505         * lib/gethostname.c: Include sockets.h.
31506         (rpl_gethostname): Invoke gl_sockets_startup.
31507         * lib/socket.c: Include sockets.h.
31508         (rpl_socket): Invoke gl_sockets_startup.
31509         * modules/gethostname (Depends-on): Add sockets.
31510         * modules/socket (Depends-on): Likewise.
31511         * tests/test-poll.c: Don't include sockets.h.
31512         (main): Don't invoke gl_sockets_startup.
31513         * tests/test-select.c: Don't include sockets.h.
31514         (main): Don't invoke gl_sockets_startup.
31515
31516 2009-08-02  Bruno Haible  <bruno@clisp.org>
31517
31518         Allow multiple calls to gl_sockets_startup.
31519         * lib/sockets.c (initialized_sockets_version): New variable.
31520         (gl_sockets_startup): Do nothing if already called for this or a higher
31521         version.
31522         (gl_sockets_cleanup): Reset initialized_sockets_version.
31523
31524 2009-08-03  Simon Josefsson  <simon@josefsson.org>
31525
31526         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
31527         different project/version.
31528
31529 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
31530             Bruno Haible  <bruno@clisp.org>
31531
31532         Tests for module 'pipe-filter-gi'.
31533         * modules/pipe-filter-gi-tests: New file.
31534         * tests/test-pipe-filter-gi1.sh: New file.
31535         * tests/test-pipe-filter-gi1.c: New file.
31536         * tests/test-pipe-filter-gi2.sh: New file.
31537         * tests/test-pipe-filter-gi2-main.c: New file.
31538         * tests/test-pipe-filter-gi2-child.c: New file.
31539
31540         New module 'pipe-filter-gi'.
31541         * lib/pipe-filter-gi.c: New file.
31542         * modules/pipe-filter-gi: New file.
31543
31544 2009-08-02  Bruno Haible  <bruno@clisp.org>
31545             Paolo Bonzini  <bonzini@gnu.org>
31546
31547         Tests for module 'pipe-filter-ii'.
31548         * modules/pipe-filter-ii-tests: New file.
31549         * tests/test-pipe-filter-ii1.sh: New file.
31550         * tests/test-pipe-filter-ii1.c: New file.
31551         * tests/test-pipe-filter-ii2.sh: New file.
31552         * tests/test-pipe-filter-ii2-main.c: New file.
31553         * tests/test-pipe-filter-ii2-child.c: New file.
31554
31555         New module 'pipe-filter-ii'.
31556         * lib/pipe-filter.h: New file.
31557         * lib/pipe-filter-ii.c: New file.
31558         * lib/pipe-filter-aux.h: New file.
31559         * modules/pipe-filter-ii: New file.
31560
31561 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31562
31563         * lib/gc-libgcrypt.c: Change copyright to FSF.
31564         * lib/gc-gnulib.c: Likewise.
31565
31566 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
31567
31568         * lib/gethostname.c: Include limits.h.
31569
31570 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31571             Bruno Haible  <bruno@clisp.org>
31572
31573         Ensure HOST_NAME_MAX as part of the gethostname module.
31574         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
31575         define also HOST_NAME_MAX.
31576         * tests/test-gethostname.c: Include <limits.h>.
31577         (main): Check also HOST_NAME_MAX.
31578         * doc/posix-headers/limits.texi: Document the mingw problem.
31579
31580 2009-08-02  Bruno Haible  <bruno@clisp.org>
31581
31582         * lib/gethostname.c (gethostname): Fix handling of large len argument.
31583         Add comments.
31584
31585 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31586
31587         * lib/gethostname.c: Add Windows wrapper.
31588         * m4/gethostname.m4: Look for gethostname in -lws2_32.
31589         * modules/gethostname: Depend on sys_socket & errno, for also
31590         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
31591         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
31592
31593 2009-07-31  Jim Meyering  <meyering@redhat.com>
31594
31595         getloadavg: fix symbol name in comment
31596         * lib/getloadavg.c: Correct a typo I introduced when adding
31597         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
31598         Matt Kraai spotted the problem.
31599
31600 2009-07-29  Matt Kraai  <mkraai@beckman.com>
31601
31602         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
31603         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
31604         code also if ! defined N_NAME_POINTER.
31605         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
31606         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
31607         but the n_name member is a 12-byte array.
31608
31609 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
31610
31611         update-copyright: generalize comment handling
31612         * build-aux/update-copyright: Handle copyright statements
31613         within more comment styles.
31614         Document usage.
31615         Report any file with an external copyright holder or parse failure.
31616
31617 2009-07-29  Jim Meyering  <meyering@redhat.com>
31618
31619         mktime: correct setting of REPLACE_MKTIME
31620         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
31621
31622         update-copyright: new module
31623         * modules/update-copyright: New file.
31624         * build-aux/update-copyright: New file.
31625         * MODULES.html.sh (maint+release support): Add update-copyright.
31626
31627 2009-07-27  Bruno Haible  <bruno@clisp.org>
31628
31629         Fix compilation error when <ctime> is used and mktime is replaced.
31630         * lib/time.in.h (mktime): New declaration.
31631         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
31632         REPLACE_MKTIME instead of defining mktime in config.h.
31633         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
31634         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
31635         Reported by Ross McFarland <rwmcfa1@neces.com>.
31636
31637 2009-07-27  Bruno Haible  <bruno@clisp.org>
31638
31639         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
31640         Reported by Matt Kraai <mkraai@beckman.com>.
31641
31642 2009-07-25  Jim Meyering  <meyering@redhat.com>
31643
31644         maint.mk: avoid warnings about missing files
31645         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
31646         diagnostic when .prev-version does not exist.
31647         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
31648         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
31649         nonexistent cfg.mk.
31650         Suggestions from Simon Josefsson.
31651
31652 2009-07-25  Bruno Haible  <bruno@clisp.org>
31653
31654         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
31655         defined as macros. Needed on QNX 6.4.1.
31656         Reported by Matt Kraai <mkraai@beckman.com>.
31657
31658 2009-07-23  Jim Meyering  <meyering@redhat.com>
31659
31660         maint.mk: invoke "make dist" with a working value of XZ_OPT
31661         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
31662
31663 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
31664
31665         Make fseeko.c compile on QNX.
31666         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
31667
31668 2009-07-22  Peter Simons  <simons@cryp.to>
31669
31670         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
31671         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
31672         * lib/md4.h: Likewise.
31673         * lib/md5.h: Likewise.
31674         * lib/sha1.h: Likewise.
31675         * lib/sha256.h: Likewise.
31676         * lib/sha512.h: Likewise.
31677
31678         tests-sha1: don't assign literal string to 'char *' variable
31679         * tests/test-sha1.c (main): Declare locals with "const" to match
31680         attributes of the right hand side.
31681
31682 2009-07-21  Eric Blake  <ebb9@byu.net>
31683
31684         dup2: fix more mingw problems
31685         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
31686         fd to itself.
31687         * doc/posix-functions/dup2.texi (dup2): Document the bug.
31688         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
31689         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
31690         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
31691         care of mingw bugs.
31692
31693 2009-07-21  Jim Meyering  <meyering@redhat.com>
31694
31695         vc-list-files: avoid failure when /bin/sh is dash
31696         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
31697         On some Debian based systems, /bin/sh is a symlink to dash, and running
31698         this command would omit the "/" following each 'tests' prefix:
31699           dash -x build-aux/vc-list-files -C . tests
31700         That is because bash and dash work differently:
31701           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
31702           bash ok
31703           dash odd
31704
31705 2009-07-21  Eric Blake  <ebb9@byu.net>
31706
31707         dup2-tests: test previous patch
31708         * modules/dup2-tests: New file.
31709         * tests/test-dup2.c: Likewise.
31710         * tests/test-open.c (main): Avoid unspecified behavior.
31711         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
31712         test.
31713
31714         dup2: work around mingw and cygwin 1.5 bug
31715         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
31716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31717         * modules/unistd (Makefile.am): Substitute it.
31718         * lib/unistd.in.h (dup2): Declare the replacement.
31719         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
31720         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
31721         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
31722         * modules/execute (Depends-on): Add dup2.
31723         * modules/fseterr (Depends-on): Likewise.
31724         * modules/pipe (Depends-on): Likewise.
31725         * modules/posix_spawn-internal (Depends-on): Likewise.
31726
31727 2009-07-21  Bruno Haible  <bruno@clisp.org>
31728
31729         * modules/.gitattributes: New file.
31730
31731 2009-07-20  Bruno Haible  <bruno@clisp.org>
31732
31733         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
31734         (main): Use it.
31735
31736 2009-07-20  Eric Blake  <ebb9@byu.net>
31737
31738         test-pipe: make a bit more robust.
31739         * tests/test-pipe.c (myerr): Allow error messages regardless of
31740         what we do to stderr.
31741         (test_pipe): Rearrange to avoid deadlock.
31742         (child_main): Try a larger read, to ensure we avoided deadlock.
31743         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
31744         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
31745         if misused.
31746
31747 2009-07-19  Jim Meyering  <meyering@redhat.com>
31748
31749         fts: avoid false-positive cycle-detection
31750         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
31751         for each new command line argument.
31752
31753 2009-07-19  Bruno Haible  <bruno@clisp.org>
31754
31755         Fix build error on mingw with the modules sys_select and unistd.
31756         * modules/acl-tests (Depends-on): Add close.
31757         * modules/binary-io-tests (Depends-on): Likewise.
31758         * modules/closein-tests (Depends-on): Likewise.
31759         * modules/flock-tests (Depends-on): Likewise.
31760         * modules/fsync-tests (Depends-on): Likewise.
31761         * modules/lseek-tests (Depends-on): Likewise.
31762         * modules/pipe-tests (Depends-on): Likewise.
31763         * modules/posix_spawn-tests (Depends-on): Likewise.
31764         * modules/posix_spawnp-tests (Depends-on): Likewise.
31765         * modules/stat-time-tests (Depends-on): Likewise.
31766         * modules/yesno-tests (Depends-on): Likewise.
31767
31768 2009-07-19  Bruno Haible  <bruno@clisp.org>
31769
31770         Unify conditionals.
31771         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
31772         macros, not at the compiler macros.
31773         * lib/pipe.c: Likewise.
31774         * lib/execute.c: Likewise.
31775         * lib/spawni.c: Likewise.
31776
31777 2009-07-19  Bruno Haible  <bruno@clisp.org>
31778
31779         Fix handling of closed stdin/stdout/stderr on mingw.
31780         * lib/w32spawn.h: Include unistd.h.
31781         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
31782         file descriptor with O_NOINHERIT flag.
31783         (fd_safer_noinherit): New function, based on fd-safer.c.
31784         (dup_safer_noinherit): New function, based on dup-safer.c.
31785         (undup_safer_noinherit): New function.
31786         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
31787         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
31788         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
31789         instead of fd_safer.
31790         * tests/test-pipe.c: Include <windows.h>.
31791         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
31792         result.
31793
31794         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
31795         from main.
31796         (test_pipe): Pass an extra argument for disambiguation.
31797         (main): Invoke parent_main or child_main.
31798
31799         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
31800         consistently.
31801
31802 2009-07-18  Eric Blake  <ebb9@byu.net>
31803
31804         test-pipe: fix mingw build
31805         * tests/test-pipe.c (main): Avoid fcntl on mingw.
31806
31807 2009-07-18  Bruno Haible  <bruno@clisp.org>
31808
31809         * modules/pipe-tests (Makefile.am): Fix typo.
31810
31811 2009-07-18  Eric Blake  <ebb9@byu.net>
31812
31813         error: fix mingw build
31814         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
31815         Reported by Bruno Haible.
31816
31817         error: avoid undefined use of stdout
31818         * lib/error.c (error, error_at_line): Check that fd 1 is open
31819         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
31820         is handling faults and the close_stdout module wants to report the
31821         detection of closed stdout as an error.
31822
31823 2009-07-17  Eric Blake  <ebb9@byu.net>
31824
31825         pipe: be robust in face of closed fds
31826         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
31827         should cause child to misbehave.
31828         * modules/pipe-tests: New module.
31829         * tests/test-pipe.c: New file.
31830         * tests/test-pipe.sh: New file.
31831         Reported by Akim Demaille.
31832
31833 2009-07-14  Bruno Haible  <bruno@clisp.org>
31834
31835         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
31836         Reported by anonymous kc.
31837
31838 2009-07-07  Jim Meyering  <meyering@redhat.com>
31839
31840         maint.mk: don't look for translatable strings in *.m4 or *.mk
31841         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
31842         when searching for translatable strings.
31843
31844 2009-07-05  Jim Meyering  <meyering@redhat.com>
31845
31846         remove superfluous parentheses in STREQ definition
31847         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
31848         * lib/getugroups.c (STREQ): Likewise.
31849         * lib/fnmatch.c (STREQ): Likewise.
31850         Spotted by Bruno Haible.
31851
31852 2009-07-04  Jim Meyering  <meyering@redhat.com>
31853
31854         argv-iter: new module
31855         * MODULES.html.sh: Add argv-iter.
31856         * lib/argv-iter.c, lib/argv-iter.h: New files.
31857         * modules/argv-iter: New file.
31858         * modules/argv-iter-tests: New file.
31859         * tests/test-argv-iter.c: Test it.
31860
31861 2009-07-04  Bruno Haible  <bruno@clisp.org>
31862
31863         Fix assertion.
31864         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
31865         contains more exact copies of a given entry than file2, leave the extra
31866         copies unpaired rather than aborting.
31867         Reported by Eric Blake.
31868
31869 2009-07-02  Bruno Haible  <bruno@clisp.org>
31870
31871         Speedup git-merge-changelog for git cherry-pick.
31872         * lib/git-merge-changelog.c (struct entries_mapping): New type.
31873         (entries_mapping_get): New function, extracted from compute_mapping.
31874         (entries_mapping_reverse_get): New function.
31875         (compute_mapping): Add a 'full' argument. Return the result in a
31876         'struct entries_mapping'.
31877         (main): Update. Access the mappings through entries_mapping_get.
31878         Reported by Eric Blake.
31879
31880 2009-07-02  Bruno Haible  <bruno@clisp.org>
31881
31882         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
31883         best_i.
31884
31885 2009-07-02  Bruno Haible  <bruno@clisp.org>
31886
31887         Speed up approximate search for matching ChangeLog entries.
31888         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
31889         argument. Call fstrcmp_bounded instead of fstrcmp.
31890         (compute_mapping, try_split_merged_entry, main): Update callers.
31891
31892 2009-07-02  Bruno Haible  <bruno@clisp.org>
31893
31894         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
31895
31896 2009-06-30  Bruno Haible  <bruno@clisp.org>
31897
31898         Reduce the number of uc_is_cased calls.
31899         * lib/unicase.h (casing_suffix_context_t): Add
31900         'first_char_except_ignorable' field.
31901         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
31902         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
31903         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
31904         Update initializer.
31905         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
31906         case-ignorable characters.
31907         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
31908         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
31909         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
31910         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
31911         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
31912
31913 2009-06-30  Bruno Haible  <bruno@clisp.org>
31914
31915         Tests for module 'unicase/ignorable'.
31916         * modules/unicase/ignorable-tests: New file.
31917         * tests/unicase/test-ignorable.c: New file, generated by
31918         gen-uni-tables.
31919
31920         Tests for module 'unicase/cased'.
31921         * modules/unicase/cased-tests: New file.
31922         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
31923         * tests/unicase/test-predicate-part1.h: New file, derived from
31924         tests/unictype/test-predicate-part1.h.
31925         * tests/unicase/test-predicate-part2.h: New file, same as
31926         tests/unictype/test-predicate-part2.h.
31927
31928         Fix evaluation of "Before C" condition of FINAL_SIGMA.
31929         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
31930         (output_casing_properties): New function.
31931         (main): Call it.
31932         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
31933         * lib/unicase/cased.c: Include unictype/bitmap.h.
31934         (uc_is_cased): Define through a bitmap lookup.
31935         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
31936         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
31937         (uc_is_case_ignorable): Define through a bitmap lookup.
31938         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
31939         lib/unictype/bitmap.h.
31940         (Depends-on): Add inline. Clean up.
31941         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
31942         lib/unictype/bitmap.h.
31943         (Depends-on): Add inline. Clean up.
31944         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
31945         recognition.
31946         * tests/unicase/test-u16-tolower.c (main): Likewise.
31947         * tests/unicase/test-u32-tolower.c (main): Likewise.
31948
31949 2009-06-30  Bruno Haible  <bruno@clisp.org>
31950
31951         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
31952         * lib/unicase/u16-casemap.c: Likewise.
31953         * lib/unicase/u32-casemap.c: Likewise.
31954
31955 2009-06-29  Bruno Haible  <bruno@clisp.org>
31956
31957         Define u32_casefold as a wrapper around u32_ct_casefold.
31958         * lib/unicase/u32-casefold.c: Update.
31959         * modules/unicase/u32-casefold (Depends-on): Add
31960         unicase/u32-ct-casefold, unicase/empty-prefix-context,
31961         unicase/empty-suffix-context. Clean up.
31962
31963         Define u16_casefold as a wrapper around u16_ct_casefold.
31964         * lib/unicase/u16-casefold.c: Update.
31965         * modules/unicase/u16-casefold (Depends-on): Add
31966         unicase/u16-ct-casefold, unicase/empty-prefix-context,
31967         unicase/empty-suffix-context. Clean up.
31968
31969         Define u8_casefold as a wrapper around u8_ct_casefold.
31970         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
31971         * lib/unicase/u8-casefold.c: Update.
31972         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
31973         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31974
31975         Define u32_totitle as a wrapper around u32_ct_totitle.
31976         * lib/unicase/u32-totitle.c: Update.
31977         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
31978         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31979
31980         Define u16_totitle as a wrapper around u16_ct_totitle.
31981         * lib/unicase/u16-totitle.c: Update.
31982         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
31983         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31984
31985         Define u8_totitle as a wrapper around u8_ct_totitle.
31986         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
31987         functions.
31988         (FUNC): Delegate to U_CT_TOTITLE.
31989         * lib/unicase/u8-totitle.c: Update.
31990         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
31991         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31992
31993         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
31994         invocation.
31995         * modules/unicase/u32-tolower (Depends-on): Add
31996         unicase/empty-prefix-context, unicase/empty-suffix-context.
31997
31998         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
31999         invocation.
32000         * modules/unicase/u16-tolower (Depends-on): Add
32001         unicase/empty-prefix-context, unicase/empty-suffix-context.
32002
32003         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
32004         * modules/unicase/u8-tolower (Depends-on): Add
32005         unicase/empty-prefix-context, unicase/empty-suffix-context.
32006
32007         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
32008         invocation.
32009         * modules/unicase/u32-toupper (Depends-on): Add
32010         unicase/empty-prefix-context, unicase/empty-suffix-context.
32011
32012         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
32013         invocation.
32014         * modules/unicase/u16-toupper (Depends-on): Add
32015         unicase/empty-prefix-context, unicase/empty-suffix-context.
32016
32017         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
32018         * modules/unicase/u8-toupper (Depends-on): Add
32019         unicase/empty-prefix-context, unicase/empty-suffix-context.
32020
32021         New module 'unicase/u32-ct-casefold'.
32022         * lib/unicase/u32-ct-casefold.c: New file.
32023         * modules/unicase/u32-ct-casefold: New file.
32024
32025         New module 'unicase/u16-ct-casefold'.
32026         * lib/unicase/u16-ct-casefold.c: New file.
32027         * modules/unicase/u16-ct-casefold: New file.
32028
32029         New module 'unicase/u8-ct-casefold'.
32030         * lib/unicase/u8-ct-casefold.c: New file.
32031         * lib/unicase/u-ct-casefold.h: New file, derived from
32032         lib/unicase/u-casefold.h.
32033         * modules/unicase/u8-ct-casefold: New file.
32034
32035         New module 'unicase/u32-ct-totitle'.
32036         * lib/unicase/u32-ct-totitle.c: New file.
32037         * modules/unicase/u32-ct-totitle: New file.
32038
32039         New module 'unicase/u16-ct-totitle'.
32040         * lib/unicase/u16-ct-totitle.c: New file.
32041         * modules/unicase/u16-ct-totitle: New file.
32042
32043         New module 'unicase/u8-ct-totitle'.
32044         * lib/unicase/u8-ct-totitle.c: New file.
32045         * lib/unicase/u-ct-totitle.h: New file, derived from
32046         lib/unicase/u-totitle.h.
32047         * modules/unicase/u8-ct-totitle: New file.
32048
32049         New module 'unicase/u32-ct-tolower'.
32050         * lib/unicase/u32-ct-tolower.c: New file.
32051         * modules/unicase/u32-ct-tolower: New file.
32052
32053         New module 'unicase/u16-ct-tolower'.
32054         * lib/unicase/u16-ct-tolower.c: New file.
32055         * modules/unicase/u16-ct-tolower: New file.
32056
32057         New module 'unicase/u8-ct-tolower'.
32058         * lib/unicase/u8-ct-tolower.c: New file.
32059         * modules/unicase/u8-ct-tolower: New file.
32060
32061         New module 'unicase/u32-ct-toupper'.
32062         * lib/unicase/u32-ct-toupper.c: New file.
32063         * modules/unicase/u32-ct-toupper: New file.
32064
32065         New module 'unicase/u16-ct-toupper'.
32066         * lib/unicase/u16-ct-toupper.c: New file.
32067         * modules/unicase/u16-ct-toupper: New file.
32068
32069         New module 'unicase/u8-ct-toupper'.
32070         * lib/unicase/u8-ct-toupper.c: New file.
32071         * modules/unicase/u8-ct-toupper: New file.
32072
32073         Add context arguments to u*_casemap functions.
32074         * lib/unicase/unicasemap.h: Include unicase.h.
32075         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
32076         suffix_context arguments.
32077         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
32078         functions.
32079         (FUNC): Add prefix_context and suffix_context arguments. Use
32080         uc_is_cased and uc_is_case_ignorable.
32081         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
32082         * lib/unicase/u16-casemap.c: Likewise.
32083         * lib/unicase/u32-casemap.c: Likewise.
32084         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
32085         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32086         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
32087         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32088         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
32089         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32090
32091         New module 'unicase/u32-suffix-context'.
32092         * lib/unicase/u32-suffix-context.c: New file.
32093         * modules/unicase/u32-suffix-context: New file.
32094
32095         New module 'unicase/u16-suffix-context'.
32096         * lib/unicase/u16-suffix-context.c: New file.
32097         * modules/unicase/u16-suffix-context: New file.
32098
32099         New module 'unicase/u8-suffix-context'.
32100         * lib/unicase/u8-suffix-context.c: New file.
32101         * lib/unicase/u-suffix-context.h: New file.
32102         * modules/unicase/u8-suffix-context: New file.
32103
32104         New module 'unicase/empty-suffix-context'.
32105         * lib/unicase/empty-suffix-context.c: New file.
32106         * modules/unicase/empty-suffix-context: New file.
32107
32108         New module 'unicase/u32-prefix-context'.
32109         * lib/unicase/u32-prefix-context.c: New file.
32110         * modules/unicase/u32-prefix-context: New file.
32111
32112         New module 'unicase/u16-prefix-context'.
32113         * lib/unicase/u16-prefix-context.c: New file.
32114         * modules/unicase/u16-prefix-context: New file.
32115
32116         New module 'unicase/u8-prefix-context'.
32117         * lib/unicase/u8-prefix-context.c: New file.
32118         * lib/unicase/u-prefix-context.h: New file.
32119         * lib/unicase/context.h: New file.
32120         * modules/unicase/u8-prefix-context: New file.
32121
32122         New module 'unicase/empty-prefix-context'.
32123         * lib/unicase/empty-prefix-context.c: New file.
32124         * modules/unicase/empty-prefix-context: New file.
32125
32126         New module 'unicase/ignorable'.
32127         * lib/unicase/ignorable.c: New file.
32128         * modules/unicase/ignorable: New file.
32129
32130         New module 'unicase/cased'.
32131         * lib/unicase/caseprop.h: New file.
32132         * lib/unicase/cased.c: New file.
32133         * modules/unicase/cased: New file.
32134
32135         New functions for case mapping of substrings.
32136         * lib/unicase.h (casing_prefix_context_t): New type.
32137         (unicase_empty_prefix_context): New variable.
32138         (u8_casing_prefix_context, u16_casing_prefix_context,
32139         u32_casing_prefix_context, u8_casing_prefixes_context,
32140         u16_casing_prefixes_context, u32_casing_prefixes_context): New
32141         declarations.
32142         (casing_suffix_context_t): New type.
32143         (unicase_empty_suffix_context): New variable.
32144         (u8_casing_suffix_context, u16_casing_suffix_context,
32145         u32_casing_suffix_context, u8_casing_suffixes_context,
32146         u16_casing_suffixes_context, u32_casing_suffixes_context,
32147         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
32148         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
32149         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
32150         declarations.
32151
32152 2009-06-28  Jim Meyering  <meyering@redhat.com>
32153
32154         boostrap: indent only with spaces
32155         * build-aux/bootstrap: Indent only with spaces, never TABs.
32156
32157         bootstrap: split long lines
32158         * build-aux/bootstrap: Keep line length < 80.
32159
32160         bootstrap: sync from coreutils
32161         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
32162         just as autoreconf does.  Verify a list of prerequisite
32163         package-name,version-number pairs if defined in bootstrap.conf.
32164         Refer to README-prereq, if prerequisites are not satisfied.
32165
32166 2009-06-27  Eric Blake  <ebb9@byu.net>
32167
32168         tests: add test for bogus NULL definition
32169         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
32170         * tests/test-stdlib.c: Likewise.
32171         * tests/test-string.c: Likewise.
32172         * tests/test-locale.c: Likewise.
32173         * tests/test-unistd.c: Likewise.
32174         * modules/stdio-tests (Depends-on): Add verify.
32175         * modules/stdlib-tests (Depends-on): Likewise.
32176         * modules/string-tests (Depends-on): Likewise.
32177         * modules/locale-tests (Depends-on): Likewise.
32178         * modules/unistd-tests (Depends-on): Likewise.
32179
32180 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
32181
32182         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
32183         self-explaining comment.
32184         * m4/selinux-selinux-h: Update serial.
32185         (gl_LIBSELINUX): New macro, adding a warning for missing development
32186         packages to code extracted from...
32187         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
32188         Add warning for missing development packages here, too.
32189
32190 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
32191
32192         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
32193
32194 2009-06-25  Eric Blake  <ebb9@byu.net>
32195
32196         version-etc: fix regression
32197         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
32198         gcc.
32199         (version_etc): Use it, to catch bugs with trailing NULL.
32200         * lib/version-etc.c (version_etc_arn): Delete unused argument.
32201         (version_etc_va): Fix logic bug.
32202         * modules/version-etc-tests: Add test.
32203         * tests/test-version-etc.c: New file.
32204         * tests/test-version-etc.sh: Likewise.
32205
32206 2009-06-25  Sam Steingold  <sds@gnu.org>
32207
32208         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
32209         mbtowc declaration.
32210
32211 2009-06-25  Eric Blake  <ebb9@byu.net>
32212
32213         fpurge: migrate into <stdio.h>
32214         * lib/fpurge.h: Delete...
32215         * lib/stdio.in.h (fpurge): ...and declare here, instead.
32216         * lib/fpurge.c (fpurge): Change declaring header.
32217         * modules/fpurge (Files): Drop deleted file.
32218         (Depends-on): Add stdio.
32219         (configure.ac): Set witness.
32220         * modules/stdio (Makefile.am): Support fpurge macros.
32221         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32222         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
32223         * lib/fflush.c: Update client.
32224         * tests/test-fpurge.c: Likewise.
32225         * NEWS: Mention the change.
32226
32227 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32228
32229         * lib/argp-version-etc.c (program_authors): Add const
32230         qualifier.
32231         * lib/version-etc.c: Fix typos in the comments.
32232         * modules/argp-version-etc: Depends on version-etc.
32233
32234 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32235
32236         argp-version-etc: new module.
32237
32238         * lib/argp-version-etc.c: New file.
32239         * lib/argp-version-etc.h: New file.
32240         * modules/argp-version-etc: New file.
32241         * modules/argp-version-etc-tests: New file.
32242         * tests/test-argp-version-etc.c: New test.
32243         * tests/test-argp-version-etc-1.sh: New test.
32244
32245 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32246
32247         Provide additional interfaces and documentation for version-etc
32248         module.
32249
32250         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
32251         interfaces.
32252         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
32253         prototypes.
32254
32255 2009-06-24  Bruno Haible  <bruno@clisp.org>
32256
32257         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
32258         HAVE_LIB${NAME} macro.
32259         Reported by Sam Steingold <sds@gnu.org>.
32260
32261 2009-06-23  Simon Josefsson  <simon@josefsson.org>
32262
32263         * modules/hash-tests (test_hash_LDADD): Link to libintl when
32264         needed.
32265
32266 2009-06-21  Bruno Haible  <bruno@clisp.org>
32267
32268         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
32269         work.
32270         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
32271         together with LIB${NAME}, LTLIB${NAME}.
32272         Reported by Sam Steingold <sds@gnu.org>.
32273
32274 2009-06-20  Jim Meyering  <meyering@redhat.com>
32275
32276         tests: make sc_require_test_exit_idiom more generic
32277         * top/maint.mk (Exit_witness_file): New overridable variable.
32278         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
32279         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
32280
32281 2009-06-19  Jim Meyering  <meyering@redhat.com>
32282
32283         hash: reverse order of src/dst parameters in an internal interface
32284         * lib/hash.c (transfer_entries): Reverse order of parameters to
32285         put DST before SRC.  Adjust callers.
32286
32287         tests: test-hash: avoid wholesale duplication
32288         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
32289         Instead, use a loop and add a single conditional.
32290
32291         tests: test-hash: allow seed selection via a command line argument
32292         * tests/test-hash.c (get_seed): New function.
32293         (main): Use it.
32294
32295 2009-06-19  Eric Blake  <ebb9@byu.net>
32296
32297         hash: avoid memory leak on allocation failure
32298         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
32299         failure.  Factor repeated algorithm...
32300         (transfer_entries): ...into new helper routine.
32301         (hash_delete): React to hash_rehash return value.
32302
32303         hash: reduce memory pressure in hash_rehash no-op case
32304         * lib/hash.c (next_prime): Avoid overflow.
32305         (hash_initialize): Factor bucket size computation...
32306         (compute_bucket_size): ...into new helper function.
32307         (hash_rehash): Use new function and open coding to reduce memory
32308         pressure, and avoid a memory leak in USE_OBSTACK code.
32309         Reported by Jim Meyering.
32310
32311 2009-06-18  Eric Blake  <ebb9@byu.net>
32312
32313         hash: make rotation more obvious
32314         * modules/hash (Depends-on): Add bitrotate and stdint.
32315         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
32316         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
32317         (SIZE_MAX): Rely on headers for definition.
32318         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
32319         (raw_hasher): Use rotr_sz.
32320         Suggested by Jim Meyering.
32321
32322         hash: fix memory leak in last patch
32323         * lib/hash.c (hash_rehash): Avoid memory leak.
32324
32325         hash: avoid no-op rehashing
32326         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
32327
32328         hash: provide default callback functions
32329         * lib/hash.c (raw_hasher, raw_comparator): New functions.
32330         (hash_initialize): Use them as defaults.
32331         * tests/test-hash.c (main): Test this.
32332
32333         hash: minor optimization
32334         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
32335         when possible.
32336         (hash_initialize): Document this promise.
32337         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
32338         * tests/test-hash.c (hash_compare_strings): Test this.
32339
32340 2009-06-18  Bruno Haible  <bruno@clisp.org>
32341
32342         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
32343         going to be replaced anyway.
32344
32345 2009-06-18  Bruno Haible  <bruno@clisp.org>
32346
32347         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
32348         in one place.
32349         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
32350         be replaced anyway.
32351
32352 2009-06-18  Eric Blake  <ebb9@byu.net>
32353
32354         hash: check for resize before insertion
32355         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
32356         threshold before insertion, so that a pathological hash_rehash
32357         that fills every bucket can still trigger another rehash.
32358
32359 2009-06-18  Jim Meyering  <meyering@redhat.com>
32360
32361         hash-tests: add a loop around the small tests
32362         * tests/test-hash.c (main): Repeat small tests with selected
32363         small initial table sizes.
32364
32365 2009-06-17  Eric Blake  <ebb9@byu.net>
32366
32367         hash: minor cleanups
32368         * lib/hash.h (hash_entry): Make opaque, by moving...
32369         * lib/hash.c (hash_entry): ...here.
32370         (hash_insert): Clarify restrictions on what can be inserted.
32371         (hash_get_next): Clarify when it is safe to remove an element
32372         during traversal.
32373         (check_tuning): Skip verification when tuning is known safe.
32374         (hash_initialize): Clarify restrictions on tuning.
32375
32376 2009-06-17  Jim Meyering  <jim@meyering.net>
32377         and Eric Blake  <ebb9@byu.net>
32378
32379         hash-tests: new module
32380         * modules/hash-tests: New file.
32381         * tests/test-hash.c: New file.
32382
32383 2009-06-17  Eric Blake  <ebb9@byu.net>
32384
32385         strstr-simple: document new module
32386         * MODULES.html.sh: Document new module.
32387
32388         strstr, strcasestr: replace on platforms with broken memchr
32389         * modules/strstr: Split into...
32390         * modules/strstr-simple: ...new module that does not care about
32391         performance, but does care about glibc bug.
32392         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
32393         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
32394         if platform memchr is broken, per Debian bug 521737.
32395         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
32396         memchr.
32397         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
32398         * doc/posix-functions/strstr.texi (strstr): Document the fix.
32399         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32400         * modules/mountlist (Depends-on): Add strstr-simple.
32401         * modules/gen-uni-tables (Depends-on): Likewise.
32402         * modules/argz (Depends-on): Add strstr.
32403
32404 2009-06-17  Bruno Haible  <bruno@clisp.org>
32405
32406         * modules/posix_spawn-internal (Depends-on): Add errno.
32407
32408 2009-06-17  Bruno Haible  <bruno@clisp.org>
32409
32410         Define missing ESTALE on Interix 3.5.
32411         * lib/errno.in.h (ESTALE): Assign a value if missing.
32412         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
32413         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
32414         missing.
32415         * doc/posix-headers/errno.texi: Mention the Interix bug.
32416         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
32417
32418 2009-06-15  Eric Blake  <ebb9@byu.net>
32419
32420         memchr, memchr2: add valgrind exception
32421         * lib/memchr.valgrind: New file.
32422         * lib/memchr2.valgrind: New file.
32423         * modules/memchr (Files): Distribute valgrind file.
32424         * modules/memchr2 (Files): Likewise.
32425
32426         docs: memchr is no longer obsolete
32427         * MODULES.html.sh: Move memchr from obsolete to string.h section.
32428         * lib/string.in.h (memchr): Simplify logic.
32429
32430 2009-06-14  Jim Meyering  <meyering@redhat.com>
32431
32432         link-follow: fix the "checking..." message to not mention trailing slash
32433         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
32434         never considered trailing slashes.
32435
32436 2009-06-14  Bruno Haible  <bruno@clisp.org>
32437
32438         * m4/memchr.m4: Mention also the bug on IA-64.
32439         * doc/posix-functions/memchr.texi: Likewise.
32440
32441 2009-06-12  Eric Blake  <ebb9@byu.net>
32442
32443         memchr: detect broken x86_64 and alpha implementations
32444         * modules/memchr-tests (Depends-on): Move mmap detection...
32445         * modules/memchr (Depends-on): ...here.
32446         (configure.ac): Set indicator.
32447         * lib/string.in.h (memchr): Declare replacement.
32448         * modules/string (Makefile.am): Trigger replacement.
32449         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32450         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
32451         bugs.
32452         * doc/posix-functions/memchr.texi (memchr): Document the bug.
32453         * modules/getpagesize (License): Relax license.
32454
32455 2009-06-11  Bruno Haible  <bruno@clisp.org>
32456
32457         * lib/idpriv.h: Add more references.
32458
32459 2009-06-08  Bruno Haible  <bruno@clisp.org>
32460
32461         Tests for module 'idpriv-droptemp'.
32462         * modules/idpriv-droptemp-tests: New file.
32463         * tests/test-idpriv-droptemp.sh: New file.
32464         * tests/test-idpriv-droptemp.su.sh: New file.
32465         * tests/test-idpriv-droptemp.c: New file.
32466
32467         New module 'idpriv-droptemp'.
32468         * lib/idpriv-droptemp.c: New file.
32469         * modules/idpriv-droptemp: New file.
32470
32471 2009-06-08  Bruno Haible  <bruno@clisp.org>
32472
32473         Tests for module 'idpriv-drop'.
32474         * modules/idpriv-drop-tests: New file.
32475         * tests/test-idpriv-drop.sh: New file.
32476         * tests/test-idpriv-drop.su.sh: New file.
32477         * tests/test-idpriv-drop.c: New file.
32478
32479         New module 'idpriv-drop'.
32480         * lib/idpriv.h: New file.
32481         * lib-idpriv-drop.c: New file.
32482         * m4/idpriv.m4: New file.
32483         * modules/idpriv-drop: New file.
32484
32485 2009-06-08  Bruno Haible  <bruno@clisp.org>
32486
32487         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
32488         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32489         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32490         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32491         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32492         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32493         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32494
32495 2009-06-08  Eric Blake  <ebb9@byu.net>
32496
32497         test-strstr: use memory fence, when possible
32498         * tests/test-strstr.c (main): Use memory fence, in order to be
32499         more likely to trigger Debian bug 521737.
32500         * modules/strstr-tests (Files): Pull in additional files.
32501
32502         memchr: no longer obsolete, for wider field testing
32503         * modules/memchr (Status, Notice): Delete, this module is no
32504         longer obsolete.
32505         * modules/vasnprintf (Depends-on): Add memchr.
32506
32507 2009-06-07  Jim Meyering  <meyering@redhat.com>
32508
32509         hash: declare some functions with the warn_unused_result attribute
32510         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
32511
32512 2009-06-07  Bruno Haible  <bruno@clisp.org>
32513
32514         * tests/test-alignof.c: Don't test int64_t if it does not exist.
32515         Reported by Eric Blake.
32516
32517 2009-06-06  Eric Blake  <ebb9@byu.net>
32518
32519         test-alignof: fix typo with long double
32520         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
32521         compiler error.
32522
32523 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
32524
32525         Escape non-texinfo { and }s.
32526         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
32527         markup error.
32528
32529 2009-06-04  Jim Meyering  <meyering@redhat.com>
32530
32531         gitlog-to-changelog: don't infloop on an empty commit log
32532         * build-aux/gitlog-to-changelog: Warn about an empty log message.
32533         Reported by Boris Petersen <transacid@centerim.org>.
32534
32535 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
32536
32537         version-etc: extend for packagers
32538         Add three new configure options, intended for packagers:
32539           --with-packager="packager name"
32540           --with-packager-version="packager-specific version"
32541           --with-packager-bug-reports="packager bug reporting"
32542         An example with coreutils:
32543           $ ./configure \
32544             --with-packager=Gentoo \
32545             --with-packager-bug-report=http://bugs.gentoo.org/ \
32546             --with-packager-version="patchset 1.6"
32547           $ ./src/ls --version | head -n2
32548           ls (GNU coreutils) 7.1-dirty
32549           Packaged by Gentoo (patchset 1.6)
32550         Note that the bug reporting info via --help doesn't show up because
32551         coreutils uses its own custom emit_bug_reporting_address() implementation
32552         in src/system.h.  If it didn't, it'd look like:
32553           $ ./src/ls --help | tail -n4
32554           Report bugs to <bug-coreutils@gnu.org>.
32555           Report Gentoo bugs to <http://bugs.gentoo.org/>.
32556           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
32557           General help using GNU software: <http://www.gnu.org/gethelp/>.
32558         * lib/version-etc.c: Print new information, if provided.
32559         * m4/version-etc.m4: New file.
32560         * modules/version-etc (Files): Add m4/version-etc.m4.
32561         (configure.ac): Add gl_VERSION_ETC.
32562
32563 2009-05-31  Bruno Haible  <bruno@clisp.org>
32564
32565         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
32566         and 'int64_t'.
32567         * modules/alignof-tests (Dependencies): Add stdint.
32568         Reported by Eric Blake.
32569
32570 2009-05-31  Bruno Haible  <bruno@clisp.org>
32571
32572         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
32573         restriction due to compiler bugs.
32574         Reported by Eric Blake.
32575
32576 2009-05-31  Simon Josefsson  <simon@josefsson.org>
32577             Bruno Haible  <bruno@clisp.org>
32578
32579         Fix test-alignof failure.
32580         * lib/alignof.h (alignof_slot): New macro.
32581         (alignof_type): New macro, with the same semantics as the previous
32582         'alignof'.
32583         (alignof): Alias to alignof_slot.
32584         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
32585         check that the results are usable as constant expressions.
32586
32587 2009-05-31  Bruno Haible  <bruno@clisp.org>
32588
32589         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
32590         * tests/test-memchr.c (main): Check that memchr does not read past the
32591         first occurrence of the byte.
32592         * tests/test-strstr.c (main): Update comment.
32593         Suggested by Eric Blake.
32594
32595 2009-05-30  Bruno Haible  <bruno@clisp.org>
32596
32597         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
32598         detail how to use dumpbin.
32599         Reported by David Byron <dbyron@dbyron.com>.
32600
32601 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32602
32603         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
32604
32605 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32606
32607         * m4/manywarnings.m4: Add GCC 4.4 warnings.
32608
32609 2009-05-28  Bruno Haible  <bruno@clisp.org>
32610
32611         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
32612         build-aux/ files.
32613
32614 2009-05-28  Simon Josefsson  <simon@josefsson.org>
32615
32616         * gnulib-tool (func_import): Transform license on build-aux/ files too.
32617
32618 2009-05-27  Simon Josefsson  <simon@josefsson.org>
32619
32620         * gnulib-tool (sed_transform_main_lib_file)
32621         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
32622         regexps.
32623
32624 2009-05-26  Simon Josefsson  <simon@josefsson.org>
32625
32626         * tests/test-strstr.c: Add another self-test.
32627         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
32628         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
32629
32630 2009-05-23  Bruno Haible  <bruno@clisp.org>
32631
32632         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
32633         change.
32634
32635 2009-05-21  Bruno Haible  <bruno@clisp.org>
32636
32637         Simplify use of mode_t varargs.
32638         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
32639         uses 'mode_t' or 'int'.
32640         * lib/openat.c (openat): Likewise.
32641         * lib/open-safer.c (open_safer): Likewise.
32642         * m4/mode_t.m4: New file.
32643         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
32644         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
32645         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
32646         * modules/open (Files): Add m4/mode_t.m4.
32647         * modules/openat (Files): Likewise.
32648         * modules/fcntl-safer (Files): Likewise.
32649         Suggested by Eric Blake.
32650
32651 2009-05-21  Pádraig Brady  <P@draigbrady.com>
32652
32653         * doc/glibc-functions/fallocate.texi: New file.
32654         * doc/gnulib.texi: Include it.
32655
32656 2009-05-21  Eric Blake  <ebb9@byu.net>
32657             Bruno Haible  <bruno@clisp.org>
32658
32659         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
32660         invocations.
32661         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32662
32663 2009-05-21  Eric Blake  <ebb9@byu.net>
32664             Bruno Haible  <bruno@clisp.org>
32665
32666         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
32667         include_next. Fix of 2008-11-20 commit.
32668         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
32669         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
32670         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
32671         NEXT_MATH_H.
32672         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
32673         instead of NEXT_MATH_H.
32674
32675 2009-05-21  Bruno Haible  <bruno@clisp.org>
32676
32677         Avoid redefinition warnings for SIZE_MAX.
32678         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
32679         Reported by Simon Josefsson.
32680
32681 2009-05-21  Bruno Haible  <bruno@clisp.org>
32682
32683         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
32684         AC_CACHE_VAL.
32685
32686 2009-05-20  Bruno Haible  <bruno@clisp.org>
32687
32688         Make zeroptr.h work on mingw.
32689         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
32690         mprotect.
32691         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
32692         * modules/memchr2-tests (configure.ac): Likewise.
32693         * modules/memcmp-tests (configure.ac): Likewise.
32694         * modules/memmem-tests (configure.ac): Likewise.
32695         * modules/memrchr-tests (configure.ac): Likewise.
32696         Reported by Simon Josefsson.
32697
32698 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32699
32700         * tests/test-glob.c: Include string.h for strcmp prototype.
32701
32702 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32703
32704         * modules/getdelim (Depends-on): Add explicit stdint, although it
32705         was implicitly already pulled in via realloc-posix.
32706         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
32707
32708 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32709
32710         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
32711         G. Christensen" <tgc@jupiterrise.com>.
32712         * m4/sys_socket_h.m4: Check for sa_family_t.
32713         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
32714         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
32715         * tests/test-sys_socket.c: Check that sa_family_t works.
32716
32717 2009-05-18  Eric Blake  <ebb9@byu.net>
32718
32719         maint.mk: allow gnulib_dir in VPATH build
32720         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
32721
32722 2009-05-15  Jim Meyering  <meyering@redhat.com>
32723
32724         maint.mk: Give gnulib_dir a default definition.
32725         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
32726         Thus, most packages no longer need to specify this variable in cfg.mk
32727
32728 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
32729
32730         rename.m4: fix typos that would make non-mingw cross-configure fail
32731         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
32732
32733 2009-05-13  Eric Blake  <ebb9@byu.net>
32734
32735         mmap-anon: avoid out-of-order autoconf expansion
32736         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
32737         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
32738         * modules/memchr-tests (Depends-on): Add extensions.
32739         * modules/memchr2-tests (Depends-on): Add extensions.
32740         * modules/memcmp-tests (Depends-on): Add extensions.
32741         * modules/memmem-tests (Depends-on): Add extensions.
32742         * modules/memrchr-tests (Depends-on): Add extensions.
32743
32744 2009-05-13  Bruno Haible  <bruno@clisp.org>
32745
32746         Make some tests ISO C 99 compliant.
32747         * tests/zerosize-ptr.h: New file.
32748         * tests/test-memchr.c: Include zerosize-ptr.h.
32749         (main): Use a zero-size object pointer instead of NULL.
32750         * tests/test-memchr2.c: Include zerosize-ptr.h.
32751         (main): Use a zero-size object pointer instead of NULL.
32752         * tests/test-memcmp.c: Include zerosize-ptr.h.
32753         (main): Use a zero-size object pointer instead of NULL.
32754         * tests/test-memmem.c: Include zerosize-ptr.h.
32755         (main): Use a zero-size object pointer instead of NULL.
32756         * tests/test-memrchr.c: Include zerosize-ptr.h.
32757         (main): Use a zero-size object pointer instead of NULL.
32758         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
32759         m4/mmap-anon.m4.
32760         (Depends-on): Add getpagesize.
32761         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32762         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
32763         m4/mmap-anon.m4.
32764         (Depends-on): Add getpagesize.
32765         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32766         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
32767         m4/mmap-anon.m4.
32768         (Depends-on): Add getpagesize.
32769         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32770         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
32771         m4/mmap-anon.m4.
32772         (Depends-on): Add getpagesize.
32773         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32774         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
32775         m4/mmap-anon.m4.
32776         (Depends-on): Add getpagesize.
32777         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32778
32779 2009-05-12  Bruno Haible  <bruno@clisp.org>
32780
32781         Tests for module 'alignof'.
32782         * modules/alignof-tests: New file.
32783         * tests/test-alignof.c: New file.
32784
32785 2009-05-12  Bruno Haible  <bruno@clisp.org>
32786
32787         Fix alignof macro.
32788         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
32789         vendor compilers that are always correct.
32790
32791 2009-05-12  Bruno Haible  <bruno@clisp.org>
32792
32793         Make the MAP_ANONYMOUS detection work on HP-UX 11.
32794         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
32795         not whether its fully works.
32796
32797 2009-05-12  Bruno Haible  <bruno@clisp.org>
32798
32799         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
32800
32801 2009-05-12  Jim Meyering  <meyering@redhat.com>
32802
32803         * top/maint.mk: Adjust backslash alignment.
32804
32805 2009-05-11  Simon Josefsson  <simon@josefsson.org>
32806
32807         * top/maint.mk: Make $(srcdir)/build-aux configurable.
32808
32809 2009-05-11  Eric Blake  <ebb9@byu.net>
32810
32811         argp: avoid undefined behavior
32812         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
32813         macros.
32814
32815 2009-05-08  Simon Josefsson  <simon@josefsson.org>
32816
32817         * tests/test-vc-list-files-git.sh: Do git config of user.email and
32818         user.name to prevent git commit from complaining.
32819
32820 2009-05-10  Bruno Haible  <bruno@clisp.org>
32821
32822         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
32823         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
32824         it rewrites every file name only once.
32825         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
32826
32827 2009-05-08  Bruno Haible  <bruno@clisp.org>
32828
32829         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
32830         instead of 'max'.
32831
32832 2009-05-08  Simon Josefsson  <simon@josefsson.org>
32833
32834         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
32835         sockaddr_storage test.
32836
32837 2009-05-07  Simon Josefsson  <simon@josefsson.org>
32838
32839         * modules/sys_socket (Makefile.am): Substitute
32840         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
32841         * m4/sys_socket_h.m4: Check for sockaddr_storage.
32842         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
32843         * tests/test-sys_socket.c: Check sockaddr_storage.
32844
32845 2009-05-08  Bruno Haible  <bruno@clisp.org>
32846
32847         New module 'alignof'.
32848         * lib/alignof.h: New file.
32849         * modules/alignof: New file.
32850
32851 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32852             Bruno Haible  <bruno@clisp.org>
32853
32854         Fix test-file-has-acl on FreeBSD.
32855         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
32856         mask is implicitly added.
32857         * tests/test-file-has-acl.c: Include <signal.h>.
32858         (main): Terminate the test after 5 seconds.
32859         * modules/acl-tests (configure.ac): Check for alarm function.
32860
32861 2009-05-04  Bruno Haible  <bruno@clisp.org>
32862
32863         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
32864         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
32865         * modules/errno (configure.ac): Drop AC_REQUIRE.
32866         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
32867         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
32868
32869 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32870
32871         * modules/glob-tests: New module.
32872         * tests/test-glob.c: Add.
32873
32874 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32875
32876         * modules/fnmatch-tests: New module.
32877         * tests/test-fnmatch.c: Add.
32878
32879 2009-05-04  Eric Blake  <ebb9@byu.net>
32880
32881         maint: make the new no-submodule-changes rule VPATH-safe
32882         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
32883
32884 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32885             Bruno Haible  <bruno@clisp.org>
32886
32887         acl: Fix infinite loop on FreeBSD.
32888         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
32889         of return value from acl_get_entry.
32890         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
32891         Likewise.
32892
32893 2009-05-03  Bruno Haible  <bruno@clisp.org>
32894
32895         * lib/acl-internal.h (acl_entries): Clarify return value.
32896         * lib/acl_entries.c (acl_entries): Likewise.
32897
32898 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32899
32900         Bug fix in acl module.
32901         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
32902
32903 2009-05-03  Bruno Haible  <bruno@clisp.org>
32904
32905         Create gperf-generated file in the source dir, not in the build dir.
32906         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
32907         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
32908         * modules/unicase/locale-language (unicase/locale-languages.h):
32909         Likewise.
32910         * modules/unicase/special-casing (unicase/special-casing-table.h):
32911         Likewise.
32912         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
32913         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
32914         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
32915         Reported by Ralf Wildenhues.
32916
32917 2009-05-03  Bruno Haible  <bruno@clisp.org>
32918
32919         * modules/fnmatch (Description, configure.ac): Taken from
32920         fnmatch-posix.
32921         * modules/fnmatch-posix: Turn into a symbolic reference to the
32922         'fnmatch' module, and deprecate.
32923         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
32924
32925 2009-05-03  Bruno Haible  <bruno@clisp.org>
32926
32927         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
32928         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
32929         Reported by Ralf Wildenhues.
32930
32931 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32932
32933         * m4/fnmatch.m4: Fix fnmatch re-define.
32934
32935 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32936
32937         priv-set: new module and tests; adapt write-any-file
32938         * lib/priv-set.c: New file.
32939         * lib/priv-set.h: New file.
32940         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
32941         * lib/write-any-file.c: Simplify by using priv-set module.
32942         * m4/priv-set.m4: New file.
32943         * modules/priv-set: New file.
32944         * modules/unlinkdir: Add dependency on priv-set module.
32945         * modules/write-any-file: Likewise.
32946
32947         Tests for module 'priv-set'.
32948         * modules/priv-set-tests: New file.
32949         * tests/test-priv-set.c: New file.
32950
32951 2009-05-03  Jim Meyering  <meyering@redhat.com>
32952             Bruno Haible  <bruno@clisp.org>
32953
32954         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
32955         use the converted UTF-8 variant of the name instead.
32956
32957 2009-05-03  Jim Meyering  <meyering@redhat.com>
32958
32959         tests: tighten some getdate tests
32960         * tests/test-getdate.c (main): Tighten tests: require equality,
32961         not just greater than.  Set TZ envvar to UTC0.
32962
32963 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32964
32965         getdate: correctly interpret "next monday" when run on a Monday
32966         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
32967         that e.g., "next tues" (when run on a tuesday) results in a date
32968         that is one week in the future, and not today's date.
32969         I.e., add a week when the wday is the same as the current one.
32970         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
32971         and earlier by Martin Bernreuther and Jan Minář.
32972         * tests/test-getdate.c (main): Check that "next DAY" is always in
32973         the future and that "last DAY" is always in the past.
32974
32975 2009-05-02  Jim Meyering  <meyering@redhat.com>
32976
32977         build: ensure that a release build fails when a submodule is unclean
32978         * top/maint.mk (no-submodule-changes): New rule.
32979         (alpha beta major): Depend on it.
32980
32981 2009-05-02  Bruno Haible  <bruno@clisp.org>
32982
32983         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
32984         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
32985         shell variable gl_fnmatch_required to detect which variant is
32986         requested.
32987         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
32988         gl_FUNC_FNMATCH_POSIX.
32989         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
32990         exclude fnmatch-posix.
32991
32992 2009-05-02  Bruno Haible  <bruno@clisp.org>
32993
32994         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
32995         * modules/mbsrtowcs (License): Change to LGPLv2+.
32996         * modules/strnlen1 (License): Likewise.
32997         Reported by Simon Josefsson.
32998
32999 2009-05-02  Bruno Haible  <bruno@clisp.org>
33000
33001         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
33002         "cross".
33003         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
33004         gnulib-tool was called with option --source-base=lib.
33005
33006 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33007
33008         Use automake *-local hooks without commands, for extensibility.
33009         * modules/localcharset (Makefile.am): Rename install-exec-local
33010         rule to install-exec-localcharset, and make it a prerequisite of
33011         install-exec-local.  Likewise, rename the uninstall-local rule to
33012         uninstall-localcharset, and make it a prerequisite of the former.
33013
33014 2009-05-01  Bruno Haible  <bruno@clisp.org>
33015
33016         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
33017         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33018         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
33019         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
33020         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
33021         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33022         m4/locale-zh.m4, m4/codeset.m4.
33023
33024         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33025         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
33026         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33027         m4/locale-zh.m4.
33028
33029         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
33030         REPLACE_WCRTOMB if mbstate_t must be replaced.
33031         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
33032         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
33033
33034 2009-05-01  Bruno Haible  <bruno@clisp.org>
33035
33036         Avoid compiler warnings when redefining macros defined by <libintl.h>.
33037         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
33038         dngettext, dcngettext, textdomain, bindtextdomain,
33039         bind_textdomain_codeset): Undefine before redefining.
33040
33041 2009-04-30  Bruno Haible  <bruno@clisp.org>
33042
33043         Fix bug introduced on 2009-04-25.
33044         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
33045         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
33046         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
33047         is defined.
33048         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
33049         is defined.
33050         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
33051         is defined.
33052         Reported by Elbert_Pol <elbert.pol@gmail.com>.
33053
33054 2009-04-28  Bruno Haible  <bruno@clisp.org>
33055
33056         Comment tweaks.
33057         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
33058         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
33059         * lib/unicase.h (u*_casexfrm): Likewise.
33060         Reported by Paolo Bonzini.
33061
33062 2009-04-28  Bruno Haible  <bruno@clisp.org>
33063
33064         Fix a compilation error.
33065         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
33066         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33067         Reported by Jim Meyering.
33068
33069 2009-04-27  Bruno Haible  <bruno@clisp.org>
33070
33071         New module 'libunistring'.
33072         * modules/libunistring: New file.
33073         * m4/libunistring.m4: New file.
33074         * MODULES.html.sh (Unicode string functions): Add it.
33075
33076 2009-04-27  Eric Blake  <ebb9@byu.net>
33077
33078         maint.mk: allow package-specific header to provide <config.h>
33079         * top/maint.mk (sc_require_config_h): New variable.
33080         (sc_require_config_h, sc_require_config_h_first): Use it.
33081
33082 2009-04-27  Simon Josefsson  <simon@josefsson.org>
33083
33084         * top/maint.mk (sc_avoid_if_before_free): Except
33085         useless-if-before-free script.
33086
33087 2009-04-27  Eric Blake  <ebb9@byu.net>
33088
33089         maintainer-makefile: depend on all required helper scripts
33090         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
33091         useless-if-before-free.
33092         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
33093         version, rather than assuming gnulib checkout is available.
33094         Reported by Simen Josefsson.
33095
33096 2009-04-26  Bruno Haible  <bruno@clisp.org>
33097
33098         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
33099         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
33100         "../" or "..".
33101
33102 2009-04-26  Bruno Haible  <bruno@clisp.org>
33103
33104         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
33105         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
33106         AC_LIB_HAVE_LINKFLAGS.
33107
33108 2009-04-26  Bruno Haible  <bruno@clisp.org>
33109
33110         Simplify calling convention of u*_conv_from_encoding.
33111         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
33112         u32_conv_from_encoding): Expect a resultbuf argument and return the
33113         result directly as a pointer.
33114         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
33115         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
33116         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
33117         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
33118         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
33119         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33120         Update.
33121         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
33122         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
33123         * lib/vasnprintf.c (VASNPRINTF): Update.
33124         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
33125         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
33126         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
33127         * NEWS: Mention the change.
33128
33129 2009-04-26  Bruno Haible  <bruno@clisp.org>
33130
33131         Simplify calling convention of u*_conv_to_encoding.
33132         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33133         u32_conv_to_encoding): Expect a resultbuf argument and return the
33134         result directly as a pointer.
33135         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33136         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
33137         freeing scaled_offsets if mem_iconveha failed.
33138         * lib/unicase/u-casexfrm.h (FUNC): Update.
33139         * lib/uninorm/u-normxfrm.h (FUNC): Update.
33140         * lib/vasnprintf.c (VASNPRINTF): Update.
33141         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
33142         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
33143         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
33144         * NEWS: Mention the change.
33145
33146 2009-04-26  Bruno Haible  <bruno@clisp.org>
33147
33148         Avoid test failures on AIX and OSF/1.
33149         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
33150         malloc(0).
33151         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33152         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33153         Likewise.
33154         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
33155         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
33156         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
33157         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
33158         * doc/posix-functions/malloc.texi: Document the portability problem
33159         related to malloc(0).
33160
33161 2009-04-26  Bruno Haible  <bruno@clisp.org>
33162
33163         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
33164         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
33165         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
33166
33167 2009-04-25  Bruno Haible  <bruno@clisp.org>
33168
33169         Avoid link error when creating a namespace clean library.
33170         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
33171         as macro with arguments if already defined as an alias.
33172         * lib/signbitf.c (gl_signbitf): Don't undefine.
33173         * lib/signbitd.c (gl_signbitd): Don't undefine.
33174         * lib/signbitl.c (gl_signbitl): Don't undefine.
33175
33176 2009-04-25  Jim Meyering  <meyering@redhat.com>
33177
33178         vc-list-files: fix another quoting bug
33179         * build-aux/vc-list-files: Avoid sed backslash expansion
33180         of pathological directory names.
33181
33182 2009-04-25  Eric Blake  <ebb9@byu.net>
33183
33184         vc-list-files: fix shell quoting error
33185         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
33186         timestamp.
33187
33188 2009-04-25  Jim Meyering  <meyering@redhat.com>
33189
33190         vc-list-files: restore lost functionality with subdir argument
33191         * build-aux/vc-list-files: When given a non-"." sub-directory
33192         argument, substitute the $dir/ prefix back onto each resulting name.
33193         Otherwise, coreutils' root_tests check would fail.
33194
33195 2009-04-24  Eric Blake  <ebb9@byu.net>
33196
33197         vc-list-files: ignore git symlinks
33198         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
33199         than ls-files, to ignore git symlinks.
33200
33201         maint.mk: import improvements from m4
33202         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
33203         (move_if_change): Delete unused macro.
33204         (news-date-check, vc-diff-check): Support VPATH builds.
33205         (announcement): Likewise.  Split --bootstrap-tools list...
33206         (boostrap-tools): ...into separate list, which can be overridden
33207         in cfg.mk.
33208         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
33209         requiring dependency on useless-if-before-free module.
33210         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
33211         Support VPATH builds.
33212
33213 2009-04-24  Jim Meyering  <meyering@redhat.com>
33214
33215         maint.mk: remove coreutils-specific rules and variables
33216         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
33217         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
33218         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
33219
33220         maint.mk: remove obsolete rule
33221         * top/maint.mk (rel-check): Remove rule.
33222         (WGET, WGETFLAGS): Remove now-unused variables.
33223
33224 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33225
33226         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
33227         consistency.
33228
33229         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
33230         '$(PATH_SEPARATOR)' instead of ':'.
33231
33232 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33233
33234         * lib/getopt1.c (main): Use 'const' for static array.
33235
33236 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33237
33238         * top/maint.mk: Sync with coreutils.
33239         * NEWS: Explain incompatibilities.
33240
33241 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33242             Bruno Haible  <bruno@clisp.org>
33243
33244         Fix cross-compilation results.
33245         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
33246         statement, as third argument of AC_TRY_RUN.
33247         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
33248         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
33249         Likewise.
33250         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
33251         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
33252         Likewise.
33253         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
33254         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
33255         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
33256
33257 2009-04-20  Bruno Haible  <bruno@clisp.org>
33258
33259         Avoid test failure on mingw.
33260         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
33261
33262 2009-04-20  Bruno Haible  <bruno@clisp.org>
33263
33264         Avoid compilation error on mingw.
33265         * modules/localename-tests (Depends-on): Add locale.
33266
33267 2009-04-19  Bruno Haible  <bruno@clisp.org>
33268
33269         Support for building a shared library on Windows platforms.
33270         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
33271         (main): Test the presence of UNINORM_NFC here.
33272         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
33273         (main): Test the presence of UNINORM_NFD here.
33274         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
33275         (main): Test the presence of UNINORM_NFKC here.
33276         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
33277         (main): Test the presence of UNINORM_NFKD here.
33278
33279 2009-04-19  Bruno Haible  <bruno@clisp.org>
33280
33281         Avoid a compiler warning.
33282         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
33283         Change type of variable 'sequence'.
33284
33285 2009-04-19  Bruno Haible  <bruno@clisp.org>
33286
33287         * modules/configmake (Makefile.am): When the contents of configmake.h
33288         does not change, arrange to preserve its modification time.
33289
33290 2009-04-17  Simon Josefsson  <simon@josefsson.org>
33291
33292         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
33293         gettext domain.
33294
33295 2009-04-16  Jim Meyering  <meyering@redhat.com>
33296
33297         useless-if-before-free: improve conversion code
33298         * build-aux/useless-if-before-free: Adjust code-in-comment to match
33299         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
33300
33301 2009-04-14  Bruno Haible  <bruno@clisp.org>
33302
33303         * modules/fcntl (Depends-on): Add extensions.
33304         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
33305
33306 2009-04-12  Ben Pfaff  <blp@gnu.org>
33307
33308         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
33309         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
33310
33311 2009-03-20  Ben Pfaff  <blp@gnu.org>
33312
33313         Make rename replace existing destinations on Windows.
33314         * m4/rename.m4: Add test for Mingw.
33315         * lib/rename.c: Add rename replacement that uses MoveFileEx with
33316         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
33317         * doc/posix-functions/rename.texi: Document.
33318
33319 2009-04-10  Bruno Haible  <bruno@clisp.org>
33320
33321         New include file "iconveh.h".
33322         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
33323         * lib/striconveh.h: Include it.
33324         (enum iconv_ilseq_handler): Remove definition.
33325         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
33326         striconveh.h.
33327         * lib/striconveha.c: Include striconveh.h.
33328         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
33329         * modules/striconveh (Files): Add lib/iconveh.h.
33330         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
33331         lib/striconveh.h.
33332
33333 2009-04-10  Bruno Haible  <bruno@clisp.org>
33334
33335         * lib/uniconv.h: Update comment.
33336
33337 2009-04-10  Bruno Haible  <bruno@clisp.org>
33338
33339         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
33340         always.
33341         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
33342         * lib/unistr/u16-mbtouc-aux.c: Likewise.
33343         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
33344         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
33345         "unistring-notinline.h", so that the function gets defined always.
33346         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
33347         * lib/unistr/u8-uctomb.c: Likewise.
33348         * lib/unistr/u16-mbtouc.c: Likewise.
33349         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
33350         * lib/unistr/u16-uctomb.c: Likewise.
33351         * lib/unistr/u32-mbtouc.c: Likewise.
33352         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
33353         * lib/unistr/u32-uctomb.c: Likewise.
33354
33355 2009-04-10  Bruno Haible  <bruno@clisp.org>
33356
33357         Mark 'utime' obsolete.
33358         * modules/utime (Status, Notice): New sections.
33359         Suggested by Jim Meyering.
33360
33361         Fix cross-compile guess for utime test.
33362         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
33363         autoconf.
33364         * doc/posix-functions/utime.texi: Give more precisions.
33365         Reported by Jan <ipif@ymail.com>.
33366
33367 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
33368
33369         filevercmp: correct today's change
33370         * lib/filevercmp.c: Also handle coreutils' test inputs.
33371         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
33372
33373         Fix regression in 'filevercmp' module. Thanks Sven Joachim
33374         for reporting it.
33375         * lib/filevercmp.c: Special handle for "", "." and "..".
33376         * tests/test-filevercmp.c: Enlarge the set suite.
33377
33378 2009-04-07  Jim Meyering  <meyering@redhat.com>
33379
33380         useless-if-before-free: show how to remove braced useless free, too
33381         * build-aux/useless-if-before-free: still only in a comment, though.
33382
33383 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
33384
33385         maint.mk: import changes to syntax-check macros from coreutils
33386         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
33387         Use them in the relevant macros.
33388
33389 2009-04-06  Bruno Haible  <bruno@clisp.org>
33390
33391         Fix unportable use of bit-fields.
33392         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
33393         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
33394         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
33395
33396 2009-04-06  Bruno Haible  <bruno@clisp.org>
33397
33398         Avoid test failures on AIX and OSF/1.
33399         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
33400         that malloc(0) = NULL.
33401         * tests/unicase/test-u8-tolower.c (check): Likewise.
33402         * tests/unicase/test-u8-totitle.c (check): Likewise.
33403         * tests/unicase/test-u8-toupper.c (check): Likewise.
33404         * tests/unicase/test-u16-casefold.c (check): Likewise.
33405         * tests/unicase/test-u16-tolower.c (check): Likewise.
33406         * tests/unicase/test-u16-totitle.c (check): Likewise.
33407         * tests/unicase/test-u16-toupper.c (check): Likewise.
33408         * tests/unicase/test-u32-casefold.c (check): Likewise.
33409         * tests/unicase/test-u32-tolower.c (check): Likewise.
33410         * tests/unicase/test-u32-totitle.c (check): Likewise.
33411         * tests/unicase/test-u32-toupper.c (check): Likewise.
33412         * tests/uninorm/test-u8-nfc.c (check): Likewise.
33413         * tests/uninorm/test-u8-nfd.c (check): Likewise.
33414         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
33415         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
33416         * tests/uninorm/test-u16-nfc.c (check): Likewise.
33417         * tests/uninorm/test-u16-nfd.c (check): Likewise.
33418         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
33419         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
33420         * tests/uninorm/test-u32-nfc.c (check): Likewise.
33421         * tests/uninorm/test-u32-nfd.c (check): Likewise.
33422         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
33423         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
33424
33425 2009-04-05  Bruno Haible  <bruno@clisp.org>
33426
33427         Work around an autoconf limitation.
33428         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
33429         comment line if it would be longer than 3 KB.
33430
33431 2009-04-05  Bruno Haible  <bruno@clisp.org>
33432
33433         Avoid test failure with libiconv-1.13.
33434         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
33435         of the expected test results.
33436
33437 2009-04-05  Bruno Haible  <bruno@clisp.org>
33438
33439         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
33440         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
33441         that it should be installed.
33442
33443 2009-04-05  Bruno Haible  <bruno@clisp.org>
33444
33445         * gnulib-tool: New option --copy-file.
33446         (func_usage): Document it.
33447         (func_dest_tmpfilename): Moved out of func_import.
33448         (func_add_file, func_update_file): New functions, extracted from
33449         func_import.
33450         (func_import): Update.
33451
33452 2009-04-05  Karl Berry  <karl@gnu.org>
33453
33454         * README: prominently mention gnulib-tool.
33455         Rearrange sections so getting the code is near the top.
33456
33457 2009-04-05  Bruno Haible  <bruno@clisp.org>
33458
33459         * lib/unicase.h: Mention u*_cmp2.
33460         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33461         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
33462         * lib/unicase/ulc-casecmp.c: Likewise.
33463         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
33464         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
33465         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
33466         unistr/u8-cmp.
33467         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
33468         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
33469         unistr/u16-cmp.
33470         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
33471         unistr/u32-cmp.
33472
33473         * lib/uninorm.h: Mention u*_cmp2.
33474         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33475         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
33476         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
33477         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
33478         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
33479         unistr/u8-cmp.
33480         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
33481         unistr/u16-cmp.
33482         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
33483         unistr/u32-cmp.
33484
33485         New module 'unistr/u32-cmp2'.
33486         * lib/unistr/u32-cmp2.c: New file.
33487         * modules/unistr/u32-cmp2: New file.
33488
33489         New module 'unistr/u16-cmp2'.
33490         * lib/unistr/u16-cmp2.c: New file.
33491         * modules/unistr/u16-cmp2: New file.
33492
33493         New module 'unistr/u8-cmp2'.
33494         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
33495         * lib/unistr/u8-cmp2.c: New file.
33496         * lib/unistr/u-cmp2.h: New file.
33497         * modules/unistr/u8-cmp2: New file.
33498
33499 2009-04-05  Bruno Haible  <bruno@clisp.org>
33500
33501         * lib/unictype.h (uc_property_is_valid): New macro.
33502         * tests/unictype/test-pr_byname.c (main): Use it.
33503
33504         * lib/unistr.h: Doc fixes.
33505         * lib/uniconv.h: Doc fixes.
33506         * lib/unictype.h: Doc fixes.
33507
33508 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
33509
33510         Port coreutils 7.2 to Solaris 8.
33511
33512         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
33513         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
33514         for Solaris 8.  This is a bit of a hack, as it means it's the
33515         caller's responsibility to add -lnsl if needed, but most likely it
33516         won't be needed since only getaddrinfo uses this and getaddrinfo
33517         isn't needed on Solaris 8.
33518
33519         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
33520         problem to Solaris 8 encountered with coreutils 7.2, which
33521         resulted in a message "fnmatch.c:292: warning: passing argument 4
33522         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
33523         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
33524
33525 2009-04-03  Simon Josefsson  <simon@josefsson.org>
33526
33527         * m4/ld-version-script.m4: Add FIXME comment.
33528
33529 2009-04-02  Simon Josefsson  <simon@josefsson.org>
33530
33531         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
33532         SOVERSION variable.
33533
33534 2009-04-02  Bruno Haible  <bruno@clisp.org>
33535
33536         * Makefile (info, html, dvi, pdf): Combine the rules.
33537         Suggested by Jim Meyering.
33538
33539 2009-04-01  Bruno Haible  <bruno@clisp.org>
33540
33541         * Makefile (info, html, dvi, pdf): New targets.
33542         Reported by Reuben Thomas <rrt@sc3d.org>.
33543
33544 2009-04-01  Bruno Haible  <bruno@clisp.org>
33545
33546         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
33547         can be put into PATH.
33548         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
33549
33550 2009-04-01  Bruno Haible  <bruno@clisp.org>
33551
33552         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
33553
33554 2009-04-01  Bruno Haible  <bruno@clisp.org>
33555
33556         Rename module 'visibility'.
33557         * modules/lib-symbol-visibility: Renamed from modules/visibility.
33558         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
33559         * doc/gnulib.texi: Update.
33560         * MODULES.html.sh (Misc): Update.
33561         * NEWS: Mention the change.
33562
33563 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33564
33565         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
33566         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
33567         Eric Blake <ebb9@byu.net> for review.
33568         * MODULES.html.sh: Add lib-msvc-compat.
33569         * doc/gnulib.texi: Link to new section.
33570         * m4/ld-output-def.m4: New file.
33571         * doc/ld-output-def.texi: New file.
33572
33573 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33574
33575         Rename ld-version-script to lib-symbol-versions.  Suggested by
33576         Bruno Haible <bruno@clisp.org>.
33577         * modules/ld-version-script: Renamed to lib-symbol-versions.
33578         * doc/ld-version-script.texi: Fix module name.
33579         * MODULES.html.sh: Add lib-symbol-versions.
33580
33581 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33582
33583         * modules/u64-tests: New file.
33584         * tests/test-u64.c: New file.
33585
33586 2009-03-04  Simon Josefsson  <simon@josefsson.org>
33587
33588         * MODULES.html.sh: Mention u64.
33589         * modules/u64: New module.
33590         * modules/crypto/sha512: Depend on u64 module instead of providing
33591         u64.h.
33592
33593 2009-03-27  Eric Blake  <ebb9@byu.net>
33594
33595         test-strerror: make debugging EAI_SYSTEM easier
33596         * modules/getaddrinfo-tests (Depends-on): Add strerror.
33597         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
33598         failure was EAI_SYSTEM.
33599
33600 2009-03-25  Bruno Haible  <bruno@clisp.org>
33601
33602         Fix a problem with --enable-relocatable on Solaris 7.
33603         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
33604         since 2008-02-24.
33605
33606 2009-03-25  Eric Blake  <ebb9@byu.net>
33607
33608         test-sockets: avoid gcc warning
33609         * tests/test-sockets.c (main): Silence compiler warning.
33610
33611 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
33612
33613         New modules nproc, pthread, contributed by Glen Lenker.
33614
33615         * MODULES.html.sh: Add pthread, nproc.
33616         * lib/nproc.c: New file.
33617         * lib/nproc.h: New file.
33618         * lib/pthread.in.h: New file.
33619         * m4/pthread.m4: New file.
33620         * modules/nproc: New file.
33621         * modules/pthread: New file.
33622
33623 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33624
33625         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
33626         New variable.
33627
33628 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
33629
33630         filevercmp: handle simple~ and numbered.~3~ backup suffixes
33631         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
33632         * tests/test-filevercmp.c: Add tests for backup suffixes.
33633
33634 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33635
33636         * modules/stdlib (Depends-on): Add stdint, needed when defining
33637         struct random_data on, for example, HP-UX 10.20.  Reported by
33638         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33639
33640 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33641
33642         * lib/readline.c (readline): Call fflush on stdout after printing
33643         prompt.
33644
33645 2009-03-20  Bruno Haible  <bruno@clisp.org>
33646
33647         Remove dependency from 'close' module to -lws2_32 on native Windows.
33648         * lib/close-hook.h: New file.
33649         * lib/close-hook.c: New file.
33650         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
33651         w32sock.h.
33652         (_gl_close_fd_maybe_socket): Remove function.
33653         (rpl_close): Invoke execute_all_close_hooks instead of
33654         _gl_close_fd_maybe_socket.
33655         * lib/sockets.c: Include close-hook.h, w32sock.h.
33656         (close_fd_maybe_socket): New function, essentially from lib/close.c.
33657         (close_sockets_hook): New variable.
33658         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
33659         (gl_sockets_cleanup): Unregister it.
33660         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
33661         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
33662         * modules/close-hook: New file.
33663         * modules/close (Files): Remove lib/w32sock.h.
33664         (Depends-on): Add close-hook.
33665         (Link): Remove section.
33666         * modules/sockets (Files): Add lib/w32sock.h.
33667         (Depends-on): Add close-hook.
33668         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
33669         invocation.
33670         * NEWS: Mention that LIB_CLOSE is gone.
33671
33672 2009-03-23  Eric Blake  <ebb9@byu.net>
33673
33674         signal-tests: test previous patch
33675         * tests/test-signal.c: New file.
33676         * modules/signal-tests: Likewise.
33677
33678         signal.h: always support 'volatile sig_atomic_t'
33679         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
33680         (gl_SIGNAL_H_DEFAULTS): Add a default.
33681         * modules/signal (Makefile.am): Substitute if needed.
33682         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
33683         users can blindly add volatile.
33684         * doc/posix-headers/signal.texi (signal.h): Document it.
33685         Reported by Matthew Woehlke.
33686
33687 2009-03-23  Jim Meyering  <meyering@redhat.com>
33688
33689         pathmax: PATH_MAX: use pathconf only when available
33690         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
33691         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
33692         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
33693         This avoids a link failure in a PSP cross-compilation environment
33694         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
33695
33696         * lib/vasnprintf.c (divide): Fix typo in comment.
33697
33698 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33699
33700         * gnulib-tool (func_filter_filelist): Fix comment.
33701
33702 2009-03-20  Bruno Haible  <bruno@clisp.org>
33703
33704         Make sockets.h self-contained.
33705         * lib/sockets.c: Include sockets.h first.
33706         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
33707
33708 2009-03-19  Eric Blake  <ebb9@byu.net>
33709
33710         doc: mention more functions added in cygwin 1.7.0
33711         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
33712         addition.
33713         * doc/posix-functions/log2f.texi: Likewise.
33714
33715 2009-03-19  Jim Meyering  <meyering@redhat.com>
33716
33717         fsusage: avoid syntax error due to statement-before-declaration
33718         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
33719         after all declarations.  Reported by Matthew Woehlke in
33720         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
33721
33722 2009-03-18  Eric Blake  <ebb9@byu.net>
33723
33724         build-aux/compile: sync from automake
33725         * build-aux/compile: New file, from automake.
33726         * config/srclist.txt: Mention build-aux/compile.
33727
33728 2009-03-17  Bruno Haible  <bruno@clisp.org>
33729
33730         * lib/git-merge-changelog.c: Fix typo in comment.
33731         Reported by Reuben Thomas <rrt@sc3d.org>.
33732
33733 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
33734
33735         * m4/regex.m4: update and improve help for
33736         --without-included-regex.
33737
33738 2009-03-17  Simon Josefsson  <simon@josefsson.org>
33739
33740         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
33741         failure on missing include files.
33742
33743 2009-03-17  Eric Blake  <ebb9@byu.net>
33744
33745         doc: mention more functions added in cygwin 1.7.0
33746         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
33747         addition.
33748         * doc/posix-functions/fwscanf.texi: Likewise.
33749         * doc/posix-functions/swprintf.texi: Likewise.
33750         * doc/posix-functions/swscanf.texi: Likewise.
33751         * doc/posix-functions/vfwprintf.texi: Likewise.
33752         * doc/posix-functions/vfwscanf.texi: Likewise.
33753         * doc/posix-functions/vswprintf.texi: Likewise.
33754         * doc/posix-functions/vswscanf.texi: Likewise.
33755         * doc/posix-functions/vwprintf.texi: Likewise.
33756         * doc/posix-functions/vwscanf.texi: Likewise.
33757         * doc/posix-functions/wcscasecmp.texi: Likewise.
33758         * doc/posix-functions/wcsdup.texi: Likewise.
33759         * doc/posix-functions/wcsftime.texi: Likewise.
33760         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33761         * doc/posix-functions/wprintf.texi: Likewise.
33762         * doc/posix-functions/wscanf.texi: Likewise.
33763         * doc/glibc-functions/gethostbyname2.texi: Likewise.
33764
33765 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33766
33767         maint.mk: really add $(AM_MAKEFLAGS)
33768         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
33769         was inadvertently omitted in the last commit.
33770         Spotted by Bruno Haible.
33771
33772         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
33773         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
33774         $(AM_MAKEFLAGS)' rather than plain `make'.
33775
33776         gnulib-tool: execute $MAKE not make
33777         * gnulib-tool: Default $MAKE to 'make'.
33778         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
33779         than make.  Initialize $MAKE in the do-autobuild script.
33780
33781         gnulib-tool: use $MAKE not make in generated files
33782         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
33783         make, in generated files.  Initialize $MAKE in the do-autobuild
33784         script.
33785
33786         * top/GNUmakefile (_have-git-version-gen): Fix typo.
33787
33788         GNUmakefile: disable parallelism only for multiple, recursive targets
33789         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
33790         additions in the Makefile.
33791         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
33792         by Automake.
33793         (.NOTPARALLEL): Only disable parallel builds if multiple targets
33794         are listed on the command line and at least one of them is
33795         listed in $(ALL_RECURSIVE_TARGETS).
33796
33797 2009-03-14  Bruno Haible  <bruno@clisp.org>
33798
33799         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
33800         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
33801         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
33802         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
33803         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
33804         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
33805         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
33806         unistr/u8-uctomb.
33807         * modules/unistr/u8-strchr (Depends-on): Likewise.
33808         * modules/unistr/u8-strrchr (Depends-on): Likewise.
33809         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
33810         unistr/u16-uctomb.
33811         * modules/unistr/u16-strchr (Depends-on): Likewise.
33812         * modules/unistr/u16-strrchr (Depends-on): Likewise.
33813
33814 2009-03-12  Bruno Haible  <bruno@clisp.org>
33815
33816         Work around select() bug on Interix 3.5.
33817         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
33818         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
33819         * m4/select.m4: New file.
33820         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
33821         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
33822         * modules/select (Files): Add m4/select.m4.
33823         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
33824         * modules/nanosleep (Depends-on): Add select.
33825         * modules/poll (Depends-on): Likewise.
33826         * doc/posix-functions/select.texi: Mention the Interix bug.
33827         Reported by Markus Duft <mduft@gentoo.org>.
33828
33829         * lib/select.c: Renamed from lib/winsock-select.c.
33830         * modules/select (Files): Add lib/select.c, remove
33831         lib/winsock-select.c.
33832         (configure.ac): Update.
33833
33834 2009-03-12  Jim Meyering  <meyering@redhat.com>
33835
33836         avoid gcc warnings about unused macro definitions
33837         * lib/readtokens.c (STREQ): Remove unused definition.
33838         * lib/xmalloc.c (SIZE_MAX): Likewise.
33839         * lib/openat-die.c (N_): Likewise.
33840         * lib/mountlist.c (SIZE_MAX): Remove definition.
33841         Instead, include <stdint.h>.
33842         * lib/readutmp.c: Likewise.
33843         * modules/readutmp (Depends-on): Add stdint.
33844         * modules/mountlist (Depends-on): Add stdint.
33845         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
33846
33847 2009-03-10  Bruno Haible  <bruno@clisp.org>
33848
33849         Tests for module 'mbmemcasecoll'.
33850         * modules/mbmemcasecoll-tests: New file.
33851         * tests/test-mbmemcasecoll1.sh: New file.
33852         * tests/test-mbmemcasecoll2.sh: New file.
33853         * tests/test-mbmemcasecoll3.sh: New file.
33854         * tests/test-mbmemcasecoll.c: New file.
33855
33856         New module 'mbmemcasecoll'.
33857         * lib/mbmemcasecoll.h: New file.
33858         * lib/mbmemcasecoll.c: New file.
33859         * modules/mbmemcasecoll: New file.
33860
33861         * tests/test-mbmemcasecmp.h: New file, extracted from
33862         tests/test-mbmemcasecmp.c.
33863         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
33864         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
33865         (main): Update.
33866         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
33867
33868 2009-03-09  Bruno Haible  <bruno@clisp.org>
33869
33870         Tests for module 'mbmemcasecmp'.
33871         * modules/mbmemcasecmp-tests: New file.
33872         * tests/test-mbmemcasecmp1.sh: New file.
33873         * tests/test-mbmemcasecmp2.sh: New file.
33874         * tests/test-mbmemcasecmp3.sh: New file.
33875         * tests/test-mbmemcasecmp.c: New file.
33876
33877         New module 'mbmemcasecmp'.
33878         * lib/mbmemcasecmp.h: New file.
33879         * lib/mbmemcasecmp.c: New file.
33880         * modules/mbmemcasecmp: New file.
33881
33882 2009-03-09  Bruno Haible  <bruno@clisp.org>
33883
33884         Tests for module 'unicase/ulc-casecoll'.
33885         * modules/unicase/ulc-casecoll-tests: New file.
33886         * tests/unicase/test-ulc-casecoll1.sh: New file.
33887         * tests/unicase/test-ulc-casecoll2.sh: New file.
33888         * tests/unicase/test-ulc-casecoll.c: New file.
33889
33890         New module 'unicase/ulc-casecoll'.
33891         * lib/unicase.h (ulc_casecoll): New declaration.
33892         * lib/unicase/ulc-casecoll.c: New file.
33893         * modules/unicase/ulc-casecoll: New file.
33894
33895         New module 'unicase/ulc-casexfrm'.
33896         * lib/unicase.h (ulc_casexfrm): New declaration.
33897         * lib/unicase/ulc-casexfrm.c: New file.
33898         * modules/unicase/ulc-casexfrm: New file.
33899
33900 2009-03-09  Bruno Haible  <bruno@clisp.org>
33901
33902         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
33903         invocations.
33904
33905         * m4/mbscasecmp.m4: Remove file.
33906         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
33907         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
33908
33909         * m4/mbscasestr.m4: Remove file.
33910         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
33911         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
33912
33913         * m4/mbschr.m4: Remove file.
33914         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
33915         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
33916
33917         * m4/mbscspn.m4: Remove file.
33918         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
33919         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
33920
33921         * m4/mbslen.m4: Remove file.
33922         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
33923         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
33924
33925         * m4/mbsncasecmp.m4: Remove file.
33926         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
33927         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
33928
33929         * m4/mbsnlen.m4: Remove file.
33930         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
33931         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
33932
33933         * m4/mbspbrk.m4: Remove file.
33934         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
33935         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
33936
33937         * m4/mbspcasecmp.m4: Remove file.
33938         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
33939         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
33940
33941         * m4/mbsrchr.m4: Remove file.
33942         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
33943         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
33944
33945         * m4/mbssep.m4: Remove file.
33946         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
33947         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
33948
33949         * m4/mbsspn.m4: Remove file.
33950         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
33951         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
33952
33953         * m4/mbsstr.m4: Remove file.
33954         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
33955         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
33956
33957         * m4/mbstok_r.m4: Remove file.
33958         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
33959         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
33960
33961         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
33962
33963         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
33964         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
33965
33966         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
33967
33968 2009-03-08  Bruno Haible  <bruno@clisp.org>
33969
33970         Tests for module 'unicase/ulc-casecmp'.
33971         * modules/unicase/ulc-casecmp-tests: New file.
33972         * tests/unicase/test-ulc-casecmp1.sh: New file.
33973         * tests/unicase/test-ulc-casecmp2.sh: New file.
33974         * tests/unicase/test-ulc-casecmp.c: New file.
33975
33976         New module 'unicase/ulc-casecmp'.
33977         * lib/unicase.h (ulc_casecmp): New declaration.
33978         * lib/unicase/ulc-casecmp.c: New file.
33979         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
33980         'const SRC_UNIT *'.
33981         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
33982         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
33983         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
33984         * modules/unicase/ulc-casecmp: New file.
33985
33986         Tests for module 'unicase/u32-is-cased'.
33987         * modules/unicase/u32-is-cased-tests: New file.
33988         * tests/unicase/test-u32-is-cased.c: New file.
33989
33990         Tests for module 'unicase/u16-is-cased'.
33991         * modules/unicase/u16-is-cased-tests: New file.
33992         * tests/unicase/test-u16-is-cased.c: New file.
33993
33994         Tests for module 'unicase/u8-is-cased'.
33995         * modules/unicase/u8-is-cased-tests: New file.
33996         * tests/unicase/test-u8-is-cased.c: New file.
33997         * tests/unicase/test-is-cased.h: New file.
33998
33999         New module 'unicase/u32-is-cased'.
34000         * lib/unicase/u32-is-cased.c: New file.
34001         * modules/unicase/u32-is-cased: New file.
34002
34003         New module 'unicase/u16-is-cased'.
34004         * lib/unicase/u16-is-cased.c: New file.
34005         * modules/unicase/u16-is-cased: New file.
34006
34007         New module 'unicase/u8-is-cased'.
34008         * lib/unicase/u8-is-cased.c: New file.
34009         * lib/unicase/u-is-cased.h: New file.
34010         * modules/unicase/u8-is-cased: New file.
34011
34012         Tests for module 'unicase/u32-is-casefolded'.
34013         * modules/unicase/u32-is-casefolded-tests: New file.
34014         * tests/unicase/test-u32-is-casefolded.c: New file.
34015
34016         Tests for module 'unicase/u16-is-casefolded'.
34017         * modules/unicase/u16-is-casefolded-tests: New file.
34018         * tests/unicase/test-u16-is-casefolded.c: New file.
34019
34020         Tests for module 'unicase/u8-is-casefolded'.
34021         * modules/unicase/u8-is-casefolded-tests: New file.
34022         * tests/unicase/test-u8-is-casefolded.c: New file.
34023         * tests/unicase/test-is-casefolded.h: New file.
34024
34025         New module 'unicase/u32-is-casefolded'.
34026         * lib/unicase/u32-is-casefolded.c: New file.
34027         * modules/unicase/u32-is-casefolded: New file.
34028
34029         New module 'unicase/u16-is-casefolded'.
34030         * lib/unicase/u16-is-casefolded.c: New file.
34031         * modules/unicase/u16-is-casefolded: New file.
34032
34033         New module 'unicase/u8-is-casefolded'.
34034         * lib/unicase/u8-is-casefolded.c: New file.
34035         * modules/unicase/u8-is-casefolded: New file.
34036
34037         Tests for module 'unicase/u32-is-titlecase'.
34038         * modules/unicase/u32-is-titlecase-tests: New file.
34039         * tests/unicase/test-u32-is-titlecase.c: New file.
34040
34041         Tests for module 'unicase/u16-is-titlecase'.
34042         * modules/unicase/u16-is-titlecase-tests: New file.
34043         * tests/unicase/test-u16-is-titlecase.c: New file.
34044
34045         Tests for module 'unicase/u8-is-titlecase'.
34046         * modules/unicase/u8-is-titlecase-tests: New file.
34047         * tests/unicase/test-u8-is-titlecase.c: New file.
34048         * tests/unicase/test-is-titlecase.h: New file.
34049
34050         New module 'unicase/u32-is-titlecase'.
34051         * lib/unicase/u32-is-titlecase.c: New file.
34052         * modules/unicase/u32-is-titlecase: New file.
34053
34054         New module 'unicase/u16-is-titlecase'.
34055         * lib/unicase/u16-is-titlecase.c: New file.
34056         * modules/unicase/u16-is-titlecase: New file.
34057
34058         New module 'unicase/u8-is-titlecase'.
34059         * lib/unicase/u8-is-titlecase.c: New file.
34060         * modules/unicase/u8-is-titlecase: New file.
34061
34062         Tests for module 'unicase/u32-is-lowercase'.
34063         * modules/unicase/u32-is-lowercase-tests: New file.
34064         * tests/unicase/test-u32-is-lowercase.c: New file.
34065
34066         Tests for module 'unicase/u16-is-lowercase'.
34067         * modules/unicase/u16-is-lowercase-tests: New file.
34068         * tests/unicase/test-u16-is-lowercase.c: New file.
34069
34070         Tests for module 'unicase/u8-is-lowercase'.
34071         * modules/unicase/u8-is-lowercase-tests: New file.
34072         * tests/unicase/test-u8-is-lowercase.c: New file.
34073         * tests/unicase/test-is-lowercase.h: New file.
34074
34075         New module 'unicase/u32-is-lowercase'.
34076         * lib/unicase/u32-is-lowercase.c: New file.
34077         * modules/unicase/u32-is-lowercase: New file.
34078
34079         New module 'unicase/u16-is-lowercase'.
34080         * lib/unicase/u16-is-lowercase.c: New file.
34081         * modules/unicase/u16-is-lowercase: New file.
34082
34083         New module 'unicase/u8-is-lowercase'.
34084         * lib/unicase/u8-is-lowercase.c: New file.
34085         * modules/unicase/u8-is-lowercase: New file.
34086
34087         Tests for module 'unicase/u32-is-uppercase'.
34088         * modules/unicase/u32-is-uppercase-tests: New file.
34089         * tests/unicase/test-u32-is-uppercase.c: New file.
34090
34091         Tests for module 'unicase/u16-is-uppercase'.
34092         * modules/unicase/u16-is-uppercase-tests: New file.
34093         * tests/unicase/test-u16-is-uppercase.c: New file.
34094
34095         Tests for module 'unicase/u8-is-uppercase'.
34096         * modules/unicase/u8-is-uppercase-tests: New file.
34097         * tests/unicase/test-u8-is-uppercase.c: New file.
34098         * tests/unicase/test-is-uppercase.h: New file.
34099
34100         New module 'unicase/u32-is-uppercase'.
34101         * lib/unicase/u32-is-uppercase.c: New file.
34102         * modules/unicase/u32-is-uppercase: New file.
34103
34104         New module 'unicase/u16-is-uppercase'.
34105         * lib/unicase/u16-is-uppercase.c: New file.
34106         * modules/unicase/u16-is-uppercase: New file.
34107
34108         New module 'unicase/u8-is-uppercase'.
34109         * lib/unicase/u8-is-uppercase.c: New file.
34110         * modules/unicase/u8-is-uppercase: New file.
34111
34112         New module 'unicase/u32-is-invariant'.
34113         * lib/unicase/u32-is-invariant.c: New file.
34114         * modules/unicase/u32-is-invariant: New file.
34115
34116         New module 'unicase/u16-is-invariant'.
34117         * lib/unicase/u16-is-invariant.c: New file.
34118         * modules/unicase/u16-is-invariant: New file.
34119
34120         New module 'unicase/u8-is-invariant'.
34121         * lib/unicase/u8-is-invariant.c: New file.
34122         * lib/unicase/invariant.h: New file.
34123         * lib/unicase/u-is-invariant.h: New file.
34124         * modules/unicase/u8-is-invariant: New file.
34125
34126         Tests for module 'unicase/u32-casecoll'.
34127         * modules/unicase/u32-casecoll-tests: New file.
34128         * tests/unicase/test-u32-casecoll.c: New file.
34129
34130         Tests for module 'unicase/u16-casecoll'.
34131         * modules/unicase/u16-casecoll-tests: New file.
34132         * tests/unicase/test-u16-casecoll.c: New file.
34133
34134         Tests for module 'unicase/u8-casecoll'.
34135         * modules/unicase/u8-casecoll-tests: New file.
34136         * tests/unicase/test-u8-casecoll.c: New file.
34137
34138         New module 'unicase/u32-casecoll'.
34139         * lib/unicase/u32-casecoll.c: New file.
34140         * modules/unicase/u32-casecoll: New file.
34141
34142         New module 'unicase/u16-casecoll'.
34143         * lib/unicase/u16-casecoll.c: New file.
34144         * modules/unicase/u16-casecoll: New file.
34145
34146         New module 'unicase/u8-casecoll'.
34147         * lib/unicase/u8-casecoll.c: New file.
34148         * lib/unicase/u-casecoll.h: New file.
34149         * modules/unicase/u8-casecoll: New file.
34150
34151         New module 'unicase/u32-casexfrm'.
34152         * lib/unicase/u32-casexfrm.c: New file.
34153         * modules/unicase/u32-casexfrm: New file.
34154
34155         New module 'unicase/u16-casexfrm'.
34156         * lib/unicase/u16-casexfrm.c: New file.
34157         * modules/unicase/u16-casexfrm: New file.
34158
34159         New module 'unicase/u8-casexfrm'.
34160         * lib/unicase/u8-casexfrm.c: New file.
34161         * lib/unicase/u-casexfrm.h: New file.
34162         * modules/unicase/u8-casexfrm: New file.
34163
34164         Tests for module 'unicase/u32-casecmp'.
34165         * modules/unicase/u32-casecmp-tests: New file.
34166         * tests/unicase/test-u32-casecmp.c: New file.
34167
34168         Tests for module 'unicase/u16-casecmp'.
34169         * modules/unicase/u16-casecmp-tests: New file.
34170         * tests/unicase/test-u16-casecmp.c: New file.
34171
34172         Tests for module 'unicase/u8-casecmp'.
34173         * modules/unicase/u8-casecmp-tests: New file.
34174         * tests/unicase/test-u8-casecmp.c: New file.
34175         * tests/unicase/test-casecmp.h: New file.
34176
34177         New module 'unicase/u32-casecmp'.
34178         * lib/unicase/u32-casecmp.c: New file.
34179         * modules/unicase/u32-casecmp: New file.
34180
34181         New module 'unicase/u16-casecmp'.
34182         * lib/unicase/u16-casecmp.c: New file.
34183         * modules/unicase/u16-casecmp: New file.
34184
34185         New module 'unicase/u8-casecmp'.
34186         * lib/unicase/u8-casecmp.c: New file.
34187         * lib/unicase/u-casecmp.h: New file.
34188         * modules/unicase/u8-casecmp: New file.
34189
34190         Tests for module 'unicase/u32-casefold'.
34191         * modules/unicase/u32-casefold-tests: New file.
34192         * tests/unicase/test-u32-casefold.c: New file.
34193
34194         Tests for module 'unicase/u16-casefold'.
34195         * modules/unicase/u16-casefold-tests: New file.
34196         * tests/unicase/test-u16-casefold.c: New file.
34197
34198         Tests for module 'unicase/u8-casefold'.
34199         * modules/unicase/u8-casefold-tests: New file.
34200         * tests/unicase/test-u8-casefold.c: New file.
34201
34202         New module 'unicase/u32-casefold'.
34203         * lib/unicase/u32-casefold.c: New file.
34204         * modules/unicase/u32-casefold: New file.
34205
34206         New module 'unicase/u16-casefold'.
34207         * lib/unicase/u16-casefold.c: New file.
34208         * modules/unicase/u16-casefold: New file.
34209
34210         New module 'unicase/u8-casefold'.
34211         * lib/unicase/u8-casefold.c: New file.
34212         * lib/unicase/u-casefold.h: New file.
34213         * modules/unicase/u8-casefold: New file.
34214
34215         New module 'unicase/tocasefold'.
34216         * lib/unicase/casefold.h: New file.
34217         * lib/unicase/tocasefold.c: New file.
34218         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
34219         * modules/unicase/tocasefold: New file.
34220
34221         Tests for module 'unicase/u32-totitle'.
34222         * modules/unicase/u32-totitle-tests: New file.
34223         * tests/unicase/test-u32-totitle.c: New file.
34224
34225         Tests for module 'unicase/u16-totitle'.
34226         * modules/unicase/u16-totitle-tests: New file.
34227         * tests/unicase/test-u16-totitle.c: New file.
34228
34229         Tests for module 'unicase/u8-totitle'.
34230         * modules/unicase/u8-totitle-tests: New file.
34231         * tests/unicase/test-u8-totitle.c: New file.
34232
34233         New module 'unicase/u32-totitle'.
34234         * lib/unicase/u32-totitle.c: New file.
34235         * modules/unicase/u32-totitle: New file.
34236
34237         New module 'unicase/u16-totitle'.
34238         * lib/unicase/u16-totitle.c: New file.
34239         * modules/unicase/u16-totitle: New file.
34240
34241         New module 'unicase/u8-totitle'.
34242         * lib/unicase/u8-totitle.c: New file.
34243         * lib/unicase/u-totitle.h: New file.
34244         * modules/unicase/u8-totitle: New file.
34245
34246         Tests for module 'unicase/u32-tolower'.
34247         * modules/unicase/u32-tolower-tests: New file.
34248         * tests/unicase/test-u32-tolower.c: New file.
34249
34250         Tests for module 'unicase/u16-tolower'.
34251         * modules/unicase/u16-tolower-tests: New file.
34252         * tests/unicase/test-u16-tolower.c: New file.
34253
34254         Tests for module 'unicase/u8-tolower'.
34255         * modules/unicase/u8-tolower-tests: New file.
34256         * tests/unicase/test-u8-tolower.c: New file.
34257
34258         New module 'unicase/u32-tolower'.
34259         * lib/unicase/u32-tolower.c: New file.
34260         * modules/unicase/u32-tolower: New file.
34261
34262         New module 'unicase/u16-tolower'.
34263         * lib/unicase/u16-tolower.c: New file.
34264         * modules/unicase/u16-tolower: New file.
34265
34266         New module 'unicase/u8-tolower'.
34267         * lib/unicase/u8-tolower.c: New file.
34268         * modules/unicase/u8-tolower: New file.
34269
34270         Tests for module 'unicase/u32-toupper'.
34271         * modules/unicase/u32-toupper-tests: New file.
34272         * tests/unicase/test-u32-toupper.c: New file.
34273
34274         Tests for module 'unicase/u16-toupper'.
34275         * modules/unicase/u16-toupper-tests: New file.
34276         * tests/unicase/test-u16-toupper.c: New file.
34277
34278         Tests for module 'unicase/u8-toupper'.
34279         * modules/unicase/u8-toupper-tests: New file.
34280         * tests/unicase/test-u8-toupper.c: New file.
34281
34282         New module 'unicase/u32-toupper'.
34283         * lib/unicase/u32-toupper.c: New file.
34284         * modules/unicase/u32-toupper: New file.
34285
34286         New module 'unicase/u16-toupper'.
34287         * lib/unicase/u16-toupper.c: New file.
34288         * modules/unicase/u16-toupper: New file.
34289
34290         New module 'unicase/u8-toupper'.
34291         * lib/unicase/u8-toupper.c: New file.
34292         * modules/unicase/u8-toupper: New file.
34293
34294         New module 'unicase/u32-casemap'.
34295         * lib/unicase/u32-casemap.c: New file.
34296         * modules/unicase/u32-casemap: New file.
34297
34298         New module 'unicase/u16-casemap'.
34299         * lib/unicase/u16-casemap.c: New file.
34300         * modules/unicase/u16-casemap: New file.
34301
34302         New module 'unicase/u8-casemap'.
34303         * lib/unicase/unicasemap.h: New file.
34304         * lib/unicase/u8-casemap.c: New file.
34305         * lib/unicase/u-casemap.h: New file.
34306         * modules/unicase/u8-casemap: New file.
34307
34308         New module 'unicase/special-casing'.
34309         * lib/unicase/special-casing.h: New file.
34310         * lib/unicase/special-casing.c: New file.
34311         * lib/unicase/special-casing-table.gperf: New file, generated by
34312         gen-uni-tables.c.
34313         * modules/unicase/special-casing: New file.
34314
34315         Tests for module 'unicase/locale-language'.
34316         * modules/unicase/locale-language-tests: New file.
34317         * tests/unicase/test-locale-language.sh: New file.
34318         * tests/unicase/test-locale-language.c: New file.
34319
34320         New module 'unicase/locale-language'.
34321         * lib/unicase/locale-language.c: New file.
34322         * lib/unicase/locale-languages.gperf: New file.
34323         * modules/unicase/locale-language: New file.
34324
34325         Generate more tables for case conversion and case folding.
34326         * lib/gen-uni-tables.c (SCC_*): New enum items.
34327         (struct special_casing_rule): New type.
34328         (casing_rules, num_casing_rules, allocated_casing_rules): New
34329         variables.
34330         (add_casing_rule, fill_casing_rules): New functions.
34331         (struct casefold_rule): New type.
34332         (casefolding_rules, num_casefolding_rules,
34333         allocated_casefolding_rules): New variables.
34334         (fill_casefolding_rules): New function.
34335         (unicode_casefold): New variable.
34336         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
34337         sort_casing_rules, output_casing_rules): New functions.
34338         (main): Accept to more arguments: SpecialCasing.txt and
34339         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
34340         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
34341         Output mapping for casefolding.
34342
34343         * lib/unicase.h: Include stdbool.h, uninorm.h.
34344         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
34345         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
34346         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
34347         arguments.
34348         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
34349         resultp arguments.
34350         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
34351         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
34352         resultp arguments.
34353         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
34354         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
34355         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
34356         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
34357         declarations.
34358         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
34359
34360 2009-03-08  Bruno Haible  <bruno@clisp.org>
34361
34362         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34363         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
34364         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
34365         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34366
34367 2009-03-07  Bruno Haible  <bruno@clisp.org>
34368
34369         Adjust u*_normcmp, u*_normcoll API.
34370         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34371         u16_normcoll, u32_normcoll): Change failure conventions.
34372         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
34373         errno and return -1.
34374         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34375
34376 2009-03-07  Bruno Haible  <bruno@clisp.org>
34377
34378         Tests for module 'uninorm/u32-normcoll'.
34379         * modules/uninorm/u32-normcoll-tests: New file.
34380         * tests/uninorm/test-u32-normcoll.c: New file.
34381
34382         Tests for module 'uninorm/u16-normcoll'.
34383         * modules/uninorm/u16-normcoll-tests: New file.
34384         * tests/uninorm/test-u16-normcoll.c: New file.
34385
34386         Tests for module 'uninorm/u8-normcoll'.
34387         * modules/uninorm/u8-normcoll-tests: New file.
34388         * tests/uninorm/test-u8-normcoll.c: New file.
34389
34390 2009-03-07  Bruno Haible  <bruno@clisp.org>
34391
34392         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
34393         tests/uninorm/test-u32-normcmp.c.
34394         * tests/uninorm/test-u32-normcmp.c: Include it.
34395         (test_nonascii): New function, extracted from main. Add some more
34396         tests.
34397         (main): Invoke test_ascii and test_nonascii.
34398         * modules/uninorm/u32-normcmp-tests (Files): Add
34399         tests/uninorm/test-u32-normcmp.h.
34400         (Depends-on): Remove uninorm/u32-normcmp.
34401
34402         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
34403         tests/uninorm/test-u16-normcmp.c.
34404         * tests/uninorm/test-u16-normcmp.c: Include it.
34405         (test_nonascii): New function, extracted from main. Add some more
34406         tests.
34407         (main): Invoke test_ascii and test_nonascii.
34408         * modules/uninorm/u16-normcmp-tests (Files): Add
34409         tests/uninorm/test-u16-normcmp.h.
34410         (Depends-on): Remove uninorm/u16-normcmp.
34411
34412         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
34413         tests/uninorm/test-u8-normcmp.c.
34414         * tests/uninorm/test-u8-normcmp.c: Include it.
34415         (test_nonascii): New function, extracted from main. Add some more
34416         tests.
34417         (main): Invoke test_ascii and test_nonascii.
34418         * modules/uninorm/u8-normcmp-tests (Files): Add
34419         tests/uninorm/test-u8-normcmp.h.
34420         (Depends-on): Remove uninorm/u8-normcmp.
34421
34422 2009-03-07  Bruno Haible  <bruno@clisp.org>
34423
34424         New module 'uninorm/u32-normcoll'.
34425         * lib/uninorm/u32-normcoll.c: New file.
34426         * modules/uninorm/u32-normcoll: New file.
34427
34428         New module 'uninorm/u16-normcoll'.
34429         * lib/uninorm/u16-normcoll.c: New file.
34430         * modules/uninorm/u16-normcoll: New file.
34431
34432         New module 'uninorm/u8-normcoll'.
34433         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
34434         declarations.
34435         * lib/uninorm/u8-normcoll.c: New file.
34436         * lib/uninorm/u-normcoll.h: New file.
34437         * modules/uninorm/u8-normcoll: New file.
34438
34439         New module 'uninorm/u32-normxfrm'.
34440         * lib/uninorm/u32-normxfrm.c: New file.
34441         * modules/uninorm/u32-normxfrm: New file.
34442
34443         New module 'uninorm/u16-normxfrm'.
34444         * lib/uninorm/u16-normxfrm.c: New file.
34445         * modules/uninorm/u16-normxfrm: New file.
34446
34447         New module 'uninorm/u8-normxfrm'.
34448         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
34449         declarations.
34450         * lib/uninorm/u8-normxfrm.c: New file.
34451         * lib/uninorm/u-normxfrm.h: New file.
34452         * modules/uninorm/u8-normxfrm: New file.
34453
34454 2009-03-07  Bruno Haible  <bruno@clisp.org>
34455
34456         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
34457         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
34458         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
34459
34460 2009-03-07  Bruno Haible  <bruno@clisp.org>
34461
34462         New module 'memxfrm'.
34463         * lib/memxfrm.h: New file.
34464         * lib/memxfrm.c: New file.
34465         * modules/memxfrm: New file.
34466
34467 2009-03-07  Bruno Haible  <bruno@clisp.org>
34468
34469         New module 'memcmp2'.
34470         * lib/memcmp2.h: New file.
34471         * lib/memcmp2.c: New file.
34472         * modules/memcmp2: New file.
34473
34474 2009-03-07  Bruno Haible  <bruno@clisp.org>
34475
34476         Tests for module 'uninorm/decomposing-form'.
34477         * modules/uninorm/decomposing-form-tests: New file.
34478         * tests/uninorm/test-decomposing-form.c: New file.
34479
34480         New module 'uninorm/decomposing-form'.
34481         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
34482         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
34483         Add 'decomposing_variant' field.
34484         * lib/uninorm/decomposing-form.c: New file.
34485         * lib/uninorm/nfc.c (uninorm_nfc): Update.
34486         * lib/uninorm/nfd.c (uninorm_nfd): Update.
34487         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
34488         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
34489         * modules/uninorm/decomposing-form: New file.
34490         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
34491         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
34492
34493 2009-03-07  Bruno Haible  <bruno@clisp.org>
34494
34495         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
34496         strings.
34497
34498 2009-03-06  Bruno Haible  <bruno@clisp.org>
34499
34500         Tests for module 'uninorm/u32-normcmp'.
34501         * tests/uninorm/test-u32-normcmp.c: New file.
34502         * modules/uninorm/u32-normcmp-tests: New file.
34503
34504         Tests for module 'uninorm/u16-normcmp'.
34505         * tests/uninorm/test-u16-normcmp.c: New file.
34506         * modules/uninorm/u16-normcmp-tests: New file.
34507
34508         Tests for module 'uninorm/u8-normcmp'.
34509         * tests/uninorm/test-u8-normcmp.c: New file.
34510         * modules/uninorm/u8-normcmp-tests: New file.
34511
34512         New module 'uninorm/u32-normcmp'.
34513         * lib/uninorm/u32-normcmp.c: New file.
34514         * modules/uninorm/u32-normcmp: New file.
34515
34516         New module 'uninorm/u16-normcmp'.
34517         * lib/uninorm/u16-normcmp.c: New file.
34518         * modules/uninorm/u16-normcmp: New file.
34519
34520         New module 'uninorm/u8-normcmp'.
34521         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
34522         declarations.
34523         * lib/uninorm/u8-normcmp.c: New file.
34524         * lib/uninorm/u-normcmp.h: New file.
34525         * modules/uninorm/u8-normcmp: New file.
34526
34527 2009-03-06  Bruno Haible  <bruno@clisp.org>
34528
34529         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
34530         Reported by Eric Blake.
34531
34532 2009-03-06  Eric Blake  <ebb9@byu.net>
34533             Bruno Haible  <bruno@clisp.org>
34534
34535         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
34536         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
34537         condition.
34538         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34539         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
34540         condition.
34541         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34542
34543 2009-03-06  Eric Blake  <ebb9@byu.net>
34544
34545         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
34546         to avoid compiler warnings.
34547         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
34548
34549 2009-03-05  Bruno Haible  <bruno@clisp.org>
34550
34551         * tests/test-ftell.c (main): Disable test beyond end of file on
34552         FreeMiNT.
34553         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34554
34555 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
34556
34557         * lib/filevercmp.c: Move hidden files up in ordering.
34558         * tests/test-filevercmp.c: Add tests for hidden files.
34559
34560 2009-03-04  Bruno Haible  <bruno@clisp.org>
34561
34562         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
34563         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
34564         AM_CFLAGS.
34565         Reported by Simon Josefsson.
34566
34567 2009-03-03  Bruno Haible  <bruno@clisp.org>
34568
34569         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
34570         Reported by Simon Josefsson.
34571
34572         * doc/ld-version-script.texi: Update node reference.
34573
34574 2009-03-03  Bruno Haible  <bruno@clisp.org>
34575
34576         * modules/visibility (License): Change to 'unlimited'.
34577         Suggested by Simon Josefsson.
34578
34579 2009-03-03  Jim Meyering  <meyering@redhat.com>
34580
34581         unlinkdir: cannot_unlink_dir may modify process state
34582         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
34583         it's neither thread-safe nor appropriate for use in a library.
34584
34585 2009-03-03  Eric Blake  <ebb9@byu.net>
34586
34587         test-closein: silence test under Darwin
34588         * tests/test-closein.sh: Ignore stderr from cat, since we don't
34589         care if it dies from EPIPE or EBADF.
34590
34591 2009-03-03  Bruno Haible  <bruno@clisp.org>
34592
34593         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
34594         earlier.
34595         * doc/visibility.texi: Fix @node and @section.
34596
34597 2009-03-03  Simon Josefsson  <simon@josefsson.org>
34598
34599         * doc/gnulib.texi: Link to sections for ld version script and
34600         visibility.
34601         * doc/visibility.texi: Add @node and @section.
34602         * modules/ld-version-script: New module.
34603         * m4/ld-version-script.m4: New file.
34604         * doc/ld-version-script.texi: New file.
34605
34606 2009-03-02  David Lutterkort  <lutter@redhat.com>
34607
34608         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
34609         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34610
34611 2009-03-02  Bruno Haible  <bruno@clisp.org>
34612
34613         * doc/visibility.texi: Mention libtool's -export-symbols option.
34614
34615 2009-03-02  Jim Meyering  <meyering@redhat.com>
34616
34617         announce-gen: new option: --no-print-checksums
34618         * build-aux/announce-gen (usage): Describe it.
34619         (print_checksums): Print a newline here, not in the [*] footnote.
34620         (main): Honor it.
34621
34622 2009-03-01  Bruno Haible  <bruno@clisp.org>
34623
34624         Use socklen_t in the native Windows replacements prototypes.
34625         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
34626         instead of 'int'.
34627         * lib/getsockopt.c (rpl_getsockopt): Likewise.
34628         * lib/setsockopt.c (rpl_setsockopt): Likewise.
34629         * modules/getsockopt (Depends-on): Add socklen.
34630         * modules/setsockopt (Depends-on): Add socklen.
34631
34632 2009-03-01  Bruno Haible  <bruno@clisp.org>
34633
34634         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
34635         least 4.2.
34636
34637 2009-03-01  Eric Blake  <ebb9@byu.net>
34638             Bruno Haible  <bruno@clisp.org>
34639
34640         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
34641         error messages.
34642         * lib/wait-process.c (wait_subprocess): Omit error message about
34643         deadly signal sent to the child of termsigp != NULL.
34644
34645 2009-03-01  Eric Blake  <ebb9@byu.net>
34646
34647         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
34648
34649 2009-03-01  Bruno Haible  <bruno@clisp.org>
34650
34651         Avoid a gcc warning.
34652         * tests/test-sched.c (b): Make global.
34653         Reported by Eric Blake.
34654
34655 2009-01-19  Martin Lambers  <marlam@marlam.de>
34656
34657         Provide POSIX semantics for socket timeout options on W32.
34658         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
34659         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
34660         * modules/setsockopt: Depend on sys_time module for struct timeval.
34661         * modules/getsockopt: Depend on sys_time module for struct timeval.
34662
34663 2009-03-01  Simon Josefsson  <simon@josefsson.org>
34664
34665         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
34666         __USE_GNU, for consistency with netdb.in.h.
34667         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34668
34669 2009-03-01  Bruno Haible  <bruno@clisp.org>
34670
34671         More support for FreeMiNT.
34672         * lib/fseeko.c (rpl_fseeko): Complete last commit.
34673         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34674
34675 2009-03-01  Bruno Haible  <bruno@clisp.org>
34676
34677         More support for FreeMiNT.
34678         * lib/fpurge.c (fpurge): Correct last commit.
34679         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34680
34681 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34682
34683         Fix unportable awk script in vc-list-files.
34684         * build-aux/vc-list-files: In the replacement awk script, use
34685         substr with a second argument of 1, not zero.
34686         Report by Simon Josefsson.
34687
34688 2009-02-28  Bruno Haible  <bruno@clisp.org>
34689
34690         More support for FreeMiNT.
34691         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
34692         to FreeMiNT today.
34693         * lib/fwriting.c (fwriting): Likewise.
34694         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
34695
34696 2009-02-28  Bruno Haible  <bruno@clisp.org>
34697
34698         * tests/test-freadseek.c (main): Disable test beyond end of file on
34699         FreeMiNT.
34700         * tests/test-ftello.c (main): Likewise.
34701         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34702
34703 2009-02-28  Bruno Haible  <bruno@clisp.org>
34704
34705         Add tentative support for FreeMiNT.
34706         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
34707         * lib/fpurge.c (fpurge): Likewise.
34708         * lib/freadable.c (freadable): Likewise.
34709         * lib/freading.c (freading): Likewise.
34710         * lib/freadptr.c (freadptr): Likewise.
34711         * lib/freadseek.c (freadptrinc): Likewise.
34712         * lib/fseeko.c (rpl_fseeko): Likewise.
34713         * lib/fseterr.c (fseterr): Likewise.
34714         * lib/fwritable.c (fwritable): Likewise.
34715         * lib/fwriting.c (fwriting): Likewise.
34716         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
34717         Hourihane.
34718         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34719
34720 2009-02-28  Bruno Haible  <bruno@clisp.org>
34721
34722         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
34723         SIGCHLD.
34724         Reported by Jim Meyering.
34725
34726 2009-02-28  Bruno Haible  <bruno@clisp.org>
34727
34728         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
34729         Mention the results of these tests on various platforms.
34730         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
34731         order.
34732         * doc/posix-functions/printf.texi: Likewise.
34733         * doc/posix-functions/snprintf.texi: Likewise.
34734         * doc/posix-functions/sprintf.texi: Likewise.
34735         * doc/posix-functions/vfprintf.texi: Likewise.
34736         * doc/posix-functions/vprintf.texi: Likewise.
34737         * doc/posix-functions/vsnprintf.texi: Likewise.
34738         * doc/posix-functions/vsprintf.texi: Likewise.
34739         * doc/glibc-functions/obstack_printf.texi: Likewise.
34740         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
34741
34742 2009-02-28  Bruno Haible  <bruno@clisp.org>
34743
34744         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
34745         Reported by Loïc Minier <lool@dooz.org>.
34746
34747 2009-02-27  Bruno Haible  <bruno@clisp.org>
34748
34749         * gnulib-tool (func_import): Make the sed expression used to create the
34750         sed script for updating the .gitignore file POSIX compliant.
34751         Reported by Eric Blake.
34752
34753 2009-02-27  Bruno Haible  <bruno@clisp.org>
34754
34755         * gnulib-tool (sed): Don't alias as "sed --posix".
34756         Reported by Eric Blake.
34757
34758 2009-02-27  Bruno Haible  <bruno@clisp.org>
34759
34760         Avoid test link errors.
34761         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
34762         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
34763         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
34764         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
34765         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34766
34767 2009-02-27  Bruno Haible  <bruno@clisp.org>
34768
34769         Avoid spurious "(cached)" in configure output.
34770         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
34771         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
34772         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34773         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34774         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34775         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
34776         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34777         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
34778         Reported by Eric Blake.
34779
34780 2009-02-27  Eric Blake  <ebb9@byu.net>
34781
34782         printf: fix regression in previous patch
34783         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
34784
34785 2009-02-27  Bruno Haible  <bruno@clisp.org>
34786
34787         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
34788         value.
34789         * lib/stdint.in.h: Likewise.
34790         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
34791
34792 2009-02-27  Eric Blake  <ebb9@byu.net>
34793
34794         doc: mention more functions added in cygwin 1.7.0
34795         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
34796         addition.
34797         * doc/posix-functions/open_wmemstream.texi: Likewise.
34798         * doc/posix-functions/wcsnlen.texi: Likewise.
34799         * doc/posix-functions/wcsnrtombs.texi: Likewise.
34800         * doc/posix-functions/wcstod.texi: Likewise.
34801         * doc/posix-functions/wcstof.texi: Likewise.
34802         * doc/posix-functions/wcstoimax.texi: Likewise.
34803         * doc/posix-functions/wcstok.texi: Likewise.
34804         * doc/posix-functions/wcstoumax.texi: Likewise.
34805
34806         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
34807         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
34808         * doc/posix-functions/fprintf.texi: Update.
34809         * doc/posix-functions/printf.texi: Update.
34810         * doc/posix-functions/snprintf.texi: Update.
34811         * doc/posix-functions/sprintf.texi: Update.
34812         * doc/posix-functions/vfprintf.texi: Update.
34813         * doc/posix-functions/vprintf.texi: Update.
34814         * doc/posix-functions/vsnprintf.texi: Update.
34815         * doc/posix-functions/vsprintf.texi: Update.
34816         * doc/glibc-functions/obstack_printf.texi: Update.
34817         * doc/glibc-functions/obstack_vprintf.texi: Update.
34818
34819 2009-02-26  Eric Blake  <ebb9@byu.net>
34820
34821         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
34822         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
34823         compilation bug by using runtime conversion.
34824         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34825         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
34826         * modules/ceill-tests (Files): Use nan.h.
34827         * modules/floorl-tests (Files): Likewise.
34828         * modules/frexpl-tests (Files): Likewise.
34829         * modules/isnanl-tests (Files): Likewise.
34830         * modules/ldexpl-tests (Files): Likewise.
34831         * modules/roundl-tests (Files): Likewise.
34832         * modules/truncl-tests (Files): Likewise.
34833         * tests/test-ceill.c (main): Use a working NaN.
34834         * tests/test-floorl.c (main): Likewise.
34835         * tests/test-frexpl.c (main): Likewise.
34836         * tests/test-isnan.c (test_long_double): Likewise.
34837         * tests/test-isnanl.h (main): Likewise.
34838         * tests/test-ldexpl.h (main): Likewise.
34839         * tests/test-roundl.h (main): Likewise.
34840         * tests/test-truncl.h (main): Likewise.
34841         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
34842
34843 2009-02-26  Eric Blake  <ebb9@byu.net>
34844             Bruno Haible  <bruno@clisp.org>
34845
34846         Work around a *printf bug with %ls on Solaris.
34847         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
34848         precision is specified, sprintf stops converting the wide string
34849         argument when the number of bytes that have been produced by this
34850         conversion equals or exceeds the precision.
34851         * doc/posix-functions/fprintf.texi: Update.
34852         * doc/posix-functions/printf.texi: Update.
34853         * doc/posix-functions/snprintf.texi: Update.
34854         * doc/posix-functions/sprintf.texi: Update.
34855         * doc/posix-functions/vfprintf.texi: Update.
34856         * doc/posix-functions/vprintf.texi: Update.
34857         * doc/posix-functions/vsnprintf.texi: Update.
34858         * doc/posix-functions/vsprintf.texi: Update.
34859         * doc/glibc-functions/obstack_printf.texi: Update.
34860         * doc/glibc-functions/obstack_vprintf.texi: Update.
34861
34862 2009-02-26  Eric Blake  <ebb9@byu.net>
34863
34864         stdlib: favor compiler check of random.h
34865         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
34866         to avoid an ObjC random.h installed by Swarm.
34867
34868 2009-02-26  Bruno Haible  <bruno@clisp.org>
34869
34870         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
34871         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
34872         Reported by Gary V. Vaughan <gary@gnu.org>.
34873
34874 2009-02-26  Bruno Haible  <bruno@clisp.org>
34875
34876         Fix *printf behaviour regarding the %ls directive.
34877         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
34878         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
34879         NEED_PRINTF_DIRECTIVE_LS.
34880         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
34881         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34882         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34883         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
34884         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
34885         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
34886         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
34887         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34888         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34889         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34890         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34891         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
34892         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34893         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34894         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34895         * doc/posix-functions/fprintf.texi: Update.
34896         * doc/posix-functions/printf.texi: Update.
34897         * doc/posix-functions/snprintf.texi: Update.
34898         * doc/posix-functions/sprintf.texi: Update.
34899         * doc/posix-functions/vfprintf.texi: Update.
34900         * doc/posix-functions/vprintf.texi: Update.
34901         * doc/posix-functions/vsnprintf.texi: Update.
34902         * doc/posix-functions/vsprintf.texi: Update.
34903         * doc/glibc-functions/obstack_printf.texi: Update.
34904         * doc/glibc-functions/obstack_vprintf.texi: Update.
34905         Reported by Eric Blake.
34906
34907 2009-02-25  Bruno Haible  <bruno@clisp.org>
34908
34909         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
34910         with known value.
34911         Reported by Gary V. Vaughan <gary@gnu.org>.
34912
34913 2009-02-25  Bruno Haible  <bruno@clisp.org>
34914
34915         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
34916         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
34917         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
34918         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
34919         Reported by Gary V. Vaughan <gary@gnu.org>.
34920
34921 2009-02-25  Bruno Haible  <bruno@clisp.org>
34922
34923         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
34924         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
34925         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
34926         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
34927         Reported by Gary V. Vaughan <gary@gnu.org>.
34928
34929 2009-02-25  Eric Blake  <ebb9@byu.net>
34930
34931         tests: skip fseek/ftell tests if ungetc is broken
34932         * m4/ungetc.m4: New file.
34933         * modules/fseek-tests: Split test, so ungetc dependency is
34934         separate from rest of test.
34935         * modules/fseeko-tests: Likewise.
34936         * modules/ftell-tests: Likewise.
34937         * modules/ftello-tests: Likewise.
34938         * tests/test-fseek.c (main): Isolate ungetc dependency.
34939         * tests/test-fseeko.c (main): Likewise.
34940         * tests/test-ftell.c (main): Likewise.
34941         * tests/test-ftello.c (main): Likewise.
34942         * tests/test-fseek2.sh: New file.
34943         * tests/test-fseeko2.sh: Likewise.
34944         * tests/test-ftell2.sh: Likewise.
34945         * tests/test-ftello2.sh: Likewise.
34946
34947 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
34948
34949         test-getaddrinfo: fix usage of skip return code 77
34950         * tests/test-gettaddrinfo.c: Return skip code 77 only
34951         for first occurance of skip (4x77 is not 77)
34952
34953 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
34954
34955         strtod: avoid C99 decl-after-statement
34956         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
34957
34958 2009-02-24  Eric Blake  <ebb9@byu.net>
34959
34960         strtod: detect HP-UX 11.31 bug
34961         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
34962         Reported by Gary V. Vaughan.
34963
34964 2009-02-23  Bruno Haible  <bruno@clisp.org>
34965
34966         Fix invalid read past end of memory block.
34967         * lib/vasnprintf.c (DCHAR_SET): Define.
34968         (local_wcslen): Define only when needed.
34969         (local_strnlen, local_wcsnlen): New functions.
34970         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
34971         directives that involve a conversion ourselves.
34972         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
34973         wcsnlen, mbrtowc, wcrtomb.
34974         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
34975         * tests/test-vasprintf-posix.c (test_function): Likewise.
34976         * tests/test-snprintf-posix.h (test_function): Likewise.
34977         * tests/test-sprintf-posix.h (test_function): Likewise.
34978         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34979
34980 2009-02-22  Bruno Haible  <bruno@clisp.org>
34981
34982         Implement new clarified decomposition of Hangul syllables.
34983         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
34984         of type LTV, return only a pairwise decomposition.
34985         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
34986         Likewise.
34987         * tests/uninorm/test-decomposition.c (main): Updated expected result.
34988         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
34989         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
34990
34991 2009-02-22  Bruno Haible  <bruno@clisp.org>
34992
34993         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
34994         zero-length results and shrink excess allocated memory.
34995         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
34996         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
34997         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
34998         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
34999         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
35000         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
35001         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
35002         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
35003         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
35004         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
35005         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
35006         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
35007
35008 2009-02-21  Bruno Haible  <bruno@clisp.org>
35009
35010         * doc/gnulib.texi: Include safe-alloc.texi earlier.
35011         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
35012         spaces after a period. Put a space between a macro name and its
35013         argument list. Trivial rewordings.
35014         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
35015         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
35016         (main): Return 0 explicitly.
35017
35018 2009-02-21  Bruno Haible  <bruno@clisp.org>
35019
35020         Tests for module 'uninorm/filter'.
35021         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
35022         * modules/uninorm/filter-tests: New file.
35023
35024         New module 'uninorm/filter'.
35025         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
35026         uninorm_filter_flush, uninorm_filter_free): New declarations.
35027         * lib/uninorm/uninorm-filter.c: New file.
35028         * modules/uninorm/filter: New file.
35029
35030 2009-02-21  Bruno Haible  <bruno@clisp.org>
35031
35032         Tests for module 'uninorm/nfkc'.
35033         * tests/uninorm/test-nfkc.c: New file.
35034         * tests/uninorm/test-u8-nfkc.c: New file.
35035         * tests/uninorm/test-u16-nfkc.c: New file.
35036         * tests/uninorm/test-u32-nfkc.c: New file.
35037         * tests/uninorm/test-u32-nfkc-big.sh: New file.
35038         * tests/uninorm/test-u32-nfkc-big.c: New file.
35039         * modules/uninorm/nfkc-tests: New file.
35040
35041         New module 'uninorm/nfkc'.
35042         * lib/uninorm/nfkc.c: New file.
35043         * modules/uninorm/nfkc: New file.
35044
35045         Tests for module 'uninorm/nfkd'.
35046         * tests/uninorm/test-nfkd.c: New file.
35047         * tests/uninorm/test-u8-nfkd.c: New file.
35048         * tests/uninorm/test-u16-nfkd.c: New file.
35049         * tests/uninorm/test-u32-nfkd.c: New file.
35050         * tests/uninorm/test-u32-nfkd-big.sh: New file.
35051         * tests/uninorm/test-u32-nfkd-big.c: New file.
35052         * modules/uninorm/nfkd-tests: New file.
35053
35054         New module 'uninorm/nfkd'.
35055         * lib/uninorm/nfkd.c: New file.
35056         * modules/uninorm/nfkd: New file.
35057
35058         Tests for module 'uninorm/nfc'.
35059         * tests/uninorm/test-nfc.c: New file.
35060         * tests/uninorm/test-u8-nfc.c: New file.
35061         * tests/uninorm/test-u16-nfc.c: New file.
35062         * tests/uninorm/test-u32-nfc.c: New file.
35063         * tests/uninorm/test-u32-nfc-big.sh: New file.
35064         * tests/uninorm/test-u32-nfc-big.c: New file.
35065         * modules/uninorm/nfc-tests: New file.
35066
35067         New module 'uninorm/nfc'.
35068         * lib/uninorm/nfc.c: New file.
35069         * modules/uninorm/nfc: New file.
35070
35071         Tests for module 'uninorm/nfd'.
35072         * tests/uninorm/test-nfd.c: New file.
35073         * tests/uninorm/test-u8-nfd.c: New file.
35074         * tests/uninorm/test-u16-nfd.c: New file.
35075         * tests/uninorm/test-u32-nfd.c: New file.
35076         * tests/uninorm/test-u32-nfd-big.sh: New file.
35077         * tests/uninorm/test-u32-nfd-big.c: New file.
35078         * tests/uninorm/test-u32-normalize-big.h: New file.
35079         * tests/uninorm/test-u32-normalize-big.c: New file.
35080         * tests/uninorm/NormalizationTest.txt: New file, created from
35081         Unicode 5.1.0 NormalizationTest.txt.
35082         * modules/uninorm/nfd-tests: New file.
35083
35084         New module 'uninorm/nfd'.
35085         * lib/uninorm/nfd.c: New file.
35086         * modules/uninorm/nfd: New file.
35087
35088         New module 'uninorm/u32-normalize'.
35089         * lib/uninorm/u32-normalize.c: New file.
35090         * modules/uninorm/u32-normalize: New file.
35091
35092         New module 'uninorm/u16-normalize'.
35093         * lib/uninorm/u16-normalize.c: New file.
35094         * modules/uninorm/u16-normalize: New file.
35095
35096         New module 'uninorm/u8-normalize'.
35097         * lib/uninorm/u8-normalize.c: New file.
35098         * lib/uninorm/normalize-internal.h: New file.
35099         * lib/uninorm/u-normalize-internal.h: New file.
35100         * modules/uninorm/u8-normalize: New file.
35101
35102         New module 'uninorm/decompose-internal'.
35103         * lib/uninorm/decompose-internal.c: New file.
35104         * modules/uninorm/decompose-internal: New file.
35105
35106         Tests for module 'uninorm/composition'.
35107         * tests/uninorm/test-composition.c: New file.
35108         * modules/uninorm/composition-tests: New file.
35109
35110         New module 'uninorm/composition'.
35111         * lib/uninorm/composition.c: New file.
35112         * lib/uninorm/composition-table.gperf: New file, generated by
35113         gen-uni-tables.
35114         * modules/uninorm/composition: New file.
35115
35116         Tests for module 'uninorm/compat-decomposition'.
35117         * tests/uninorm/test-compat-decomposition.c: New file.
35118         * modules/uninorm/compat-decomposition-tests: New file.
35119
35120         New module 'uninorm/compat-decomposition'.
35121         * lib/uninorm/decompose-internal.h: New file.
35122         * lib/uninorm/compat-decomposition.c: New file.
35123         * modules/uninorm/compat-decomposition: New file.
35124
35125         Tests for module 'uninorm/canonical-decomposition'.
35126         * tests/uninorm/test-canonical-decomposition.c: New file.
35127         * modules/uninorm/canonical-decomposition-tests: New file.
35128
35129         New module 'uninorm/canonical-decomposition'.
35130         * lib/uninorm/canonical-decomposition.c: New file.
35131         * modules/uninorm/canonical-decomposition: New file.
35132
35133         Tests for module 'uninorm/decomposition'.
35134         * tests/uninorm/test-decomposition.c: New file.
35135         * modules/uninorm/decomposition-tests: New file.
35136
35137         New module 'uninorm/decomposition'.
35138         * lib/uninorm/decomposition.c: New file.
35139         * modules/uninorm/decomposition: New file.
35140
35141         New module 'uninorm/decomposition-table'.
35142         * lib/uninorm/decomposition-table.h: New file.
35143         * lib/uninorm/decomposition-table.c: New file.
35144         * lib/uninorm/decomposition-table1.h: New file, generated by
35145         gen-uni-tables.
35146         * lib/uninorm/decomposition-table2.h: New file, generated by
35147         gen-uni-tables.
35148         * modules/uninorm/decomposition-table: New file.
35149
35150         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
35151         (UC_DECOMP_*): New enumeration items.
35152         (get_decomposition): New function.
35153         (struct decomp_table): New type.
35154         (output_decomposition, output_decomposition_tables): New functions.
35155         (unicode_composition_exclusions): New variable.
35156         (fill_composition_exclusions, debug_output_composition_tables): New
35157         functions.
35158         (main): Accept one more argument. Invoke fill_composition_exclusions.
35159         Output decomposition and composition tables.
35160
35161         New module 'uninorm/base'.
35162         * lib/uninorm.h: New file.
35163         * lib/unictype.h: Update comment.
35164         * modules/uninorm/base: New file.
35165
35166 2009-02-21  David Lutterkort  <lutter@redhat.com>
35167
35168         Tests for module 'safe-alloc'.
35169         * tests/test-safe-alloc.c: New file.
35170         * modules/safe-alloc-tests: New file.
35171
35172         New module 'safe-alloc'.
35173         * lib/safe-alloc.h: New file.
35174         * lib/safe-alloc.c: New file.
35175         * m4/safe-alloc.m4: New file.
35176         * modules/safe-alloc: New file.
35177         * doc/safe-alloc.texi: New file.
35178         * doc/gnulib.texi: Include it.
35179         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
35180         safe-alloc.
35181
35182 2009-02-18  Bruno Haible  <bruno@clisp.org>
35183
35184         Fix link error on non-glibc systems.
35185         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
35186         variable.
35187         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35188
35189 2009-02-18  Jim Meyering  <meyering@redhat.com>
35190
35191         fts: avoid used-uninitialized error due to recent change
35192         * lib/fts.c (fts_read): Guard uses of the new member,
35193         parent->fts_n_dirs_remaining, since it's not relevant for
35194         the parent of a directory specified on the command-line.
35195
35196 2009-02-17  James Youngman  <jay@gnu.org>
35197             Bruno Haible  <bruno@clisp.org>
35198
35199         * m4/include_next.m4: Reformulate comment.
35200
35201 2009-02-16  Jim Meyering  <meyering@redhat.com>
35202
35203         fts: add #if guards so that the fts_lgpl module still builds
35204         * lib/fts.c: Guard just-added hash-table-using parts with
35205         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
35206         Reported by Simon Josefsson.
35207
35208 2009-02-15  Bruno Haible  <bruno@clisp.org>
35209
35210         * modules/array-mergesort-tests: New file.
35211         * tests/test-array-mergesort.c: New file.
35212
35213         New module 'array-mergesort'.
35214         * modules/array-mergesort: New file.
35215         * lib/array-mergesort.h: New file.
35216
35217 2009-02-15  Bruno Haible  <bruno@clisp.org>
35218
35219         Fix 2009-02-07 commit.
35220         * lib/gen-uni-tables.c (output_predicate, output_category,
35221         output_combclass, output_bidi_category, output_decimal_digit,
35222         output_digit, output_numeric, output_mirror, output_scripts,
35223         output_ident_category, output_simple_mapping): Fix format directives.
35224         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
35225
35226 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
35227
35228         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
35229         fixes are available from IBM.
35230
35231 2009-02-13  Jim Meyering  <meyering@redhat.com>
35232
35233         fts: arrange not to stat non-directories in more cases
35234         This makes GNU find (when it doesn't need to stat each file)
35235         *much* more efficient at traversing reiserfs file systems.
35236         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
35237         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
35238         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
35239         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
35240         (leaf_optimization_applies): New function.
35241         (LCO_hash, LCO_compare): New helper functions.
35242         (link_count_optimize_ok): New function.
35243         (fts_stat): Initialize new member (if dir).
35244         (fts_read): Decrement parent's fts_n_dirs_remaining count if
35245         we've just stat'ed a directory.  Skip the stat call when possible.
35246         ---
35247         Note this AFS-related exchange:
35248         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
35249         and note find's pioctl call in find/fstype.c.
35250         But that is necessary only if you want to enable the
35251         optimization for AFS, and for now, I don't.
35252
35253         fts: move a function definition "up" (no semantic change)
35254         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
35255         "up" to precede upcoming use of a related function.
35256
35257 2009-02-11  Jim Meyering  <meyering@redhat.com>
35258
35259         fts: correct internal computation of nlinks (optimization-related)
35260         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
35261         whether the current entry is a directory, so don't test it.
35262
35263 2009-02-10  Bruno Haible  <bruno@clisp.org>
35264
35265         Tests for module 'uniwbrk/ulc-wordbreaks'.
35266         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
35267         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
35268         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
35269
35270         Tests for module 'uniwbrk/u32-wordbreaks'.
35271         * modules/uniwbrk/u32-wordbreaks-tests: New file.
35272         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
35273
35274         Tests for module 'uniwbrk/u16-wordbreaks'.
35275         * modules/uniwbrk/u16-wordbreaks-tests: New file.
35276         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
35277
35278         Tests for module 'uniwbrk/u8-wordbreaks'.
35279         * modules/uniwbrk/u8-wordbreaks-tests: New file.
35280         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
35281
35282 2009-02-10  Bruno Haible  <bruno@clisp.org>
35283
35284         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
35285         property.
35286         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
35287         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
35288         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
35289
35290 2009-02-10  Simon Josefsson  <simon@josefsson.org>
35291
35292         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
35293         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
35294
35295 2009-02-10  Bruno Haible  <bruno@clisp.org>
35296
35297         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
35298         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
35299         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
35300         * lib/unilbrk/u8-possible-linebreaks.c: Update.
35301         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
35302         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
35303
35304 2009-02-09  Simon Josefsson  <simon@josefsson.org>
35305
35306         * lib/sockets.h (gl_fd_to_handle): New function.
35307
35308         * tests/test-sockets.c: Call gl_fd_to_handle.
35309
35310 2009-02-09  Bruno Haible  <bruno@clisp.org>
35311
35312         * doc/havelib.texi: Document the conventions on bi-arch systems.
35313
35314 2009-02-08  Bruno Haible  <bruno@clisp.org>
35315
35316         Document the AC_LIB_LINKFLAGS macro.
35317         * doc/havelib.texi: New file, mostly written on 2005-05-24.
35318         * doc/gnulib.texi: Include it.
35319
35320 2009-02-08  Bruno Haible  <bruno@clisp.org>
35321
35322         Fix wrong order of sections, compared to TOC.
35323         * doc/gnulib.texi: Include relocatable-maint.texi after the
35324         "Regular expressions" node, not before.
35325
35326 2009-02-08  Bruno Haible  <bruno@clisp.org>
35327
35328         Tests for module 'unicase/totitle'.
35329         * modules/unicase/totitle-tests: New file.
35330
35331         Tests for module 'unicase/tolower'.
35332         * modules/unicase/tolower-tests: New file.
35333
35334         Tests for module 'unicase/toupper'.
35335         * modules/unicase/toupper-tests: New file.
35336         * tests/unicase/test-mapping-part1.h: New file.
35337         * tests/unicase/test-mapping-part2.h: New file.
35338
35339         New module 'unicase/totitle'.
35340         * modules/unicase/totitle: New file.
35341         * lib/unicase/totitle.c: New file.
35342
35343         New module 'unicase/tolower'.
35344         * modules/unicase/tolower: New file.
35345         * lib/unicase/tolower.c: New file.
35346
35347         New module 'unicase/toupper'.
35348         * modules/unicase/toupper: New file.
35349         * lib/unicase/toupper.c: New file.
35350         * lib/unicase/simple-mapping.h: New file.
35351
35352         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
35353         (mapping_table): New structure.
35354         (output_simple_mapping): New function.
35355         (main): Invoke output_simple_mapping_test and output_simple_mapping.
35356         * modules/gen-uni-tables (Description): Update.
35357         * lib/unicase/toupper.h: New file, automatically generated by
35358         gen-uni-tables.
35359         * lib/unicase/tolower.h: New file, automatically generated by
35360         gen-uni-tables.
35361         * lib/unicase/totitle.h: New file, automatically generated by
35362         gen-uni-tables.
35363         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
35364         gen-uni-tables.
35365         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
35366         gen-uni-tables.
35367         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
35368         gen-uni-tables.
35369
35370         New module 'unicase/base'.
35371         * modules/unicase/base: New file.
35372         * lib/unicase.h: New file.
35373
35374 2009-02-08  Bruno Haible  <bruno@clisp.org>
35375
35376         New module 'uniwbrk/ulc-wordbreaks'.
35377         * modules/uniwbrk/ulc-wordbreaks: New file.
35378         * lib/uniwbrk/ulc-wordbreaks.c: New file.
35379
35380         New module 'uniwbrk/u32-wordbreaks'.
35381         * modules/uniwbrk/u32-wordbreaks: New file.
35382         * lib/uniwbrk/u32-wordbreaks.c: New file.
35383
35384         New module 'uniwbrk/u16-wordbreaks'.
35385         * modules/uniwbrk/u16-wordbreaks: New file.
35386         * lib/uniwbrk/u16-wordbreaks.c: New file.
35387
35388         New module 'uniwbrk/u8-wordbreaks'.
35389         * modules/uniwbrk/u8-wordbreaks: New file.
35390         * lib/uniwbrk/u8-wordbreaks.c: New file.
35391         * lib/uniwbrk/u-wordbreaks.h: New file.
35392
35393         New module 'uniwbrk/table'.
35394         * modules/uniwbrk/table: New file.
35395         * lib/uniwbrk/wbrktable.h: New file.
35396         * lib/uniwbrk/wbrktable.c: New file.
35397
35398         New module 'uniwbrk/wordbreak-property'.
35399         * modules/uniwbrk/wordbreak-property: New file.
35400         * lib/uniwbrk/wordbreak-property.c: New file.
35401
35402         * lib/gen-uni-tables.c (WBP_*): New enum items.
35403         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
35404         (unicode_org_wbp): New variable.
35405         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
35406         New functions.
35407         (wbp_table): New structure.
35408         (output_wbp, output_wbrk_tables): New functions.
35409         (main): Accept additional argument. Invoke fill_org_wbp,
35410         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
35411         output_wbrk_tables.
35412         * modules/gen-uni-tables (Description): Update.
35413         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
35414         gen-uni-tables.
35415
35416         New module 'uniwbrk/base'.
35417         * modules/uniwbrk/base: New file.
35418         * lib/uniwbrk.h: New file.
35419
35420 2009-02-08  Bruno Haible  <bruno@clisp.org>
35421
35422         Update to Unicode 5.1.0.
35423         * lib/gen-uni-tables.c (is_property_alphabetic): Include
35424         U+2185..U+2188.
35425         (is_property_default_ignorable_code_point): Don't include characters
35426         of category Cc or Cs and not-a-characters.
35427         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
35428         U+0D79, U+109E, U+109F, U+A60C.
35429         * lib/unictype/bidi_of.h: Regenerated.
35430         * lib/unictype/blocks.h: Regenerated.
35431         * lib/unictype/categ_C.h: Regenerated.
35432         * lib/unictype/categ_Cf.h: Regenerated.
35433         * lib/unictype/categ_Cn.h: Regenerated.
35434         * lib/unictype/categ_L.h: Regenerated.
35435         * lib/unictype/categ_Ll.h: Regenerated.
35436         * lib/unictype/categ_Lm.h: Regenerated.
35437         * lib/unictype/categ_Lo.h: Regenerated.
35438         * lib/unictype/categ_Lu.h: Regenerated.
35439         * lib/unictype/categ_M.h: Regenerated.
35440         * lib/unictype/categ_Mc.h: Regenerated.
35441         * lib/unictype/categ_Me.h: Regenerated.
35442         * lib/unictype/categ_Mn.h: Regenerated.
35443         * lib/unictype/categ_N.h: Regenerated.
35444         * lib/unictype/categ_Nd.h: Regenerated.
35445         * lib/unictype/categ_Nl.h: Regenerated.
35446         * lib/unictype/categ_No.h: Regenerated.
35447         * lib/unictype/categ_P.h: Regenerated.
35448         * lib/unictype/categ_Pd.h: Regenerated.
35449         * lib/unictype/categ_Pe.h: Regenerated.
35450         * lib/unictype/categ_Pf.h: Regenerated.
35451         * lib/unictype/categ_Pi.h: Regenerated.
35452         * lib/unictype/categ_Po.h: Regenerated.
35453         * lib/unictype/categ_Ps.h: Regenerated.
35454         * lib/unictype/categ_S.h: Regenerated.
35455         * lib/unictype/categ_Sk.h: Regenerated.
35456         * lib/unictype/categ_Sm.h: Regenerated.
35457         * lib/unictype/categ_So.h: Regenerated.
35458         * lib/unictype/categ_of.h: Regenerated.
35459         * lib/unictype/combining.h: Regenerated.
35460         * lib/unictype/ctype_alnum.h: Regenerated.
35461         * lib/unictype/ctype_alpha.h: Regenerated.
35462         * lib/unictype/ctype_graph.h: Regenerated.
35463         * lib/unictype/ctype_lower.h: Regenerated.
35464         * lib/unictype/ctype_print.h: Regenerated.
35465         * lib/unictype/ctype_punct.h: Regenerated.
35466         * lib/unictype/ctype_upper.h: Regenerated.
35467         * lib/unictype/decdigit.h: Regenerated.
35468         * lib/unictype/digit.h: Regenerated.
35469         * lib/unictype/mirror.h: Regenerated.
35470         * lib/unictype/numeric.h: Regenerated.
35471         * lib/unictype/pr_alphabetic.h: Regenerated.
35472         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
35473         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
35474         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
35475         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
35476         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
35477         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
35478         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
35479         * lib/unictype/pr_combining.h: Regenerated.
35480         * lib/unictype/pr_dash.h: Regenerated.
35481         * lib/unictype/pr_decimal_digit.h: Regenerated.
35482         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
35483         * lib/unictype/pr_deprecated.h: Regenerated.
35484         * lib/unictype/pr_diacritic.h: Regenerated.
35485         * lib/unictype/pr_extender.h: Regenerated.
35486         * lib/unictype/pr_format_control.h: Regenerated.
35487         * lib/unictype/pr_grapheme_base.h: Regenerated.
35488         * lib/unictype/pr_grapheme_extend.h: Regenerated.
35489         * lib/unictype/pr_grapheme_link.h: Regenerated.
35490         * lib/unictype/pr_id_continue.h: Regenerated.
35491         * lib/unictype/pr_id_start.h: Regenerated.
35492         * lib/unictype/pr_ideographic.h: Regenerated.
35493         * lib/unictype/pr_ignorable_control.h: Regenerated.
35494         * lib/unictype/pr_lowercase.h: Regenerated.
35495         * lib/unictype/pr_math.h: Regenerated.
35496         * lib/unictype/pr_numeric.h: Regenerated.
35497         * lib/unictype/pr_other_alphabetic.h: Regenerated.
35498         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
35499         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
35500         * lib/unictype/pr_other_id_continue.h: Regenerated.
35501         * lib/unictype/pr_other_lowercase.h: Regenerated.
35502         * lib/unictype/pr_other_math.h: Regenerated.
35503         * lib/unictype/pr_punctuation.h: Regenerated.
35504         * lib/unictype/pr_sentence_terminal.h: Regenerated.
35505         * lib/unictype/pr_soft_dotted.h: Regenerated.
35506         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
35507         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
35508         * lib/unictype/pr_unified_ideograph.h: Regenerated.
35509         * lib/unictype/pr_uppercase.h: Regenerated.
35510         * lib/unictype/pr_xid_continue.h: Regenerated.
35511         * lib/unictype/pr_xid_start.h: Regenerated.
35512         * lib/unictype/pr_zero_width.h: Regenerated.
35513         * lib/unictype/scripts.h: Regenerated.
35514         * lib/unictype/scripts_byname.gperf: Regenerated.
35515         * lib/unictype/sy_java_ident.h: Regenerated.
35516         * lib/unilbrk/lbrkprop1.h: Regenerated.
35517         * lib/unilbrk/lbrkprop2.h: Regenerated.
35518         * tests/unictype/test-categ_C.c: Regenerated.
35519         * tests/unictype/test-categ_Cf.c: Regenerated.
35520         * tests/unictype/test-categ_Cn.c: Regenerated.
35521         * tests/unictype/test-categ_L.c: Regenerated.
35522         * tests/unictype/test-categ_Ll.c: Regenerated.
35523         * tests/unictype/test-categ_Lm.c: Regenerated.
35524         * tests/unictype/test-categ_Lo.c: Regenerated.
35525         * tests/unictype/test-categ_Lu.c: Regenerated.
35526         * tests/unictype/test-categ_M.c: Regenerated.
35527         * tests/unictype/test-categ_Mc.c: Regenerated.
35528         * tests/unictype/test-categ_Me.c: Regenerated.
35529         * tests/unictype/test-categ_Mn.c: Regenerated.
35530         * tests/unictype/test-categ_N.c: Regenerated.
35531         * tests/unictype/test-categ_Nd.c: Regenerated.
35532         * tests/unictype/test-categ_Nl.c: Regenerated.
35533         * tests/unictype/test-categ_No.c: Regenerated.
35534         * tests/unictype/test-categ_P.c: Regenerated.
35535         * tests/unictype/test-categ_Pd.c: Regenerated.
35536         * tests/unictype/test-categ_Pe.c: Regenerated.
35537         * tests/unictype/test-categ_Pf.c: Regenerated.
35538         * tests/unictype/test-categ_Pi.c: Regenerated.
35539         * tests/unictype/test-categ_Po.c: Regenerated.
35540         * tests/unictype/test-categ_Ps.c: Regenerated.
35541         * tests/unictype/test-categ_S.c: Regenerated.
35542         * tests/unictype/test-categ_Sk.c: Regenerated.
35543         * tests/unictype/test-categ_Sm.c: Regenerated.
35544         * tests/unictype/test-categ_So.c: Regenerated.
35545         * tests/unictype/test-ctype_alnum.c: Regenerated.
35546         * tests/unictype/test-ctype_alpha.c: Regenerated.
35547         * tests/unictype/test-ctype_graph.c: Regenerated.
35548         * tests/unictype/test-ctype_lower.c: Regenerated.
35549         * tests/unictype/test-ctype_print.c: Regenerated.
35550         * tests/unictype/test-ctype_punct.c: Regenerated.
35551         * tests/unictype/test-ctype_upper.c: Regenerated.
35552         * tests/unictype/test-decdigit.h: Regenerated.
35553         * tests/unictype/test-digit.h: Regenerated.
35554         * tests/unictype/test-numeric.h: Regenerated.
35555         * tests/unictype/test-pr_alphabetic.c: Regenerated.
35556         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
35557         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
35558         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
35559         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
35560         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
35561         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
35562         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
35563         * tests/unictype/test-pr_combining.c: Regenerated.
35564         * tests/unictype/test-pr_dash.c: Regenerated.
35565         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
35566         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
35567         * tests/unictype/test-pr_deprecated.c: Regenerated.
35568         * tests/unictype/test-pr_diacritic.c: Regenerated.
35569         * tests/unictype/test-pr_extender.c: Regenerated.
35570         * tests/unictype/test-pr_format_control.c: Regenerated.
35571         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
35572         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
35573         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
35574         * tests/unictype/test-pr_id_continue.c: Regenerated.
35575         * tests/unictype/test-pr_id_start.c: Regenerated.
35576         * tests/unictype/test-pr_ideographic.c: Regenerated.
35577         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
35578         * tests/unictype/test-pr_lowercase.c: Regenerated.
35579         * tests/unictype/test-pr_math.c: Regenerated.
35580         * tests/unictype/test-pr_numeric.c: Regenerated.
35581         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
35582         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
35583         Regenerated.
35584         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
35585         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
35586         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
35587         * tests/unictype/test-pr_other_math.c: Regenerated.
35588         * tests/unictype/test-pr_punctuation.c: Regenerated.
35589         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
35590         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
35591         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
35592         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
35593         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
35594         * tests/unictype/test-pr_uppercase.c: Regenerated.
35595         * tests/unictype/test-pr_xid_continue.c: Regenerated.
35596         * tests/unictype/test-pr_xid_start.c: Regenerated.
35597         * tests/unictype/test-pr_zero_width.c: Regenerated.
35598
35599         Update to Unicode 5.1.0.
35600         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
35601         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
35602         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
35603         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
35604         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
35605         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
35606         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
35607         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
35608         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
35609         (nonspacing_table_ind): Update.
35610         * tests/uniwidth/test-uc_width2.sh: Update expected result.
35611
35612         Update to Unicode 5.1.0.
35613         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
35614         code transform.
35615         * lib/uniname/uniname.c (unicode_character_name,
35616         unicode_name_character): Add the range 0x1Fxxx to the code transform.
35617         * lib/uniname/uninames.h: Regenerated.
35618         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
35619
35620 2009-02-07  Bruno Haible  <bruno@clisp.org>
35621
35622         Merge gen-ctype and gen-lbrk into a single program.
35623         * lib/gen-uni-tables.c: New file, incorporating
35624         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
35625         Add directory prefixes to the names of the generated files.
35626         * lib/unictype/gen-ctype.c: Remove file.
35627         * lib/unilbrk/gen-lbrk.c: Remove file.
35628         * modules/gen-uni-tables: New file.
35629         * modules/unictype/gen-ctype: Remove file.
35630         * modules/unilbrk/gen-lbrk: Remove file.
35631
35632 2009-02-07  Bruno Haible  <bruno@clisp.org>
35633
35634         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
35635
35636         New module 'unistr/u32-strcoll'.
35637         * modules/unistr/u32-strcoll: New file.
35638         * lib/unistr/u32-strcoll.c: New file.
35639
35640         New module 'unistr/u16-strcoll'.
35641         * modules/unistr/u16-strcoll: New file.
35642         * lib/unistr/u16-strcoll.c: New file.
35643
35644         New module 'unistr/u8-strcoll'.
35645         * modules/unistr/u8-strcoll: New file.
35646         * lib/unistr/u8-strcoll.c: New file.
35647         * lib/unistr/u-strcoll.h: New file.
35648
35649 2009-02-07  Bruno Haible  <bruno@clisp.org>
35650
35651         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
35652         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35653         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35654         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
35655         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
35656         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
35657
35658 2009-02-07  Bruno Haible  <bruno@clisp.org>
35659
35660         Make 64-bit clean.
35661         * lib/unictype/gen-ctype.c (output_predicate, output_category,
35662         output_combclass, output_bidi_category, output_decimal_digit,
35663         output_digit, output_numeric, output_mirror, output_scripts,
35664         output_ident_category): Use proper width specifier in format strings.
35665
35666 2009-02-07  Bruno Haible  <bruno@clisp.org>
35667
35668         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
35669         failure behaviour.
35670
35671 2009-02-07  Jim Meyering  <meyering@redhat.com>
35672
35673         regex: avoid compilation failure with upcoming gcc-4.4
35674         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
35675         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
35676         "... error: integer overflow in preprocessor expression".
35677
35678 2009-02-05  Ben Pfaff  <blp@gnu.org>
35679
35680         Fix link errors on Windows when close module is used.
35681         * modules/close: Add $(LIB_CLOSE) to Link section.
35682         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
35683         $(LIB_CLOSE) on Windows.
35684
35685 2009-02-05  Jim Meyering  <meyering@redhat.com>
35686
35687         still avoid unused-parameter warnings, but do it cleanly
35688         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
35689         (get_fs_usage): Cast to void instead.
35690         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
35691         (dev_from_mount_options, read_file_system_list): Cast to void.
35692         Prompted by Bruno Haible.
35693
35694 2009-02-04  Jim Meyering  <meyering@redhat.com>
35695
35696         fsusage.c: correct copyright year
35697         * lib/fsusage.c: Reflect year in which the change is pushed into
35698
35699         avoid misc. warnings
35700         * lib/fsusage.c (UNUSED_PARAM): Define.
35701         (get_fs_usage): Mark parameter "disk" as unused.
35702         * lib/getugroups.c (getgrent): Use "void" in prototype.
35703         * lib/mountlist.c: Mark unused parameters.
35704         (read_file_system_list): Declare a local with "const".
35705         * lib/nanosleep.c (getnow): Declare static.
35706         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
35707
35708         dirfd: set errno upon failure
35709         * lib/dirfd.c: Include <errno.h>.
35710         Set errno to ENOTSUP when returning -1.
35711         * modules/dirfd (Depends-on): Add errno.
35712         Suggested by John Kodis <kodis@comcast.net>.
35713
35714 2009-02-01  Bruno Haible  <bruno@clisp.org>
35715
35716         Don't assume sizeof (long) >= sizeof (void *).
35717         * lib/memcmp.c: Include stdint.h.
35718         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
35719         srcp2 to 'const byte *'.
35720         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
35721         types to uintptr_t.
35722         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
35723         * modules/memcmp (Depends-on): Add stdint.
35724         Reported by Ozkan Sezer <sezeroz@gmail.com>.
35725
35726 2009-01-30  Eric Blake  <ebb9@byu.net>
35727
35728         fix more require-before-expand issues
35729         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
35730         expand, AC_PROG_AWK.
35731         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
35732
35733 2009-01-28  Eric Blake  <ebb9@byu.net>
35734
35735         version-etc: use consistent URL formatting
35736         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
35737         Improve formatting.  Use fputs for string without %.
35738
35739 2009-01-28  Jim Meyering  <meyering@redhat.com>
35740
35741         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
35742         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
35743         "underquoted definition of NAME" from autoconf-2.59.
35744
35745 2009-01-28  Bruno Haible  <bruno@clisp.org>
35746
35747         * doc/gnulib.texi: Add "Obsolete modules" to index.
35748
35749 2009-01-28  Jim Meyering  <meyering@redhat.com>
35750
35751         useless-if-before-free: recognize more variants
35752         * build-aux/useless-if-before-free: Also recognize e.g.,
35753         if (NULL != p) free (p);
35754
35755 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
35756
35757         test-getaddrinfo: skip (don't fail) this test when there's no network
35758         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
35759         on the presumption that it means you lack network access.
35760
35761 2009-01-26  Jim Meyering  <meyering@redhat.com>
35762
35763         fflush: avoid warnings on modern systems
35764         * lib/fflush.c (rpl_fflush): Move declarations of locals,
35765         pos and result, into scopes where they're used.
35766
35767 2009-01-26  Eric Blake  <ebb9@byu.net>
35768
35769         Silence warning reintroduced by recent extensions patch.
35770         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
35771         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
35772         autoconf.
35773
35774         Backport improved autoconf semantics of AC_DEFUN_ONCE.
35775         * m4/00gnulib.m4: New file.
35776         * gnulib-tool (func_get_filelist): Always use it.
35777         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
35778         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
35779
35780 2009-01-25  Bruno Haible  <bruno@clisp.org>
35781
35782         Make test-quotearg work on MacOS X and AIX.
35783         * tests/test-quotearg.sh: New file.
35784         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
35785         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
35786         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
35787         include <libintl.h>.
35788         (fake_locale): Remove variable.
35789         (gettext, dgettext, dcgettext): Remove functions.
35790         (main): Instead of setting a fake locale, set a real locale. Call
35791         textdomain and bindtextdomain.
35792         * modules/quotearg-tests (Files): Add the new files.
35793         (Depends-on): Add gettext, setenv, unsetenv.
35794         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35795         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
35796         Augment TESTS_ENVIRONMENT.
35797
35798 2009-01-25  Bruno Haible  <bruno@clisp.org>
35799
35800         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
35801         fr_FR.ISO8859-1 locale on MacOS X.
35802         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
35803         ja_JP.eucJP locale on MacOS X.
35804         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
35805         zh_CN.GB18030 locale on MacOS X.
35806
35807 2009-01-25  Bruno Haible  <bruno@clisp.org>
35808
35809         Avoid link errors on MacOS X 10.3.
35810         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
35811         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35812
35813 2009-01-25  Bruno Haible  <bruno@clisp.org>
35814
35815         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
35816         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
35817         * modules/pipe (Files): Remove m4/posix_spawn.m4.
35818         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
35819         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
35820         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
35821         posix_spawnattr_init, posix_spawnattr_setsigmask,
35822         posix_spawnattr_setflags, posix_spawnattr_destroy.
35823
35824         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
35825         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
35826         * modules/execute (Files): Remove m4/posix_spawn.m4.
35827         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
35828         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
35829         posix_spawnattr_init, posix_spawnattr_setsigmask,
35830         posix_spawnattr_setflags, posix_spawnattr_destroy.
35831
35832 2009-01-25  Bruno Haible  <bruno@clisp.org>
35833
35834         * lib/glthread/threadlib.c: Include <stdlib.h>.
35835
35836 2009-01-25  Bruno Haible  <bruno@clisp.org>
35837
35838         * lib/glthread/threadlib.c (dummy): New declaration.
35839
35840 2009-01-25  Bruno Haible  <bruno@clisp.org>
35841
35842         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
35843         multibyte characters also for the GB18030 encoding. Don't crash when
35844         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
35845
35846 2009-01-25  Bruno Haible  <bruno@clisp.org>
35847
35848         Avoid redefining 'struct random_data' on OSF/1 5.1.
35849         * lib/stdlib.in.h: Include <random.h> if it exists.
35850         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
35851         HAVE_RANDOM_H. Include <random.h> when testing whether
35852         'struct random_data' exists.
35853         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
35854
35855 2009-01-25  Bruno Haible  <bruno@clisp.org>
35856
35857         Don't install charset.alias on MacOS X >= 10.3.
35858         * lib/localcharset.c (DARWIN7): New macro.
35859         (get_charset_aliases): Hardcode the result for Darwin7.
35860         * modules/localcharset (install-exec-local): Don't install
35861         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
35862
35863 2009-01-25  Bruno Haible  <bruno@clisp.org>
35864
35865         Don't install charset.alias on mingw and Cygwin.
35866         * modules/localcharset (install-exec-local): Don't install
35867         charset.alias on mingw and Cygwin, if the file does not yet exist.
35868         The result for these platforms is hardcoded in localcharset.c.
35869
35870 2009-01-25  Bruno Haible  <bruno@clisp.org>
35871
35872         Make it possible again to use AC_GNU_SOURCE together with gnulib.
35873         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
35874         before requiring AC_USE_SYSTEM_EXTENSIONS.
35875
35876 2009-01-25  Jim Meyering  <meyering@redhat.com>
35877
35878         c-strtod: avoid warnings
35879         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
35880         "assignment discards qualifiers from pointer target type" warnings.
35881
35882 2009-01-24  Bruno Haible  <bruno@clisp.org>
35883
35884         Add support for non-UTF-8 locales on MacOS X.
35885         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
35886         canonical encodings. For Darwin 7 and newer, don't map traditional
35887         encodings to UTF-8.
35888         Reported by Vincent Lefevre <vincent@vinc17.org>
35889         at <http://savannah.gnu.org/bugs/?25235>.
35890
35891 2009-01-24  Bruno Haible  <bruno@clisp.org>
35892
35893         * doc/gnulib.texi (Obsolete modules): New section.
35894         Reported by Mike Frysinger <vapier@gentoo.org>.
35895
35896 2009-01-24  Bruno Haible  <bruno@clisp.org>
35897
35898         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
35899         (%.dvi): New rule.
35900
35901 2009-01-24  Bruno Haible  <bruno@clisp.org>
35902
35903         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
35904         Reported by Eric Blake.
35905
35906 2009-01-24  Bruno Haible  <bruno@clisp.org>
35907
35908         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
35909         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
35910         Reported by Gary V. Vaughan <gary@gnu.org>.
35911
35912 2009-01-24  Bruno Haible  <bruno@clisp.org>
35913
35914         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
35915
35916 2009-01-23  Bruno Haible  <bruno@clisp.org>
35917
35918         Make c-strtod, c-strtold usable in libraries.
35919         * lib/c-strtod.c: Include string.h instead of xalloc.h.
35920         (C_STRTOD): Call strdup instead of xstrdup.
35921         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
35922         * modules/c-strtold (Depends-on): Likewise.
35923         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
35924         * NEWS: Mention the change.
35925         Reported by Michael Gold <mgold@ncf.ca>.
35926
35927 2009-01-23  Jim Meyering  <meyering@redhat.com>
35928
35929         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
35930         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
35931         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
35932
35933 2009-01-23  Simon Josefsson  <simon@josefsson.org>
35934
35935         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
35936         GNU CoreUtils.
35937         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
35938         * modules/version-etc (Description): Update.
35939
35940 2009-01-22  Bruno Haible  <bruno@clisp.org>
35941
35942         Cache the C locale object.
35943         * lib/c-strtod.c (c_locale_cache): New variable.
35944         (c_locale): New function.
35945         (C_STRTOD): Use it, and don't call freelocale.
35946         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
35947         Suggested by Paolo Bonzini.
35948
35949 2009-01-21  Bruno Haible  <bruno@clisp.org>
35950
35951         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
35952         conditions other than overflow.
35953
35954 2009-01-21  Bruno Haible  <bruno@clisp.org>
35955
35956         * lib/c-strtod.c: Include errno.h.
35957         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
35958         value from STRTOD_L and STRTOD.
35959
35960 2009-01-21  Bruno Haible  <bruno@clisp.org>
35961         and Jim Meyering  <meyering@redhat.com>
35962
35963         nanosleep: skip configure test (fail it) for apple universal builds
35964         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
35965         universal builds, assume that nanosleep does not work.
35966         * modules/nanosleep (Depends-on): Add multiarch.
35967
35968         mktime: skip configure test (fail it) for apple universal builds
35969         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
35970         universal builds, assume that mktime does not work.
35971         * modules/mktime (Depends-on): Add multiarch.
35972
35973 2009-01-21  Eric Blake  <ebb9@byu.net>
35974
35975         multiarch: avoid expand-before-require warning
35976         * modules/multiarch (configure.ac): Require, rather than expand,
35977         gl_MULTIARCH.
35978         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
35979         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
35980         enforce that all clients require it.  Partial reversion of
35981         2008-12-29 patch.
35982
35983         error: avoid expand-before-require warning
35984         * modules/errno (configure.ac): Require, rather than expand,
35985         gl_HEADER_ERRNO_H.
35986         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
35987         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
35988         enforce that all clients require it.
35989
35990         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
35991         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
35992         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
35993         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
35994
35995 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
35996
35997         Revert:
35998         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
35999
36000         regex: do not depend on obsolete modules.
36001         * modules/regex: Remove memcmp and memmove.
36002
36003 2009-01-20  Bruno Haible  <bruno@clisp.org>
36004
36005         Make the 'link' module link on Windows NT 4.
36006         * lib/link.c (_WIN32_WINNT): Don't define.
36007         (CreateHardLinkFuncType): New type.
36008         (CreateHardLinkFunc, initialized): New variables.
36009         (initialize): New function.
36010         (link): Invoke CreateHardLink indirectly through the function pointer.
36011
36012 2009-01-20  Bruno Haible  <bruno@clisp.org>
36013
36014         Fix compilation failure on mingw.
36015         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
36016
36017 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
36018
36019         * doc/c-strtod.texi: Mention a couple of restrictions.
36020
36021 2009-01-20  Jim Meyering  <meyering@redhat.com>
36022
36023         gettimeofday: move more declarations out of functions
36024         * lib/gettimeofday.c: Move extern declarations of tzset and
36025         gmtime out of containing functions.  Prompted by Bruno Haible.
36026
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-19  Bruno Haible  <bruno@clisp.org>
36033
36034         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36035         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
36036         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36037         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
36038         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
36039
36040 2009-01-19  Bruno Haible  <bruno@clisp.org>
36041
36042         * tests/test-link.c: Include <errno.h>.
36043         (main): Exit with code 77 when a hard link cannot be created due to
36044         the file system.
36045         * tests/test-link.sh: Skip test when a hard link cannot be created due
36046         to the file system.
36047         Suggested by Eric Blake.
36048
36049 2009-01-19  Martin Lambers  <marlam@marlam.de>
36050
36051         * modules/link-tests: New file.
36052         * tests/test-link.sh: New file.
36053         * tests/test-link.c: New file.
36054
36055 2009-01-19  Eric Blake  <ebb9@byu.net>
36056
36057         doc: mention another function added in cygwin 1.7.0
36058         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
36059         Another new function in cygwin 1.7.
36060
36061 2009-01-19  Bruno Haible  <bruno@clisp.org>
36062
36063         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36064         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
36065         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
36066         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36067         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36068         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
36069         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
36070         * m4/md4.m4 (gl_MD4): Likewise.
36071         * m4/md5.m4 (gl_MD5): Likewise.
36072         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
36073         * m4/sha1.m4 (gl_SHA1): Likewise.
36074         * m4/sha256.m4 (gl_SHA256): Likewise.
36075         * m4/sha512.m4 (gl_SHA512): Likewise.
36076
36077 2009-01-19  Bruno Haible  <bruno@clisp.org>
36078
36079         * modules/uniname/uniname-tests (Depends-on): Add progname.
36080         * tests/uniname/test-uninames.c: Include progname.h.
36081         (main): Call set_program_name.
36082
36083         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
36084         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
36085         (main): Call set_program_name.
36086
36087         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
36088         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
36089         (main): Call set_program_name.
36090
36091         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
36092         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
36093         (main): Call set_program_name.
36094
36095         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
36096         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
36097         (main): Call set_program_name.
36098
36099         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
36100         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
36101         (main): Call set_program_name.
36102
36103         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
36104         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
36105         (main): Call set_program_name.
36106
36107         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
36108         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
36109         (main): Call set_program_name.
36110
36111         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
36112         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
36113         (main): Call set_program_name.
36114
36115 2009-01-19  Eric Blake  <ebb9@byu.net>
36116
36117         test-unistd: test previous patch
36118         * tests/test-unistd.c: Test *_FILENO macros.
36119
36120         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
36121         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36122         Guarantee a definition.
36123         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
36124         * modules/unistd-safer (Depends-on): Add dependency on unistd.
36125         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
36126         * lib/dup-safer.c (STDERR_FILENO): Likewise.
36127         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36128         Likewise.
36129         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
36130         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
36131         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36132         Likewise.
36133         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
36134         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
36135         (STDERR_FILENO): Likewise.
36136         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
36137         (STDERR_FILENO): Likewise.
36138         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
36139         (STDERR_FILENO): Likewise.
36140         Reported by Elbert Pol.
36141
36142 2009-01-19  Eric Blake  <ebb9@byu.net>
36143
36144         doc: mention more functions added in cygwin 1.7.0
36145         * doc/posix-functions/abort.texi (abort): Update wording related
36146         to cygwin.
36147         * doc/posix-functions/daylight.texi (daylight): Likewise.
36148         * doc/posix-functions/optarg.texi (optarg): Likewise.
36149         * doc/posix-functions/optarg.texi (opterr): Likewise.
36150         * doc/posix-functions/optarg.texi (optind): Likewise.
36151         * doc/posix-functions/optarg.texi (optopt): Likewise.
36152         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
36153         worked in 1.5.x, and was withdrawn in 1.7.
36154         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36155         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
36156         cygwin versions.
36157         * doc/posix-functions/perror.texi (perror): Likewise.
36158         * doc/posix-functions/printf.texi (printf): Likewise.
36159         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
36160         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
36161         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36162         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36163         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
36164         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
36165         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36166         Likewise.
36167         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36168         Likewise.
36169         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
36170         this function.
36171         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
36172         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
36173         Likewise.
36174         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
36175         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
36176         * doc/posix-functions/confstr.texi (confstr): Likewise.
36177         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
36178         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
36179         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
36180         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
36181         * doc/posix-functions/fputws.texi (fputws): Likewise.
36182         * doc/posix-functions/fwide.texi (fwide): Likewise.
36183         * doc/posix-functions/getwc.texi (getwc): Likewise.
36184         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
36185         * doc/posix-functions/putwc.texi (putwc): Likewise.
36186         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
36187         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
36188         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
36189         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
36190         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
36191         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
36192         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
36193         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
36194         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
36195         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
36196         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
36197
36198 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36199
36200         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
36201         * lib/ioctl.c: Include <sys/ioctl.h>.
36202
36203 2009-01-19  Simon Josefsson  <simon@josefsson.org>
36204
36205         * modules/getdate-tests (Depends-on): Add progname.
36206         * tests/test-getdate.c: Use progname module, to avoid link errors
36207         on non-glibc systems.
36208
36209 2009-01-18  Simon Josefsson  <simon@josefsson.org>
36210
36211         * modules/filenamecat-tests (Depends-on): Add progname.
36212         * modules/fstrcmp-tests (Depends-on): Likewise.
36213
36214         * tests/test-filenamecat.c: Use progname module, to avoid link
36215         errors on non-glibc systems.
36216         * tests/test-fstrcmp.c: Likewise.
36217
36218 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36219
36220         gettimeofday: avoid warning: nested extern declaration of 'localtime'
36221         * lib/gettimeofday.c: Move extern declaration out of function.
36222
36223 2009-01-18  Bruno Haible  <bruno@clisp.org>
36224
36225         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
36226         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
36227         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
36228
36229 2009-01-18  Bruno Haible  <bruno@clisp.org>
36230
36231         * lib/strftime.c (MEMPCPY): Remove unused macro.
36232         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
36233
36234 2009-01-18  Martin Lambers  <marlam@marlam.de>
36235
36236         New module 'link'.
36237         * lib/unistd.in.h (link): New declaration.
36238         * lib/link.c: New file.
36239         * m4/link.m4: New file.
36240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
36241         HAVE_LINK.
36242         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
36243         * modules/link: New file.
36244         * doc/posix-functions/link.texi: Mention the new module.
36245
36246 2009-01-18  Bruno Haible  <bruno@clisp.org>
36247
36248         * tests/test-avltree_list.c (main): Call set_program_name.
36249         * tests/test-avltree_oset.c (main): Likewise.
36250         * tests/test-obstack-printf.c: Include progname.h.
36251         (main): Call set_program_name.
36252         * tests/test-quotearg.c: Include progname.h.
36253         (main): Call set_program_name.
36254         * tests/test-xmemdup0.c: Include progname.h.
36255         (main): Call set_program_name.
36256
36257 2009-01-18  Bruno Haible  <bruno@clisp.org>
36258
36259         New module 'alphasort'.
36260         * lib/dirent.in.h (alphasort): New declaration.
36261         * lib/alphasort.c: New file, from glibc with modifications.
36262         * m4/alphasort.m4: New file.
36263         * modules/alphasort: New file.
36264         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
36265         HAVE_ALPHASORT.
36266         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
36267         HAVE_ALPHASORT.
36268         * doc/posix-functions/alphasort.texi: Mention the new module and the
36269         portability problems.
36270
36271 2009-01-18  Bruno Haible  <bruno@clisp.org>
36272
36273         New module 'scandir'.
36274         * lib/dirent.in.h (scandir): New declaration.
36275         * lib/scandir.c: New file, from glibc with modifications.
36276         * m4/scandir.m4: New file.
36277         * modules/scandir: New file.
36278         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
36279         HAVE_SCANDIR.
36280         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
36281         HAVE_SCANDIR.
36282         * doc/posix-functions/scandir.texi: Mention the new module and the
36283         portability problems.
36284
36285 2009-01-17  Bruno Haible  <bruno@clisp.org>
36286
36287         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
36288         Update documentation.
36289         (func_remove_suffix): Escape all dots in the suffix. Update
36290         documentation.
36291         (func_filter_filelist): Update documentation.
36292         Reported by Ralf Wildenhues.
36293
36294 2009-01-17  Bruno Haible  <bruno@clisp.org>
36295
36296         * modules/dprintf-posix-tests: New file.
36297         * tests/test-dprintf-posix.sh: New file.
36298         * tests/test-dprintf-posix.c: New file.
36299
36300         New modules 'dprintf', 'dprintf-posix'.
36301         * lib/stdio.in.h (dprintf): New declaration.
36302         * lib/dprintf.c: New file.
36303         * m4/dprintf.m4: New file.
36304         * m4/dprintf-posix.m4: New file.
36305         * modules/dprintf: New file.
36306         * modules/dprintf-posix: New file.
36307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
36308         HAVE_DPRINTF, REPLACE_DPRINTF.
36309         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
36310         HAVE_DPRINTF, REPLACE_DPRINTF.
36311         * doc/posix-functions/dprintf.texi: Mention the new modules.
36312
36313 2009-01-17  Bruno Haible  <bruno@clisp.org>
36314
36315         * modules/vdprintf-posix-tests: New file.
36316         * tests/test-vdprintf-posix.sh: New file.
36317         * tests/test-vdprintf-posix.c: New file.
36318
36319         New modules 'vdprintf', 'vdprintf-posix'.
36320         * lib/stdio.in.h (vdprintf): New declaration.
36321         * lib/vdprintf.c: New file.
36322         * m4/vdprintf.m4: New file.
36323         * m4/vdprintf-posix.m4: New file.
36324         * modules/vdprintf: New file.
36325         * modules/vdprintf-posix: New file.
36326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
36327         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36328         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
36329         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36330         * doc/posix-functions/vdprintf.texi: Mention the new modules.
36331
36332 2009-01-17  Bruno Haible  <bruno@clisp.org>
36333
36334         Fix replacement of fopen on mingw.
36335         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
36336         mingw.
36337
36338 2009-01-17  Bruno Haible  <bruno@clisp.org>
36339
36340         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
36341         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
36342
36343 2009-01-17  Bruno Haible  <bruno@clisp.org>
36344
36345         Avoid test-fflush2.sh failure on mingw.
36346         * tests/test-fflush2.c: Include binary-io.h.
36347         (main): Put standard input into binary mode.
36348         * modules/fflush-tests (Depends-on): Add binary-io.
36349
36350 2009-01-17  Bruno Haible  <bruno@clisp.org>
36351
36352         * lib/wchar.in.h: In another particular situation, include only the
36353         system's <wchar.h> file.
36354         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
36355         Reported by Albert Chin-A-Young <china@thewrittenword.com>
36356         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
36357
36358 2009-01-17  Bruno Haible  <bruno@clisp.org>
36359
36360         Support for stripping executables in --enable-relocatable.
36361         * build-aux/install-reloc: Expect one more argument, or an environment
36362         variable RELOC_STRIP_PROG. If set, strip the destination program and
36363         its wrapper.
36364         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
36365         RELOC_STRIP_PROG.
36366         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
36367         to set RELOCATABLE_STRIP.
36368         * NEWS: Mention the new Makefile requirement.
36369
36370 2009-01-17  Bruno Haible  <bruno@clisp.org>
36371
36372         * build-aux/install-reloc: Remove debugging information left over by
36373         C compiler on MacOS X.
36374
36375 2009-01-17  Bruno Haible  <bruno@clisp.org>
36376
36377         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
36378         * lib/progreloc.c (find_executable): Fix type of pointer passed to
36379         _NSGetExecutablePath.
36380
36381 2009-01-16  Jim Meyering  <meyering@redhat.com>
36382
36383         strerror: avoid warnings about discarding "const"
36384         * lib/strerror.c (rpl_strerror): Instead of returning a const
36385         string from each and every "case", use a variable, and add a single
36386         cast after the switch.
36387
36388 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
36389
36390         * lib/arpa_inet.in.h: Add extern "C" block for C++.
36391
36392 2009-01-16  Bruno Haible  <bruno@clisp.org>
36393
36394         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
36395         array initializer syntax that also works in C++ mode.
36396         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36397
36398 2009-01-16  Jim Meyering  <meyering@redhat.com>
36399
36400         poll: suppress a warning
36401         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
36402         to ignore "...unsigned expression < 0 is always false" warnings.
36403
36404 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
36405
36406         poll: remove declarations of unused variables
36407         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
36408         sockbuf and optlen.
36409
36410 2009-01-15  Bruno Haible  <bruno@clisp.org>
36411
36412         Make fflush-after-ungetc POSIX compliant on BSD systems.
36413         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
36414         (clear_ungetc_buffer): Implement also for other systems.
36415         (rpl_fflush): On glibc systems, invoke
36416         clear_ungetc_buffer_preserving_position. Otherwise, invoke
36417         clear_ungetc_buffer after fetching the stream's position, not before.
36418
36419 2009-01-15  Bruno Haible  <bruno@clisp.org>
36420
36421         Make fflush-after-ungetc POSIX compliant on glibc systems.
36422         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
36423         after ungetc.
36424         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
36425         (rpl_fflush): On glibc systems, simply call the system's fflush
36426         function after clearing the ungetc buffer.
36427         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
36428         Instead, lseek only to the end of file, then use the system's fseeko
36429         for the rest. On glibc systems, reset the EOF indicator bit.
36430
36431 2009-01-15  Jim Meyering  <meyering@redhat.com>
36432
36433         openmp.m4: revert quote-adding change, for portability to older autoconf
36434         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
36435         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
36436         Simon Josefsson noticed the problem when using autoconf-2.61.
36437
36438 2009-01-15  Bruno Haible  <bruno@clisp.org>
36439
36440         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
36441         * tests/test-fflush2.c (ASSERT): Always fail.
36442         (main): Add two tests for fflush() after ungetc(), taking into account
36443         the Austin Group's clarification.
36444         Suggested by Eric Blake.
36445
36446 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
36447
36448         mktime.m4: remove K&R-style function prototypes
36449         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
36450         for the Sun C++ compiler.
36451
36452 2009-01-14  Bruno Haible  <bruno@clisp.org>
36453
36454         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
36455         while including <wchar.h>.
36456         * lib/wchar.in.h: In two particular situations on HP-UX, include only
36457         the system's <wchar.h> file.
36458         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36459
36460 2009-01-14  Bruno Haible  <bruno@clisp.org>
36461
36462         * m4/csharp.m4: Don't mention gettext on the serial number line.
36463         * m4/csharpexec.m4: Likewise.
36464         * m4/eaccess.m4: Likewise.
36465         * m4/javaexec.m4: Likewise.
36466         * m4/sig_atomic_t.m4: Likewise.
36467         * m4/tmpdir.m4: Likewise.
36468         * m4/intldir.m4: Bump gettext version.
36469         * m4/lib-ld.m4: Likewise.
36470
36471 2009-01-14  Bruno Haible  <bruno@clisp.org>
36472
36473         * lib/progname.c (set_program_name): Add more comments.
36474         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36475
36476 2009-01-14  Simon Josefsson  <simon@josefsson.org>
36477
36478         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
36479         were sys/stat.h does not define it.
36480
36481 2009-01-14  Jim Meyering  <meyering@redhat.com>
36482
36483         many *.m4 files: improve m4 quoting
36484         99% of this change was performed by running the following commands:
36485         git ls-files | grep '\.m4$' | xargs perl -pi \
36486           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
36487           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36488           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36489           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
36490         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
36491         The remainder were to add Copyright dates, increment serial numbers,
36492         undo some changes in comments, exclude m4/intl.m4, and add quotes
36493         around the "1" in ",1" where the unusual spacing prohibited the
36494         above regexps from doing the job.  For more details, see
36495         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
36496         * m4/acl.m4: Modified.
36497         * m4/afs.m4: Likewise.
36498         * m4/alloca.m4: Likewise.
36499         * m4/argp.m4: Likewise.
36500         * m4/argz.m4: Likewise.
36501         * m4/atexit.m4: Likewise.
36502         * m4/bison-i18n.m4: Likewise.
36503         * m4/bison.m4: Likewise.
36504         * m4/byteswap.m4: Likewise.
36505         * m4/c-stack.m4: Likewise.
36506         * m4/c-strtod.m4: Likewise.
36507         * m4/calloc.m4: Likewise.
36508         * m4/canonicalize-lgpl.m4: Likewise.
36509         * m4/chown.m4: Likewise.
36510         * m4/clock_time.m4: Likewise.
36511         * m4/codeset.m4: Likewise.
36512         * m4/copy-file.m4: Likewise.
36513         * m4/csharp.m4: Likewise.
36514         * m4/csharpcomp.m4: Likewise.
36515         * m4/csharpexec.m4: Likewise.
36516         * m4/d-ino.m4: Likewise.
36517         * m4/d-type.m4: Likewise.
36518         * m4/dirfd.m4: Likewise.
36519         * m4/double-slash-root.m4: Likewise.
36520         * m4/eaccess.m4: Likewise.
36521         * m4/eealloc.m4: Likewise.
36522         * m4/environ.m4: Likewise.
36523         * m4/errno_h.m4: Likewise.
36524         * m4/euidaccess.m4: Likewise.
36525         * m4/execute.m4: Likewise.
36526         * m4/fatal-signal.m4: Likewise.
36527         * m4/fchdir.m4: Likewise.
36528         * m4/fcntl_h.m4: Likewise.
36529         * m4/fileblocks.m4: Likewise.
36530         * m4/filenamecat.m4: Likewise.
36531         * m4/findprog.m4: Likewise.
36532         * m4/flexmember.m4: Likewise.
36533         * m4/fnmatch.m4: Likewise.
36534         * m4/fopen.m4: Likewise.
36535         * m4/fpending.m4: Likewise.
36536         * m4/fprintf-posix.m4: Likewise.
36537         * m4/free.m4: Likewise.
36538         * m4/frexp.m4: Likewise.
36539         * m4/frexpl.m4: Likewise.
36540         * m4/fsusage.m4: Likewise.
36541         * m4/ftruncate.m4: Likewise.
36542         * m4/gc-camellia.m4: Likewise.
36543         * m4/gc-random.m4: Likewise.
36544         * m4/gc.m4: Likewise.
36545         * m4/getaddrinfo.m4: Likewise.
36546         * m4/getcwd-abort-bug.m4: Likewise.
36547         * m4/getcwd-path-max.m4: Likewise.
36548         * m4/getdate.m4: Likewise.
36549         * m4/getdomainname.m4: Likewise.
36550         * m4/getgroups.m4: Likewise.
36551         * m4/gethostname.m4: Likewise.
36552         * m4/gethrxtime.m4: Likewise.
36553         * m4/getline.m4: Likewise.
36554         * m4/getloadavg.m4: Likewise.
36555         * m4/getndelim2.m4: Likewise.
36556         * m4/getpass.m4: Likewise.
36557         * m4/gettext.m4: Likewise.
36558         * m4/gettime.m4: Likewise.
36559         * m4/gettimeofday.m4: Likewise.
36560         * m4/gnulib-common.m4: Likewise.
36561         * m4/group-member.m4: Likewise.
36562         * m4/host-os.m4: Likewise.
36563         * m4/iconv.m4: Likewise.
36564         * m4/iconv_open.m4: Likewise.
36565         * m4/inet_ntop.m4: Likewise.
36566         * m4/inet_pton.m4: Likewise.
36567         * m4/inline.m4: Likewise.
36568         * m4/intldir.m4: Likewise.
36569         * m4/intlmacosx.m4: Likewise.
36570         * m4/intmax.m4: Likewise.
36571         * m4/intmax_t.m4: Likewise.
36572         * m4/inttypes.m4: Likewise.
36573         * m4/inttypes_h.m4: Likewise.
36574         * m4/inttypes-pri.m4: Likewise.
36575         * m4/isapipe.m4: Likewise.
36576         * m4/isnand.m4: Likewise.
36577         * m4/isnanf.m4: Likewise.
36578         * m4/isnanl.m4: Likewise.
36579         * m4/javacomp.m4: Likewise.
36580         * m4/javaexec.m4: Likewise.
36581         * m4/jm-winsz1.m4: Likewise.
36582         * m4/jm-winsz2.m4: Likewise.
36583         * m4/lchown.m4: Likewise.
36584         * m4/lcmessage.m4: Likewise.
36585         * m4/ldexpl.m4: Likewise.
36586         * m4/lib-ld.m4: Likewise.
36587         * m4/lib-link.m4: Likewise.
36588         * m4/libsigsegv.m4: Likewise.
36589         * m4/link-follow.m4: Likewise.
36590         * m4/localcharset.m4: Likewise.
36591         * m4/locale-fr.m4: Likewise.
36592         * m4/locale-ja.m4: Likewise.
36593         * m4/locale-tr.m4: Likewise.
36594         * m4/locale-zh.m4: Likewise.
36595         * m4/lock.m4: Likewise.
36596         * m4/longlong.m4: Likewise.
36597         * m4/ls-mntd-fs.m4: Likewise.
36598         * m4/lstat.m4: Likewise.
36599         * m4/malloc.m4: Likewise.
36600         * m4/mathl.m4: Likewise.
36601         * m4/mbrtowc.m4: Likewise.
36602         * m4/mbstate_t.m4: Likewise.
36603         * m4/mbswidth.m4: Likewise.
36604         * m4/memchr.m4: Likewise.
36605         * m4/memcmp.m4: Likewise.
36606         * m4/memcpy.m4: Likewise.
36607         * m4/memmem.m4: Likewise.
36608         * m4/memmove.m4: Likewise.
36609         * m4/mempcpy.m4: Likewise.
36610         * m4/memrchr.m4: Likewise.
36611         * m4/memset.m4: Likewise.
36612         * m4/minmax.m4: Likewise.
36613         * m4/mkdir-slash.m4: Likewise.
36614         * m4/mkdtemp.m4: Likewise.
36615         * m4/mktime.m4: Likewise.
36616         * m4/mmap-anon.m4: Likewise.
36617         * m4/mountlist.m4: Likewise.
36618         * m4/nanosleep.m4: Likewise.
36619         * m4/nls.m4: Likewise.
36620         * m4/nocrash.m4: Likewise.
36621         * m4/open.m4: Likewise.
36622         * m4/openat.m4: Likewise.
36623         * m4/openmp.m4: Likewise.
36624         * m4/pathmax.m4: Likewise.
36625         * m4/perl.m4: Likewise.
36626         * m4/physmem.m4: Likewise.
36627         * m4/pipe.m4: Likewise.
36628         * m4/po.m4: Likewise.
36629         * m4/poll.m4: Likewise.
36630         * m4/posixtm.m4: Likewise.
36631         * m4/posixver.m4: Likewise.
36632         * m4/printf-frexp.m4: Likewise.
36633         * m4/printf-frexpl.m4: Likewise.
36634         * m4/printf-posix.m4: Likewise.
36635         * m4/printf-posix-rpl.m4: Likewise.
36636         * m4/printf.m4: Likewise.
36637         * m4/progtest.m4: Likewise.
36638         * m4/putenv.m4: Likewise.
36639         * m4/readline.m4: Likewise.
36640         * m4/readlink.m4: Likewise.
36641         * m4/readutmp.m4: Likewise.
36642         * m4/realloc.m4: Likewise.
36643         * m4/regex.m4: Likewise.
36644         * m4/relocatable.m4: Likewise.
36645         * m4/relocatable-lib.m4: Likewise.
36646         * m4/rename-dest-slash.m4: Likewise.
36647         * m4/rename.m4: Likewise.
36648         * m4/rmdir-errno.m4: Likewise.
36649         * m4/rmdir.m4: Likewise.
36650         * m4/roundf.m4: Likewise.
36651         * m4/roundl.m4: Likewise.
36652         * m4/rpmatch.m4: Likewise.
36653         * m4/save-cwd.m4: Likewise.
36654         * m4/selinux-selinux-h.m4: Likewise.
36655         * m4/setenv.m4: Likewise.
36656         * m4/settime.m4: Likewise.
36657         * m4/sig2str.m4: Likewise.
36658         * m4/sig_atomic_t.m4: Likewise.
36659         * m4/signalblocking.m4: Likewise.
36660         * m4/signbit.m4: Likewise.
36661         * m4/sigpipe.m4: Likewise.
36662         * m4/sockets.m4: Likewise.
36663         * m4/sockpfaf.m4: Likewise.
36664         * m4/st_dm_mode.m4: Likewise.
36665         * m4/stat-time.m4: Likewise.
36666         * m4/stdbool.m4: Likewise.
36667         * m4/stdint.m4: Likewise.
36668         * m4/stdint_h.m4: Likewise.
36669         * m4/stpcpy.m4: Likewise.
36670         * m4/stpncpy.m4: Likewise.
36671         * m4/strcase.m4: Likewise.
36672         * m4/strchrnul.m4: Likewise.
36673         * m4/strcspn.m4: Likewise.
36674         * m4/strdup.m4: Likewise.
36675         * m4/strftime.m4: Likewise.
36676         * m4/strndup.m4: Likewise.
36677         * m4/strnlen.m4: Likewise.
36678         * m4/strpbrk.m4: Likewise.
36679         * m4/strptime.m4: Likewise.
36680         * m4/strsep.m4: Likewise.
36681         * m4/strtod.m4: Likewise.
36682         * m4/strtoimax.m4: Likewise.
36683         * m4/strtok_r.m4: Likewise.
36684         * m4/strtol.m4: Likewise.
36685         * m4/strtoll.m4: Likewise.
36686         * m4/strtoul.m4: Likewise.
36687         * m4/strtoull.m4: Likewise.
36688         * m4/strtoumax.m4: Likewise.
36689         * m4/strverscmp.m4: Likewise.
36690         * m4/threadlib.m4: Likewise.
36691         * m4/timegm.m4: Likewise.
36692         * m4/tm_gmtoff.m4: Likewise.
36693         * m4/tmpdir.m4: Likewise.
36694         * m4/tmpfile.m4: Likewise.
36695         * m4/tzset.m4: Likewise.
36696         * m4/uintmax_t.m4: Likewise.
36697         * m4/unlinkdir.m4: Likewise.
36698         * m4/unlocked-io.m4: Likewise.
36699         * m4/uptime.m4: Likewise.
36700         * m4/userspec.m4: Likewise.
36701         * m4/utimbuf.m4: Likewise.
36702         * m4/utime.m4: Likewise.
36703         * m4/utimes-null.m4: Likewise.
36704         * m4/utimes.m4: Likewise.
36705         * m4/vararrays.m4: Likewise.
36706         * m4/vasnprintf.m4: Likewise.
36707         * m4/vfprintf-posix.m4: Likewise.
36708         * m4/vprintf-posix.m4: Likewise.
36709         * m4/wait-process.m4: Likewise.
36710         * m4/wchar_t.m4: Likewise.
36711         * m4/wint_t.m4: Likewise.
36712         * m4/write-any-file.m4: Likewise.
36713         * m4/yield.m4: Likewise.
36714
36715 2009-01-13  Bruno Haible  <bruno@clisp.org>
36716
36717         Avoid test-copy-file.sh failures when ACL support insufficient.
36718         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
36719         TESTS_ENVIRONMENT.
36720         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
36721         Reported by Jim Meyering.
36722
36723 2009-01-13  Bruno Haible  <bruno@clisp.org>
36724
36725         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
36726         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
36727         * modules/unistdio/u8-printf-parse (Files): Likewise.
36728         * modules/unistdio/u32-printf-parse (Files): Likewise.
36729         * modules/unistdio/ulc-printf-parse (Files): Likewise.
36730
36731 2009-01-13  Simon Josefsson  <simon@josefsson.org>
36732
36733         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
36734         and m4/inttypes_h.m4 too.
36735
36736 2009-01-12  Eric Blake  <ebb9@byu.net>
36737
36738         tests: IRIX 6.2 cc can't compile -0.0 into .data
36739         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
36740         rather than at compile-time.
36741         * tests/test-floorl.c (minus_zero): Likewise.
36742         * tests/test-frexpl.c (minus_zero): Likewise.
36743         * tests/test-isnan.c (minus_zerol): Likewise.
36744         * tests/test-isnanl.h (minus_zero): Likewise.
36745         * tests/test-ldexpl.c (minus_zero): Likewise.
36746         * tests/test-roundl.c (minus_zero): Likewise.
36747         * tests/test-signbit.c (minus_zerol): Likewise.
36748         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36749         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36750         * tests/test-truncl.c (minus_zero): Likewise.
36751         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36752         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36753         Reported by Tom G. Christensen and Nelson H. F. Beebe.
36754
36755 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36756
36757         regex: fix glibc bug 9697
36758         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
36759         handling.
36760
36761 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36762
36763         regex: fix glibc bug 697
36764         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
36765         being NULL also if there are no backreferences.
36766
36767 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36768
36769         regex: merge glibc changes
36770         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
36771         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
36772         re_string_skip_chars, re_string_reconstruct): Likewise.
36773         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
36774
36775 2009-01-07  Jim Meyering  <meyering@redhat.com>
36776
36777         poll: filter through cppi
36778         * lib/poll.c: Indent cpp directives to reflect nesting.
36779
36780 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
36781
36782         poll: don't return uninitialized
36783         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
36784
36785 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
36786
36787         avoid compile failure on AIX 6.1
36788         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
36789         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
36790
36791 2009-01-04  Jim Meyering  <meyering@redhat.com>
36792
36793         remove duplicate inclusion of <stdio.h>
36794         * tests/test-fprintf-posix.c: Likewise.
36795         * tests/test-printf-posix.c: Likewise.
36796         * tests/test-snprintf-posix.c: Likewise.
36797         * tests/test-sprintf-posix.c: Likewise.
36798         * tests/test-vasprintf-posix.c: Likewise.
36799         * tests/test-vfprintf-posix.c: Likewise.
36800         * tests/test-vprintf-posix.c: Likewise.
36801         * tests/test-vsnprintf-posix.c: Likewise.
36802         * tests/test-vsprintf-posix.c: Likewise.
36803
36804 2009-01-03  Jim Meyering  <meyering@redhat.com>
36805
36806         gnulib-tool: fix sed-based filtering
36807         * gnulib-tool (func_filter_filelist): Remove extra backslash
36808         in sed_fff_filter definition.
36809
36810 2009-01-02  Jim Meyering  <meyering@redhat.com>
36811
36812         strftime: avoid compilation failure on Solaris 2.6
36813         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
36814         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
36815         Don't #define mbrlen or mbsinit, since now they're guaranteed to
36816         be available.  Reported by Tom G. Christensen.  Details in
36817         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
36818
36819 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36820             Bruno Haible  <bruno@clisp.org>
36821
36822         Speed up gnulib-tool by doing more string processing through shell
36823         built-ins.
36824         * gnulib-tool (fast_func_append): New variable.
36825         (func_remove_prefix, func_remove_suffix): New functions.
36826         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
36827         (func_filter_filelist): New function.
36828         (func_get_dependencies): Use func_remove_suffix instead of sed.
36829         (func_get_automake_snippet): Use func_filter_filelist instead of a
36830         subshell and sed invocation.
36831
36832 2009-01-01  Bruno Haible  <bruno@clisp.org>
36833
36834         Fix a security bug.
36835         * gnulib-tool (func_import, import, update): Don't allow the characters
36836         '"', '$', '`', '\' in macro arguments that become part of commands that
36837         are evaluated.
36838
36839 2009-01-01  Bruno Haible  <bruno@clisp.org>
36840
36841         * gnulib-tool (func_reset_sigpipe): Add more comments.
36842
36843 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36844
36845         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
36846         func_emit_tests_Makefile_am, func_import): Abort loops early if we
36847         already know the answer.
36848
36849 2009-01-01  Jim Meyering  <meyering@redhat.com>
36850
36851         * lib/version-etc.c (version_etc_va): Update copyright year.
36852
36853 2008-12-30  Bruno Haible  <bruno@clisp.org>
36854
36855         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
36856         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
36857         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
36858
36859 2008-12-29  Eric Blake  <ebb9@byu.net>
36860
36861         multiarch: avoid autoconf AC_REQUIRE bug
36862         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
36863         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
36864         2.63 and older.
36865         Reported by Bruno Haible, and analyzed in
36866         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
36867
36868 2008-12-29  Bruno Haible  <bruno@clisp.org>
36869
36870         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
36871         files in subdirectories correctly.
36872         Reported by Ralf Wildenhues.
36873
36874 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36875
36876         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
36877         rather than 'join FILE -', for Solaris join.
36878
36879 2008-12-29  Bruno Haible  <bruno@clisp.org>
36880
36881         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
36882         quoting.
36883         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
36884         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
36885         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
36886         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
36887         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
36888         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
36889         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
36890         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
36891         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
36892         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
36893         * m4/nls.m4 (AM_NLS): Likewise.
36894         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
36895         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
36896         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
36897         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
36898         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
36899         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
36900         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
36901         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
36902         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
36903         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
36904         * m4/xsize.m4 (gl_XSIZE): Likewise.
36905         Suggested by Jim Meyering.
36906
36907 2008-11-17  Bruce Korb  <bkorb@gnu.org>
36908
36909         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
36910         * lib/parse-duration.c: use a switch instead of cascading if's.
36911
36912 2008-12-29  Eric Blake  <ebb9@byu.net>
36913
36914         wchar.h: supply WEOF on Irix 5.3
36915         * lib/wchar.in.h (wint_t): Also supply WEOF.
36916         * lib/wctype.in.h (wint_t): Likewise.
36917         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
36918         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
36919         Reported by Tom G. Christensen.
36920
36921 2008-12-26  Bruno Haible  <bruno@clisp.org>
36922
36923         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
36924         i486, i586, i686.
36925
36926 2008-12-26  Bruno Haible  <bruno@clisp.org>
36927
36928         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
36929
36930 2008-12-26  Bruno Haible  <bruno@clisp.org>
36931
36932         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
36933         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
36934         not __STDC_CONSTANT_MACROS.
36935         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36936
36937 2008-12-25  Bruno Haible  <bruno@clisp.org>
36938
36939         Add support for universal builds to vasnprintf.
36940         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
36941         universal builds, guess no.
36942         * modules/vasnprintf-posix (Depends-on): Add multiarch.
36943         * modules/vasprintf-posix (Depends-on): Likewise.
36944         * modules/fprintf-posix (Depends-on): Likewise.
36945         * modules/vfprintf-posix (Depends-on): Likewise.
36946         * modules/snprintf-posix (Depends-on): Likewise.
36947         * modules/vsnprintf-posix (Depends-on): Likewise.
36948         * modules/sprintf-posix (Depends-on): Likewise.
36949         * modules/vsprintf-posix (Depends-on): Likewise.
36950         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36951         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36952         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36953         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36954         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36955         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36956         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36957
36958         Add support for universal builds to <inttypes.h>.
36959         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
36960         _SCNu64_PREFIX): In Apple
36961         universal builds, define directly, using _LP64.
36962         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
36963         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
36964         * modules/inttypes (Depends-on): Add multiarch.
36965         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
36966
36967         Add support for universal builds to <stdint.h>.
36968         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
36969         universal builds, define directly, using _LP64.
36970         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
36971         Apple universal builds, don't test for the size and suffix of ptrdiff_t
36972         and size_t.
36973         * modules/stdint (Depends-on): Add multiarch.
36974         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
36975
36976         New module 'multiarch'.
36977         * modules/multiarch: New file.
36978         * m4/multiarch.m4: New file.
36979
36980 2008-12-25  Bruno Haible  <bruno@clisp.org>
36981
36982         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
36983
36984 2008-12-25  Bruno Haible  <bruno@clisp.org>
36985
36986         * modules/btowc (License): Relicense under LGPLv2+.
36987         * modules/mbsinit (License): Likewise.
36988         * modules/mbrtowc (License): Likewise.
36989         * modules/wcrtomb (License): Likewise.
36990         * modules/streq (License): Likewise.
36991         Reported by David Lutterkort <lutter@redhat.com>.
36992
36993 2008-12-23  Bruno Haible  <bruno@clisp.org>
36994
36995         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
36996
36997 2008-12-23  Bruno Haible  <bruno@clisp.org>
36998
36999         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
37000         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
37001         GETADDRINFO_LIB, not in LIBS.
37002         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
37003         * modules/canon-host (Link): Likewise.
37004         * NEWS: Mention the change.
37005         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
37006         GETADDRINFO_LIB.
37007
37008 2008-12-22  Bruno Haible  <bruno@clisp.org>
37009
37010         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
37011         * doc/posix-functions/iswalpha_l.texi: Likewise.
37012         * doc/posix-functions/iswblank_l.texi: Likewise.
37013         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37014         * doc/posix-functions/iswctype_l.texi: Likewise.
37015         * doc/posix-functions/iswdigit_l.texi: Likewise.
37016         * doc/posix-functions/iswgraph_l.texi: Likewise.
37017         * doc/posix-functions/iswlower_l.texi: Likewise.
37018         * doc/posix-functions/iswprint_l.texi: Likewise.
37019         * doc/posix-functions/iswpunct_l.texi: Likewise.
37020         * doc/posix-functions/iswspace_l.texi: Likewise.
37021         * doc/posix-functions/iswupper_l.texi: Likewise.
37022         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37023         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
37024         * doc/posix-functions/open_wmemstream.texi: Likewise.
37025         * doc/posix-functions/swscanf.texi: Likewise.
37026         * doc/posix-functions/towctrans_l.texi: Likewise.
37027         * doc/posix-functions/towlower.texi: Likewise.
37028         * doc/posix-functions/towlower_l.texi: Likewise.
37029         * doc/posix-functions/towupper.texi: Likewise.
37030         * doc/posix-functions/towupper_l.texi: Likewise.
37031         * doc/posix-functions/vfwprintf.texi: Likewise.
37032         * doc/posix-functions/vfwscanf.texi: Likewise.
37033         * doc/posix-functions/vswscanf.texi: Likewise.
37034         * doc/posix-functions/vwprintf.texi: Likewise.
37035         * doc/posix-functions/vwscanf.texi: Likewise.
37036         * doc/posix-functions/wcpcpy.texi: Likewise.
37037         * doc/posix-functions/wcpncpy.texi: Likewise.
37038         * doc/posix-functions/wcscasecmp.texi: Likewise.
37039         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
37040         * doc/posix-functions/wcscoll_l.texi: Likewise.
37041         * doc/posix-functions/wcsdup.texi: Likewise.
37042         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37043         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
37044         * doc/posix-functions/wcsnlen.texi: Likewise.
37045         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37046         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37047         * doc/posix-functions/wctrans_l.texi: Likewise.
37048         * doc/posix-functions/wctype_l.texi: Likewise.
37049         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
37050         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
37051         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
37052         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
37053         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
37054         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
37055         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
37056         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
37057         * doc/glibc-functions/wcschrnul.texi: Likewise.
37058         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37059         * doc/glibc-functions/wcstod_l.texi: Likewise.
37060         * doc/glibc-functions/wcstof_l.texi: Likewise.
37061         * doc/glibc-functions/wcstol_l.texi: Likewise.
37062         * doc/glibc-functions/wcstold_l.texi: Likewise.
37063         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37064         * doc/glibc-functions/wcstoq.texi: Likewise.
37065         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37066         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37067         * doc/glibc-functions/wcstouq.texi: Likewise.
37068         * doc/glibc-functions/wmempcpy.texi: Likewise.
37069
37070 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
37071             Eric Blake  <ebb9@byu.net>
37072             Paolo Bonzini  <bonzini@gnu.org>
37073             Bruno Haible  <bruno@clisp.org>
37074
37075         Make c-stack work on Haiku.
37076         * lib/c-stack.c (SA_ONSTACK): Define fallback.
37077         (c_stack_action): Use SA_ONSTACK flag.
37078
37079 2008-12-22  Bruno Haible  <bruno@clisp.org>
37080
37081         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
37082
37083 2008-12-22  Bruno Haible  <bruno@clisp.org>
37084
37085         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
37086         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
37087         being overridden.
37088         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
37089         New macros.
37090         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
37091         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
37092         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
37093         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
37094
37095 2008-12-22  Bruno Haible  <bruno@clisp.org>
37096
37097         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
37098         from test code.
37099
37100 2008-12-22  Eric Blake  <ebb9@byu.net>
37101
37102         Avoid gcc warnings on cygwin.
37103         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
37104         Avoid unused variable.
37105         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
37106         Likewise.
37107
37108 2008-12-22  Bruno Haible  <bruno@clisp.org>
37109
37110         Remove HAVE_MBRTOWC conditionals.
37111         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
37112         (mbscasecmp): Assume mbrtowc function.
37113         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
37114         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
37115         * lib/mbschr.c: Include mbuiter.h unconditionally.
37116         (mbschr): Assume mbrtowc function.
37117         * lib/mbscspn.c: Include mbuiter.h unconditionally.
37118         (mbscspn): Assume mbrtowc function.
37119         * lib/mbslen.c: Include mbuiter.h unconditionally.
37120         (mbslen): Assume mbrtowc function.
37121         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
37122         (mbsncasecmp): Assume mbrtowc function.
37123         * lib/mbsnlen.c: Include mbiter.h unconditionally.
37124         (mbsnlen): Assume mbrtowc function.
37125         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
37126         (mbspbrk): Assume mbrtowc function.
37127         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
37128         (mbspcasecmp): Assume mbrtowc function.
37129         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
37130         (mbsrchr): Assume mbrtowc function.
37131         * lib/mbssep.c: Include mbuiter.h unconditionally.
37132         (mbssep): Assume mbrtowc function.
37133         * lib/mbsspn.c: Include mbuiter.h unconditionally.
37134         (mbsspn): Assume mbrtowc function.
37135         * lib/mbsstr.c: Include mbuiter.h unconditionally.
37136         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
37137         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
37138         (mbstok_r): Assume mbrtowc function.
37139         * lib/propername.c: Include mbuiter.h unconditionally.
37140         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
37141         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
37142         (trim2): Assume mbrtowc function.
37143         * lib/mbswidth.c (mbsinit): Remove fallback definition.
37144         (mbsnwidth): Assume mbrtowc function.
37145         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
37146         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
37147         fallback definitions.
37148         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
37149
37150 2008-12-22  Bruno Haible  <bruno@clisp.org>
37151
37152         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
37153
37154 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
37155
37156         * modules/regex: Request emulations for the mb*/wc* functions we need.
37157         * m4/regex.m4: Don't look for those functions here.
37158         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
37159
37160 2008-12-22  Bruno Haible  <bruno@clisp.org>
37161
37162         * modules/fnmatch (Depends-on): Remove duplicated dependency.
37163
37164 2008-12-21  Bruno Haible  <bruno@clisp.org>
37165
37166         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
37167         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
37168         (Include): Remove conditionalization.
37169         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
37170         (Include): Remove conditionalization.
37171         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
37172         (Include): Remove conditionalization.
37173         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
37174         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37175         * NEWS: Mention the change.
37176         Reported by Alan Hourihane <alanh@fairlite.co.uk>
37177         via Sergey Poznyakoff <gray@gnu.org.ua>.
37178
37179 2008-12-21  Bruno Haible  <bruno@clisp.org>
37180
37181         * MODULES.html.sh (Extended multibyte and wide character utilities
37182         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
37183         wcrtomb, wcsrtombs.
37184         (Support for systems lacking POSIX:2008): Add accept, bind, close,
37185         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
37186         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
37187         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
37188
37189 2008-12-21  Bruno Haible  <bruno@clisp.org>
37190
37191         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
37192
37193 2008-12-21  Bruno Haible  <bruno@clisp.org>
37194
37195         * modules/wcsnrtombs-tests: New file.
37196         * tests/test-wcsnrtombs1.sh: New file.
37197         * tests/test-wcsnrtombs2.sh: New file.
37198         * tests/test-wcsnrtombs3.sh: New file.
37199         * tests/test-wcsnrtombs4.sh: New file.
37200         * tests/test-wcsnrtombs.c: New file.
37201
37202         New module 'wcsnrtombs'.
37203         * lib/wchar.in.h (wcsnrtombs): New declaration.
37204         * lib/wcsnrtombs.c: New file.
37205         * lib/wcsrtombs-state.c: New file.
37206         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
37207         (internal_state): Remove variable.
37208         * m4/wcsnrtombs.m4: New file.
37209         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
37210         compilation units.
37211         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
37212         HAVE_WCSNRTOMBS.
37213         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
37214         HAVE_WCSNRTOMBS.
37215         * modules/wcsnrtombs: New file.
37216         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
37217         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
37218
37219 2008-12-21  Bruno Haible  <bruno@clisp.org>
37220
37221         * modules/wcsrtombs-tests: New file.
37222         * tests/test-wcsrtombs1.sh: New file.
37223         * tests/test-wcsrtombs2.sh: New file.
37224         * tests/test-wcsrtombs3.sh: New file.
37225         * tests/test-wcsrtombs4.sh: New file.
37226         * tests/test-wcsrtombs.c: New file.
37227
37228         New module 'wcsrtombs'.
37229         * lib/wchar.in.h (wcsrtombs): New declaration.
37230         * lib/wcsrtombs.c: New file.
37231         * m4/wcsrtombs.m4: New file.
37232         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
37233         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37234         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
37235         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37236         * modules/wcsrtombs: New file.
37237         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
37238         bugs.
37239
37240 2008-12-21  Bruno Haible  <bruno@clisp.org>
37241
37242         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
37243         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
37244         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
37245         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
37246         if not correct.
37247         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
37248         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
37249         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37250         m4/locale-zh.m4, m4/codeset.m4.
37251         * doc/posix-functions/wcrtomb.texi: Document the bug.
37252
37253 2008-12-21  Bruno Haible  <bruno@clisp.org>
37254
37255         Work around a btowc() bug on IRIX 6.5.
37256         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
37257         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
37258         REPLACE_WTOBC if not.
37259         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
37260         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
37261         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
37262
37263 2008-12-21  Bruno Haible  <bruno@clisp.org>
37264
37265         * modules/wcrtomb-tests: New file.
37266         * tests/test-wcrtomb.sh: New file.
37267         * tests/test-wcrtomb.c: New file.
37268
37269         New module 'wcrtomb'.
37270         * lib/wchar.in.h (wcrtomb): New declaration.
37271         * lib/wcrtomb.c: New file.
37272         * m4/wcrtomb.m4: New file.
37273         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
37274         HAVE_WCRTOMB.
37275         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
37276         HAVE_WCRTOMB.
37277         * modules/wcrtomb: New file.
37278         * doc/posix-functions/wcrtomb.texi: Mention the new module.
37279
37280 2008-12-21  Bruno Haible  <bruno@clisp.org>
37281
37282         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
37283         * modules/mbsrtowcs (Files): Likewise.
37284         * modules/wctob (Files): Likewise.
37285         * modules/c-strcase-tests (Files): Likewise.
37286         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37287         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37288         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37289         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37290         * modules/vasnprintf-posix-tests (Files): Likewise.
37291
37292 2008-12-21  William Pursell  <bill.pursell@gmail.com>
37293
37294         gitlog-to-changelog: pass all command-line arguments to git-log
37295         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
37296         it is sometimes convenient to filter the commits in various ways.
37297         gitlog-to-changelog only allows --since to specify a start date,
37298         but git-log itself supports many other filtering mechanisms.
37299         At the moment, I want to filter by branch name.  Rather than
37300         adding a --branch option to gitlog-to-changelog, it seems more
37301         flexible to simply pass all options directly to git-log and let
37302         git do the work.  Notice that this effectively makes --since a
37303         redundant option for gitlog-to-changelog, but removing it would
37304         require current usage to change since calls would then require
37305         an additional '--'.
37306
37307 2008-12-21  Bruno Haible  <bruno@clisp.org>
37308
37309         * modules/mbsnrtowcs-tests: New file.
37310         * tests/test-mbsnrtowcs1.sh: New file.
37311         * tests/test-mbsnrtowcs2.sh: New file.
37312         * tests/test-mbsnrtowcs3.sh: New file.
37313         * tests/test-mbsnrtowcs4.sh: New file.
37314         * tests/test-mbsnrtowcs.c: New file.
37315
37316         New module 'mbsnrtowcs'.
37317         * lib/wchar.in.h (mbsnrtowcs): New declaration.
37318         * lib/mbsnrtowcs.c: New file.
37319         * lib/mbsrtowcs-state.c: New file.
37320         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
37321         (internal_state): Remove variable.
37322         * m4/mbsnrtowcs.m4: New file.
37323         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
37324         compilation units.
37325         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
37326         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37327         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
37328         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37329         * modules/mbsnrtowcs: New file.
37330         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
37331         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
37332         portability problem.
37333
37334 2008-12-21  Bruno Haible  <bruno@clisp.org>
37335
37336         Work around mbsrtowcs bug.
37337         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
37338         (gl_FUNC_MBSRTOWCS): Invoke it.
37339         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37340         m4/locale-zh.m4.
37341         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
37342
37343 2008-12-21  Bruno Haible  <bruno@clisp.org>
37344
37345         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
37346
37347 2008-12-21  Bruno Haible  <bruno@clisp.org>
37348
37349         Update doc for AIX.
37350         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
37351         16-bit wchar_t type.
37352         * doc/posix-functions/btowc.texi: Likewise.
37353         * doc/posix-functions/fgetwc.texi: Likewise.
37354         * doc/posix-functions/fgetws.texi: Likewise.
37355         * doc/posix-functions/fputwc.texi: Likewise.
37356         * doc/posix-functions/fputws.texi: Likewise.
37357         * doc/posix-functions/fwide.texi: Likewise.
37358         * doc/posix-functions/fwprintf.texi: Likewise.
37359         * doc/posix-functions/fwscanf.texi: Likewise.
37360         * doc/posix-functions/getwchar.texi: Likewise.
37361         * doc/posix-functions/getwc.texi: Likewise.
37362         * doc/posix-functions/iswalnum.texi: Likewise.
37363         * doc/posix-functions/iswalpha.texi: Likewise.
37364         * doc/posix-functions/iswblank.texi: Likewise.
37365         * doc/posix-functions/iswcntrl.texi: Likewise.
37366         * doc/posix-functions/iswctype.texi: Likewise.
37367         * doc/posix-functions/iswdigit.texi: Likewise.
37368         * doc/posix-functions/iswgraph.texi: Likewise.
37369         * doc/posix-functions/iswlower.texi: Likewise.
37370         * doc/posix-functions/iswprint.texi: Likewise.
37371         * doc/posix-functions/iswpunct.texi: Likewise.
37372         * doc/posix-functions/iswspace.texi: Likewise.
37373         * doc/posix-functions/iswupper.texi: Likewise.
37374         * doc/posix-functions/iswxdigit.texi: Likewise.
37375         * doc/posix-functions/mbrtowc.texi: Likewise.
37376         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37377         * doc/posix-functions/mbstowcs.texi: Likewise.
37378         * doc/posix-functions/mbtowc.texi: Likewise.
37379         * doc/posix-functions/putwchar.texi: Likewise.
37380         * doc/posix-functions/putwc.texi: Likewise.
37381         * doc/posix-functions/swprintf.texi: Likewise.
37382         * doc/posix-functions/tolower.texi: Likewise.
37383         * doc/posix-functions/toupper.texi: Likewise.
37384         * doc/posix-functions/towctrans.texi: Likewise.
37385         * doc/posix-functions/ungetwc.texi: Likewise.
37386         * doc/posix-functions/vswprintf.texi: Likewise.
37387         * doc/posix-functions/wcrtomb.texi: Likewise.
37388         * doc/posix-functions/wcscat.texi: Likewise.
37389         * doc/posix-functions/wcschr.texi: Likewise.
37390         * doc/posix-functions/wcscmp.texi: Likewise.
37391         * doc/posix-functions/wcscoll.texi: Likewise.
37392         * doc/posix-functions/wcscpy.texi: Likewise.
37393         * doc/posix-functions/wcscspn.texi: Likewise.
37394         * doc/posix-functions/wcsftime.texi: Likewise.
37395         * doc/posix-functions/wcslen.texi: Likewise.
37396         * doc/posix-functions/wcsncat.texi: Likewise.
37397         * doc/posix-functions/wcsncmp.texi: Likewise.
37398         * doc/posix-functions/wcsncpy.texi: Likewise.
37399         * doc/posix-functions/wcspbrk.texi: Likewise.
37400         * doc/posix-functions/wcsrchr.texi: Likewise.
37401         * doc/posix-functions/wcsrtombs.texi: Likewise.
37402         * doc/posix-functions/wcsspn.texi: Likewise.
37403         * doc/posix-functions/wcsstr.texi: Likewise.
37404         * doc/posix-functions/wcstod.texi: Likewise.
37405         * doc/posix-functions/wcstof.texi: Likewise.
37406         * doc/posix-functions/wcstoimax.texi: Likewise.
37407         * doc/posix-functions/wcstok.texi: Likewise.
37408         * doc/posix-functions/wcstold.texi: Likewise.
37409         * doc/posix-functions/wcstoll.texi: Likewise.
37410         * doc/posix-functions/wcstol.texi: Likewise.
37411         * doc/posix-functions/wcstombs.texi: Likewise.
37412         * doc/posix-functions/wcstoull.texi: Likewise.
37413         * doc/posix-functions/wcstoul.texi: Likewise.
37414         * doc/posix-functions/wcstoumax.texi: Likewise.
37415         * doc/posix-functions/wcswidth.texi: Likewise.
37416         * doc/posix-functions/wcsxfrm.texi: Likewise.
37417         * doc/posix-functions/wctob.texi: Likewise.
37418         * doc/posix-functions/wctomb.texi: Likewise.
37419         * doc/posix-functions/wctrans.texi: Likewise.
37420         * doc/posix-functions/wctype.texi: Likewise.
37421         * doc/posix-functions/wcwidth.texi: Likewise.
37422         * doc/posix-functions/wmemchr.texi: Likewise.
37423         * doc/posix-functions/wmemcmp.texi: Likewise.
37424         * doc/posix-functions/wmemcpy.texi: Likewise.
37425         * doc/posix-functions/wmemmove.texi: Likewise.
37426         * doc/posix-functions/wmemset.texi: Likewise.
37427         * doc/posix-functions/wprintf.texi: Likewise.
37428         * doc/posix-functions/wscanf.texi: Likewise.
37429
37430 2008-12-21  Bruno Haible  <bruno@clisp.org>
37431
37432         Update doc for HP-UX 11.11.
37433         * doc/posix-functions/btowc.texi: Clarify that the function is missing
37434         in HP-UX version 11.00, not in all versions of HP-UX 11.
37435         * doc/posix-functions/fwide.texi: Likewise.
37436         * doc/posix-functions/fwprintf.texi: Likewise.
37437         * doc/posix-functions/fwscanf.texi: Likewise.
37438         * doc/posix-functions/inet_ntop.texi: Likewise.
37439         * doc/posix-functions/inet_pton.texi: Likewise.
37440         * doc/posix-functions/mbrlen.texi: Likewise.
37441         * doc/posix-functions/mbrtowc.texi: Likewise.
37442         * doc/posix-functions/mbsinit.texi: Likewise.
37443         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37444         * doc/posix-functions/swprintf.texi: Likewise.
37445         * doc/posix-functions/swscanf.texi: Likewise.
37446         * doc/posix-functions/towctrans.texi: Likewise.
37447         * doc/posix-functions/vfwprintf.texi: Likewise.
37448         * doc/posix-functions/vswprintf.texi: Likewise.
37449         * doc/posix-functions/vwprintf.texi: Likewise.
37450         * doc/posix-functions/wcrtomb.texi: Likewise.
37451         * doc/posix-functions/wcsrtombs.texi: Likewise.
37452         * doc/posix-functions/wcsstr.texi: Likewise.
37453         * doc/posix-functions/wctob.texi: Likewise.
37454         * doc/posix-functions/wctrans.texi: Likewise.
37455         * doc/posix-functions/wmemchr.texi: Likewise.
37456         * doc/posix-functions/wmemcmp.texi: Likewise.
37457         * doc/posix-functions/wmemcpy.texi: Likewise.
37458         * doc/posix-functions/wmemmove.texi: Likewise.
37459         * doc/posix-functions/wmemset.texi: Likewise.
37460         * doc/posix-functions/wprintf.texi: Likewise.
37461         * doc/posix-functions/wscanf.texi: Likewise.
37462
37463 2008-12-21  Bruno Haible  <bruno@clisp.org>
37464
37465         Work around a portability problem.
37466         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
37467         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
37468
37469 2008-12-20  Bruno Haible  <bruno@clisp.org>
37470
37471         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
37472         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
37473         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
37474         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
37475         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
37476
37477         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
37478         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
37479         set.
37480         (GNULIB_defined_mbstate_t): New macro.
37481         (mbsinit): Redefine if REPLACE_MBSINIT is set.
37482         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
37483         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
37484         reuses the system's mbrtowc function but works around the bugs.
37485         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
37486         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
37487         macros.
37488         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
37489         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
37490         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
37491         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
37492         REPLACE_MBSINIT if mbsinit needs to be overridden.
37493         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
37494         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37495         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
37496         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37497         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37498         m4/locale-zh.m4.
37499         (Depends): Add mbsinit.
37500         * modules/mbsinit (Depends): Add mbrtowc.
37501         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
37502
37503 2008-12-20  Bruno Haible  <bruno@clisp.org>
37504
37505         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
37506         so that there are no conversion errors on AIX.
37507         * tests/test-mbsrtowcs.c (main): LIkewise.
37508
37509 2008-12-20  Bruno Haible  <bruno@clisp.org>
37510
37511         Work around wctob bug on Solaris <= 9.
37512         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
37513         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
37514         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
37515         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
37516         * modules/wctob (Files): Add m4/locale-fr.m4.
37517         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
37518
37519 2008-12-20  Bruno Haible  <bruno@clisp.org>
37520
37521         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
37522         /dev/null.
37523         * tests/test-select-in.sh: Likewise.
37524         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37525
37526 2008-12-20  Bruno Haible  <bruno@clisp.org>
37527
37528         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
37529         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
37530         Cygwin 1.5.x.
37531
37532 2008-12-20  Bruno Haible  <bruno@clisp.org>
37533
37534         Ensure mbstate_t is defined on HP-UX 11.11.
37535         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
37536         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
37537         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
37538         AC_USE_SYSTEM_EXTENSIONS.
37539         * modules/fnmatch (Depends-on): Add extensions.
37540         * modules/mbrlen (Depends-on): Likewise.
37541         * modules/mbrtowc (Depends-on): Likewise.
37542         * modules/mbsinit (Depends-on): Likewise.
37543         * modules/mbsrtowcs (Depends-on): Likewise.
37544         * modules/mbswidth (Depends-on): Likewise.
37545         * modules/quotearg (Depends-on): Likewise.
37546         * modules/strftime (Depends-on): Likewise.
37547
37548 2008-12-20  Bruno Haible  <bruno@clisp.org>
37549
37550         Ensure wctob is declared on IRIX 6.5.
37551         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
37552         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
37553         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
37554         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
37555         of HAVE_WCTOB.
37556         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
37557         HAVE_WCTOB.
37558         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
37559
37560 2008-12-19  Bruno Haible  <bruno@clisp.org>
37561
37562         * modules/mbsrtowcs-tests: New file.
37563         * tests/test-mbsrtowcs1.sh: New file.
37564         * tests/test-mbsrtowcs2.sh: New file.
37565         * tests/test-mbsrtowcs3.sh: New file.
37566         * tests/test-mbsrtowcs4.sh: New file.
37567         * tests/test-mbsrtowcs.c: New file.
37568
37569         New module 'mbsrtowcs'.
37570         * lib/wchar.in.h (mbsrtowcs): New declaration.
37571         * lib/mbsrtowcs.c: New file.
37572         * m4/mbsrtowcs.m4: New file.
37573         * modules/mbsrtowcs: New file.
37574         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
37575         HAVE_MBSRTOWCS.
37576         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
37577         HAVE_MBSRTOWCS.
37578         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
37579
37580 2008-12-19  Bruno Haible  <bruno@clisp.org>
37581
37582         New module 'mbrlen'.
37583         * lib/wchar.in.h (mbrlen): New declaration.
37584         * lib/mbrlen.c: New file.
37585         * m4/mbrlen.m4: New file.
37586         * modules/mbrlen: New file.
37587         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
37588         HAVE_MBRLEN.
37589         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
37590         HAVE_MBRLEN.
37591         * doc/posix-functions/mbrlen.texi: Document the new module.
37592
37593 2008-12-19  Bruno Haible  <bruno@clisp.org>
37594
37595         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
37596         * modules/mbrtowc (Depends-on): Add verify.
37597         Suggested by Paul Eggert.
37598
37599 2008-12-18  Bruno Haible  <bruno@clisp.org>
37600
37601         * modules/mbsinit-tests: New file.
37602         * tests/test-mbsinit.sh: New file.
37603         * tests/test-mbsinit.c: New file.
37604
37605 2008-12-18  Bruno Haible  <bruno@clisp.org>
37606
37607         * modules/mbrtowc-tests: New file.
37608         * tests/test-mbrtowc1.sh: New file.
37609         * tests/test-mbrtowc2.sh: New file.
37610         * tests/test-mbrtowc3.sh: New file.
37611         * tests/test-mbrtowc4.sh: New file.
37612         * tests/test-mbrtowc.c: New file.
37613
37614         New module 'mbrtowc'.
37615         * lib/wchar.in.h (mbstate_t): Override when the system does not have
37616         mbsinit and mbrtowc.
37617         (mbrtowc): New declaration.
37618         * lib/mbrtowc.c: New file.
37619         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
37620         * modules/mbrtowc: New file.
37621         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
37622         HAVE_MBRTOWC.
37623         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
37624         HAVE_MBRTOWC.
37625         * doc/posix-functions/mbrtowc.texi: Document the new module.
37626
37627 2008-12-18  Bruno Haible  <bruno@clisp.org>
37628
37629         New module 'wctob'.
37630         * lib/wchar.in.h (wctob): New declaration.
37631         * lib/wctob.c: New file.
37632         * m4/wctob.m4: New file.
37633         * modules/wctob: New file.
37634         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
37635         HAVE_WCTOB.
37636         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
37637         * doc/posix-functions/wctob.texi: Document the new module.
37638
37639 2008-12-18  Bruno Haible  <bruno@clisp.org>
37640
37641         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
37642         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
37643
37644 2008-12-18  Simon Josefsson  <simon@josefsson.org>
37645
37646         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
37647         G. Christensen" <tgc@jupiterrise.com>.
37648
37649         * lib/flock.c: Need to include errno.h.  Reported by "Tom
37650         G. Christensen" <tgc@jupiterrise.com>.
37651
37652         * lib/flock.c: Need to include string.h.  Reported by "Tom
37653         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
37654         <ebb9@byu.net>.
37655
37656 2008-12-18  Bruno Haible  <bruno@clisp.org>
37657
37658         * m4/locale-ja.m4: New file, from GNU gettext.
37659
37660 2008-12-17  Bruno Haible  <bruno@clisp.org>
37661
37662         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
37663         Suggested by Eric Blake.
37664
37665 2008-12-17  Bruno Haible  <bruno@clisp.org>
37666
37667         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
37668
37669 2008-12-17  Bruno Haible  <bruno@clisp.org>
37670
37671         * lib/mbsinit.c: Include verify.h. Verify an assumption.
37672         * modules/mbsinit (Depends-on): Add verify.
37673         Suggested by Paul Eggert.
37674
37675 2008-12-17  Bruno Haible  <bruno@clisp.org>
37676
37677         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
37678         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
37679         gl_FUNC_MBRTOWC.
37680         * m4/mbiter.m4 (gl_MBITER): LIkewise.
37681         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
37682         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
37683         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
37684         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
37685         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
37686         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
37687         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
37688         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
37689         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
37690         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
37691         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
37692         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
37693         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
37694         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
37695         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
37696         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
37697         * modules/trim (configure.ac): Likewise.
37698
37699 2008-12-17  Bruno Haible  <bruno@clisp.org>
37700
37701         * modules/btowc-tests: New file.
37702         * tests/test-btowc1.sh: New file.
37703         * tests/test-btowc2.sh: New file.
37704         * tests/test-btowc.c: New file.
37705
37706         New module 'btowc'.
37707         * lib/wchar.in.h (btowc): New declaration.
37708         * lib/btowc.c: New file.
37709         * m4/btowc.m4: New file.
37710         * modules/btowc: New file.
37711         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
37712         HAVE_BTOWC.
37713         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
37714         * doc/posix-functions/btowc.texi: Document the new module.
37715
37716 2008-12-17  Bruno Haible  <bruno@clisp.org>
37717
37718         New module 'mbsinit'.
37719         * lib/wchar.in.h (mbsinit): New declaration.
37720         * lib/mbsinit.c: New file.
37721         * m4/mbsinit.m4: New file.
37722         * modules/mbsinit: New file.
37723         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
37724         HAVE_MBSINIT.
37725         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
37726         HAVE_MBSINIT.
37727         * doc/posix-functions/mbsinit.texi: Document the new module.
37728
37729 2008-12-16  Bruno Haible  <bruno@clisp.org>
37730
37731         * lib/unistd.in.h: Add comment.
37732         * tests/test-environ.c: Don't include <stdlib.h>.
37733
37734 2008-12-16  Bruno Haible  <bruno@clisp.org>
37735
37736         * lib/parse-duration.h (parse_duration): Document return value
37737         convention.
37738         * lib/parse-duration.c: Include specification header first. Add
37739         comments.
37740         (_): Remove macro.
37741         (parse_year_month_day, parse_hour_minute_second): Move side effects
37742         outside of strchr call.
37743         (parse_non_iso8601): Move side effects outside of isspace call.
37744         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
37745         call.
37746
37747 2008-12-16  Bruno Haible  <bruno@clisp.org>
37748
37749         * tests/test-parse-duration.sh: Produce no output when the test
37750         succeeds.
37751
37752 2008-12-16  Bruno Haible  <bruno@clisp.org>
37753
37754         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
37755         expressions.
37756
37757 2008-12-15  Bruno Haible  <bruno@clisp.org>
37758
37759         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
37760         * doc/glibc-functions/flistxattr.texi: Likewise.
37761         * doc/glibc-functions/fopencookie.texi: Likewise.
37762         * doc/glibc-functions/fremovexattr.texi: Likewise.
37763         * doc/glibc-functions/fsetxattr.texi: Likewise.
37764         * doc/glibc-functions/getxattr.texi: Likewise.
37765         * doc/glibc-functions/lgetxattr.texi: Likewise.
37766         * doc/glibc-functions/listxattr.texi: Likewise.
37767         * doc/glibc-functions/llistxattr.texi: Likewise.
37768         * doc/glibc-functions/lremovexattr.texi: Likewise.
37769         * doc/glibc-functions/lsetxattr.texi: Likewise.
37770         * doc/glibc-functions/removexattr.texi: Likewise.
37771         * doc/glibc-functions/setxattr.texi: Likewise.
37772         * doc/posix-functions/open_memstream.texi: Likewise.
37773
37774 2008-12-15  Eric Blake  <ebb9@byu.net>
37775
37776         Update doc for cygwin 1.7.
37777         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
37778         functions.
37779         * doc/posix-functions/fchmodat.texi: Likewise.
37780         * doc/posix-functions/fchownat.texi: Likewise.
37781         * doc/posix-functions/fdopendir.texi: Likewise.
37782         * doc/posix-functions/fmemopen.texi: Likewise.
37783         * doc/posix-functions/freeaddrinfo.texi: Likewise.
37784         * doc/posix-functions/fstatat.texi: Likewise.
37785         * doc/posix-functions/futimens.texi: Likewise.
37786         * doc/posix-functions/gai_strerror.texi: Likewise.
37787         * doc/posix-functions/getaddrinfo.texi: Likewise.
37788         * doc/posix-functions/getnameinfo.texi: Likewise.
37789         * doc/posix-functions/if_freenameindex.texi: Likewise.
37790         * doc/posix-functions/if_indextoname.texi: Likewise.
37791         * doc/posix-functions/if_nameindex.texi: Likewise.
37792         * doc/posix-functions/if_nametoindex.texi: Likewise.
37793         * doc/posix-functions/insque.texi: Likewise.
37794         * doc/posix-functions/linkat.texi: Likewise.
37795         * doc/posix-functions/llrint.texi: Likewise.
37796         * doc/posix-functions/llrintf.texi: Likewise.
37797         * doc/posix-functions/llrintl.texi: Likewise.
37798         * doc/posix-functions/lockf.texi: Likewise.
37799         * doc/posix-functions/lrintl.texi: Likewise.
37800         * doc/posix-functions/mkdirat.texi: Likewise.
37801         * doc/posix-functions/mkfifoat.texi: Likewise.
37802         * doc/posix-functions/mknodat.texi: Likewise.
37803         * doc/posix-functions/mq_close.texi: Likewise.
37804         * doc/posix-functions/mq_getattr.texi: Likewise.
37805         * doc/posix-functions/mq_notify.texi: Likewise.
37806         * doc/posix-functions/mq_open.texi: Likewise.
37807         * doc/posix-functions/mq_receive.texi: Likewise.
37808         * doc/posix-functions/mq_send.texi: Likewise.
37809         * doc/posix-functions/mq_setattr.texi: Likewise.
37810         * doc/posix-functions/mq_timedreceive.texi: Likewise.
37811         * doc/posix-functions/mq_timedsend.texi: Likewise.
37812         * doc/posix-functions/mq_unlink.texi: Likewise.
37813         * doc/posix-functions/open_memstream.texi: Likewise.
37814         * doc/posix-functions/openat.texi: Likewise.
37815         * doc/posix-functions/posix_fadvise.texi: Likewise.
37816         * doc/posix-functions/posix_fallocate.texi: Likewise.
37817         * doc/posix-functions/posix_madvise.texi: Likewise.
37818         * doc/posix-functions/posix_memalign.texi: Likewise.
37819         * doc/posix-functions/posix_openpt.texi: Likewise.
37820         * doc/posix-functions/readlinkat.texi: Likewise.
37821         * doc/posix-functions/remque.texi: Likewise.
37822         * doc/posix-functions/renameat.texi: Likewise.
37823         * doc/posix-functions/rintl.texi: Likewise.
37824         * doc/posix-functions/sem_unlink.texi: Likewise.
37825         * doc/posix-functions/shm_open.texi: Likewise.
37826         * doc/posix-functions/shm_unlink.texi: Likewise.
37827         * doc/posix-functions/signgam.texi: Likewise.
37828         * doc/posix-functions/sigset.texi: Likewise.
37829         * doc/posix-functions/stpcpy.texi: Likewise.
37830         * doc/posix-functions/stpncpy.texi: Likewise.
37831         * doc/posix-functions/strerror.texi: Likewise.
37832         * doc/posix-functions/strtod.texi: Likewise.
37833         * doc/posix-functions/symlinkat.texi: Likewise.
37834         * doc/posix-functions/unlinkat.texi: Likewise.
37835         * doc/posix-functions/utimensat.texi: Likewise.
37836         * doc/glibc-functions/bindresvport.texi: Likewise.
37837         * doc/glibc-functions/dn_expand.texi: Likewise.
37838         * doc/glibc-functions/exp10.texi: Likewise.
37839         * doc/glibc-functions/exp10f.texi: Likewise.
37840         * doc/glibc-functions/fgetxattr.texi: Likewise.
37841         * doc/glibc-functions/flistxattr.texi: Likewise.
37842         * doc/glibc-functions/fopencookie.texi: Likewise.
37843         * doc/glibc-functions/freeifaddrs.texi: Likewise.
37844         * doc/glibc-functions/fremovexattr.texi: Likewise.
37845         * doc/glibc-functions/fsetxattr.texi: Likewise.
37846         * doc/glibc-functions/getifaddrs.texi: Likewise.
37847         * doc/glibc-functions/getxattr.texi: Likewise.
37848         * doc/glibc-functions/lgetxattr.texi: Likewise.
37849         * doc/glibc-functions/listxattr.texi: Likewise.
37850         * doc/glibc-functions/llistxattr.texi: Likewise.
37851         * doc/glibc-functions/lremovexattr.texi: Likewise.
37852         * doc/glibc-functions/lsetxattr.texi: Likewise.
37853         * doc/glibc-functions/pow10.texi: Likewise.
37854         * doc/glibc-functions/pow10f.texi: Likewise.
37855         * doc/glibc-functions/rcmd_af.texi: Likewise.
37856         * doc/glibc-functions/removexattr.texi: Likewise.
37857         * doc/glibc-functions/res_init.texi: Likewise.
37858         * doc/glibc-functions/res_mkquery.texi: Likewise.
37859         * doc/glibc-functions/res_query.texi: Likewise.
37860         * doc/glibc-functions/res_querydomain.texi: Likewise.
37861         * doc/glibc-functions/res_send.texi: Likewise.
37862         * doc/glibc-functions/rresvport_af.texi: Likewise.
37863         * doc/glibc-functions/setxattr.texi: Likewise.
37864         * doc/glibc-functions/strcasestr.texi: Likewise.
37865
37866 2008-12-15  Bruno Haible  <bruno@clisp.org>
37867
37868         Fix compilation error on OSF/1 4.0.
37869         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
37870         <sys/time.h>, simply delegate to the system header.
37871         Reported by Daniel Richard G. <oss@teragram.com>.
37872
37873 2008-12-15  Bruno Haible  <bruno@clisp.org>
37874
37875         * doc/posix-functions/openat.texi: Mention the 'openat' module.
37876         * doc/posix-functions/fchmodat.texi: Likewise.
37877         * doc/posix-functions/fchownat.texi: Likewise.
37878         * doc/posix-functions/fdopendir.texi: Likewise.
37879         * doc/posix-functions/fstatat.texi: Likewise.
37880         * doc/posix-functions/mkdirat.texi: Likewise.
37881         * doc/posix-functions/unlinkat.texi: Likewise.
37882
37883 2008-12-14  Bruno Haible  <bruno@clisp.org>
37884
37885         Update doc for POSIX:2008.
37886         * doc/posix-functions/faccessat.texi: New file.
37887         * doc/posix-functions/fchmodat.texi: New file.
37888         * doc/posix-functions/fchownat.texi: New file.
37889         * doc/posix-functions/fdopendir.texi: New file.
37890         * doc/posix-functions/fstatat.texi: New file.
37891         * doc/posix-functions/futimens.texi: New file.
37892         * doc/posix-functions/linkat.texi: New file.
37893         * doc/posix-functions/mkdirat.texi: New file.
37894         * doc/posix-functions/mkfifoat.texi: New file.
37895         * doc/posix-functions/mknodat.texi: New file.
37896         * doc/posix-functions/open_wmemstream.texi: New file.
37897         * doc/posix-functions/openat.texi: New file.
37898         * doc/posix-functions/psiginfo.texi: New file.
37899         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
37900         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
37901         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
37902         * doc/posix-functions/readlinkat.texi: New file.
37903         * doc/posix-functions/renameat.texi: New file.
37904         * doc/posix-functions/strerror_l.texi: New file.
37905         * doc/posix-functions/symlinkat.texi: New file.
37906         * doc/posix-functions/unlinkat.texi: New file.
37907         * doc/posix-functions/utimensat.texi: New file.
37908         * doc/gnulib.texi (Function Substitutes): Add these subsections.
37909
37910 2008-12-14  Bruno Haible  <bruno@clisp.org>
37911
37912         Update doc for POSIX:2008.
37913         * doc/posix-functions/alphasort.texi: Renamed from
37914         doc/glibc-functions/alphasort.texi.
37915         * doc/posix-functions/dirfd.texi: Renamed from
37916         doc/glibc-functions/dirfd.texi.
37917         * doc/posix-functions/dprintf.texi: Renamed from
37918         doc/glibc-functions/dprintf.texi.
37919         * doc/posix-functions/duplocale.texi: Renamed from
37920         doc/glibc-functions/duplocale.texi.
37921         * doc/posix-functions/fexecve.texi: Renamed from
37922         doc/glibc-functions/fexecve.texi.
37923         * doc/posix-functions/fmemopen.texi: Renamed from
37924         doc/glibc-functions/fmemopen.texi.
37925         * doc/posix-functions/freelocale.texi: Renamed from
37926         doc/glibc-functions/freelocale.texi.
37927         * doc/posix-functions/getdate_err.texi: Renamed from
37928         doc/glibc-functions/getdate_err.texi.
37929         * doc/posix-functions/isalnum_l.texi: Renamed from
37930         doc/glibc-functions/isalnum_l.texi.
37931         * doc/posix-functions/isalpha_l.texi: Renamed from
37932         doc/glibc-functions/isalpha_l.texi.
37933         * doc/posix-functions/isblank_l.texi: Renamed from
37934         doc/glibc-functions/isblank_l.texi.
37935         * doc/posix-functions/iscntrl_l.texi: Renamed from
37936         doc/glibc-functions/iscntrl_l.texi.
37937         * doc/posix-functions/isdigit_l.texi: Renamed from
37938         doc/glibc-functions/isdigit_l.texi.
37939         * doc/posix-functions/isgraph_l.texi: Renamed from
37940         doc/glibc-functions/isgraph_l.texi.
37941         * doc/posix-functions/islower_l.texi: Renamed from
37942         doc/glibc-functions/islower_l.texi.
37943         * doc/posix-functions/isprint_l.texi: Renamed from
37944         doc/glibc-functions/isprint_l.texi.
37945         * doc/posix-functions/ispunct_l.texi: Renamed from
37946         doc/glibc-functions/ispunct_l.texi.
37947         * doc/posix-functions/isspace_l.texi: Renamed from
37948         doc/glibc-functions/isspace_l.texi.
37949         * doc/posix-functions/isupper_l.texi: Renamed from
37950         doc/glibc-functions/isupper_l.texi.
37951         * doc/posix-functions/iswalnum_l.texi: Renamed from
37952         doc/glibc-functions/iswalnum_l.texi.
37953         * doc/posix-functions/iswalpha_l.texi: Renamed from
37954         doc/glibc-functions/iswalpha_l.texi.
37955         * doc/posix-functions/iswblank_l.texi: Renamed from
37956         doc/glibc-functions/iswblank_l.texi.
37957         * doc/posix-functions/iswcntrl_l.texi: Renamed from
37958         doc/glibc-functions/iswcntrl_l.texi.
37959         * doc/posix-functions/iswctype_l.texi: Renamed from
37960         doc/glibc-functions/iswctype_l.texi.
37961         * doc/posix-functions/iswdigit_l.texi: Renamed from
37962         doc/glibc-functions/iswdigit_l.texi.
37963         * doc/posix-functions/iswgraph_l.texi: Renamed from
37964         doc/glibc-functions/iswgraph_l.texi.
37965         * doc/posix-functions/iswlower_l.texi: Renamed from
37966         doc/glibc-functions/iswlower_l.texi.
37967         * doc/posix-functions/iswprint_l.texi: Renamed from
37968         doc/glibc-functions/iswprint_l.texi.
37969         * doc/posix-functions/iswpunct_l.texi: Renamed from
37970         doc/glibc-functions/iswpunct_l.texi.
37971         * doc/posix-functions/iswspace_l.texi: Renamed from
37972         doc/glibc-functions/iswspace_l.texi.
37973         * doc/posix-functions/iswupper_l.texi: Renamed from
37974         doc/glibc-functions/iswupper_l.texi.
37975         * doc/posix-functions/iswxdigit_l.texi: Renamed from
37976         doc/glibc-functions/iswxdigit_l.texi.
37977         * doc/posix-functions/isxdigit_l.texi: Renamed from
37978         doc/glibc-functions/isxdigit_l.texi.
37979         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
37980         doc/glibc-functions/mbsnrtowcs.texi.
37981         * doc/posix-functions/mkdtemp.texi: Renamed from
37982         doc/glibc-functions/mkdtemp.texi.
37983         * doc/posix-functions/newlocale.texi: Renamed from
37984         doc/glibc-functions/newlocale.texi.
37985         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
37986         doc/glibc-functions/nl_langinfo_l.texi.
37987         * doc/posix-functions/open_memstream.texi: Renamed from
37988         doc/glibc-functions/open_memstream.texi.
37989         * doc/posix-functions/opterr.texi: Renamed from
37990         doc/glibc-functions/opterr.texi.
37991         * doc/posix-functions/optind.texi: Renamed from
37992         doc/glibc-functions/optind.texi.
37993         * doc/posix-functions/optopt.texi: Renamed from
37994         doc/glibc-functions/optopt.texi.
37995         * doc/posix-functions/psignal.texi: Renamed from
37996         doc/glibc-functions/psignal.texi.
37997         * doc/posix-functions/scandir.texi: Renamed from
37998         doc/glibc-functions/scandir.texi.
37999         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
38000         doc/glibc-functions/sched_get_priority_min.texi.
38001         * doc/posix-functions/signgam.texi: Renamed from
38002         doc/glibc-functions/signgam.texi.
38003         * doc/posix-functions/stpcpy.texi: Renamed from
38004         doc/glibc-functions/stpcpy.texi.
38005         * doc/posix-functions/stpncpy.texi: Renamed from
38006         doc/glibc-functions/stpncpy.texi.
38007         * doc/posix-functions/strcasecmp_l.texi: Renamed from
38008         doc/glibc-functions/strcasecmp_l.texi.
38009         * doc/posix-functions/strcoll_l.texi: Renamed from
38010         doc/glibc-functions/strcoll_l.texi.
38011         * doc/posix-functions/strfmon_l.texi: Renamed from
38012         doc/glibc-functions/strfmon_l.texi.
38013         * doc/posix-functions/strftime_l.texi: Renamed from
38014         doc/glibc-functions/strftime_l.texi.
38015         * doc/posix-functions/strncasecmp_l.texi: Renamed from
38016         doc/glibc-functions/strncasecmp_l.texi.
38017         * doc/posix-functions/strndup.texi: Renamed from
38018         doc/glibc-functions/strndup.texi.
38019         * doc/posix-functions/strnlen.texi: Renamed from
38020         doc/glibc-functions/strnlen.texi.
38021         * doc/posix-functions/strsignal.texi: Renamed from
38022         doc/glibc-functions/strsignal.texi.
38023         * doc/posix-functions/strxfrm_l.texi: Renamed from
38024         doc/glibc-functions/strxfrm_l.texi.
38025         * doc/posix-functions/timer_gettime.texi: Renamed from
38026         doc/glibc-functions/timer_gettime.texi.
38027         * doc/posix-functions/tolower_l.texi: Renamed from
38028         doc/glibc-functions/tolower_l.texi.
38029         * doc/posix-functions/toupper_l.texi: Renamed from
38030         doc/glibc-functions/toupper_l.texi.
38031         * doc/posix-functions/towctrans_l.texi: Renamed from
38032         doc/glibc-functions/towctrans_l.texi.
38033         * doc/posix-functions/towlower_l.texi: Renamed from
38034         doc/glibc-functions/towlower_l.texi.
38035         * doc/posix-functions/towupper_l.texi: Renamed from
38036         doc/glibc-functions/towupper_l.texi.
38037         * doc/posix-functions/uselocale.texi: Renamed from
38038         doc/glibc-functions/uselocale.texi.
38039         * doc/posix-functions/vdprintf.texi: Renamed from
38040         doc/glibc-functions/vdprintf.texi.
38041         * doc/posix-functions/wcpcpy.texi:
38042         Renamed from doc/glibc-functions/wcpcpy.texi.
38043         * doc/posix-functions/wcpncpy.texi: Renamed from
38044         doc/glibc-functions/wcpncpy.texi.
38045         * doc/posix-functions/wcscasecmp.texi: Renamed from
38046         doc/glibc-functions/wcscasecmp.texi.
38047         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
38048         doc/glibc-functions/wcscasecmp_l.texi.
38049         * doc/posix-functions/wcscoll_l.texi: Renamed from
38050         doc/glibc-functions/wcscoll_l.texi.
38051         * doc/posix-functions/wcsdup.texi: Renamed from
38052         doc/glibc-functions/wcsdup.texi.
38053         * doc/posix-functions/wcsncasecmp.texi: Renamed from
38054         doc/glibc-functions/wcsncasecmp.texi.
38055         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
38056         doc/glibc-functions/wcsncasecmp_l.texi.
38057         * doc/posix-functions/wcsnlen.texi: Renamed from
38058         doc/glibc-functions/wcsnlen.texi.
38059         * doc/posix-functions/wcsnrtombs.texi: Renamed from
38060         doc/glibc-functions/wcsnrtombs.texi.
38061         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
38062         doc/glibc-functions/wcsxfrm_l.texi.
38063         * doc/posix-functions/wctrans_l.texi: Renamed from
38064         doc/glibc-functions/wctrans_l.texi.
38065         * doc/posix-functions/wctype_l.texi: Renamed from
38066         doc/glibc-functions/wctype_l.texi.
38067         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38068         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
38069         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
38070         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
38071         these subsections.
38072         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
38073         Remove sections.
38074
38075 2008-12-14  Bruno Haible  <bruno@clisp.org>
38076
38077         Update doc for POSIX:2008.
38078         * doc/posix-functions/*.texi: Update URL of POSIX specification.
38079
38080 2008-12-14  Bruno Haible  <bruno@clisp.org>
38081
38082         Update doc for POSIX:2008.
38083         * doc/pastposix-functions/bcmp.texi: Renamed from
38084         doc/posix-functions/bcmp.texi.
38085         * doc/pastposix-functions/bcopy.texi: Renamed from
38086         doc/posix-functions/bcopy.texi.
38087         * doc/pastposix-functions/bsd_signal.texi: Renamed from
38088         doc/posix-functions/bsd_signal.texi.
38089         * doc/pastposix-functions/bzero.texi: Renamed from
38090         doc/posix-functions/bzero.texi.
38091         * doc/pastposix-functions/ecvt.texi: Renamed from
38092         doc/posix-functions/ecvt.texi.
38093         * doc/pastposix-functions/fcvt.texi: Renamed from
38094         doc/posix-functions/fcvt.texi.
38095         * doc/pastposix-functions/ftime.texi: Renamed from
38096         doc/posix-functions/ftime.texi.
38097         * doc/pastposix-functions/gcvt.texi: Renamed from
38098         doc/posix-functions/gcvt.texi.
38099         * doc/pastposix-functions/getcontext.texi: Renamed from
38100         doc/posix-functions/getcontext.texi.
38101         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
38102         doc/posix-functions/gethostbyaddr.texi.
38103         * doc/pastposix-functions/gethostbyname.texi: Renamed from
38104         doc/posix-functions/gethostbyname.texi.
38105         * doc/pastposix-functions/getwd.texi: Renamed from
38106         doc/posix-functions/getwd.texi.
38107         * doc/pastposix-functions/h_errno.texi: Renamed from
38108         doc/posix-functions/h_errno.texi.
38109         * doc/pastposix-functions/index.texi: Renamed from
38110         doc/posix-functions/index.texi.
38111         * doc/pastposix-functions/makecontext.texi: Renamed from
38112         doc/posix-functions/makecontext.texi.
38113         * doc/pastposix-functions/mktemp.texi: Renamed from
38114         doc/posix-functions/mktemp.texi.
38115         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
38116         doc/posix-functions/pthread_attr_getstackaddr.texi.
38117         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
38118         doc/posix-functions/pthread_attr_setstackaddr.texi.
38119         * doc/pastposix-functions/rindex.texi: Renamed from
38120         doc/posix-functions/rindex.texi.
38121         * doc/pastposix-functions/scalb.texi: Renamed from
38122         doc/posix-functions/scalb.texi.
38123         * doc/pastposix-functions/setcontext.texi: Renamed from
38124         doc/posix-functions/setcontext.texi.
38125         * doc/pastposix-functions/swapcontext.texi: Renamed from
38126         doc/posix-functions/swapcontext.texi.
38127         * doc/pastposix-functions/ualarm.texi: Renamed from
38128         doc/posix-functions/ualarm.texi.
38129         * doc/pastposix-functions/usleep.texi: Renamed from
38130         doc/posix-functions/usleep.texi.
38131         * doc/pastposix-functions/vfork.texi: Renamed from
38132         doc/posix-functions/vfork.texi.
38133         * doc/pastposix-functions/wcswcs.texi: Renamed from
38134         doc/posix-functions/wcswcs.texi.
38135         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
38136         (Function Substitutes): Update.
38137
38138 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38139
38140         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
38141         m4/strerror.m4.
38142
38143 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38144             Bruno Haible  <bruno@clisp.org>
38145
38146         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
38147
38148 2008-12-13  Bruno Haible  <bruno@clisp.org>
38149
38150         * modules/strtoull (Depends-on): Remove unistd.
38151
38152 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38153
38154         * modules/strtoull (Depends-on): Add stdlib.
38155
38156 2008-12-11  Simon Josefsson  <simon@josefsson.org>
38157
38158         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
38159
38160 2008-12-10  Jim Meyering  <meyering@redhat.com>
38161
38162         gl_ASSERT: don't say assertions are disabled when they're not
38163         * m4/assert.m4 (gl_ASSERT): Do not make configure report
38164         "checking whether to enable assertions... no", when they are in
38165         fact enabled.  This is solely a bug in the output of configure.
38166         In spite of saying "no", NDEBUG was not defined in that case.
38167         Also, as noted by Eric Blake, leave assertions enabled upon
38168         --enable-assert=INVALID.
38169
38170 2008-12-10  Bruno Haible  <bruno@clisp.org>
38171
38172         Change MODULES.html to refer to POSIX:2008 where possible.
38173         * MODULES.html.sh (POSIX2008_URL): New variable.
38174         (posix_headers): Remove sys/timeb, ucontext.
38175         (posix2001_headers): New variable.
38176         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
38177         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
38178         index, makecontext, mktemp, pthread_attr_getstackaddr,
38179         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
38180         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
38181         (posix2001_functions): New variable.
38182         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
38183         otherwise.
38184
38185 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38186
38187         add missing include to parse-duration.c
38188         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
38189         * modules/parse-duration (Depends-on): Add xalloc.
38190
38191         fix sed script reading maint.mk
38192         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
38193         (syntax-check-rules): Use it.
38194
38195 2008-12-09  Bruno Haible  <bruno@clisp.org>
38196
38197         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
38198         MacOS X 10.4/PowerPC.
38199         Reported by Simon Josefsson.
38200
38201 2008-12-08  Jim Meyering  <meyering@redhat.com>
38202
38203         work around mingw's lack of some S_IF definitions
38204         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
38205         Reported by Simon Josefsson.
38206
38207 2008-12-08  Bruno Haible  <bruno@clisp.org>
38208
38209         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
38210         applied to variables. Needed on MacOS X 10.4/PowerPC.
38211         Reported by Simon Josefsson.
38212
38213 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
38214         and Eric Blake  <ebb9@byu.net>
38215
38216         assert: honor --enable-assert
38217         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
38218         order to honor --enable-assert, rather than treating it as a
38219         synonym for --disable-assert.
38220
38221 2008-12-08  Jim Meyering  <meyering@redhat.com>
38222
38223         * lib/posixtm.c: Remove now-useless declaration of mktime.
38224
38225         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
38226
38227 2008-12-07  Bruno Haible  <bruno@clisp.org>
38228
38229         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
38230         test_once): Mark functions as static.
38231         * tests/test-tls.c (test_tls): Likewise.
38232
38233 2008-12-07  Bruno Haible  <bruno@clisp.org>
38234
38235         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
38236         iconv_register_autodetect.
38237
38238 2008-12-07  Jim Meyering  <meyering@redhat.com>
38239
38240         posixtm.c: avoid a warning
38241         * lib/posixtm.c (posixtime): Don't initialize tm0.
38242         It's no longer needed to placate gcc4's -Wuninitialized,
38243         and the attempt to placate would elicit a new warning.
38244
38245         unicodeio.c: mark unused parameters
38246         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38247         (fallback_failure_callback): Likewise.
38248
38249 2008-12-07  Bruno Haible  <bruno@clisp.org>
38250
38251         * gnulib-tool (func_create_testdir): When building the tests
38252         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
38253         Reported by Simon Josefsson.
38254
38255 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38256
38257         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
38258
38259 2008-12-06  Bruno Haible  <bruno@clisp.org>
38260
38261         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
38262         Suggested by Eric Blake.
38263
38264 2008-12-06  Bruno Haible  <bruno@clisp.org>
38265
38266         Fix a c-stack test failure on MacOS X.
38267         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
38268         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
38269         handler for SIGBUS as well.
38270         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
38271         install a signal handler for SIGBUS as well.
38272         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
38273
38274 2008-12-06  Bruno Haible  <bruno@clisp.org>
38275
38276         Advocacy documentation.
38277         * doc/gnulib-intro.texi (Benefits): New section.
38278         * doc/gnulib.texi: Update.
38279
38280 2008-12-06  Bruno Haible  <bruno@clisp.org>
38281
38282         Document the 'manywarnings' module.
38283         * doc/manywarnings.texi: New file.
38284         * doc/gnulib.texi: Include it.
38285
38286 2008-12-05  Eric Blake  <ebb9@byu.net>
38287
38288         tests: silence some gcc warnings
38289         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
38290         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
38291         type mismatches.
38292
38293 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38294             Bruno Haible  <bruno@clisp.org>
38295
38296         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
38297
38298 2008-11-29  Jim Meyering  <meyering@redhat.com>
38299
38300         unicodeio.c: mark unused parameters
38301         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38302         (fallback_failure_callback): Likewise.
38303
38304         fts: fix a thinko
38305         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
38306         (set_stat_type): Return S_IF*-valued "type" directly.
38307         Prompted by James Youngman's spotting a related bug.
38308         Confirmed by further testing through find.
38309
38310         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
38311         * lib/fts.c (D_TYPE): Define.
38312         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
38313         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
38314         (s_ifmt_shift_bits): New function.
38315         (set_stat_type): New function.
38316         (fts_build): When not calling fts_stat, call set_stat_type
38317         to propagate dirent.d_type info to fts_read caller.
38318         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
38319         fts_statp->st_mode type information may be valid.
38320
38321 2008-11-28  Simon Josefsson  <simon@josefsson.org>
38322
38323         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
38324         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
38325         <sds@gnu.org>.
38326
38327 2008-11-20  Bruno Haible  <bruno@clisp.org>
38328
38329         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
38330         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
38331         INCLUDE_NEXT.
38332         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
38333         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
38334         * modules/math (Makefile.am): Substitute
38335         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
38336         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38337
38338 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
38339             Bruno Haible  <bruno@clisp.org>
38340
38341         * lib/stdint.in.h: Define all type macros so that their expansion is
38342         a single typedef'ed token. Fixes a compilation failure in Boost which
38343         does "using ::int8_t;".
38344
38345 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38346
38347         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
38348         gl_MANYWARN_ALL_GCC.
38349         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
38350         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
38351         * modules/manywarnings: New file.
38352         * MODULES.html.sh: Mention manywarnings module.
38353
38354 2008-11-18  Bruno Haible  <bruno@clisp.org>
38355
38356         * doc/gnulib-tool.texi (Unit tests): New section.
38357
38358 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38359
38360         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
38361         paths like 'lib/po/foo.po'.
38362
38363 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38364
38365         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
38366         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
38367
38368 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38369
38370         * m4/warnings.m4: Use CPPFLAGS to really check whether the
38371         parameter works.
38372
38373 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38374
38375         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
38376
38377 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38378
38379         * modules/parse-duration-tests: New file.
38380         * tests/test-parse-duration.sh: New file.
38381         * tests/test-parse-duration.c: New file.
38382
38383         New module 'parse-duration'.
38384         * lib/parse-duration.h: New file.
38385         * lib/parse-duration.c: New file.
38386         * modules/parse-duration: New file.
38387
38388 2008-11-17  Bruno Haible  <bruno@clisp.org>
38389
38390         * tests/test-select-out.sh: Comment out the first pipe test.
38391         Reported by Simon Josefsson.
38392
38393 2008-11-17  Bruno Haible  <bruno@clisp.org>
38394
38395         * modules/getaddrinfo (Depends-on): Add servent, hostent.
38396         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
38397         gl_HOSTENT.
38398
38399 2008-11-17  Bruno Haible  <bruno@clisp.org>
38400
38401         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
38402         -lnetwork and -lnet. Needed for Haiku and BeOS.
38403
38404 2008-11-16  Bruno Haible  <bruno@clisp.org>
38405
38406         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
38407
38408 2008-11-16  Bruno Haible  <bruno@clisp.org>
38409
38410         Avoid test failure on Haiku.
38411         * tests/test-fsync.c: Include <errno.h>.
38412         (main): Don't require that fsync (0) fails.
38413
38414 2008-11-15  Bruno Haible  <bruno@clisp.org>
38415
38416         New module 'hostent'.
38417         * modules/hostent: New file.
38418         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
38419
38420 2008-11-15  Bruno Haible  <bruno@clisp.org>
38421
38422         New module 'servent'.
38423         * modules/servent: New file.
38424         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
38425
38426 2008-11-15  Bruno Haible  <bruno@clisp.org>
38427
38428         Avoid generating same test program with two different rules.
38429         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
38430         test-frexp to test-frexp-nolibm.
38431         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
38432         test-frexpl to test-frexpl-nolibm.
38433
38434 2008-11-15  Bruno Haible  <bruno@clisp.org>
38435
38436         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
38437         $(FREXPL_LIBM).
38438
38439 2008-11-15  Bruno Haible  <bruno@clisp.org>
38440
38441         * lib/netdb.in.h: Activate the definitions also when the system's
38442         <netdb.h> has 'struct addrinfo'.
38443         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
38444         EAI_OVERFLOW or AI_NUMERICSERV.
38445         * doc/posix-headers/netdb.texi: Document the problem.
38446
38447 2008-11-15  Bruno Haible  <bruno@clisp.org>
38448
38449         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
38450
38451         Make the 'sched' module work on platforms where <sched.h> exists but
38452         is incomplete (such as Haiku).
38453         * lib/sched.in.h; Include the system's <sched.h> if it exists.
38454         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
38455         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
38456         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
38457         HAVE_STRUCT_SCHED_PARAM.
38458         * modules/sched (Depends-on): Add include_next.
38459         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
38460         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
38461         * doc/posix-headers/sched.texi: Document the issue.
38462
38463 2008-11-13  Jim Meyering  <meyering@redhat.com>
38464
38465         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
38466         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
38467         test would fail due to the difference in the Report bugs to ...
38468         line.  The expected address is empty, "<>", while the actual
38469         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
38470
38471 2008-11-12  Bruno Haible  <bruno@clisp.org>
38472
38473         lstat: don't compile lstat.c on systems lacking lstat
38474         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
38475         which don't have lstat; this is handled by lib/sys_stat.in.h already.
38476         Reported by Daniel P. Berrange via Jim Meyering.
38477
38478 2008-11-12  Jim Meyering  <meyering@redhat.com>
38479
38480         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
38481
38482 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38483
38484         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
38485         instead.
38486
38487 2008-11-12  Bruno Haible  <bruno@clisp.org>
38488
38489         * lib/unicodeio.c: Include unistr.h.
38490         (utf8_wctomb): Remove function.
38491         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
38492
38493 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38494
38495         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
38496         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
38497         <bruno@clisp.org>.
38498         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
38499
38500 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38501
38502         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
38503         * doc/gnulib.texi: Add section for warnings.
38504
38505 2008-11-11  Bruno Haible  <bruno@clisp.org>
38506
38507         * lib/sockets.h: Add a comment.
38508
38509 2008-11-11  Karl Berry  <karl@gnu.org>
38510
38511         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
38512
38513 2008-11-11  Eric Blake  <ebb9@byu.net>
38514
38515         fdl.texi: avoid git symlinks
38516         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
38517
38518 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38519
38520         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
38521
38522 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38523
38524         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
38525         (gl_WARN_ADD): Substitute $2 if literal.
38526
38527 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38528
38529         * m4/warning.m4: Remove.
38530
38531 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38532
38533         * m4/warnings.m4: Almost complete rewrite. :-)
38534
38535 2008-11-10  Simon Josefsson  <simon@josefsson.org>
38536
38537         * modules/warnings: New module.
38538         * m4/warnings.m4: New file.
38539         * MODULES.html.sh: Mention warnings module.
38540         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
38541         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38542
38543 2008-11-10  Eric Blake  <ebb9@byu.net>
38544
38545         fdl.texi: make a symlink to the latest version
38546         * doc/standards.texi: Revert today's earlier change.
38547         * doc/fdl-1.2.texi: Rename from old fdl.texi...
38548         * doc/fdl.texi: ...and replace this with a symlink to the newer
38549         fdl-1.3.texi.
38550
38551 2008-11-10  Bruno Haible  <bruno@clisp.org>
38552
38553         * tests/test-select-fd.c (main): Accept the result file name as fourth
38554         argument.
38555         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
38556         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
38557
38558 2008-11-10  Bruno Haible  <bruno@clisp.org>
38559
38560         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
38561         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
38562         as autoconf-substituted macros.
38563         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
38564         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
38565         gl_NETDB_H_DEFAULTS. Set these variables.
38566         * modules/netdb (Makefile.am): Substitute these variables.
38567
38568 2008-11-10  Eric Blake  <ebb9@byu.net>
38569
38570         standards.texi: include correct file for FDL 1.3
38571         * doc/standards.texi (GNU Free Documentation License): Change
38572         include file to pull in FDL 1.3, not 1.2.
38573
38574         fdl.texi: revert accidental change to license
38575         * doc/fdl.texi: This is FDL 1.2, not 1.3.
38576
38577 2008-11-10  Bruno Haible  <bruno@clisp.org>
38578
38579         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
38580         cross-compiling guesses also when the native compile gives no result.
38581
38582 2008-11-10  Bruno Haible  <bruno@clisp.org>
38583
38584         * lib/spawni.c (__spawni): Force variable into the stack.
38585
38586 2008-11-10  Bruno Haible  <bruno@clisp.org>
38587
38588         Add support for Haiku.
38589         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
38590         glibc and BeOS, but also on Haiku.
38591         * lib/fpurge.c (fpurge): Likewise.
38592         * lib/freadable.c (freadable): Likewise.
38593         * lib/freadahead.c (freadahead): Likewise.
38594         * lib/freading.c (freading): Likewise.
38595         * lib/freadptr.c (freadptr): Likewise.
38596         * lib/freadseek.c (freadptrinc): Likewise.
38597         * lib/fseeko.c (rpl_fseeko): Likewise.
38598         * lib/fseterr.c (fseterr): Likewise.
38599         * lib/fwritable.c (fwritable): Likewise.
38600         * lib/fwriting.c (fwriting): Likewise.
38601         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
38602
38603 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38604
38605         * lib/config.charset: Treat Haiku like BeOS.
38606
38607 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38608
38609         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
38610         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
38611
38612 2008-11-08  Bruno Haible  <bruno@clisp.org>
38613
38614         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
38615         AC_CACHE_CHECK.
38616
38617 2008-11-08  Bruno Haible  <bruno@clisp.org>
38618
38619         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
38620
38621 2008-11-08  Bruno Haible  <bruno@clisp.org>
38622
38623         * tests/test-select-fd.c: New file.
38624         * tests/test-select-in.sh: New file.
38625         * tests/test-select-out.sh: New file.
38626         * tests/test-select-stdin.c: New file.
38627         * modules/select-tests (Files): Add the new files.
38628         (Depends-on): Add gettimeofday.
38629         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
38630         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
38631         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
38632
38633 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
38634             Bruno Haible  <bruno@clisp.org>
38635
38636         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
38637
38638 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
38639
38640         * build-aux/pmccabe2html: Added support for C++ source files.
38641
38642 2008-11-05  Ben Pfaff  <blp@gnu.org>
38643
38644         Fix lib/close.c build on Windows.
38645         * modules/close (Files): Add lib/w32sock.h.
38646
38647 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
38648
38649         Accept Bison's NEWS format.
38650         * build-aux/announce-gen (print_news_deltas): Tweak
38651         $re_prefix.
38652
38653 2008-11-04  Bruno Haible  <bruno@clisp.org>
38654
38655         * modules/random_r (Maintainer): Add glibc.
38656
38657 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38658
38659         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
38660         by karl@freefriends.org (Karl Berry).
38661         * doc/alloca.texi: Likewise.
38662         * doc/c-ctype.texi: Likewise.
38663         * doc/c-strcase.texi: Likewise.
38664         * doc/c-strcaseeq.texi: Likewise.
38665         * doc/c-strcasestr.texi: Likewise.
38666         * doc/c-strstr.texi: Likewise.
38667         * doc/c-strtod.texi: Likewise.
38668         * doc/c-strtold.texi: Likewise.
38669         * doc/ctime.texi: Likewise.
38670         * doc/error.texi: Likewise.
38671         * doc/fdl.texi: Likewise.
38672         * doc/gcd.texi: Likewise.
38673         * doc/getdate.texi: Likewise.
38674         * doc/gnulib-intro.texi: Likewise.
38675         * doc/gnulib-tool.texi: Likewise.
38676         * doc/gnulib.texi: Likewise.
38677         * doc/inet_ntoa.texi: Likewise.
38678         * doc/maintain.texi: Likewise.
38679         * doc/make-stds.texi: Likewise.
38680         * doc/quote.texi: Likewise.
38681         * doc/regexprops-generic.texi: Likewise.
38682         * doc/standards.texi: Likewise.
38683         * doc/verify.texi: Likewise.
38684         * doc/visibility.texi: Likewise.
38685         * doc/gnulib.texi (GNU Free Documentation License): Include
38686         fdl-1.3.texi instead of fdl.texi.
38687
38688 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38689
38690         * doc/fdl-1.3.texi: New file, from
38691         <http://www.gnu.org/licenses/fdl-1.3.texi>.
38692         * modules/fdl-1.3: Add.
38693         * MODULES.html.sh: Add fdl-1.3.
38694
38695 2008-11-03  Bruno Haible  <bruno@clisp.org>
38696
38697         Make determination of absolute name of header file work with AIX xlc.
38698         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
38699         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
38700         preprocessing.
38701         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38702         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
38703
38704 2008-11-03  Simon Josefsson  <simon@josefsson.org>
38705
38706         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
38707         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
38708         <ludo@gnu.org>.
38709
38710 2008-11-02  Bruno Haible  <bruno@clisp.org>
38711
38712         Mark 'strpbrk' obsolete.
38713         * modules/strpbrk (Status, Notice): New sections.
38714         * modules/strtok_r (Depends-on): Add strpbrk.
38715
38716 2008-11-02  Bruno Haible  <bruno@clisp.org>
38717
38718         Mark 'strdup' obsolete.
38719         * modules/strdup (Status, Notice): New sections.
38720         * modules/findprog (Depends-on): Add strdup.
38721         * modules/getaddrinfo (Depends-on): Likewise.
38722         * modules/localename (Depends-on): Likewise.
38723         * modules/relocatable-lib (Depends-on): Likewise.
38724         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
38725         * modules/relocatable-prog (Depends-on): Likewise.
38726         * modules/trim (Depends-on): Likewise.
38727         * modules/unictype/gen-ctype (Depends-on): Likewise.
38728         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
38729
38730 2008-11-02  Bruno Haible  <bruno@clisp.org>
38731
38732         Mark 'strcspn' obsolete.
38733         * modules/strcspn (Status, Notice): New sections.
38734
38735 2008-11-02  Bruno Haible  <bruno@clisp.org>
38736
38737         Mark 'rmdir' obsolete.
38738         * modules/rmdir (Status, Notice): New sections.
38739         * modules/clean-temp (Depends-on): Add rmdir.
38740         * modules/openat (Depends-on): Likewise.
38741
38742 2008-11-02  Bruno Haible  <bruno@clisp.org>
38743
38744         Mark 'raise' obsolete.
38745         * modules/raise (Status, Notice): New sections.
38746         (Include): Specify <signal.h>.
38747         * modules/stdio (Depends-on): Add raise.
38748         * modules/write (Depends-on): Likewise.
38749
38750 2008-11-02  Bruno Haible  <bruno@clisp.org>
38751
38752         Mark 'memset' obsolete.
38753         * modules/memset (Status, Notice): New sections.
38754
38755 2008-11-02  Bruno Haible  <bruno@clisp.org>
38756
38757         Mark 'memmove' obsolete.
38758         * modules/memmove (Status, Notice): New sections.
38759         * modules/argp (Depends-on): Add memmove.
38760         * modules/argz (Depends-on): Likewise.
38761         * modules/canonicalize (Depends-on): Likewise.
38762         * modules/canonicalize-lgpl (Depends-on): Likewise.
38763         * modules/fts (Depends-on): Likewise.
38764         * modules/getcwd (Depends-on): Likewise.
38765         * modules/human (Depends-on): Likewise.
38766         * modules/regex (Depends-on): Likewise.
38767         * modules/striconveh (Depends-on): Likewise.
38768         * modules/trim (Depends-on): Likewise.
38769         * modules/unistr/u8-move (Depends-on): Likewise.
38770         * modules/unistr/u16-move (Depends-on): Likewise.
38771         * modules/unistr/u32-move (Depends-on): Likewise.
38772
38773 2008-11-02  Bruno Haible  <bruno@clisp.org>
38774
38775         Mark 'memcpy' obsolete.
38776         * modules/memcpy (Status, Notice): New sections.
38777
38778 2008-11-02  Bruno Haible  <bruno@clisp.org>
38779
38780         Mark 'memcmp' obsolete.
38781         * modules/memcmp (Status, Notice): New sections.
38782         * modules/argmatch (Depends-on): Add memchr.
38783         * modules/backupfile (Depends-on): Likewise.
38784         * modules/c-strcasestr (Depends-on): Likewise.
38785         * modules/crypto/des (Depends-on): Likewise.
38786         * modules/csharpcomp (Depends-on): Likewise.
38787         * modules/fnmatch (Depends-on): Likewise.
38788         * modules/git-merge-changelog (Depends-on): Likewise.
38789         * modules/isnand (Depends-on): Likewise.
38790         * modules/isnand-nolibm (Depends-on): Likewise.
38791         * modules/isnanf (Depends-on): Likewise.
38792         * modules/isnanf-nolibm (Depends-on): Likewise.
38793         * modules/isnanl (Depends-on): Likewise.
38794         * modules/isnanl-nolibm (Depends-on): Likewise.
38795         * modules/mbchar (Depends-on): Likewise.
38796         * modules/memcoll (Depends-on): Likewise.
38797         * modules/quotearg (Depends-on): Likewise.
38798         * modules/regex (Depends-on): Likewise.
38799         * modules/relocatable-prog (Depends-on): Likewise.
38800         * modules/same (Depends-on): Likewise.
38801         * modules/signbit (Depends-on): Likewise.
38802         * modules/strcasestr-simple (Depends-on): Likewise.
38803         * modules/unictype/gen-ctype (Depends-on): Likewise.
38804         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
38805         * modules/uniname/uniname (Depends-on): Likewise.
38806         * modules/unistr/u8-cmp (Depends-on): Likewise.
38807
38808 2008-11-02  Bruno Haible  <bruno@clisp.org>
38809
38810         Mark 'memchr' obsolete.
38811         * modules/memchr (Status, Notice): New sections.
38812         * modules/argp (Depends-on): Add memchr.
38813         * modules/base64 (Depends-on): Likewise.
38814         * modules/c-strcasestr (Depends-on): Likewise.
38815         * modules/chdir-long (Depends-on): Likewise.
38816         * modules/fnmatch (Depends-on): Likewise.
38817         * modules/getsubopt (Depends-on): Likewise.
38818         * modules/git-merge-changelog (Depends-on): Likewise.
38819         * modules/glob (Depends-on): Likewise.
38820         * modules/strcasestr-simple (Depends-on): Likewise.
38821         * modules/strnlen (Depends-on): Likewise.
38822
38823 2008-11-02  Bruno Haible  <bruno@clisp.org>
38824
38825         Mark 'atexit' obsolete.
38826         * modules/atexit (Status, Notice): New sections.
38827         * modules/chdir-long (Depends-on): Add atexit.
38828         * modules/wait-process (Depends-on): Likewise.
38829
38830 2008-11-02  Bruno Haible  <bruno@clisp.org>
38831
38832         * gnulib-tool: New option --with-obsolete.
38833         (func_usage): Document it.
38834         (func_modules_transitive_closure): Drop obsolete dependencies if
38835         incobsolete is not true.
38836         (func_import): Read and save the incobsolete variable to the cache.
38837
38838 2008-11-02  Bruno Haible  <bruno@clisp.org>
38839
38840         * modules/TEMPLATE-EXTENDED: New field 'Status'.
38841         * gnulib-tool: New option --extract-status.
38842         (func_usage): Document it.
38843         (sed_extract_prog): Recognize it.
38844         (func_get_status): New function.
38845
38846 2008-10-30  Simon Josefsson  <simon@josefsson.org>
38847
38848         * modules/sockets (License): Change from LGPL to LGPLv2+.
38849
38850 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38851
38852         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
38853
38854 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38855
38856         * MODULES.html.sh (Support for systems lacking POSIX:2001):
38857         Mention times and sys_times.
38858         * modules/sys_times, modules/sys_times-tests: New modules.
38859         * modules/times, modules/times-tests: Likewise
38860         * m4/sys_times_h.m4: New file.
38861         * lib/sys_times.in.h: Likewise
38862         * lib/times.c: Likewise.
38863         * tests/test-sys_times.c: Likewise.
38864         * tests/test-times.c: Likewise.
38865         * doc/posix-headers/sys_times.texi: Update.
38866         * doc/posix-functions/times.texi: Update.
38867
38868 2008-10-28  Jim Meyering  <meyering@redhat.com>
38869
38870         * modules/tempname (Depends-on): Add lstat.
38871
38872         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
38873
38874 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38875
38876         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
38877         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
38878         using idiom used elsewhere in gnulib.
38879
38880 2008-10-27  Jim Meyering  <meyering@redhat.com>
38881
38882         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
38883
38884 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38885
38886         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
38887         TESTS_ENVIRONMENT, for shell scripts that needs to call built
38888         programs.
38889         * tests/test-argp-2.sh: Use $EXEEXT when needed.
38890
38891 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38892
38893         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
38894
38895 2008-10-27  Bruno Haible  <bruno@clisp.org>
38896
38897         * tests/test-lstat.c: Include <stdio.h>.
38898
38899 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38900
38901         * modules/lstat-tests: New module.
38902         * tests/test-lstat.c: New file.
38903
38904 2008-10-26  Jim Meyering  <meyering@redhat.com>
38905
38906         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
38907
38908 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38909             Bruno Haible  <bruno@clisp.org>
38910
38911         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
38912         * modules/configmake (Include): Add a note that the include must come
38913         after all system headers.
38914         * lib/javaversion.c: Include configmake.h after all other includes.
38915
38916 2008-10-26  Bruno Haible  <bruno@clisp.org>
38917
38918         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
38919         HAVE_STRUCT_RANDOM_DATA to 1.
38920         (gl_STDLIB_H): Simplify.
38921
38922 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38923
38924         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
38925         substitute HAVE_STRUCT_RANDOM_DATA.
38926         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
38927         random_data.
38928         * modules/stdlib (Makefile.am): Substitute
38929         HAVE_STRUCT_RANDOM_DATA.
38930
38931 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38932
38933         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
38934         * doc/gnulib-intro.texi (Copyright): Likewise.
38935
38936 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38937
38938         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
38939         findings.
38940
38941 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
38942             Bruno Haible  <bruno@clisp.org>
38943
38944         * lib/unistd.in.h: Include <winsock2.h>.
38945         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
38946         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
38947         Provide dummy declarations.
38948         (gethostname): Override.
38949         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
38950         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
38951         gl_PREREQ_SYS_H_WINSOCK2.
38952         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
38953         * doc/posix-functions/gethostname.texi: More details.
38954
38955 2008-10-25  Bruno Haible  <bruno@clisp.org>
38956
38957         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38958         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
38959         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
38960
38961         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
38962         here ...
38963         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
38964         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
38965         gl_UNISTD_H_DEFAULTS.
38966
38967 2008-10-25  Eric Blake  <ebb9@byu.net>
38968
38969         signbit: avoid spurious compiler failure
38970         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
38971         declarations inside function.
38972
38973 2008-10-24  Simon Josefsson  <simon@josefsson.org>
38974             Bruno Haible  <bruno@clisp.org>
38975
38976         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
38977         * modules/random_r (Depends-on): Add stdint.
38978
38979 2008-10-24  Bruno Haible  <bruno@clisp.org>
38980
38981         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
38982         Eggert.
38983         * modules/strerror (License): Likewise.
38984
38985 2008-10-24  Jim Meyering  <meyering@redhat.com>
38986
38987         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
38988         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
38989
38990 2008-10-24  Eric Blake  <ebb9@byu.net>
38991
38992         getgroups: fix compilation when getgroups is available
38993         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
38994         but with <config.h> override of getgroups disabled.
38995
38996 2008-10-24  Simon Josefsson  <simon@josefsson.org>
38997
38998         * doc/gnulib.texi (Header files): Add note about C++ problems.
38999         Explained by Bruno Haible <bruno@clisp.org>.
39000
39001 2008-10-23  Bruno Haible  <bruno@clisp.org>
39002
39003         Define a dummy SA_NODEFER macro on Interix.
39004         * lib/signal.in.h (SA_NODEFER): Define fallback.
39005         Reported by Aleksey Cheusov <cheusov@tut.by> via
39006         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
39007
39008 2008-10-23  Bruno Haible  <bruno@clisp.org>
39009
39010         * modules/freadahead (License): Change to LGPLv2+.
39011         Suggested by Simon Josefsson.
39012
39013 2008-10-23  Jim Meyering  <meyering@redhat.com>
39014
39015         random_r: new module
39016         * modules/random_r: New file.
39017         * m4/random_r.m4: New file.
39018         * lib/random_r.c: New file, from glibc.
39019         * modules/random_r-tests: New file.
39020         * tests/test-random_r.c: New file.
39021         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
39022          Declare.
39023         (RAND_MAX): Define.
39024         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
39025         * modules/stdlib: Substitute them, too.
39026         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
39027         * doc/glibc-functions/initstate_r.texi: Mention the new module.
39028         * doc/glibc-functions/random_r.texi: Likewise.
39029         * doc/glibc-functions/setstate_r.texi: Likewise.
39030         * doc/glibc-functions/srandom_r.texi: Likewise.
39031         * config/srclist.txt: Mention it.
39032
39033 2008-10-23  David Lutterkort  <lutter@redhat.com>
39034
39035         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
39036         link requirement
39037
39038 2008-10-23  Jim Meyering  <meyering@redhat.com>
39039
39040         selinux-h: mark parameters of stub functions as intentionally unused
39041         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
39042         * lib/se-context.in.h: Likewise.
39043
39044 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39045
39046         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
39047
39048 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39049
39050         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
39051
39052 2008-10-22  Eric Blake  <ebb9@byu.net>
39053
39054         glthread/thread: avoid compiler warning
39055         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
39056         Add unreachable abort to silence compiler.
39057
39058 2008-10-22  Eric Blake  <ebb9@byu.net>
39059
39060         netdb: also supply struct addrinfo for cygwin 1.5.x
39061         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
39062         older cygwin.
39063         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
39064         cygwin.
39065         * doc/posix-headers/netdb.texi (netdb.h): Document this.
39066
39067 2008-10-22  Bruno Haible  <bruno@clisp.org>
39068
39069         * users.txt: Update entry about pspp.
39070
39071 2008-10-21  Bruno Haible  <bruno@clisp.org>
39072
39073         Simplification.
39074         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
39075         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
39076
39077         Simplification.
39078         * lib/ioctl.c (ioctl): Don't undefine.
39079         * lib/socket.c (socket): Don't undefine.
39080
39081         Remove unused module indicator macros.
39082         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
39083         GNULIB_$1 as a C macro.
39084
39085         * doc/posix-functions/close.texi: Undo last change.
39086         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
39087         Windows platforms.
39088
39089 2008-10-21  Bruno Haible  <bruno@clisp.org>
39090
39091         Add gethostname() declaration to <unistd.h>.
39092         * lib/unistd.in.h (gethostname): New declaration.
39093         * lib/gethostname.c: Include <unistd.h>.
39094         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
39095         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
39096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
39097         and HAVE_GETHOSTNAME.
39098         * modules/gethostname (Depends-on): Add unistd.
39099         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39100         (Include): Specify <unistd.h>.
39101         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
39102         HAVE_GETHOSTNAME.
39103         * tests/test-gethostname.c: Include <unistd.h> first.
39104
39105 2008-10-21  Bruno Haible  <bruno@clisp.org>
39106
39107         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
39108         * modules/select-tests (Depends-on): Likewise.
39109         Reported by Simon Josefsson.
39110
39111 2008-10-21  Simon Josefsson  <simon@josefsson.org>
39112
39113         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
39114         * lib/accept.c: New file, based on winsock.c.
39115         * lib/bind.c: New file, based on winsock.c.
39116         * lib/connect.c: New file, based on winsock.c.
39117         * lib/getpeername.c: New file, based on winsock.c.
39118         * lib/getsockname.c: New file, based on winsock.c.
39119         * lib/getsockopt.c: New file, based on winsock.c.
39120         * lib/ioctl.c: New file, based on winsock.c.
39121         * lib/listen.c: New file, based on winsock.c.
39122         * lib/recv.c: New file, based on winsock.c.
39123         * lib/recvfrom.c: New file, based on winsock.c.
39124         * lib/send.c: New file, based on winsock.c.
39125         * lib/sendto.c: New file, based on winsock.c.
39126         * lib/setsockopt.c: New file, based on winsock.c.
39127         * lib/shutdown.c: New file, based on winsock.c.
39128         * lib/socket.c: New file, based on winsock.c.
39129         * lib/w32sock.h: New file, based on winsock.c.
39130         * lib/winsock.c: Remove file.
39131         * modules/accept: Likewise.
39132         * modules/bind: Likewise.
39133         * modules/connect: Likewise.
39134         * modules/getpeername: Likewise.
39135         * modules/getsockname: Likewise.
39136         * modules/getsockopt: Likewise.
39137         * modules/ioctl: Likewise.
39138         * modules/listen: Likewise.
39139         * modules/recv: Likewise.
39140         * modules/recvfrom: Likewise.
39141         * modules/send: Likewise.
39142         * modules/sendto: Likewise.
39143         * modules/setsockopt: Likewise.
39144         * modules/shutdown: Likewise.
39145         * modules/socket: Use socket.c instead of winsock.c.
39146         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
39147         * doc/posix-functions/accept.texi: Doc fix.
39148         * doc/posix-functions/bind.texi: Doc fix.
39149         * doc/posix-functions/close.texi: Doc fix.
39150         * doc/posix-functions/connect.texi: Doc fix.
39151         * doc/posix-functions/getpeername.texi: Doc fix.
39152         * doc/posix-functions/getsockname.texi: Doc fix.
39153         * doc/posix-functions/getsockopt.texi: Doc fix.
39154         * doc/posix-functions/ioctl.texi: Doc fix.
39155         * doc/posix-functions/listen.texi: Doc fix.
39156         * doc/posix-functions/recv.texi: Doc fix.
39157         * doc/posix-functions/recvfrom.texi: Doc fix.
39158         * doc/posix-functions/send.texi: Doc fix.
39159         * doc/posix-functions/sendto.texi: Doc fix.
39160         * doc/posix-functions/setsockopt.texi: Doc fix.
39161         * doc/posix-functions/shutdown.texi: Doc fix.
39162         * doc/posix-functions/socket.texi: Doc fix.
39163
39164 2008-10-20  Bruno Haible  <bruno@clisp.org>
39165
39166         Take into account the role of SIGABRT_COMPAT on Windows 2008.
39167         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
39168         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
39169         as an alias for SIGABRT.
39170         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
39171         (sigaction): Map it to SIGABRT.
39172         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
39173
39174 2008-10-20  Bruno Haible  <bruno@clisp.org>
39175
39176         * lib/fts.c: Don't include lstat.h.
39177         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
39178
39179         Move the lstat() declaration to <sys/stat.h>.
39180         * lib/lstat.h: Remove file.
39181         * lib/sys_stat.in.h: Add special invocation convention.
39182         (lstat): New declaration.
39183         * lib/lstat.c (orig_lstat): New function.
39184         (rpl_lstat): Use orig_lstat instead of lstat.
39185         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
39186         AC_C_INLINE. Set REPLACE_LSTAT.
39187         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
39188         and REPLACE_LSTAT.
39189         * modules/lstat (Files): Remove lib/lstat.h.
39190         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39191         (Include): Specify <sys/stat.h> instead of lstat.h.
39192         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
39193         REPLACE_LSTAT.
39194         * NEWS: Mention the change.
39195
39196 2008-10-20  Bruno Haible  <bruno@clisp.org>
39197
39198         * modules/posix_spawn-tests: New file.
39199         * tests/test-posix_spawn3.c: New file.
39200
39201 2008-10-20  Bruno Haible  <bruno@clisp.org>
39202
39203         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
39204         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39205         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
39206         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39207         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
39208
39209 2008-10-20  Bruno Haible  <bruno@clisp.org>
39210
39211         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
39212         of posix_spawn on AIX 5.3.
39213
39214 2008-10-20  Bruno Haible  <bruno@clisp.org>
39215
39216         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
39217
39218 2008-10-20  Bruno Haible  <bruno@clisp.org>
39219
39220         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
39221         of AC_LANG_PROGRAM.
39222
39223 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39224
39225         * lib/netdb.in.h: Don't define GNU specific constants until they
39226         are supported or needed.  Reported by Bruno Haible
39227         <bruno@clisp.org>.
39228
39229 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39230
39231         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
39232
39233 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39234
39235         * lib/getaddrinfo.h: Remove file.
39236         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
39237         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
39238         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
39239         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
39240         * modules/netdb: Substitute GNULIB_GETADDRINFO.
39241         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
39242         * tests/test-getaddrinfo.c: Likewise.
39243         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
39244         * NEWS: Mention change.
39245
39246 2008-10-19  Bruno Haible  <bruno@clisp.org>
39247
39248         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
39249
39250 2008-10-19  Bruno Haible  <bruno@clisp.org>
39251
39252         * lib/wait-process.c: Include simply <sys/wait.h>.
39253         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
39254         WIFSTOPPED): Remove fallback definitions.
39255         * modules/wait-process (Depends-on): Add sys_wait.
39256
39257         New module 'sys_wait'.
39258         * modules/sys_wait: New file.
39259         * lib/sys_wait.in.h: New file, partially copied from
39260         lib/wait-process.c.
39261         * m4/sys_wait_h.m4: New file.
39262         * doc/posix-headers/sys_wait.texi: Mention the new module.
39263
39264 2008-10-19  Bruno Haible  <bruno@clisp.org>
39265
39266         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
39267
39268 2008-10-19  Bruno Haible  <bruno@clisp.org>
39269
39270         Assume that waitpid() fills an 'int' status, not a 'union wait'.
39271         * lib/wait-process.c (WAIT_T): Remove type.
39272         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
39273         (wait_subprocess): Update.
39274
39275 2008-10-19  Bruno Haible  <bruno@clisp.org>
39276
39277         New module 'atoll'.
39278         * modules/atoll: New file.
39279         * lib/stdlib.in.h (atoll): New declaration.
39280         * lib/atoll.c: New file, from glibc with modifications.
39281         * m4/atoll.m4: New file.
39282         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
39283         HAVE_ATOLL.
39284         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
39285         * doc/posix-functions/atoll.texi: Mention the new module.
39286
39287 2008-10-19  Bruno Haible  <bruno@clisp.org>
39288
39289         Add strtoull() declaration to <stdlib.h>.
39290         * lib/stdlib.in.h (strtoull): New declaration.
39291         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39292         Set HAVE_STRTOULL.
39293         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
39294         HAVE_STRTOULL.
39295         * modules/strtoull (Depends-on): Add stdlib.
39296         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39297         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
39298         HAVE_STRTOULL.
39299
39300 2008-10-19  Bruno Haible  <bruno@clisp.org>
39301
39302         Add strtoll() declaration to <stdlib.h>.
39303         * lib/stdlib.in.h (strtoll): New declaration.
39304         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39305         Set HAVE_STRTOLL.
39306         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
39307         HAVE_STRTOLL.
39308         * modules/strtoll (Depends-on): Add stdlib.
39309         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39310         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
39311
39312 2008-10-19  Bruno Haible  <bruno@clisp.org>
39313
39314         * modules/bcopy (Depends-on): Add strings.
39315         (Include): Specify <strings.h>.
39316
39317 2008-10-19  Bruno Haible  <bruno@clisp.org>
39318
39319         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
39320
39321 2008-10-19  Bruno Haible  <bruno@clisp.org>
39322
39323         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
39324         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
39325         mingw.
39326
39327 2008-10-19  Bruno Haible  <bruno@clisp.org>
39328
39329         * lib/atanl.c: Don't include isnanl.h.
39330         * lib/cosl.c: Likewise.
39331         * lib/ldexpl.c: Likewise.
39332         * lib/logl.c: Likewise.
39333         * lib/sinl.c: Likewise.
39334         * lib/sqrtl.c: Likewise.
39335         * lib/tanl.c: Likewise.
39336
39337         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
39338         * lib/isnanf.h: Remove file.
39339         * lib/isnand.h: Remove file.
39340         * lib/isnanl.h: Remove file.
39341         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
39342         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
39343         macros.
39344         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
39345         HAVE_ISNANF, don't define it as a C macro.
39346         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
39347         HAVE_ISNAND, don't define it as a C macro.
39348         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
39349         HAVE_ISNANL, don't define it as a C macro.
39350         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
39351         HAVE_ISNAN[FDL].
39352         * modules/isnanf (Files): Remove lib/isnanf.h.
39353         (Depends-on): Add math.
39354         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39355         (Include): Specify <math.h> instead of isnanf.h.
39356         * modules/isnand (Files): Remove lib/isnand.h.
39357         (Depends-on): Add math.
39358         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39359         (Include): Specify <math.h> instead of isnand.h.
39360         * modules/isnanl (Files): Remove lib/isnanl.h.
39361         (Depends-on): Add math.
39362         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39363         (Include): Specify <math.h> instead of isnanl.h.
39364         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
39365         HAVE_ISNAN[FDL].
39366         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
39367         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
39368         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
39369         * NEWS: Mention the change.
39370
39371 2008-10-18  Bruno Haible  <bruno@clisp.org>
39372
39373         Add getusershell(), setusershell(), endusershell() declarations to
39374         <unistd.h>.
39375         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
39376         declarations.
39377         * lib/getusershell.c: Include unistd.h.
39378         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
39379         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39380         HAVE_GETUSERSHELL.
39381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
39382         and HAVE_GETUSERSHELL.
39383         * modules/getusershell (Depends-on): Add unistd, extensions.
39384         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39385         (Include): Specify <unistd.h>.
39386         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
39387         HAVE_GETUSERSHELL.
39388
39389 2008-10-18  Bruno Haible  <bruno@clisp.org>
39390
39391         Add a getloadavg() declaration to <stdlib.h>.
39392         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
39393         getloadavg declaration.
39394         (getloadavg): New declaration.
39395         * lib/getloadavg.c: Include <stdlib.h> first.
39396         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
39397         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
39398         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
39399         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
39400         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39401         * modules/getloadavg (Depends-on): Add stdlib, extensions.
39402         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39403         (Include): Specify <stdlib.h>.
39404         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
39405         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39406
39407 2008-10-18  Bruno Haible  <bruno@clisp.org>
39408
39409         * lib/dirchownmod.c: Don't include lchmod.h.
39410
39411         Move the lchmod() declaration to <sys/stat.h>.
39412         * lib/lchmod.h: Remove file.
39413         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
39414         (lchmod): New declaration, moved here from lib/lchown.h.
39415         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
39416         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
39417         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
39418         and HAVE_LCHMOD.
39419         * modules/lchmod (Files): Remove lib/lchmod.h.
39420         (Depends-on): Add sys_stat, extensions.
39421         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39422         (Include): Specify <sys/stat.h> instead of lchmod.h.
39423         * modules/sys_stat (Depends-on): Add link-warning.
39424         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
39425         definition of GL_LINK_WARNING.
39426         * NEWS: Mention the change.
39427
39428 2008-10-18  Bruno Haible  <bruno@clisp.org>
39429
39430         * lib/fchdir.c: Don't include dirfd.h.
39431         * lib/fts.c: Likewise.
39432         * lib/getcwd.c: Likewise.
39433         * lib/glob.c: Likewise.
39434
39435         Move the dirfd() declaration to <dirent.h>.
39436         * lib/dirfd.h: Remove file.
39437         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
39438         (dirfd): New declaration.
39439         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
39440         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
39441         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
39442         HAVE_DECL_DIRFD.
39443         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
39444         HAVE_DECL_DIRFD.
39445         * modules/dirfd (Files): Remove lib/dirfd.h.
39446         (Depends-on): Add dirent, extensions.
39447         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
39448         (Include): Specify <dirent.h> instead of dirfd.h.
39449         * modules/dirent (Depends-on): Add link-warning.
39450         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
39451         definition of GL_LINK_WARNING.
39452         * NEWS: Mention the change.
39453
39454 2008-10-18  Bruno Haible  <bruno@clisp.org>
39455
39456         Move the euidaccess() declaration to <unistd.h>.
39457         * lib/euidaccess.h: Remove file.
39458         * lib/unistd.in.h (euidaccess): New declaration.
39459         * lib/euidaccess.c: Don't include euidaccess.h.
39460         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
39461         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
39462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
39463         and HAVE_EUIDACCESS.
39464         * modules/euidaccess (Files): Remove lib/euidaccess.h.
39465         (Depends-on): Add unistd.
39466         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39467         (Include): Specify <unistd.h> instead of euidaccess.h.
39468         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
39469         HAVE_EUIDACCESS.
39470         * NEWS: Mention the change.
39471
39472 2008-10-18  Bruno Haible  <bruno@clisp.org>
39473
39474         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
39475
39476         Move the getdomainname() declaration to <unistd.h>.
39477         * lib/getdomainname.h: Remove file.
39478         * lib/unistd.in.h (getdomainname): New declaration.
39479         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
39480         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
39481         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39482         HAVE_GETDOMAINNAME.
39483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39484         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
39485         * modules/getdomainname (Files): Remove lib/getdomainname.h.
39486         (Depends-on): Add unistd, extensions.
39487         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39488         (Includes): Specify <unistd.h> instead of getdomainname.h.
39489         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
39490         HAVE_GETDOMAINNAME.
39491         * NEWS: Mention the change.
39492
39493 2008-10-18  Bruno Haible  <bruno@clisp.org>
39494
39495         * modules/dirent: New file.
39496         * m4/dirent_h.m4: New file.
39497         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
39498         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
39499         * modules/fchdir (Files): Remove lib/dirent.in.h.
39500         (Depends-on): Add dirent.
39501         (Makefile.am): Move rules to modules/dirent.
39502         * doc/posix-headers/dirent.texi: Mention the new module.
39503
39504 2008-10-18  Bruno Haible  <bruno@clisp.org>
39505
39506         Avoid -Wunused-parameter warnings in public gnulib header files.
39507         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
39508         macro.
39509         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
39510
39511 2008-10-18  Bruno Haible  <bruno@clisp.org>
39512
39513         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
39514         * doc/glibc-functions/error.texi: Mention the module 'error'.
39515         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
39516         * doc/glibc-functions/getdomainname.texi: Mention the module
39517         'getdomainname'.
39518         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
39519         * doc/glibc-functions/getpagesize.texi: Mention the module
39520         'getpagesize'.
39521         * doc/glibc-functions/getusershell.texi: Mention the module
39522         'getusershell'.
39523         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
39524         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
39525         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
39526         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
39527         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
39528         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
39529         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
39530         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
39531         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
39532         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
39533         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
39534         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
39535         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
39536         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
39537
39538 2008-10-17  Bruno Haible  <bruno@clisp.org>
39539
39540         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
39541         HP-UX and IRIX, use -0.0L.
39542         * tests/test-ceill.c (minus_zero): Likewise.
39543         * tests/test-floorl.c (minus_zero): Likewise.
39544         * tests/test-frexpl.c (minus_zero): Likewise.
39545         * tests/test-isnan.c (minus_zerol): Likewise.
39546         * tests/test-isnanl.h (minus_zero): Likewise.
39547         * tests/test-ldexpl.c (minus_zero): Likewise.
39548         * tests/test-roundl.c (minus_zero): Likewise.
39549         * tests/test-signbit.c (minus_zerol): Likewise.
39550         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39551         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39552         * tests/test-truncl.c (minus_zero): Likewise.
39553         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39554         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39555         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
39556         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39557
39558 2008-10-17  Bruno Haible  <bruno@clisp.org>
39559
39560         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
39561         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
39562         that it gets activated only for gcc >= 3.0.
39563         * lib/dirent.in.h: Likewise.
39564         * lib/errno.in.h: Likewise.
39565         * lib/fcntl.in.h: Likewise.
39566         * lib/float.in.h: Likewise.
39567         * lib/iconv.in.h: Likewise.
39568         * lib/inttypes.in.h: Likewise.
39569         * lib/locale.in.h: Likewise.
39570         * lib/math.in.h: Likewise.
39571         * lib/netdb.in.h: Likewise.
39572         * lib/netinet_in.in.h: Likewise.
39573         * lib/search.in.h: Likewise.
39574         * lib/signal.in.h: Likewise.
39575         * lib/spawn.in.h: Likewise.
39576         * lib/stdarg.in.h: Likewise.
39577         * lib/stdint.in.h: Likewise.
39578         * lib/stdio.in.h: Likewise.
39579         * lib/stdlib.in.h: Likewise.
39580         * lib/string.in.h: Likewise.
39581         * lib/strings.in.h: Likewise.
39582         * lib/sys_file.in.h: Likewise.
39583         * lib/sys_ioctl.in.h: Likewise.
39584         * lib/sys_select.in.h: Likewise.
39585         * lib/sys_socket.in.h: Likewise.
39586         * lib/sys_stat.in.h: Likewise.
39587         * lib/sys_time.in.h: Likewise.
39588         * lib/sysexits.in.h: Likewise.
39589         * lib/time.in.h: Likewise.
39590         * lib/unistd.in.h: Likewise.
39591         * lib/wchar.in.h: Likewise.
39592         * lib/wctype.in.h: Likewise.
39593         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39594
39595 2008-10-17  Jim Meyering  <meyering@redhat.com>
39596
39597         ignore-value: don't depend on inline module
39598         * modules/ignore-value (Depends-on): Remove 'inline'.
39599         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
39600         Suggestion from Bruno Haible.
39601
39602 2008-10-17  Bruno Haible  <bruno@clisp.org>
39603
39604         New implementation of condition variables for Win32.
39605         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
39606         (gl_linked_waitqueue_t): New type.
39607         (gl_cond_t): Use it.
39608         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
39609         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
39610         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
39611         (glthread_cond_init_func, glthread_cond_wait_func,
39612         glthread_cond_timedwait_func, glthread_cond_signal_func,
39613         glthread_cond_broadcast_func, glthread_cond_destroy_func):
39614         Reimplemented on the basis of gl_linked_waitqueue_t.
39615         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
39616         gl_waitqueue_t.
39617         (gl_rwlock_t): Update.
39618         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
39619
39620 2008-10-17  Simon Josefsson  <simon@josefsson.org>
39621
39622         * modules/recvfrom (Depends-on): Add dependency on getpeername.
39623         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39624
39625 2008-10-17  Jim Meyering  <meyering@redhat.com>
39626
39627         ignore-value: new module
39628         * modules/ignore-value: New file.
39629         * lib/ignore-value.h: New file.
39630         * MODULES.html.sh (Compiler warning management): New section,
39631         just for this module.  More to come.
39632
39633 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39634
39635         open-safer.c: avoid 'signed and unsigned in conditional...' warning
39636         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
39637         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
39638
39639 2008-10-16  Jim Meyering  <meyering@redhat.com>
39640
39641         openat-die.c: avoid 'no previous prototype' warning
39642         * lib/openat-die.c: Include "openat.h".
39643         Reported by Reuben Thomas <rrt@sc3d.org>.
39644
39645 2008-10-16  Simon Josefsson  <simon@josefsson.org>
39646
39647         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
39648         * lib/netdb.in.h: Fix typo.
39649         Reported by Bruno Haible  <bruno@clisp.org>
39650
39651         * lib/netdb.in.h: Include sys/socket.h for platforms without
39652         netdb.h, to get structures like hostent on MinGW.
39653         * modules/netdb (Depends-on): Add sys_socket.
39654
39655 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39656
39657         * modules/netdb, modules/netdb-tests: New file.
39658         * m4/netdb_h.m4: New file.
39659         * lib/netdb.in.h: Add, currently just an empty file pending
39660         definitions.
39661         * tests/test-netdb.c: New file.
39662         * doc/posix-headers/netdb.texi: Mention that we replace it if
39663         needed.
39664         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39665         netdb.
39666
39667 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39668
39669         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
39670         with code.
39671
39672 2008-10-13  Bruno Haible  <bruno@clisp.org>
39673
39674         * lib/glthread/cond.c (glthread_cond_wait_func,
39675         glthread_cond_timedwait_func): Add a comment.
39676
39677 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39678
39679         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
39680         * tests/test-select.c: Likewise,
39681
39682 2008-10-13  Bruno Haible  <bruno@clisp.org>
39683
39684         * lib/glthread/cond.c (glthread_cond_wait_func,
39685         glthread_cond_timedwait_func): Fix variable name.
39686         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39687
39688 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
39689
39690         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
39691         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
39692         struct sockaddr.sa_len.
39693         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
39694
39695 2008-10-13  Simon Josefsson  <simon@josefsson.org>
39696
39697         * build-aux/pmccabe2html: Add css and css_url parameters.
39698
39699 2008-10-12  Bruno Haible  <bruno@clisp.org>
39700
39701         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
39702         calling aclx_get.
39703         Reported by Rainer Tammer <tammer@tammer.net>.
39704
39705 2008-10-12  Bruno Haible  <bruno@clisp.org>
39706
39707         Use msvcrt aware primitives for creation/termination of Win32 threads.
39708         * lib/glthread/thread.c: Include <process.h>.
39709         (glthread_create_func): Use _beginthreadex instead of CreateThread.
39710         (wrapper_func): Update signature.
39711         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
39712
39713 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39714             Bruno Haible  <bruno@clisp.org>
39715
39716         Provide a Win32 implementation of the 'cond' module.
39717         * lib/glthread/cond.h [USE_WIN32]: New implementation.
39718         * lib/glthread/cond.c (glthread_cond_init_func,
39719         glthread_cond_wait_func, glthread_cond_timedwait_func,
39720         glthread_cond_signal_func, glthread_cond_broadcast_func,
39721         glthread_cond_destroy_func) [USE_WIN32]: New functions.
39722         * modules/cond (Dependencies): Add gettimeofday.
39723
39724 2008-10-11  Bruno Haible  <bruno@clisp.org>
39725
39726         Make sleep work on older versions of mingw.
39727         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
39728         only whether it exists.
39729         * doc/posix-functions/sleep.texi: Mention the problem with older
39730         versions of mingw.
39731
39732 2008-10-11  Bruno Haible  <bruno@clisp.org>
39733
39734         New module 'shutdown'.
39735         * modules/shutdown: New file.
39736         * lib/sys_socket.in.h (shutdown): New declaration.
39737         * lib/winsock.c (shutdown): New function.
39738         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
39739         GNULIB_SHUTDOWN.
39740         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
39741         * doc/posix-functions/shutdown.texi: Document the new module.
39742
39743 2008-10-11  Jim Meyering  <meyering@redhat.com>
39744
39745         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
39746
39747 2008-10-11  Bruno Haible  <bruno@clisp.org>
39748
39749         New module 'fclose'.
39750         * modules/fclose: New file.
39751         * lib/stdio.in.h (fclose): New declaration.
39752         * lib/fclose.c: New file.
39753         * m4/fclose.m4: New file.
39754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
39755         REPLACE_FCLOSE.
39756         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
39757         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
39758         REPLACE_FCLOSE.
39759         * modules/close (Depends-on): fclose.
39760         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
39761
39762 2008-10-11  Bruno Haible  <bruno@clisp.org>
39763
39764         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
39765         set errno and don't call _close.
39766
39767 2008-10-10  Bruno Haible  <bruno@clisp.org>
39768
39769         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
39770         ACL, not afterwards. Fixes test failure on Cygwin.
39771
39772 2008-10-09  Ben Pfaff  <blp@gnu.org>
39773
39774         * build-aux/announce-gen: Fix gnulib version related part of usage
39775         message.  Die with a useful error message if no tarballs are
39776         found.
39777
39778 2008-10-10  Jim Meyering  <meyering@redhat.com>
39779
39780         bootstrap: use git's --depth=N option only if it's supported
39781         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
39782         recognize the --depth option.  Reported by Pádraig Brady.
39783
39784 2008-10-09  Bruno Haible  <bruno@clisp.org>
39785
39786         New module 'ioctl'.
39787         * modules/ioctl: New file.
39788         * lib/sys_socket.in.h (ioctl): Remove declaration.
39789         * lib/winsock.c: Include <sys/ioctl.h>.
39790         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
39791         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
39792         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
39793         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
39794         * doc/posix-functions/ioctl.texi: Mention the new module.
39795
39796 2008-10-09  Bruno Haible  <bruno@clisp.org>
39797
39798         New module 'sys_ioctl'.
39799         * lib/sys_ioctl.in.h: New file.
39800         * m4/sys_ioctl_h.m4: New file.
39801         * modules/sys_ioctl: New file.
39802         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
39803
39804 2008-10-09  Bruno Haible  <bruno@clisp.org>
39805
39806         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
39807         * lib/winsock.c: Include <stdarg.h>.
39808         (rpl_ioctl): Change to second argument 'int' and then varargs.
39809
39810 2008-10-09  Bruno Haible  <bruno@clisp.org>
39811
39812         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
39813         when the sys_socket module is present and the system has <winsock2.h>.
39814
39815 2008-10-09  Bruno Haible  <bruno@clisp.org>
39816
39817         * doc/posix-functions/close.texi: Mention module 'close' instead of
39818         module 'sys_socket'.
39819
39820 2008-10-09  Bruno Haible  <bruno@clisp.org>
39821
39822         * doc/glibc-headers/sys_ioctl.texi: New file.
39823         * doc/gnulib.texi: Include it.
39824
39825 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39826             Bruno Haible  <bruno@clisp.org>
39827
39828         Combine the two replacements of 'close'.
39829         * lib/sys_socket.in.h (close): Define to a reminder to include
39830         <unistd.h>.
39831         (_gl_close_fd_maybe_socket): New declaration.
39832         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
39833         * lib/winsock.c (close): Remove undefinition.
39834         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
39835         needed for the gnulib module 'close'.
39836         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
39837         define to an error symbol or to a warning, if suitable.
39838         * lib/close.c: Include <sys/socket.h>.
39839         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
39840         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
39841         UNISTD_H_HAVE_WINSOCK2_H.
39842         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
39843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39844         UNISTD_H_HAVE_WINSOCK2_H.
39845         * modules/sys_socket (Files): Add m4/unistd_h.m4.
39846         (configure.ac): Set a module indicator.
39847         (Makefile.am): Substitute GNULIB_CLOSE.
39848         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
39849         * modules/poll-tests (Depends-on): Add close.
39850         * modules/select-tests (Depends-on): Likewise.
39851
39852 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39853             Bruno Haible  <bruno@clisp.org>
39854
39855         New module 'close'.
39856         * modules/close: New file.
39857         * lib/unistd.in.h (close): Move declaration out of the
39858         FCHDIR_REPLACEMENT scope.
39859         (_gl_unregister_fd): New declaration.
39860         * lib/close.c: New file.
39861         * lib/fchdir.c (rpl_close): Remove function.
39862         * m4/close.m4: New file.
39863         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
39864         close.
39865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
39866         REPLACE_CLOSE.
39867         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
39868         REPLACE_CLOSE.
39869         * modules/fchdir (Depends-on): Add close.
39870
39871 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39872             Bruno Haible  <bruno@clisp.org>
39873
39874         * lib/fcntl.in.h (open): Simplify conditionals.
39875         (_gl_register_fd): New declaration.
39876         * lib/fchdir.c (rpl_open): Remove function.
39877         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
39878         also.
39879         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
39880         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
39881         open.
39882
39883 2008-10-09  Jim Meyering  <meyering@redhat.com>
39884
39885         GNUmakefile: use the more name-space-friendly "_version"
39886         * top/GNUmakefile (_dummy): Update.
39887         (_version): Rename from "version".
39888
39889 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39890             Bruno Haible  <bruno@clisp.org>
39891
39892         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
39893         rpl_close.
39894         (_gl_register_fd): New function, extracted from rpl_open.
39895         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
39896         (rpl_open, rpl_opendir): Use _gl_register_fd.
39897
39898 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39899
39900         Fix organization of 'open' replacement.
39901         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
39902         (gl_FUNC_OPEN): Use it.
39903         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
39904
39905 2008-10-08  Bruno Haible  <bruno@clisp.org>
39906
39907         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
39908
39909 2008-10-08  Simon Josefsson  <simon@josefsson.org>
39910
39911         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
39912         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
39913         listen).
39914
39915 2008-10-08  Eric Blake  <ebb9@byu.net>
39916
39917         GNUmakefile: add 'make version' target
39918         * top/GNUmakefile (_curr-ver): Split version update rules...
39919         (version): ...into a target.
39920
39921 2008-10-07  Bruno Haible  <bruno@clisp.org>
39922
39923         Use a more portable replacement expression for -0.0L.
39924         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
39925         instead of -0.0L. Fix m4 quotation.
39926
39927         * tests/test-signbit.c: Include <float.h>.
39928         (minus_zero): New variable.
39929         (test_signbitl): Use minus_zero instead of -zero.
39930         * modules/signbit-tests (Depends-on): Add float.
39931
39932         * tests/test-ceill.c: Include <float.h>.
39933         (zero): Remove variable.
39934         (minus_zero): New variable.
39935         (main): Use minus_zero instead of -zero.
39936         * modules/ceill-tests (Depends-on): Add float.
39937
39938         * tests/test-floorl.c: Include <float.h>.
39939         (zero): Remove variable.
39940         (minus_zero): New variable.
39941         (main): Use minus_zero instead of -zero.
39942         * modules/floorl-tests (Depends-on): Add float.
39943
39944         * tests/test-roundl.c: Include <float.h>.
39945         (zero): Remove variable.
39946         (minus_zero): New variable.
39947         (main): Use minus_zero instead of -zero.
39948         * modules/roundl-tests (Depends-on): Add float.
39949
39950         * tests/test-truncl.c: Include <float.h>.
39951         (zero): Remove variable.
39952         (minus_zero): New variable.
39953         (main): Use minus_zero instead of -zero.
39954         * modules/truncl-tests (Depends-on): Add float.
39955
39956         * tests/test-frexpl.c (zero): Remove variable.
39957         (minus_zero): New variable.
39958         (main): Use minus_zero instead of -zero.
39959         * modules/frexpl-tests (Depends-on): Add float.
39960
39961         * tests/test-isnan.c (zerol): Remove variable.
39962         (minus_zerol): New variable.
39963         (test_long_double): Use minus_zerol instead of -zerol.
39964         * modules/isnan-tests (Depends-on): Add float.
39965
39966         * tests/test-isnanl.h (zero): Remove variable.
39967         (minus_zero): New variable.
39968         (main): Use minus_zero instead of -zero.
39969         * modules/isnanl-nolibm-tests (Depends-on): Add float.
39970         * modules/isnanl-tests (Depends-on): Add float.
39971
39972         * tests/test-ldexpl.c (zero): Remove variable.
39973         (minus_zero): New variable.
39974         (main): Use minus_zero instead of -zero.
39975         * modules/ldexpl-tests (Depends-on): Add float.
39976
39977         * tests/test-snprintf-posix.h (zerol): Remove variable.
39978         (minus_zerol): New variable.
39979         (test_function): Use minus_zerol instead of -zerol.
39980         * modules/snprintf-posix-tests (Depends-on): Add float.
39981         * modules/vsnprintf-posix-tests (Depends-on): Add float.
39982
39983         * tests/test-sprintf-posix.h (zerol): Remove variable.
39984         (minus_zerol): New variable.
39985         (test_function): Use minus_zerol instead of -zerol.
39986         * modules/sprintf-posix-tests (Depends-on): Add float.
39987         * modules/vsprintf-posix-tests (Depends-on): Add float.
39988
39989         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
39990         (minus_zerol): New variable.
39991         (test_function): Use minus_zerol instead of -zerol.
39992         * modules/vasnprintf-posix-tests (Depends-on): Add float.
39993
39994         * tests/test-vasprintf-posix.c (zerol): Remove variable.
39995         (minus_zerol): New variable.
39996         (test_function): Use minus_zerol instead of -zerol.
39997         * modules/vasprintf-posix-tests (Depends-on): Add float.
39998
39999 2008-10-07  Simon Josefsson  <simon@josefsson.org>
40000
40001         * MODULES.html.sh (Support for building documentation): Mention
40002         pmccabe2html.  Sort entries.
40003
40004         Add pmccabe2html module, from gnupdf.
40005         * build-aux/pmccabe.css: New file.
40006         * build-aux/pmccabe2html: New file.
40007         * m4/pmccabe2html.m4: New file.
40008         * modules/pmccabe2html: New file.
40009
40010 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
40011
40012         flock: new module
40013         * MODULES.html.sh: Add to list of modules.
40014         * lib/flock.c: flock implementation for Windows and Unix systems
40015         which have fcntl.
40016         * doc/glibc-functions/flock.texi: Update documentation.
40017         * lib/sys_file.in.h: <sys/file.h> header file.
40018         * m4/flock.m4: M4 macros.
40019         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
40020         * modules/flock: flock module.
40021         * modules/flock-tests: flock tests module.
40022         * modules/sys_file: sys/file.h module.
40023         * tests/test-flock.c: test suite for flock.
40024
40025 2008-10-06  Jim Meyering  <meyering@redhat.com>
40026
40027         bootstrap: check for LT_INIT more portably still ;-)
40028         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
40029         Spotted by Bruno Haible.
40030
40031 2008-10-06  Eric Blake  <ebb9@byu.net>
40032
40033         test-signbit: avoid tripping Irix cc bug on -0.0L
40034         * tests/test-signbit.c (minus_zerol): Delete, and replace with
40035         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
40036         entire testsuite consistent and avoids an Irix 6.2 bug.
40037
40038 2008-10-05  Bruno Haible  <bruno@clisp.org>
40039             Jim Meyering  <jim@meyering.net>
40040
40041         Add an option for ignoring EPIPE during close_stdout.
40042         * lib/closeout.h: Include <stdbool.h>.
40043         (close_stdout_set_ignore_EPIPE): New declaration.
40044         * lib/closeout.c: Include <stdbool.h>.
40045         (ignore_EPIPE): New variable.
40046         (close_stdout_set_ignore_EPIPE): New function.
40047         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
40048         * lib/close-stream.c (close_stream): Mention the possible EPIPE
40049         failure.
40050         * modules/closeout (Depends-on): Add stdbool.
40051
40052 2008-10-05  Bruno Haible  <bruno@clisp.org>
40053
40054         * modules/accept: New file.
40055         * modules/bind: New file.
40056         * modules/connect: New file.
40057         * modules/getpeername: New file.
40058         * modules/getsockname: New file.
40059         * modules/getsockopt: New file.
40060         * modules/listen: New file.
40061         * modules/recv: New file.
40062         * modules/recvfrom: New file.
40063         * modules/send: New file.
40064         * modules/sendto: New file.
40065         * modules/setsockopt: New file.
40066         * modules/socket: New file.
40067         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
40068         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
40069         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
40070         the particular module is requested. Add a link warning when the
40071         particular module is not requested.
40072         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
40073         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
40074         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
40075         the particular module is requested.
40076         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
40077         gl_SYS_SOCKET_H_DEFAULTS): New macros.
40078         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
40079         * modules/sys_socket (Depends-on): Add link-warning.
40080         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
40081         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
40082         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
40083         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
40084         GL_LINK_WARNING.
40085         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
40086         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
40087         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
40088         * doc/posix-functions/getpeername.texi: Mention the new module
40089         'getpeername'.
40090         * doc/posix-functions/getsockname.texi: Mention the new module
40091         'getsockname'.
40092         * doc/posix-functions/getsockopt.texi: Mention the new module
40093         'getsockopt'.
40094         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
40095         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
40096         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
40097         * doc/posix-functions/send.texi: Mention the new module 'send'.
40098         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
40099         * doc/posix-functions/setsockopt.texi: Mention the new module
40100         'setsockopt'.
40101         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
40102         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
40103         listen, connect, accept.
40104         * modules/select-tests (Depends-on): Likewise.
40105
40106 2008-10-05  Bruno Haible  <bruno@clisp.org>
40107
40108         * lib/winsock.c (strerror): Remove unused #undef.
40109         (rpl_close): Remove unused local variable.
40110
40111         * modules/sys_socket (Depends-on); Add errno.
40112
40113 2008-10-05  Bruno Haible  <bruno@clisp.org>
40114
40115         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
40116         (select): Add a link warning when the 'select' module is not used.
40117         * modules/sys_select (Depends-on): Add link-warning.
40118         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
40119         Suggested by Paolo Bonzini.
40120
40121 2008-10-05  Jim Meyering  <meyering@redhat.com>
40122
40123         bootstrap: check for LT_INIT more portably
40124         * build-aux/bootstrap: Avoid using grep -E, since it's not
40125         portable enough.  Suggestion from Bruno Haible.
40126
40127 2008-10-05  Bruno Haible  <bruno@clisp.org>
40128
40129         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
40130         as being fixed by gnulib.
40131
40132 2008-10-05  Bruno Haible  <bruno@clisp.org>
40133
40134         * modules/select-tests: New file, mostly copied from
40135         modules/sys_select-tests.
40136         * tests/test-select.c: New file, mostly copied from
40137         tests/test-sys_select.c.
40138         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
40139         * modules/sys_select-tests (Depends-on): Remove all dependencies.
40140         (Makefile.am): Remove test_sys_select_LDADD.
40141
40142         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
40143         to an undefined symbol, for an error message.
40144         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
40145         (gl_SYS_SELECT_H_DEFAULTS): New macro.
40146         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
40147         winsock-select.c here.
40148         * modules/sys_select (Files): Remove lib/winsock-select.c.
40149         (Depends-on): Remove alloca.
40150         (Makefile.am): Substitute GNULIB_SELECT.
40151         * modules/select: New file.
40152         * doc/posix-functions/select.texi: Update.
40153
40154 2008-10-05  Bruno Haible  <bruno@clisp.org>
40155
40156         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
40157         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
40158         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
40159         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
40160         getdtablesize.
40161         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40162         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40163
40164 2008-10-05  Bruno Haible  <bruno@clisp.org>
40165
40166         * modules/getdtablesize-tests: New file.
40167         * tests/test-getdtablesize.c: New file.
40168
40169         New module 'getdtablesize'.
40170         * lib/unistd.in.h (getdtablesize): New declaration.
40171         * lib/getdtablesize.c: New file.
40172         * m4/getdtablesize.m4: New file.
40173         * modules/getdtablesize: New file.
40174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40175         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
40176         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
40177         HAVE_GETDTABLESIZE.
40178         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
40179
40180 2008-10-05  Bruno Haible  <bruno@clisp.org>
40181
40182         * modules/sched (Makefile.am): Fix typo.
40183         Reported by Simon Josefsson.
40184
40185 2008-10-05  Jim Meyering  <meyering@redhat.com>
40186
40187         bootstrap: check for LT_INIT, too
40188         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
40189         are deprecated.  Suggestion from Ralf Wildenhues.
40190
40191 2008-10-05  Bruno Haible  <bruno@clisp.org>
40192
40193         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
40194         overriding them by ours.
40195         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
40196
40197 2008-10-05  Jim Meyering  <meyering@redhat.com>
40198
40199         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
40200         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
40201         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
40202
40203 2008-10-04  Bruno Haible  <bruno@clisp.org>
40204
40205         * modules/dup2 (License): Change to LGPLv2+.
40206         * modules/sleep (License): Likewise.
40207         * modules/perror (License): Likewise.
40208         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
40209         Blake.
40210         * modules/signal (License): Likewise.
40211         * modules/sigprocmask (License): Likewise.
40212         * modules/raise (License): Change to LGPLv2+, with approval by Jim
40213         Meyering.
40214
40215 2008-10-04  Bruno Haible  <bruno@clisp.org>
40216
40217         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
40218         Reported by Rainer Tammer <tammer@tammer.net>.
40219
40220 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
40221             Bruno Haible  <bruno@clisp.org>
40222
40223         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
40224         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
40225         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
40226
40227 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
40228
40229         filevercmp: new module
40230         * lib/filevercmp.h: New function filevercmp comparing version strings.
40231         * lib/filevercmp.c: Implementation of filevercmp function.
40232         * modules/filevercmp: Module metadata.
40233         * tests/test-filevercmp.c: Unit test for new module.
40234         * modules/filevercmp-tests: Unit test metadata.
40235         * MODULES.html.sh: Add filevercmp module.
40236
40237 2008-10-03  Bruno Haible  <bruno@clisp.org>
40238
40239         * lib/c-ctype.h: Add comment.
40240         Reported by Jim Meyering.
40241
40242 2008-10-02  Bruno Haible  <bruno@clisp.org>
40243
40244         * modules/posix_spawn-internal (Depends-on): Add 'open'.
40245
40246 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40247
40248         * build-aux/bootstrap: Allow renaming bootstrap, and change the
40249         name of bootstrap.conf accordingly.
40250
40251 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40252
40253         * build-aux/bootstrap: Install git-merge-changelog configuration
40254         items into .gitconfig if needed.
40255
40256 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40257
40258         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
40259         git repository, and initialize/update it accordingly.
40260
40261 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
40262
40263         * modules/fsync-tests: New file.
40264         * tests/test-fsync.c: New file.
40265
40266         New module 'fsync'.
40267         * lib/fsync.c: New file.
40268         * m4/fsync.m4: New file.
40269         * modules/fsync: New file.
40270         * lib/unistd.in.h (fsync): New declaration.
40271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
40272         GNULIB_FSYNC and HAVE_FSYNC.
40273         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
40274         * MODULES.html.sh (posix_functions): Add fsync.
40275         * doc/posix-functions/fsync.texi: Mention the new module.
40276
40277 2008-10-02  Jim Meyering  <meyering@redhat.com>
40278
40279         fts.c: sync with similar code from coreutils' remove.c
40280         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
40281         Guard also with "#if defined __linux__", since for now at least,
40282         this code is Linux-kernel-specific.
40283
40284 2008-10-02  Jim Meyering  <meyering@redhat.com>
40285
40286         fts: bug fixes
40287         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
40288         Include <sys/vfs.h>, not <sys/statfs.h>.
40289
40290         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
40291         Include <sys/vfs.h>, not <sys/statfs.h>.
40292
40293 2008-10-01  Bruno Haible  <bruno@clisp.org>
40294
40295         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
40296         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
40297         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
40298         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
40299         * doc/posix-functions/posix_spawnp.texi: Likewise.
40300         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
40301         whether posix_spawn actually works.
40302         * m4/pipe.m4 (gl_PIPE): Likewise.
40303         * modules/execute (Files): Add m4/posix_spawn.m4.
40304         * modules/pipe (Files): Add m4/posix_spawn.m4.
40305         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
40306
40307 2008-10-01  Jim Meyering  <meyering@redhat.com>
40308
40309         remove trailing spaces
40310         * NEWS: Likewise.
40311         * lib/poll.c (poll): Likewise.
40312         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
40313         * lib/winsock.c (rpl_close): Likewise.
40314         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
40315         * modules/yield: Likewise.
40316         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
40317         * tests/test-sys_select.c (connect_to_socket): Likewise.
40318
40319         fts.c: adjust a new interface to be more generally useful
40320         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
40321         (fts_build): Adjust caller.
40322
40323 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40324
40325         * modules/cond-tests: New file.
40326         * tests/test-cond.c: New file.
40327
40328 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40329             Bruno Haible  <bruno@clisp.org>
40330
40331         * modules/cond (Dependencies): Add errno, time.
40332         * lib/glthread/cond.h: Include <time.h>.
40333         (gl_cond_define, gl_cond_define_initialized): Use the same definition
40334         across platforms.
40335
40336 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40337             Bruno Haible  <bruno@clisp.org>
40338
40339         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
40340
40341 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40342             Bruno Haible  <bruno@clisp.org>
40343
40344         * modules/tls-tests (Depends-on): Add thread, yield.
40345         (configure.ac): Remove all checks.
40346         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
40347         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40348         gl_thread_self): Remove definitions. Include glthread/thread.h and
40349         glthread/yield.h instead.
40350         (test_tls): Pass an additional NULL argument to gl_thread_join.
40351
40352 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40353             Bruno Haible  <bruno@clisp.org>
40354
40355         * modules/lock-tests (Depends-on): Add thread, yield.
40356         (configure.ac): Remove all checks.
40357         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
40358         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40359         gl_thread_self): Remove definitions. Include glthread/thread.h and
40360         glthread/yield.h instead.
40361         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
40362         additional NULL argument to gl_thread_join.
40363
40364 2008-09-30  Bruno Haible  <bruno@clisp.org>
40365
40366         Fix the Win32 implementation of the 'thread' module.
40367         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
40368         pointer type.
40369         (gl_thread_self): Invoke gl_thread_self_func.
40370         (gl_thread_self_func): New declaration.
40371         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
40372         (do_init_self_key, init_self_key): New functions.
40373         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
40374         Remove some fields.
40375         (running_threads, running_lock): Remove variables.
40376         (get_current_thread_handle): New function.
40377         (gl_thread_self_func, wrapper_func, glthread_create_func,
40378         glthread_join_func, gl_thread_exit_func): Largely rewritten and
40379         simplified.
40380
40381 2008-09-30  Bruno Haible  <bruno@clisp.org>
40382
40383         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
40384         files.
40385
40386 2008-09-30  Jim Meyering  <meyering@redhat.com>
40387
40388         fts.m4: correct the test for statfs.f_type
40389         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
40390         when checking for statfs.f_type.
40391
40392 2008-09-15  Simon Josefsson  <simon@josefsson.org>
40393
40394         tests: avoid some compiler warnings
40395         * tests/test-memchr.c (main): Pass NULL indirectly.
40396         * tests/test-getdate.c (main): Remove unused variable 'ret'.
40397
40398 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
40399
40400         getdate.y: disallow countable dayshifts like "4 yesterday ago"
40401         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
40402         exactly specified dayshifts.
40403         (dayshift): New rule.
40404         (rel): Add dayshift.
40405         (relative_time_table) [tomorrow, yesterday, today, now]:
40406         Use tDAY_SHIFT in place of tDAY_UNIT.
40407         * tests/test-getdate.c: Add tests for now-disallowed countable
40408         dayshifts, e.g., "4 yesterday ago".
40409
40410 2008-09-29  Bruno Haible  <bruno@clisp.org>
40411
40412         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
40413         * tests/test-posix_spawn1.in.sh: Renamed from
40414         tests/test-posix_spawn.in.sh.
40415         * tests/test-posix_spawn2.c: New file.
40416         * tests/test-posix_spawn2.in.sh: New file.
40417         * modules/posix_spawnp-tests (Files): Update.
40418         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
40419
40420 2008-09-29  Bruno Haible  <bruno@clisp.org>
40421
40422         Propagate effects of putenv/setenv/unsetenv to child processes.
40423         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
40424         * lib/pipe.c (create_pipe): Likewise.
40425
40426 2008-09-29  Bruno Haible  <bruno@clisp.org>
40427
40428         Enable use of shell scripts as executables in mingw.
40429         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
40430         run the program as a shell script.
40431         * lib/pipe.c (create_pipe): Likewise.
40432         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
40433         resulting array.
40434
40435 2008-09-29  Eric Blake  <ebb9@byu.net>
40436
40437         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
40438
40439 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
40440
40441         * doc/posix-functions/accept.texi: Update mingw problems.
40442         * doc/posix-functions/bind.texi: Update mingw problems.
40443         * doc/posix-functions/close.texi: Update mingw problems.
40444         * doc/posix-functions/connect.texi: Update mingw problems.
40445         * doc/posix-functions/getpeername.texi: Update mingw problems.
40446         * doc/posix-functions/getsockname.texi: Update mingw problems.
40447         * doc/posix-functions/getsockopt.texi: Update mingw problems.
40448         * doc/posix-functions/ioctl.texi: Update mingw problems.
40449         * doc/posix-functions/listen.texi: Update mingw problems.
40450         * doc/posix-functions/recv.texi: Update mingw problems.
40451         * doc/posix-functions/recvfrom.texi: Update mingw problems.
40452         * doc/posix-functions/select.texi: Update mingw problems.
40453         * doc/posix-functions/send.texi: Update mingw problems.
40454         * doc/posix-functions/sendto.texi: Update mingw problems.
40455         * doc/posix-functions/setsockopt.texi: Update mingw problems.
40456         * doc/posix-functions/socket.texi: Update mingw problems.
40457
40458 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
40459             Bruno Haible  <bruno@clisp.org>
40460
40461         * lib/sys_select.in.h: Include sys/time.h.
40462         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
40463         * modules/sys_select: Depend on sys_time.
40464         * tests/test-sys_select.c: Test that sys/select.h defines struct
40465         timeval fully.
40466
40467 2008-09-29  Bruno Haible  <bruno@clisp.org>
40468
40469         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
40470         * lib/sys_select.in.h: Likewise.
40471
40472 2008-09-29  Bruno Haible  <bruno@clisp.org>
40473
40474         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
40475
40476 2008-09-29  Bruno Haible  <bruno@clisp.org>
40477
40478         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
40479         Set LIBSOCKET instead of augmenting LIBS.
40480         * modules/sockets (Link): New section.
40481         * modules/sockets-tests (test_sockets_LDADD): New variable.
40482         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
40483         * modules/poll-tests (test_poll_LDADD): New variable.
40484         * NEWS: Document the change.
40485
40486 2008-09-29  Bruno Haible  <bruno@clisp.org>
40487
40488         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
40489         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
40490         ARPA_INET_H directly.
40491         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40492
40493 2008-09-28  Bruno Haible  <bruno@clisp.org>
40494
40495         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
40496         from gl_HEADER_SYS_SOCKET.
40497         (gl_HEADER_SYS_SOCKET): Invoke it.
40498         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40499
40500 2008-09-28  Bruno Haible  <bruno@clisp.org>
40501
40502         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
40503         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
40504         Needed on OSF/1 4.0.
40505
40506 2008-09-28  Bruno Haible  <bruno@clisp.org>
40507
40508         Override open more carefully.
40509         * lib/open.c (orig_open): New function.
40510         (rpl_open): Use orig_open instead of open.
40511         * lib/fcntl.in.h: Add special invocation convention.
40512         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
40513         (gl_FUNC_OPEN): Invoke it.
40514
40515         Override freopen more carefully.
40516         * lib/freopen.c (orig_freopen): New function.
40517         (rpl_freopen): Use orig_freopen instead of freopen.
40518         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
40519         (gl_FUNC_FREOPEN): Invoke it.
40520
40521         Override fopen more carefully.
40522         * lib/fopen.c (orig_fopen): New function.
40523         (rpl_fopen): Use orig_fopen instead of fopen.
40524         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
40525         (gl_FUNC_FOPEN): Invoke it.
40526         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
40527
40528 2008-09-28  Bruno Haible  <bruno@clisp.org>
40529
40530         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
40531         SIGPIPE.
40532
40533 2008-09-28  Bruno Haible  <bruno@clisp.org>
40534
40535         * tests/test-sigaction.c (handler, main): Disable the check whether
40536         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
40537         glibc systems with LinuxThreads.
40538
40539 2008-09-28  Bruno Haible  <bruno@clisp.org>
40540
40541         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
40542
40543         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
40544         with AIX xlc.
40545         * lib/fcntl.in.h (open): Likewise.
40546         Reported by Rainer Tammer <tammer@tammer.net>.
40547
40548 2008-09-28  Bruno Haible  <bruno@clisp.org>
40549
40550         * modules/posix_spawnp-tests: New file.
40551         * tests/test-posix_spawn.c: New file.
40552         * tests/test-posix_spawn.in.sh: New file.
40553
40554         New module 'posix_spawnp'.
40555         * modules/posix_spawnp: New file.
40556         * lib/spawnp.c: New file, from GNU libc with modifications.
40557         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
40558
40559         New module 'posix_spawn'.
40560         * modules/posix_spawn: New file.
40561         * lib/spawn.c: New file, from GNU libc with modifications.
40562         * doc/posix-functions/posix_spawn.texi: Mention the new module.
40563
40564         New module 'posix_spawnattr_destroy'.
40565         * modules/posix_spawnattr_destroy: New file.
40566         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
40567         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
40568         module.
40569
40570         New module 'posix_spawnattr_setsigmask'.
40571         * modules/posix_spawnattr_setsigmask: New file.
40572         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
40573         modifications.
40574         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
40575         new module.
40576
40577         New module 'posix_spawnattr_getsigmask'.
40578         * modules/posix_spawnattr_getsigmask: New file.
40579         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
40580         modifications.
40581         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
40582         new module.
40583
40584         New module 'posix_spawnattr_setsigdefault'.
40585         * modules/posix_spawnattr_setsigdefault: New file.
40586         * lib/spawnattr_setdefault.c: New file, from GNU libc with
40587         modifications.
40588         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
40589         new module.
40590
40591         New module 'posix_spawnattr_getsigdefault'.
40592         * modules/posix_spawnattr_getsigdefault: New file.
40593         * lib/spawnattr_getdefault.c: New file, from GNU libc with
40594         modifications.
40595         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
40596         new module.
40597
40598         New module 'posix_spawnattr_setschedpolicy'.
40599         * modules/posix_spawnattr_setschedpolicy: New file.
40600         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
40601         modifications.
40602         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
40603         new module.
40604
40605         New module 'posix_spawnattr_getschedpolicy'.
40606         * modules/posix_spawnattr_getschedpolicy: New file.
40607         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
40608         modifications.
40609         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
40610         new module.
40611
40612         New module 'posix_spawnattr_setschedparam'.
40613         * modules/posix_spawnattr_setschedparam: New file.
40614         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
40615         modifications.
40616         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
40617         new module.
40618
40619         New module 'posix_spawnattr_getschedparam'.
40620         * modules/posix_spawnattr_getschedparam: New file.
40621         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
40622         modifications.
40623         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
40624         new module.
40625
40626         New module 'posix_spawnattr_setpgroup'.
40627         * modules/posix_spawnattr_setpgroup: New file.
40628         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
40629         modifications.
40630         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
40631         module.
40632
40633         New module 'posix_spawnattr_getpgroup'.
40634         * modules/posix_spawnattr_getpgroup: New file.
40635         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
40636         modifications.
40637         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
40638         module.
40639
40640         New module 'posix_spawnattr_setflags'.
40641         * modules/posix_spawnattr_setflags: New file.
40642         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
40643         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
40644         module.
40645
40646         New module 'posix_spawnattr_getflags'.
40647         * modules/posix_spawnattr_getflags: New file.
40648         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
40649         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
40650         module.
40651
40652         New module 'posix_spawnattr_init'.
40653         * modules/posix_spawnattr_init: New file.
40654         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
40655         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
40656         module.
40657
40658         New module 'posix_spawn_file_actions_destroy'.
40659         * modules/posix_spawn_file_actions_destroy: New file.
40660         * lib/spawn_faction_destroy.c: New file, from GNU libc with
40661         modifications.
40662         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
40663         the new module.
40664
40665         New module 'posix_spawn_file_actions_addopen'.
40666         * modules/posix_spawn_file_actions_addopen: New file.
40667         * lib/spawn_faction_addopen.c: New file, from GNU libc with
40668         modifications.
40669         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
40670         the new module.
40671
40672         New module 'posix_spawn_file_actions_adddup2'.
40673         * modules/posix_spawn_file_actions_adddup2: New file.
40674         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
40675         modifications.
40676         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
40677         the new module.
40678
40679         New module 'posix_spawn_file_actions_addclose'.
40680         * modules/posix_spawn_file_actions_addclose: New file.
40681         * lib/spawn_faction_addclose.c: New file, from GNU libc with
40682         modifications.
40683         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
40684         the new module.
40685
40686         New module 'posix_spawn_file_actions_init'.
40687         * modules/posix_spawn_file_actions_init: New file.
40688         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
40689         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
40690         new module.
40691
40692         New module 'posix_spawn-internal'.
40693         * modules/posix_spawn-internal: New file.
40694         * lib/spawn_int.h: New file, from GNU libc with modifications.
40695         * lib/spawni.c: New file, from GNU libc with modifications.
40696         * m4/posix_spawn.m4: New file.
40697
40698         New module 'spawn'.
40699         * modules/spawn: New file.
40700         * lib/spawn.in.h: New file, from GNU libc with modifications.
40701         * m4/spawn_h.m4: New file.
40702         * doc/posix-headers/spawn.texi: Mention the new module.
40703
40704 2008-09-28  Bruno Haible  <bruno@clisp.org>
40705
40706         * modules/sched-tests: New file.
40707         * tests/test-sched.c: New file.
40708
40709         New module 'sched'.
40710         * modules/sched: New file.
40711         * lib/sched.in.h: New file.
40712         * m4/sched_h.m4: New file.
40713         * doc/posix-headers/sched.texi: Mention the new module.
40714
40715 2008-09-27  Eric Blake  <ebb9@byu.net>
40716
40717         Fix previous patch, and tweak references to $0.
40718         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
40719         (func_version, func_gnulib_dir): Don't call this program
40720         gnulib-tool.
40721         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
40722         with using $0 in function.
40723         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
40724         (func_fatal_error): Reuse the name the user invoked us with.
40725
40726 2008-09-27  Bruno Haible  <bruno@clisp.org>
40727
40728         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
40729         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
40730         (gl_ICONV_H): Not here.
40731         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
40732         instead of assigning ICONV_H directly.
40733
40734         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
40735         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
40736         WCHAR_H directly.
40737
40738 2008-09-27  Bruno Haible  <bruno@clisp.org>
40739
40740         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
40741         * modules/arpa_inet (Depends-on): Add link-warning.
40742         (Makefile.am): Insert the definition of GL_LINK-WARNING.
40743         * modules/unistd (Makefile.am): Likewise.
40744
40745 2008-09-26  Bruno Haible  <bruno@clisp.org>
40746
40747         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
40748         variables.
40749         (func_version): Essentially copied from gnulib-tool.
40750         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
40751         func_readlink): Copied from gnulib-tool.
40752
40753 2008-09-26  Bruno Haible  <bruno@clisp.org>
40754
40755         * gnulib-tool (func_version): Change directory to $gnulib_dir before
40756         invoking git-version-gen.
40757
40758 2008-09-26  Bruno Haible  <bruno@clisp.org>
40759
40760         * posix-modules: Update to directory names changed on 2008-01-19.
40761         Remove commas in output before splitting into words. No more need to
40762         avoid 'ftruncate' since 2007-02-19.
40763
40764 2008-09-26  Bruno Haible  <bruno@clisp.org>
40765
40766         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
40767
40768 2008-09-26  Bruno Haible  <bruno@clisp.org>
40769
40770         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
40771         * modules/fwriteerror (Depends-on): Add errno.
40772
40773 2008-09-26  Bruno Haible  <bruno@clisp.org>
40774
40775         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
40776         * tests/test-vc-list-files-cvs.sh: Likewise.
40777
40778 2008-09-26  Bruno Haible  <bruno@clisp.org>
40779
40780         * doc/posix-headers/sys_resource.texi: Reorder items.
40781
40782 2008-09-26  Jim Meyering  <meyering@redhat.com>
40783
40784         fts: tweak inode comparison function
40785         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
40786         inode numbers, as documented.
40787
40788         fts: sort dirent entries on inode number before traversing
40789         This avoids a quadratic, seek-related performance penalty when
40790         operating on a directory containing many entries (measurable at 10k;
40791         3.5 hours at 2 million entries with a cold cache) on certain types
40792         of file systems, including ext3 and ext4, but not tmpfs.
40793         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
40794         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
40795         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
40796         (fs_handles_readdir_ordered_dirents_efficiently): New function.
40797         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
40798         (fts_build): Set the stat.st_ino member from D_INO.
40799         If it is likely to be useful, sort dirent entries on inode number.
40800
40801         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
40802         and the struct statfs.f_type member.
40803         * modules/fts (Depends-on): Add d-ino.
40804
40805 2008-09-26  Bruno Haible  <bruno@clisp.org>
40806
40807         * modules/sigpipe-die (Depends-on): Add sigpipe.
40808
40809         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
40810         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
40811         and GNULIB_STDIO_H_SIGPIPE are set.
40812         * lib/stdio-write.c: New file.
40813         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
40814         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40815         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40816         REPLACE_STDIO_WRITE_FUNCS.
40817         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
40818         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40819         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40820         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
40821         * modules/stdio (Files): Add lib/stdio-write.c.
40822         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
40823         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40824         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40825         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
40826         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
40827         REPLACE_FPRINTF_POSIX.
40828         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
40829         REPLACE_PRINTF_POSIX.
40830         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
40831         REPLACE_VFPRINTF_POSIX.
40832         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
40833         REPLACE_VPRINTF_POSIX.
40834         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
40835         SIGPIPE issue.
40836         * doc/posix-functions/fputc.texi: Likewise.
40837         * doc/posix-functions/fputs.texi: Likewise.
40838         * doc/posix-functions/fwrite.texi: Likewise.
40839         * doc/posix-functions/printf.texi: Likewise.
40840         * doc/posix-functions/putc.texi: Likewise.
40841         * doc/posix-functions/putchar.texi: Likewise.
40842         * doc/posix-functions/puts.texi: Likewise.
40843         * doc/posix-functions/vfprintf.texi: Likewise.
40844         * doc/posix-functions/vprintf.texi: Likewise.
40845
40846         * modules/safe-write (Depends-on): Add write.
40847
40848         * modules/sigpipe-tests: New file.
40849         * tests/test-sigpipe.c: New file.
40850         * tests/test-sigpipe.sh: New file.
40851
40852         * modules/write: New file.
40853         * lib/unistd.in.h: Include <sys/types.h>.
40854         (write): New declaration.
40855         * lib/write.c: New file.
40856         * m4/write.m4: New file.
40857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40858         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
40859         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
40860         GNULIB_WRITE, REPLACE_WRITE.
40861         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
40862         and the SIGPIPE issue.
40863
40864         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
40865         (raise): New declaration.
40866         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
40867         (ext_signal): New function.
40868         (rpl_raise): New function.
40869         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
40870         GNULIB_SIGNAL_H_SIGPIPE.
40871         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
40872         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
40873
40874         * modules/sigpipe: New file.
40875         * m4/sigpipe.m4: New file.
40876
40877 2008-09-25  Derek Price  <derek@ximbiot.com>
40878             Bruno Haible  <bruno@clisp.org>
40879
40880         * gnulib-tool (func_import): Report all license incompatibilities, not
40881         just the first one.
40882
40883 2008-09-25  Bruno Haible  <bruno@clisp.org>
40884
40885         * gnulib-tool (func_import): When computing the edits, consider not
40886         only the Makefile.ams that exist but also those that will be generated.
40887
40888 2008-09-25  Simon Josefsson  <simon@josefsson.org>
40889
40890         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
40891         fixes gnulib-tool --test warning about duplicate dependency.
40892
40893 2008-09-25  Bruno Haible  <bruno@clisp.org>
40894
40895         * gnulib-tool: Don't ask the user to perform edits in the generated
40896         Makefile.ams.
40897         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
40898         apply to the Makefile.am being generated.
40899         (func_emit_tests_Makefile_am): Execute edits that apply to the
40900         Makefile.am being generated.
40901         (func_import): Setup list of Makefile.am edits before emitting the
40902         Makefile.ams, not at the end.
40903         (func_create_testdir): Update.
40904         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40905
40906 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40907
40908         * gnulib-tool (func_import): Store the --tests-base option in the
40909         comment in gnulib-cache.m4.
40910
40911 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
40912
40913         * NEWS: Document increased portability that sys_select now provides.
40914
40915         * lib/sys_select.in.h: Install select wrapper.
40916         * lib/sys_socket.in.h: Use more descriptive name when there is no
40917         select wrapper.
40918         * lib/winsock-select.c: New.
40919         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
40920         Require gl_HEADER_SYS_SOCKET.
40921         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
40922         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
40923         * tests/test-sys_select.c: Add functional tests.
40924
40925 2008-09-24  Eric Blake  <ebb9@byu.net>
40926
40927         open, fopen: close fd leak in last patch
40928         * lib/open.c (rpl_open): Close fd before returning error.
40929         * lib/fopen.c (rpl_fopen): Close fd before returning error.
40930         * doc/posix-functions/open.texi (open): Document that Irix also
40931         has the bug.
40932         * doc/posix-functions/fopen.texi (fopen): Likewise.
40933         Reported by Paolo Bonzini.
40934
40935 2008-09-24  Bruno Haible  <bruno@clisp.org>
40936
40937         Ensure that a filename ending in a slash cannot be used to access a
40938         non-directory.
40939         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
40940         to check whether it's really a directory.
40941         * lib/fopen.c: Include fcntl.h, unistd.h.
40942         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
40943         and fdopen().
40944         * modules/fopen (Depends-on): Add unistd.
40945         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
40946         * tests/test-fopen.c (main): Likewise.
40947         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
40948         * doc/posix-functions/fopen.texi: Likewise.
40949         Reported by Eric Blake.
40950
40951 2008-09-23  Eric Blake  <ebb9@byu.net>
40952
40953         c-stack: avoid compiler optimizations when provoking overflow
40954         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
40955         recursion harder to optimize, to ensure a stack overflow occurs.
40956         * tests/test-c-stack.c (recurse): Likewise.
40957         Borrowed from libsigsegv.
40958
40959         c-stack: work around Irix sigaltstack bug
40960         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
40961         whether sigaltstack uses wrong end of stack_t (copied in part from
40962         libsigsegv).
40963         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
40964         Irix bug, without requiring an over-allocation.
40965         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
40966         bug.
40967
40968         fopen: document mingw bug on directories
40969         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
40970         not allowing a stream visiting a directory, even though reading
40971         from such a stream is not portable.
40972
40973 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40974
40975         * lib/poll.c: Rewrite.
40976         * modules/poll: Depend on alloca.
40977
40978 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40979
40980         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
40981         instead define prototypes for a full set of wrappers.  Ensure
40982         that Cygwin does not use the compatibility code, which is only
40983         for MinGW.
40984         * lib/winsock.c: New.
40985         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
40986         * modules/sys_socket: Add lib/winsock.c.
40987
40988         * modules/poll-tests: Add errno and perror.
40989         * tests/test-poll.c: Use ioctl, not ioctlsocket.
40990
40991 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40992
40993         * tests/test-poll.c: Downgrade minimum needed Winsock version.
40994
40995 2008-09-23  Bruno Haible  <bruno@clisp.org>
40996
40997         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
40998         * doc/glibc-functions/*: Likewise.
40999
41000 2008-09-23  Simon Josefsson  <simon@josefsson.org>
41001
41002         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
41003         success.
41004
41005 2008-09-22  Eric Blake  <ebb9@byu.net>
41006             Bruno Haible  <bruno@clisp.org>
41007
41008         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
41009         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
41010         supply %A but mishandle pseudo-NaN.
41011         Reported by Simon Josefsson.
41012
41013 2008-09-21  Bruno Haible  <bruno@clisp.org>
41014
41015         * tests/test-lock.c (main): Tweak skip message.
41016         * tests/test-tls.c (main): Likewise.
41017
41018 2008-09-21  Bruno Haible  <bruno@clisp.org>
41019
41020         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
41021         whether 'struct sigaction' has sa_sigaction here...
41022         (gl_PREREQ_SIG_HANDLER_H): ... not here.
41023         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
41024
41025 2008-09-21  Bruno Haible  <bruno@clisp.org>
41026
41027         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
41028         section.
41029         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
41030         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
41031         the new section.
41032         (Support for obsolete systems lacking POSIX:2001): New section.
41033         (String handling <string.h>): Move strdup to the new section.
41034         Suggested by Simon Josefsson and Paolo Bonzini.
41035
41036 2008-09-21  Bruno Haible  <bruno@clisp.org>
41037
41038         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
41039         exponents in %e and %g results on 'long double'. Needed for mingw's
41040         improved *printf functions.
41041         * tests/test-vasprintf-posix.c (test_function): Likewise.
41042         * tests/test-snprintf-posix.h (test_function): Likewise.
41043         * tests/test-sprintf-posix.h (test_function): Likewise.
41044         Reported by Eric Blake.
41045
41046 2008-09-21  Bruno Haible  <bruno@clisp.org>
41047
41048         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
41049         * tests/test-sprintf-posix.h (test_function): Likewise.
41050
41051 2008-09-21  Bruno Haible  <bruno@clisp.org>
41052
41053         * modules/getpass (Depends-on): Add strdup-posix.
41054
41055         New module 'strdup-posix'.
41056         * modules/strdup-posix: New file.
41057         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
41058         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
41059         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41060         REPLACE_STRDUP.
41061         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
41062         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
41063         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41064         strdup-posix.
41065
41066         * modules/strdup (Depends-on): Remove malloc-posix.
41067
41068 2008-09-20  Bruno Haible  <bruno@clisp.org>
41069
41070         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
41071         Wildenhues.
41072
41073 2008-09-20  Bruno Haible  <bruno@clisp.org>
41074
41075         Ensure that wint_t gets defined on IRIX 5.3.
41076         * lib/wchar.in.h (wint_t): Define if not defined by the system.
41077         * lib/wctype.in.h (wint_t): Likewise.
41078         (__wctype_wint_t): Remove type.
41079         (isw*): Use wint_t instead of __wctype_wint_t.
41080         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
41081         * modules/wchar (Files): Add m4/wint_t.m4.
41082         (Makefile.am): Substitute HAVE_WINT_T.
41083         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
41084         * tests/test-wctype.c: Check that wint_t is defined.
41085         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
41086         * doc/posix-headers/wctype.texi: Likewise.
41087         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41088
41089 2008-09-18  Bruno Haible  <bruno@clisp.org>
41090
41091         * gnulib-tool (func_exit): Update comment.
41092
41093 2008-09-18  Simon Josefsson  <simon@josefsson.org>
41094
41095         * modules/getaddrinfo (Depends-on): Remove strdup, this module
41096         assumes strdup exists and does not depend on strdup to return
41097         ENOMEM on out of memory conditions.
41098
41099 2008-09-18  Bruno Haible  <bruno@clisp.org>
41100
41101         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
41102         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
41103         digits for the exponent.
41104
41105 2008-09-18  Jim Meyering  <meyering@redhat.com>
41106             Bruno Haible  <bruno@clisp.org>
41107
41108         * lib/vasnprintf.c (decimal_point_char): Define also if
41109         NEED_PRINTF_INFINITE_LONG_DOUBLE.
41110
41111 2008-09-16  Bruno Haible  <bruno@clisp.org>
41112         and Eric Blake  <ebb9@byu.net>
41113
41114         vasnprintf: support Irix 5.3
41115         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
41116         that mishandle long double infinity.
41117         Reported by Tom G. Christensen.
41118
41119 2008-09-16  Bruno Haible  <bruno@clisp.org>
41120
41121         * doc/glibc-functions/scandir.texi: Mention the function is missing on
41122         Solaris 9.
41123         * doc/glibc-functions/alphasort.texi: Likewise.
41124         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
41125
41126 2008-09-16  Jim Meyering  <meyering@redhat.com>
41127
41128         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
41129         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
41130         a umask modification leak out of a subshell.  Otherwise, the
41131         opensolaris /bin/sh would be accepted and thus cause unwarranted
41132         failures in the coreutils test suite.
41133
41134 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
41135
41136         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
41137         to succeed.
41138
41139 2008-09-16  Jim Meyering  <meyering@redhat.com>
41140
41141         avoid spurious test failure when library is built without ACL support
41142         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
41143         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
41144         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
41145         * tests/test-copy-acl.sh: Likewise.
41146
41147 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41148
41149         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
41150         based on character occurrence counts.
41151
41152 2008-09-15  Eric Blake  <ebb9@byu.net>
41153
41154         tests: avoid some compiler warnings
41155         * tests/test-memchr.c (main): Pass NULL indirectly.
41156         * tests/test-closein.c (main): Avoid unused variable.
41157
41158 2008-09-15  Bruno Haible  <bruno@clisp.org>
41159
41160         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
41161         are missing on OpenBSD 4.0 individually.
41162         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41163
41164 2008-09-15  Bruno Haible  <bruno@clisp.org>
41165
41166         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
41167         * doc/posix-functions/strerror.texi: Mention also Cygwin.
41168         * doc/posix-functions/perror.texi: Likewise.
41169         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
41170         is missing.
41171         Reported by Eric Blake.
41172
41173         * lib/errno.in.h: Use replacement values >= 2000.
41174         Reported by Eric Blake.
41175
41176 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41177
41178         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
41179         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
41180         limit.
41181         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
41182         compareseq was aborted.
41183
41184 2008-09-14  Bruno Haible  <bruno@clisp.org>
41185
41186         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
41187         yvec_edit_count.
41188         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
41189         (fstrcmp_bounded): Simplify result computation accordingly.
41190
41191 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41192
41193         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
41194         (fstrcmp): Define in terms of fstrcmp_bounded.
41195         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
41196         lower_bound argument.
41197         Return quickly if the result is certainly < lower_bound.
41198         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
41199
41200 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41201
41202         * lib/diffseq.h (EARLY_ABORT): New macro.
41203         (compareseq): Change return type to bool. Return true when EARLY_ABORT
41204         evaluates to true.
41205
41206 2008-09-14  Bruno Haible  <bruno@clisp.org>
41207
41208         * modules/perror-tests: New file.
41209         * tests/test-perror.sh: New file.
41210         * tests/test-perror.c: New file.
41211
41212         New module 'perror'.
41213         * lib/stdio.in.h (perror): New declaration.
41214         * lib/perror.c: New file.
41215         * m4/perror.m4: New file.
41216         * modules/perror: New file.
41217         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
41218         * doc/posix-functions/perror.texi: Mention the perror module.
41219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
41220         REPLACE_PERROR.
41221         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
41222         REPLACE_PERROR.
41223
41224 2008-09-14  Bruno Haible  <bruno@clisp.org>
41225
41226         * modules/stdio (Makefile.am): Reorder to match the order in
41227         lib/stdio.in.h.
41228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41229
41230 2008-09-13  Bruno Haible  <bruno@clisp.org>
41231
41232         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
41233
41234 2008-09-13  Bruno Haible  <bruno@clisp.org>
41235
41236         Extend strerror to cover the added errno values.
41237         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
41238         (rpl_strerror): Provide error messages for the added errno values and
41239         for the WSA* values.
41240         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
41241         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
41242         strerror.
41243         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
41244         * modules/strerror (Depends-on): Add errno.
41245         * doc/posix-functions/strerror.texi: Document the change.
41246         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
41247         and EOVERFLOW.
41248
41249 2008-09-13  Bruno Haible  <bruno@clisp.org>
41250
41251         * modules/EOVERFLOW: Remove file.
41252         * m4/eoverflow.m4: Remove file.
41253         * modules/EOVERFLOW-tests: Remove file.
41254         * tests/test-EOVERFLOW.c: Remove file.
41255         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
41256         * modules/ftell (Depends-on): Likewise.
41257         * modules/getdelim (Depends-on): Likewise.
41258         * modules/getugroups (Depends-on): Likewise.
41259         * modules/poll (Depends-on): Likewise.
41260         * modules/snprintf (Depends-on): Likewise.
41261         * modules/sprintf-posix (Depends-on): Likewise.
41262         * modules/vasnprintf (Depends-on): Likewise.
41263         * modules/vasprintf (Depends-on): Likewise.
41264         * modules/vfprintf-posix (Depends-on): Likewise.
41265         * modules/vsnprintf (Depends-on): Likewise.
41266         * modules/vsprintf-posix (Depends-on): Likewise.
41267         * modules/xvasprintf (Depends-on): Likewise.
41268         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41269         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
41270         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
41271         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
41272         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41273         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
41274         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
41275         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
41276         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41277         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
41278         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
41279         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
41280         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41281         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
41282         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
41283         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
41284         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41285         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
41286         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
41287         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
41288         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41289         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
41290         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
41291         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
41292         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
41293         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41294         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
41295         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
41296         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
41297         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
41298         * MODULES.html.sh: Remove EOVERFLOW.
41299         * NEWS: Mention the change.
41300
41301 2008-09-13  Bruno Haible  <bruno@clisp.org>
41302
41303         * modules/errno-tests: New file.
41304         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
41305
41306         * lib/errno.in.h: New file.
41307         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
41308         * modules/errno: New file.
41309         * doc/posix-headers/errno.texi: Update documentation.
41310         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
41311
41312 2008-09-13  Bruno Haible  <bruno@clisp.org>
41313
41314         * tests/test-poll.c: Use #if for native Windows, rather than testing
41315         __MSVCRT__.
41316
41317 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41318             Bruno Haible  <bruno@clisp.org>
41319
41320         * lib/glob.c: Don't include <pwd.h> on native Windows.
41321         (WINDOWS32): New macro.
41322         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
41323
41324 2008-09-13  Bruno Haible  <bruno@clisp.org>
41325
41326         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
41327         (ETIMEDOUT): Remove macro.
41328         (glthread_cond_timedwait_multithreaded): New declaration.
41329         (glthread_cond_timedwait): Use it.
41330         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
41331         (glthread_cond_timedwait_multithreaded): New function.
41332
41333 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41334
41335         * modules/poll-tests: Do not check for io.h.
41336         * tests/test-poll.c: Check for __MSVCRT__ instead.
41337
41338 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41339
41340         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
41341         * modules/poll-tests: Add inet_pton, stdbool, sockets.
41342         * tests/test-poll.c: Use them.  Use _pipe on Windows.
41343
41344 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41345
41346         * modules/poll-tests: New.
41347         * tests/test-poll.c: New.
41348
41349 2008-09-12  Eric Blake  <ebb9@byu.net>
41350
41351         frexp: test for NetBSD failure on -0.0
41352         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
41353         not all, bugs from NetBSD 3.0 have been fixed.
41354         * doc/posix-functions/frexp.texi (frexp): Document bug.
41355         Reported by Thomas Klausner.
41356
41357         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
41358         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
41359         literal -0.0.
41360         Reported by Jonathan C. Patschke <jp@centtech.com>.
41361
41362 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41363
41364         * lib/glthread/cond.h: Use dummy implementation also if
41365         USE_WIN32_THREADS.
41366
41367 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41368
41369         * modules/fnmatch-posix (License): Change to LGPLv2+.
41370         * modules/fnmatch-gnu (License): Likewise.
41371
41372 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41373
41374         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
41375
41376 2008-09-11  Jim Meyering  <meyering@redhat.com>
41377
41378         * users.txt: Add gtk-vnc.
41379
41380 2008-09-08  Simon Josefsson  <simon@josefsson.org>
41381
41382         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
41383         rotate amounts.
41384
41385         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
41386         required for 16-bit and 8-bit rotates.
41387         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
41388         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
41389         UINT8_MAX instead of hard-coded constants.
41390         Suggested by Paul Eggert.
41391
41392 2008-09-07  Bruno Haible  <bruno@clisp.org>
41393
41394         * tests/test-striconveh.c (main): Check behaviour when converting from
41395         UTF-7.
41396
41397         Make striconveh work better with stateful encodings.
41398         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
41399         that iconv does not increment the inptr when returning -1/EINVAL.
41400
41401 2008-09-07  Bruno Haible  <bruno@clisp.org>
41402
41403         * build-aux/config.rpath: Update according to libtool-2.2.6.
41404         * build-aux/config.libpath: Likewise.
41405
41406 2008-09-06  Bruno Haible  <bruno@clisp.org>
41407
41408         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
41409         * lib/freadptr.c (freadptr): Likewise.
41410         * lib/freadseek.c (freadptrinc): Likewise.
41411         Reported by Simon Josefsson.
41412
41413 2008-09-06  Bruno Haible  <bruno@clisp.org>
41414
41415         * modules/freadptr (License): Change to LGPLv2+.
41416         * modules/freadseek (License): Likewise.
41417         Suggested by Eric Blake.
41418
41419         * modules/memchr2 (License): Change to LGPLv2+.
41420         Approved by Eric Blake.
41421
41422 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41423             Bruno Haible  <bruno@clisp.org>
41424
41425         Make gnulib-tool work with native 'sed' on AIX.
41426         * gnulib-tool (sed_noop): New variable.
41427         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
41428         func_add_or_update, func_create_testdir): Use it to initialize sed
41429         script variables.
41430         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41431
41432 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
41433             Bruno Haible  <bruno@clisp.org>
41434
41435         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
41436         also works after #include directives.
41437
41438 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
41439
41440         getdate.y: reject an out-of-range timezone value
41441         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
41442         the range [-24...+24].  When specified with only one or two digits,
41443         * tests/test-getdate.c: Tests for the fix.
41444         * doc/getdate.texi: Document this change.
41445
41446 2008-09-03  Bruno Haible  <bruno@clisp.org>
41447
41448         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
41449
41450 2008-09-02  Simon Josefsson  <simon@josefsson.org>
41451
41452         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
41453         <bruce.korb@gmail.com> with ideas from Ben Pfaff
41454         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
41455         Blake <ebb9@byu.net>.
41456
41457         * tests/test-bitrotate.c: Add more test vectors.
41458
41459 2008-09-02  Eric Blake  <ebb9@byu.net>
41460
41461         vasnprintf-posix: handle large precision via %.*d
41462         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
41463         when handling it ourselves.
41464         * tests/test-vasnprintf-posix.c (test_function): Add test.
41465         * tests/test-snprintf-posix.h (test_function): Likewise.
41466         * tests/test-sprintf-posix.h (test_function): Likewise.
41467         * tests/test-vasprintf-posix.c (test_function): Likewise.
41468         Reported by Alain Guibert.
41469
41470 2008-09-01  Eric Blake  <ebb9@byu.net>
41471
41472         c-stack: make configure-time check more robust
41473         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
41474         successful sigaction call.
41475         Reported by Tom G. Christensen.
41476
41477 2008-09-01  Bruno Haible  <bruno@clisp.org>
41478
41479         New module 'findprog-lgpl'.
41480         * modules/findprog-lgpl: New file.
41481         * lib/findprog-lgpl.c: New file.
41482         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
41483         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
41484         to decide whether to use strdup or xstrdup, concatenated_filename or
41485         xconcatenated_filename.
41486
41487 2008-09-01  Bruno Haible  <bruno@clisp.org>
41488
41489         Split module 'concat-filename' into 'concat-filename' (LGPL) and
41490         'xconcat-filename' (GPL).
41491         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
41492         (License): Change to LGPLv2+.
41493         * modules/xconcat-filename: New file.
41494         * lib/concat-filename.h (concatenated_filename): Change specification.
41495         (xconcatenated_filename): New declaration.
41496         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
41497         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
41498         memory situations.
41499         * lib/xconcat-filename.c: New file.
41500         * NEWS: Mention the change.
41501         * lib/findprog.c: Include concat-filename.h, not filename.h.
41502         (find_in_path): Use xconcatenated_filename instead of
41503         concatenated_filename.
41504         * lib/javacomp.c: Include concat-filename.h, not filename.h.
41505         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
41506         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
41507         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
41508         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
41509         instead of concatenated_filename.
41510         * lib/javaexec.c: Include concat-filename.h, not filename.h.
41511         (execute_java_class): Use xconcatenated_filename instead of
41512         concatenated_filename.
41513         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
41514         * modules/javacomp (Depends-on): Likewise.
41515         * modules/javaexec (Depends-on): Likewise.
41516
41517 2008-09-01  Bruno Haible  <bruno@clisp.org>
41518
41519         Split module 'filename' into 'filename' and 'concat-filename'.
41520         * modules/filename: Keep only lib/filename.h.
41521         (License): Change to LGPLv2+.
41522         * modules/concat-filename: New file, extracted from modules/filename.
41523         * lib/filename.h (concatenated_filename): Remove declaration.
41524         * lib/concat-filename.h: New file, extracted from lib/filename.h.
41525         * lib/concat-filename.c: Include concat-filename.h.
41526         * NEWS: Mention the change.
41527
41528 2008-09-01  Simon Josefsson  <simon@josefsson.org>
41529
41530         * lib/bitrotate.h (rotl8, rotr8): Add.
41531
41532         * modules/bitrotate (configure.ac): Need
41533         AC_REQUIRE([AC_C_INLINE]).
41534         (Description): Mention stdint.h.  Reported by Bruno Haible
41535         <bruno@clisp.org>.
41536
41537         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
41538         Paolo Bonzini <bonzini@gnu.org>.
41539
41540 2008-08-31  Bruno Haible  <bruno@clisp.org>
41541
41542         Assume Solaris specific bi-arch conventions on Solaris systems.
41543         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
41544         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
41545         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
41546         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
41547         like acl_libdirstem.
41548         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
41549         acl_libdirstem.
41550         * NEWS: Mention the change.
41551         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
41552
41553 2008-08-31  Jim Meyering  <meyering@redhat.com>
41554
41555         * lib/strftime.h: Add comments describing the two added arguments.
41556
41557         remove duplicate #include directives
41558         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
41559         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
41560
41561 2008-08-31  Bruno Haible  <bruno@clisp.org>
41562
41563         New module 'sigpipe-die'.
41564         * modules/sigpipe-die: New file.
41565         * lib/sigpipe-die.h: New file.
41566         * lib/sigpipe-die.c: New file.
41567         * MODULES.html.sh (Signal handling): Add sigpipe-die.
41568
41569 2008-08-31  Bruno Haible  <bruno@clisp.org>
41570
41571         Don't override previously installed signal handlers.
41572         * lib/fatal-signal.c (saved_sigactions): New variable.
41573         (uninstall_handlers): Reset the signal to the saved handler, not
41574         to SIG_DFL (except when ignored).
41575         (install_handlers): Save the previous handlers.
41576
41577 2008-08-30  Bruno Haible  <bruno@clisp.org>
41578
41579         * gnulib-tool (func_reset_sigpipe): New function.
41580         (func_get_automake_snippet, func_modules_transitive_closure,
41581         func_import): Invoke it before a join command that reads from stdin,
41582         to avoid "echo: write error: Broken pipe" error messages on stderr.
41583         Reported by Sam Steingold <sds@gnu.org>.
41584
41585 2008-08-30  Bruno Haible  <bruno@clisp.org>
41586
41587         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
41588         Code copied from m4/open.m4.
41589         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
41590         access and the filename ends in a slash. Code copied from lib/open.c.
41591         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
41592         * tests/test-fopen.c (main): Check against bug with trailing slash.
41593
41594 2008-08-29  Bruno Haible  <bruno@clisp.org>
41595
41596         Avoid some "gcc -pedantic" warnings.
41597         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
41598         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
41599         * lib/dirent.in.h: Likewise.
41600         * lib/fcntl.in.h: Likewise.
41601         * lib/float.in.h: Likewise.
41602         * lib/iconv.in.h: Likewise.
41603         * lib/inttypes.in.h: Likewise.
41604         * lib/locale.in.h: Likewise.
41605         * lib/math.in.h: Likewise.
41606         * lib/netinet_in.in.h: Likewise.
41607         * lib/search.in.h: Likewise.
41608         * lib/signal.in.h: Likewise.
41609         * lib/stdarg.in.h: Likewise.
41610         * lib/stdint.in.h: Likewise.
41611         * lib/stdio.in.h: Likewise.
41612         * lib/stdlib.in.h: Likewise.
41613         * lib/string.in.h: Likewise.
41614         * lib/strings.in.h: Likewise.
41615         * lib/sys_select.in.h: Likewise.
41616         * lib/sys_socket.in.h: Likewise.
41617         * lib/sys_stat.in.h: Likewise.
41618         * lib/sys_time.in.h: Likewise.
41619         * lib/sysexits.in.h: Likewise.
41620         * lib/time.in.h: Likewise.
41621         * lib/unistd.in.h: Likewise.
41622         * lib/wchar.in.h: Likewise.
41623         * lib/wctype.in.h: Likewise.
41624         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
41625         * modules/fchdir (Makefile.am): Likewise.
41626         * modules/fcntl (Makefile.am): Likewise.
41627         * modules/float (Makefile.am): Likewise.
41628         * modules/iconv_open (Makefile.am): Likewise.
41629         * modules/inttypes (Makefile.am): Likewise.
41630         * modules/locale (Makefile.am): Likewise.
41631         * modules/math (Makefile.am): Likewise.
41632         * modules/netinet_in (Makefile.am): Likewise.
41633         * modules/search (Makefile.am): Likewise.
41634         * modules/signal (Makefile.am): Likewise.
41635         * modules/stdarg (Makefile.am): Likewise.
41636         * modules/stdint (Makefile.am): Likewise.
41637         * modules/stdio (Makefile.am): Likewise.
41638         * modules/stdlib (Makefile.am): Likewise.
41639         * modules/string (Makefile.am): Likewise.
41640         * modules/strings (Makefile.am): Likewise.
41641         * modules/sys_select (Makefile.am): Likewise.
41642         * modules/sys_socket (Makefile.am): Likewise.
41643         * modules/sys_stat (Makefile.am): Likewise.
41644         * modules/sys_time (Makefile.am): Likewise.
41645         * modules/sysexits (Makefile.am): Likewise.
41646         * modules/time (Makefile.am): Likewise.
41647         * modules/unistd (Makefile.am): Likewise.
41648         * modules/wchar (Makefile.am): Likewise.
41649         * modules/wctype (Makefile.am): Likewise.
41650         Reported by Reuben Thomas <rrt@sc3d.org>.
41651
41652 2008-08-29  Bruno Haible  <bruno@clisp.org>
41653
41654         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
41655         any more.
41656
41657 2008-08-29  Simon Josefsson  <simon@josefsson.org>
41658
41659         * MODULES.html.sh (Misc): Add bitrotate.
41660
41661         * modules/bitrotate: New file.
41662
41663         * lib/bitrotate.h: New file.
41664
41665         * modules/bitrotate-tests: New file.
41666
41667         * tests/test-bitrotate.c: New file.
41668
41669         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
41670         on the bitrotate module.
41671
41672         * lib/arctwo.c: Use new bitrotate module.
41673
41674 2008-08-29  Jim Meyering  <meyering@redhat.com>
41675
41676         bootstrap: merge changes from coreutils
41677         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
41678         of copied files.  Remove a kludge, now that this is fixed.
41679         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
41680         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
41681         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
41682
41683 2008-08-29  Bruno Haible  <bruno@clisp.org>
41684
41685         * MODULES.html.sh: Remove --cvs-urls option.
41686
41687 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
41688
41689         maint.mk: adjust to file name change
41690         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
41691
41692 2008-08-28  Jim Meyering  <meyering@redhat.com>
41693
41694         * modules/getndelim2 (License): Relicense to LGPLv2+.
41695         Approved by Richard Stallman for the version of 1995, and by
41696         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
41697
41698 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
41699
41700         * lib/getdelim.c (flockfile, funlockfile): Make all of them
41701         dummy if one is not available.  Do not touch them if
41702         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
41703         (getc_maybe_unlocked): New.
41704         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
41705
41706 2008-08-26  Eric Blake  <ebb9@byu.net>
41707
41708         doc/INSTALL: resync from autoconf
41709         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
41710         (INSTALL_PRELUDE): Delete; this is done more efficiently by
41711         moving...
41712         * install.texi [!autoconf]: ...here.  Resync from autoconf.
41713         * INSTALL: Regenerate.
41714         * INSTALL.ISO: New file.
41715         * INSTALL.UTF-8: Likewise.
41716
41717 2008-08-26  Jim Meyering  <meyering@redhat.com>
41718
41719         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
41720         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
41721         these definitions conditional, so that they may be overridden, too.
41722
41723 2008-08-26  Bruno Haible  <bruno@clisp.org>
41724
41725         Generate INSTALL file variants with prettier quotes.
41726         * doc/Makefile (INSTALL_PRELUDE): New macro.
41727         (INSTALL): Use it.
41728         (INSTALL.ISO, INSTALL.UTF-8): New rules.
41729
41730 2008-08-26  Bruno Haible  <bruno@clisp.org>
41731
41732         Run makeinfo in an English locale.
41733         * doc/Makefile (MAKEINFO): New variable.
41734
41735 2008-08-26  Bruno Haible  <bruno@clisp.org>
41736
41737         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
41738         Suggested by Eric Blake.
41739
41740 2008-08-25  Bruno Haible  <bruno@clisp.org>
41741
41742         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
41743
41744 2008-08-25  Eric Blake  <ebb9@byu.net>
41745
41746         c-stack: test that stack overflow can be caught
41747         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
41748         that platform allows handling stack overflow; at least OS/2 EMX
41749         has sigaltstack, but crashes before transferring control to
41750         handler on stack overflow.
41751         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
41752         check for HAVE_STACK_OVERFLOW_HANDLING.
41753         Reported by Elbert Pol.
41754
41755 2008-08-25  Bruno Haible  <bruno@clisp.org>
41756
41757         * doc/posix-functions/strftime.texi: Fix description of strftime
41758         module.
41759
41760 2008-08-24  Bruno Haible  <bruno@clisp.org>
41761
41762         * tests/uniwidth/test-uc_width2.c: New file.
41763         * tests/uniwidth/test-uc_width2.sh: New file.
41764         * modules/uniwidth/width-tests (Files): Add the new files.
41765         (TESTS): Add uniwidth/test-uc_width2.sh.
41766         (TESTS_ENVIRONMENT): New variable.
41767         (check_PROGRAMS): Add test-uc_width2.
41768         (test_uc_width2_SOURCES): New variable.
41769
41770         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
41771         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
41772         not 0x00AB.
41773         Reported by Alexander V. Lukyanov <lav@netis.ru>.
41774
41775 2008-08-22  Eric Blake  <ebb9@byu.net>
41776
41777         test-lock, test-tls: mention why a test is skipped
41778         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
41779         skipped.
41780         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
41781
41782         count-one-bits: relax license
41783         * modules/count-one-bits (License): Relicense to LGPLv2+.
41784         Suggested by Ludovic Courtès, approved by Ben Pfaff.
41785
41786 2008-08-22  Andreas Schwab  <schwab@suse.de>
41787
41788         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
41789         Remove spurious space in assignment.
41790
41791 2008-08-21  Simon Josefsson  <simon@josefsson.org>
41792
41793         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
41794         Paul Eggert <eggert@CS.UCLA.EDU>.
41795
41796 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
41797
41798         * modules/gettext: Add m4/threadlib.m4.
41799
41800 2008-08-19  Eric Blake  <ebb9@byu.net>
41801
41802         test-c-stack: fix compilation failure on FreeBSD 5.0
41803         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
41804         headers before <sys/resource.h>.
41805         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
41806         the bug.
41807         Reported by Nelson H. F. Beebe.
41808
41809         strverscmp: migrate from "strverscmp.h" to <string.h>
41810         * modules/string (Makefile.am): Add new hooks.
41811         * modules/strverscmp (Files): Remove strverscmp.h.
41812         (Depends-on): Add string.
41813         (configure.ac): Add indicator.
41814         (Include): Mention new header.
41815         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
41816         defaults.
41817         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
41818         results.
41819         * lib/strverscmp.h: Delete.
41820         * lib/string.in.h (strverscmp): Provide declaration, when needed.
41821         * tests/test-strverscmp.c (includes): Adjust client.
41822         * lib/check-version.c (includes): Likewise.
41823         * NEWS: Document the change.
41824
41825         strverscmp: add unit test
41826         * modules/strverscmp-tests: New file.
41827         * tests/test-strverscmp.c: Likewise.
41828
41829 2008-08-19  Simon Josefsson  <simon@josefsson.org>
41830
41831         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
41832         regarding Windows crypto stuff, from Mono.
41833
41834 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
41835
41836         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
41837         if present, for intel RND.  Return error on failures.
41838
41839 2008-08-18  Ben Pfaff  <blp@gnu.org>
41840
41841         gitlog-to-changelog: give better diagnostic for failed pipe-open
41842         * build-aux/gitlog-to-changelog: Improve error message: suggest
41843         that the version of Git may be too old.
41844
41845 2008-08-18  Simon Josefsson  <simon@josefsson.org>
41846
41847         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
41848         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
41849
41850 2008-08-18  Bruno Haible  <bruno@clisp.org>
41851
41852         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
41853         pthread_in_use().
41854
41855 2008-08-18  Bruno Haible  <bruno@clisp.org>
41856
41857         * lib/glthread/threadlib.c: Include <pthread.h>.
41858
41859 2008-08-18  Bruno Haible  <bruno@clisp.org>
41860
41861         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
41862         glthread_recursive_lock_* macros.
41863         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
41864         Fix syntax error.
41865
41866 2008-08-18  Bruno Haible  <bruno@clisp.org>
41867
41868         * lib/glthread/thread.c: Avoid forcing a context switch right after
41869         thread creation.
41870
41871 2008-08-17  Bruno Haible  <bruno@clisp.org>
41872
41873         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
41874         * lib/glthread/thread.h: Provide Win32 specific implementation.
41875         * modules/thread (Files): Add lib/glthread/thread.c.
41876         (Depends-on): Add lock.
41877         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
41878
41879 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41880
41881         New module 'yield'.
41882         * modules/yield: New file.
41883         * lib/glthread/yield.h: New file.
41884         * m4/yield.m4: New file.
41885         * MODULES.html.sh (Multithreading): Add yield.
41886
41887 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41888
41889         New module 'thread'.
41890         * modules/thread: New file.
41891         * lib/glthread/thread.h: New file.
41892         * m4/thread.m4: New file.
41893         * MODULES.html.sh (Multithreading): Add thread.
41894
41895 2008-08-17  Bruno Haible  <bruno@clisp.org>
41896
41897         * lib/glthread/lock.h: Include <stdlib.h> always.
41898         * lib/glthread/tls.h: Likewise.
41899         * lib/glthread/cond.h: Likewise.
41900
41901 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41902
41903         New module 'cond'.
41904         * modules/cond: New file.
41905         * lib/glthread/cond.h: New file.
41906         * lib/glthread/cond.c: New file.
41907         * m4/cond.m4: New file.
41908         * MODULES.html.sh (Multithreading): Add cond.
41909
41910 2008-08-16  Eric Blake  <ebb9@byu.net>
41911
41912         c-stack: fix regression on Irix 5.3 from 2008-06-21
41913         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
41914         sa_sigaction...
41915         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
41916         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
41917         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
41918         * modules/signal (Makefile.am): Use the value.
41919         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
41920         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
41921         * doc/posix-headers/signal.texi (signal.h): Document this
41922         portability issue.
41923         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
41924         Reported by Tom G. Christensen.
41925
41926 2008-08-17  Bruno Haible  <bruno@clisp.org>
41927
41928         New module 'threadlib'.
41929         * modules/threadlib: New file.
41930         * lib/glthread/threadlib.c: New file, extracted from
41931         lib/glthread/lock.c.
41932         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
41933         functions.
41934         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
41935         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
41936         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
41937         macros.
41938         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
41939         (gl_DISABLE_THREADS): Remove macro.
41940         * modules/lock (Files): Remove build-aux/config.rpath.
41941         (Depends-on): Remove havelib. Add threadlib.
41942         (configure.ac-early): Remove section.
41943         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
41944         * modules/tls (Depends-on): Remove lock. Add threadlib.
41945         (Link): New section, copied from threadlib.
41946         * MODULES.html.sh (Multithreading): Add threadlib.
41947
41948 2008-08-14  Bruno Haible  <bruno@clisp.org>
41949
41950         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
41951         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
41952         glthread_rwlock_unlock, glthread_rwlock_destroy,
41953         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
41954         glthread_recursive_lock_destroy): Define as macros always.
41955         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
41956         glthread_lock_lock.
41957         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
41958         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
41959         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
41960         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
41961         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
41962         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
41963         (glthread_recursive_lock_lock_func): Renamed from
41964         glthread_recursive_lock_lock.
41965         (glthread_recursive_lock_unlock_func): Renamed from
41966         glthread_recursive_lock_unlock.
41967         (glthread_recursive_lock_destroy_func): Renamed from
41968         glthread_recursive_lock_destroy.
41969
41970 2008-08-14  Bruno Haible  <bruno@clisp.org>
41971
41972         * lib/glthread/lock.h: Renamed from lib/lock.h.
41973         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
41974         * lib/glthread/tls.h: Renamed from lib/tls.h.
41975         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
41976         * lib/fstrcmp.c: Update includes.
41977         * lib/strsignal.c: Update includes.
41978         * modules/lock (Files, Makefile.am): Update.
41979         (Include): Change to "glthread/lock.h".
41980         * modules/tls (Files, Makefile.am): Update.
41981         (Include): Change to "glthread/tls.h".
41982         * tests/test-lock.c: Update includes.
41983         * tests/test-tls.c: Update includes.
41984         * NEWS: Mention the renamed header files.
41985
41986 2008-08-11  Jim Meyering  <meyering@redhat.com>
41987
41988         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
41989
41990 2008-08-11  Eric Blake  <ebb9@byu.net>
41991
41992         test-c-stack: avoid C99-ism
41993         * tests/test-c-stack.c (main): Fix whitespace, move declaration
41994         before statement.
41995         Reported by Alain Guibert.
41996
41997 2008-08-10  Jim Meyering  <meyering@redhat.com>
41998
41999         ensure that return value of uinttostr et al are not ignored
42000         * lib/inttostr.h (__GNUC_PREREQ): Define.
42001         (__attribute_warn_unused_result__): Define.
42002         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
42003
42004 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
42005
42006         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
42007         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
42008
42009 2008-08-07  Jim Meyering  <meyering@redhat.com>
42010
42011         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
42012
42013         * modules/mkstemp (License): Relicense under LGPLv2+.
42014         * modules/tempname (License): Likewise.
42015
42016 2008-08-06  Bruno Haible  <bruno@clisp.org>
42017
42018         * lib/poll.c (poll): Further micro-optimization.
42019
42020 2008-08-06  Jim Meyering  <meyering@redhat.com>
42021
42022         inet_pton.c: use locale-independent tolower
42023         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
42024         (inet_pton6): Use c_tolower rather than tolower.
42025         * modules/inet_pton (Depends-on): Add c-ctype.
42026
42027 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
42028
42029         * lib/poll.c (poll): Avoid division when timeout is 0, cache
42030         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
42031
42032 2008-08-06  Jim Meyering  <meyering@redhat.com>
42033
42034         * modules/inet_pton (License): Relicense under LGPLv2+.
42035
42036 2008-08-03  Bruno Haible  <bruno@clisp.org>
42037
42038         Additional non-aborting API for lock and tls.
42039         * lib/lock.h: Include <errno.h>.
42040         (glthread_lock_init): New macro/function.
42041         (gl_lock_init): Define as wrapper around glthread_lock_init.
42042         (glthread_lock_lock): New macro/function.
42043         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
42044         (glthread_lock_unlock): New macro/function.
42045         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
42046         (glthread_lock_destroy): New macro/function.
42047         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
42048         (glthread_rwlock_init): New macro/function.
42049         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
42050         (glthread_rwlock_rdlock): New macro/function.
42051         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
42052         (glthread_rwlock_wrlock): New macro/function.
42053         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
42054         (glthread_rwlock_unlock): New macro/function.
42055         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
42056         (glthread_rwlock_destroy): New macro/function.
42057         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
42058         (glthread_recursive_lock_init): New macro/function.
42059         (gl_recursive_lock_init): Define as wrapper around
42060         glthread_recursive_lock_init.
42061         (glthread_recursive_lock_lock): New macro/function.
42062         (gl_recursive_lock_lock): Define as wrapper around
42063         glthread_recursive_lock_lock.
42064         (glthread_recursive_lock_unlock): New macro/function.
42065         (gl_recursive_lock_unlock): Define as wrapper around
42066         glthread_recursive_lock_unlock.
42067         (glthread_recursive_lock_destroy): New macro/function.
42068         (gl_recursive_lock_destroy): Define as wrapper around
42069         glthread_recursive_lock_destroy.
42070         (glthread_once): New macro/function.
42071         (gl_once): Define as wrapper around glthread_once.
42072         Update function declarations.
42073         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
42074         glthread_rwlock_init. Return error code.
42075         (glthread_rwlock_rdlock_multithreaded): Renamed from
42076         glthread_rwlock_rdlock. Return error code.
42077         (glthread_rwlock_wrlock_multithreaded): Renamed from
42078         glthread_rwlock_wrlock. Return error code.
42079         (glthread_rwlock_unlock_multithreaded): Renamed from
42080         glthread_rwlock_unlock. Return error code.
42081         (glthread_rwlock_destroy_multithreaded): Renamed from
42082         glthread_rwlock_destroy. Return error code.
42083         (glthread_recursive_lock_init_multithreaded): Renamed from
42084         glthread_recursive_lock_init. Return error code.
42085         (glthread_recursive_lock_lock_multithreaded): Renamed from
42086         glthread_recursive_lock_lock. Return error code.
42087         (glthread_recursive_lock_unlock_multithreaded): Renamed from
42088         glthread_recursive_lock_unlock. Return error code.
42089         (glthread_recursive_lock_destroy_multithreaded): Renamed from
42090         glthread_recursive_lock_destroy. Return error code.
42091         (glthread_once_call): Make static.
42092         (glthread_once_multithreaded): Renamed from glthread_once.
42093         * lib/tls.h: Include <errno.h>.
42094         (glthread_tls_key_init): New macro/function.
42095         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
42096         (glthread_tls_set): New macro/function.
42097         (gl_tls_set): Define as wrapper around glthread_tls_set.
42098         (glthread_tls_key_destroy): New macro/function.
42099         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
42100         Update function declarations.
42101         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
42102         glthread_tls_get.
42103         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42104
42105 2008-08-04  Eric Blake  <ebb9@byu.net>
42106
42107         gnumakefile: use space, not TAB, outside of targets
42108         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
42109
42110 2008-08-02  Jim Meyering  <meyering@redhat.com>
42111
42112         getdate.y: avoid locale-dependent date parsing failure
42113         In Turkish locales, getdate would fail to recognize keywords
42114         containing a lowercase "i".  The solution is not to rely on
42115         locale-sensitive case-conversion.
42116         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
42117         (lookup_word): Use c_toupper in place of toupper.
42118         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
42119         Reported by Vefa Bicakci <bicave@superonline.com> in
42120         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
42121         * modules/getdate (Depends-on): Add c-ctype.
42122
42123 2008-08-02  Bruno Haible  <bruno@clisp.org>
42124
42125         * gnulib-tool (func_import): When updating or creating a .gitignore
42126         file, prepend each added line with a slash, and ignore leading slashes
42127         from the existing lines.
42128         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42129
42130 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42131
42132         Portability fix for GNU make 3.79.1.
42133         * top/GNUmakefile: Avoid 'else COND', which older GNU make
42134         versions do not understand.
42135
42136 2008-08-01  Bruno Haible  <bruno@clisp.org>
42137
42138         Work around bug of HP-UX 10.20 cc with -0.0 literal.
42139         * tests/test-isnanf.h (zero): New variable.
42140         (main): Avoid literal -0.0f.
42141         * tests/test-isnand.h (zero): New variable.
42142         (main): Avoid literal -0.0.
42143         * tests/test-isnanl.h (zero): New variable.
42144         (main): Avoid literal -0.0L.
42145         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
42146         (test_float, test_double, test_long_double): Avoid literals -0.0f,
42147         -0.0, -0.0L.
42148         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
42149         (test_signbitd): Avoid literal -0.0.
42150         (test_signbitl): Avoid literal -0.0L.
42151         * tests/test-ceilf1.c (zero): New variable.
42152         (main): Avoid literal -0.0f.
42153         * tests/test-ceill.c (zero): New variable.
42154         (main): Avoid literal -0.0L.
42155         * tests/test-floorf1.c (zero): New variable.
42156         (main): Avoid literal -0.0f.
42157         * tests/test-floorl.c (zero): New variable.
42158         (main): Avoid literal -0.0L.
42159         * tests/test-roundf1.c (zero): New variable.
42160         (main): Avoid literal -0.0f.
42161         * tests/test-round1.c (zero): New variable.
42162         (main): Avoid literal -0.0.
42163         * tests/test-roundl.c (zero): New variable.
42164         (main): Avoid literal -0.0L.
42165         * tests/test-truncf1.c (zero): New variable.
42166         (main): Avoid literal -0.0f.
42167         * tests/test-trunc1.c (zero): New variable.
42168         (main): Avoid literal -0.0.
42169         * tests/test-truncl.c (zero): New variable.
42170         (main): Avoid literal -0.0L.
42171         * tests/test-frexp.c (zero): New variable.
42172         (main): Avoid literal -0.0.
42173         * tests/test-frexpl.c (zero): New variable.
42174         (main): Avoid literal -0.0L.
42175         * tests/test-ldexpl.c (zero): New variable.
42176         (main): Avoid literal -0.0L.
42177         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42178         (zerod, zerol): New variables.
42179         (test_function): Avoid literals -0.0, -0.0L.
42180         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42181         (zerod, zerol): New variables.
42182         (test_function): Avoid literals -0.0, -0.0L.
42183         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42184         (zerod, zerol): New variables.
42185         (test_function): Avoid literals -0.0, -0.0L.
42186         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42187         (zerod, zerol): New variables.
42188         (test_function): Avoid literals -0.0, -0.0L.
42189         * tests/test-strtod.c (zero): New variable.
42190         (main): Avoid literal -0.0.
42191         Reported by Jonathan C. Patschke <jp@centtech.com>.
42192
42193 2008-07-31  Jim Meyering  <meyering@redhat.com>
42194
42195         sha256.h: correct definition of SHA224_DIGEST_SIZE
42196         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
42197         Reported by Paulie Pena IV <paulie4@gmail.com>.
42198         Define as 224 / 8, rather than as a literal.
42199         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
42200         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
42201         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
42202
42203 2008-07-31  Bruno Haible  <bruno@clisp.org>
42204
42205         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
42206         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
42207         Reported by Jonathan Patschke <jp@centtech.com>.
42208
42209 2008-07-31  Bruno Haible  <bruno@clisp.org>
42210
42211         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
42212         Reported by Paolo Bonzini <bonzini@gnu.org>.
42213
42214 2008-07-30  Eric Blake  <ebb9@byu.net>
42215
42216         test-strtod: allow compilation without -lm
42217         * tests/test-strtod.c (main): Avoid link dependence on fabs.
42218         Reported by Dennis Clarke <blastwave@gmail.com>.
42219
42220 2008-07-28  Jim Meyering  <meyering@redhat.com>
42221
42222         bootstrap: work also when there are no .po files in po/
42223         * build-aux/bootstrap (update_po_files): Complete the change
42224         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
42225
42226 2008-07-27  Jim Meyering  <meyering@redhat.com>
42227
42228         * users.txt: Add zile.
42229
42230 2008-07-26  Ben Pfaff  <blp@gnu.org>
42231
42232         Add missing dependencies on new m4/exponent[fdl].m4 files.
42233         * modules/isnanf-nolibm: Add m4/exponentf.m4.
42234         * modules/isnand-nolibm: Add m4/exponentd.m4.
42235         * modules/isnanl-nolibm: Add m4/exponentl.m4.
42236         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
42237         m4/isnan[fdl].m4, because the macros actually used moved.
42238         Reported by Jim Meyering.
42239
42240 2008-07-14  Ben Pfaff  <blp@gnu.org>
42241
42242         Add isinf module.
42243         * lib/isinf.c: New file.
42244         * lib/math.in.h: Define isinf macro if we have decided to replace
42245         it.
42246         * m4/isinf.m4: New file.
42247         * m4/math_h.m4: Initialize and substitute variables for isinf
42248         module.
42249         * modules/isinf: New file.
42250         * modules/isinf-tests: New file.
42251         * modules/math: Add substitutions for new module.
42252         * tests/test-isinf.c: New file.
42253         * doc/posix-functions/isinf.texi: Mention new module.
42254         * MODULES.html.sh: Mention new module.
42255
42256 2008-07-14  Ben Pfaff  <blp@gnu.org>
42257
42258         Factor out some macros for use by additional modules.
42259         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
42260         exponentf.m4.
42261         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
42262         exponentd.m4.
42263         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
42264         file exponentl.m4.
42265         * m4/exponentf.m4: New file.
42266         * m4/exponentd.m4: New file.
42267         * m4/exponentl.m4: New file.
42268         * modules/isnanf: Use new file m4/exponentf.m4.
42269         * modules/isnand: Use new file m4/exponentd.m4.
42270         * modules/isnanl: Use new file m4/exponentl.m4.
42271
42272 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
42273
42274         mktime.c: normalize tp->tm_isdst value to -1/0/1.
42275         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
42276         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
42277         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
42278
42279         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
42280         readlink on platforms without PATH_MAX.
42281
42282 2008-07-21  Eric Blake  <ebb9@byu.net>
42283
42284         Warn, not fail, on stale version.
42285         * top/GNUmakefile (_curr-ver): Tone down previous patch.
42286
42287         Don't allow installation with stale devel version number.
42288         * top/GNUmakefile (_is-install-target): New macro.
42289         (_curr-ver): Forbid installation with stale version number.
42290
42291 2008-07-20  Bruno Haible  <bruno@clisp.org>
42292
42293         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
42294         TESTS_ENVIRONMENT.
42295         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
42296
42297 2008-07-20  Bruno Haible  <bruno@clisp.org>
42298
42299         * lib/c-stack.h (c_stack_action): Add documentation.
42300         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
42301
42302 2008-07-20  Bruno Haible  <bruno@clisp.org>
42303
42304         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
42305         * modules/readlink (License): Likewise.
42306
42307 2008-07-17  Eric Blake  <ebb9@byu.net>
42308
42309         * modules/c-stack (Link): Fix typo.
42310
42311         Make c-stack use libsigsegv, when available.
42312         * modules/c-stack (Depends-on): Add libsigsegv.
42313         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
42314         needed.
42315         * lib/c-stack.c (SIGSTKSZ): Define fallback.
42316         (segv_handler, overflow_handler, c_stack_action)
42317         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
42318         implementation when libsigsegv is available, but only when using
42319         the library is necessary.
42320         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
42321         comment, explaining why XSI check fails on Linux.
42322         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
42323         * tests/test-c-stack2.sh: Tweak skip message.
42324         * NEWS: Document new link-time requirements.
42325
42326 2008-07-16  Eric Blake  <ebb9@byu.net>
42327
42328         c-stack: Expose false positives when not using libsigsegv.
42329         * modules/c-stack-tests (Files): Expand test.
42330         * tests/test-c-stack.c (main): Add means to conditionally trigger
42331         non-overflow SIGSEGV.
42332         * tests/test-c-stack2.sh: New file.
42333
42334 2008-07-14  Bruno Haible  <bruno@clisp.org>
42335
42336         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
42337         Reported by Eric Blake.
42338
42339 2008-07-14  Sam Steingold  <sds@gnu.org>
42340             Bruno Haible  <bruno@clisp.org>
42341
42342         New module libsigsegv.
42343         * modules/libsigsegv: New file.
42344         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
42345         modifications.
42346         * MODULES.html.sh (Signal handling): New section.
42347
42348 2008-07-14  Bruno Haible  <bruno@clisp.org>
42349
42350         * modules/unictype/ctype-* (Description): Add the word "function".
42351         Improves the resulting doc in MODULES.html.
42352
42353 2008-07-12  Ben Pfaff  <blp@gnu.org>
42354
42355         Add longlong module.
42356         * modules/longlong: New file.
42357
42358 2008-07-12  Bruno Haible  <bruno@clisp.org>
42359
42360         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
42361         to empty.
42362
42363 2008-07-10  Ben Pfaff  <blp@gnu.org>
42364
42365         Add isnan module.
42366         * doc/posix-functions/isnan.texi: Mention new module.
42367         * lib/math.in.h: Define isnan macro if we have decided to replace
42368         it.
42369         * m4/isnan.m4: New file.
42370         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
42371         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
42372         also.
42373         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
42374         redundancy.
42375         * m4/math_h.m4: Initialize and substitute variables for isnan
42376         module.
42377         * modules/isnan: New file.
42378         * modules/isnan-tests: New file.
42379         * modules/math: Add substitutions for new module.
42380         * tests/test-isnan.c: New file.
42381         * MODULES.html.sh: Mention new module.
42382
42383 2008-07-10  Ben Pfaff  <blp@gnu.org>
42384
42385         Add isnanf module.
42386         * lib/isnanf.m4: New file.
42387         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
42388         (gl_HAVE_ISNANF_IN_LIBM): New macro.
42389         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
42390         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
42391         * modules/isnanf: New file.
42392         * modules/isnanf-tests: New file.
42393         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
42394         files.
42395         * tests/test-isnanf-nolibm.c: factored most of its contents into
42396         new file tests/test-isnanf.h.
42397         * tests/test-isnanf.h: New file.
42398         * tests/test-isnanf.c: New file.
42399         * MODULES.html.sh: Mention new module.
42400         * doc/glibc-functions/isnanf.texi: Mention new module.
42401
42402 2008-07-10  Ben Pfaff  <blp@gnu.org>
42403
42404         Add isnand module.
42405         * lib/isnand.h: New file.
42406         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
42407         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
42408         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
42409         functionality also.
42410         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
42411         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
42412         (gl_HAVE_ISNAND_IN_LIBM): New macro.
42413         * modules/isnand: New file.
42414         * modules/isnand-tests: New file.
42415         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
42416         files.
42417         * tests/test-isnand-nolibm.c: factored most of its contents into
42418         new file tests/test-isnand.h.
42419         * tests/test-isnand.h: New file.
42420         * tests/test-isnand.c: New file.
42421         * MODULES.html.sh: Mention new module.
42422
42423 2008-07-10  Ben Pfaff  <blp@gnu.org>
42424
42425         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
42426         * lib/isnand.h: Rename lib/isnand-nolibm.h.
42427         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
42428         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
42429         * modules/isnanf-nolibm: Update references to renamed files.
42430         * modules/isnand-nolibm: Likewise.
42431         * modules/isnanf-nolibm-tests: Likewise.
42432         * modules/isnand-nolibm-tests: Likewise.
42433         * lib/frexp.c: Likewise.
42434         * lib/isfinite.c: Likewise.
42435         * lib/signbitd.c: Likewise.
42436         * lib/signbitf.c: Likewise.
42437         * lib/vasnprintf.c: Likewise.
42438         * tests/test-ceilf1.c: Likewise.
42439         * tests/test-ceilf2.c: Likewise.
42440         * tests/test-floorf1.c: Likewise.
42441         * tests/test-floorf2.c: Likewise.
42442         * tests/test-frexp.c: Likewise.
42443         * tests/test-round1.c: Likewise.
42444         * tests/test-round2.c: Likewise.
42445         * tests/test-roundf1.c: Likewise.
42446         * tests/test-strtod.c: Likewise.
42447         * tests/test-trunc1.c: Likewise.
42448         * tests/test-trunc2.c: Likewise.
42449         * tests/test-truncf1.c: Likewise.
42450         * tests/test-truncf2.c: Likewise.
42451         * NEWS: Mention the renamed header files.
42452
42453 2008-07-11  Jim Meyering  <meyering@redhat.com>
42454
42455         vc-list-files: make the last-resort awk code more portable
42456         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
42457         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
42458         does not support it.
42459
42460 2008-07-10  Eric Blake  <ebb9@byu.net>
42461
42462         Work with tar's bootstrap.
42463         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
42464         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
42465         an m4 comment.
42466
42467 2008-07-09  Jim Meyering  <meyering@redhat.com>
42468
42469         posix-shell.m4: fix typo that made this test malfunction
42470         * m4/posix-shell.m4: Remove capitalization in variable name.
42471
42472 2008-07-08  Bruno Haible  <bruno@clisp.org>
42473
42474         * m4/onceonly.m4: Update comments.
42475         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42476
42477 2008-07-04  Jim Meyering  <meyering@redhat.com>
42478
42479         * users.txt: Add vc-dwim.
42480         (bison, coreutils): Use the gitweb URL.
42481
42482 2008-07-03  Jim Meyering  <meyering@redhat.com>
42483
42484         * users.txt: Add libffcall.  From Sam Steingold.
42485
42486 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
42487
42488         getdate.y: do not ignore TZ with relative day, month or year offset
42489         * lib/getdate.y (get_date): Move the tz-handling block to follow the
42490         relative-date-handling, since otherwise, the latter would clobber the
42491         sole output (an updated Start value) of the tz-handling block.
42492         * tests/test-getdate.c: Tests for the fix
42493
42494 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42495
42496         Recognize 'foo_LIBRARIES += libgnu.a'.
42497         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
42498         makefile snippet has already specified an installation location,
42499         also using '+='.
42500
42501 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
42502
42503         getdate.y: factor out common actions
42504         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
42505         Use them in place of open-coded actions.
42506
42507 2008-07-01  Simon Josefsson  <simon@josefsson.org>
42508
42509         Add self-test for getdate module.
42510         * modules/getdate-tests: New file.
42511         * tests/test-getdate.c: New file.
42512
42513 2008-06-29  Bruno Haible  <bruno@clisp.org>
42514
42515         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
42516         .gitignore.
42517         Reported by Sylvain Beucler <beuc@beuc.net>.
42518
42519 2008-06-29  Bruno Haible  <bruno@clisp.org>
42520
42521         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
42522         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
42523
42524 2008-06-29  Bruno Haible  <bruno@clisp.org>
42525
42526         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
42527         EXTRA_DIST.
42528         Reported by Sylvain Beucler <beuc@beuc.net>.
42529
42530 2008-06-26  Jim Meyering  <meyering@redhat.com>
42531
42532         make several modules depend on the "open" module
42533         This provides slightly increased consistency when opening-for-write
42534         the name of a non-directory spelled with a trailing slash.
42535         * modules/chdir-safer: Likewise.
42536         * modules/chown: Likewise.
42537         * modules/clean-temp: Likewise.
42538         * modules/copy-file: Likewise.
42539         * modules/fchdir: Likewise.
42540         * modules/fcntl-safer: Likewise.
42541         * modules/pipe: Likewise.
42542         * modules/utime: Likewise.
42543         Prompted by Eric Blake and Bruno Haible.
42544
42545 2008-06-24  Andreas Schwab  <schwab@suse.de>
42546
42547         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
42548         literals can be used as initializers for global variables.
42549
42550 2008-06-23  Eric Blake  <ebb9@byu.net>
42551
42552         Make gnulib-cache.m4 easier to diff.
42553         * gnulib-tool (func_import): Allow newlines when reading cached
42554         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
42555
42556 2008-06-23  Bruno Haible  <bruno@clisp.org>
42557
42558         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
42559         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
42560         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
42561         m4/signalblocking.m4.
42562         (gl_PREREQ_SIGACTION): Don't invoke it.
42563         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
42564         gl_PREREQ_SIG_HANDLER_H.
42565         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42566         Don't check for sigaction here.
42567
42568 2008-06-23  Bruno Haible  <bruno@clisp.org>
42569
42570         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
42571         (install_handlers): Don't set the SA_RESETHAND flag.
42572
42573 2008-06-23  Bruno Haible  <bruno@clisp.org>
42574
42575         * m4/sigaction.m4: Comment fixes.
42576         * lib/signal.in.h: Likewise.
42577
42578 2008-06-23  Eric Blake  <ebb9@byu.net>
42579
42580         Fix typo.
42581         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
42582
42583         Avoid SA_ namespace.
42584         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
42585         Reported by Ralf Wildenhues.
42586
42587         Avoid test failure due to SA_RESTORER.
42588         * tests/test-sigaction.c (SA_MASK): New macro.
42589         (main): Avoid failing due to extension flags being set.
42590         Reported by Jim Meyering.
42591
42592         Revert use of sig-handler.h in sigprocmask.c.
42593         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
42594         it requires the existence of struct sigaction.
42595         * lib/sigprocmask.c (handler_t): Restore typedef.
42596         (rpl_signal, old_handlers): Use local type.
42597
42598 2008-06-22  Bruno Haible  <bruno@clisp.org>
42599
42600         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
42601         conditionally.
42602         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42603
42604 2008-06-22  Bruno Haible  <bruno@clisp.org>
42605
42606         * doc/posix-functions/siginterrupt.texi: Move note.
42607
42608         * lib/signal.in.h (SA_RESTART): New macro.
42609         * lib/sigaction.c: Update comment.
42610
42611         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
42612
42613         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
42614         (gl_PREREQ_SIGPROCMASK): Invoke it.
42615         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
42616
42617         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
42618
42619         * lib/sigprocmask.c: Update a comment.
42620
42621 2008-06-21  Eric Blake  <ebb9@byu.net>
42622
42623         Use sigaction module rather than signal().
42624         * modules/c-stack (Depends-on): Add sigaction.
42625         * modules/fatal-signal (Depends-on): Likewise.
42626         * modules/nanosleep (Depends-on): Likewise.
42627         * modules/sigprocmask (Files): Add sig-handler.h.
42628         * modules/sigaction (Files): Likewise.
42629         * lib/sig-handler.h (get_handler): New file, suggested by Paul
42630         Eggert.
42631         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
42632         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
42633         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
42634         (init_fatal_signals): Likewise.
42635         * lib/nanosleep.c (rpl_nanosleep): Likewise.
42636         (siginterrupt): Delete fallback.
42637         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
42638         instead.
42639         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
42640         siginterrupt.
42641
42642         New module sigaction, for mingw.
42643         * modules/sigaction: New module...
42644         * modules/sigaction-tests: ...and its test.
42645         * m4/sigaction.m4: New file.
42646         * lib/sigaction.c: Likewise.
42647         * tests/test-sigaction.c: Likewise.
42648         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
42649         * modules/signal (Makefile.am): Likewise.
42650         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
42651         needed.
42652         * doc/posix-headers/signal.texi (signal.h): Mention provided
42653         types.
42654         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
42655         that sigaction is preferable.
42656         * doc/posix-functions/sigaction.texi (sigaction): Mention new
42657         module.
42658         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42659         sigaction.
42660
42661         Improve robustness of sigprocmask by overriding signal.
42662         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
42663         is in use.
42664         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
42665         (SIGKILL, SIGSTOP): Provide fallbacks.
42666         (rpl_signal): Implement.
42667         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
42668         signal can be called inside handlers.
42669
42670         Fix nanosleep module on mingw.
42671         * modules/nanosleep (Depends-on): Add sys_select.
42672         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
42673
42674         Fix licensing of sigprocmask.
42675         * modules/raise (License): Relicense as LGPL.
42676
42677 2008-06-21  Bruno Haible  <bruno@clisp.org>
42678
42679         * lib/propername.c (proper_name_utf8): Don't use the transliterated
42680         result if it contains question marks.
42681         Reported by Michael Geng <linux@michaelgeng.de>.
42682
42683 2008-06-19  Bruno Haible  <bruno@clisp.org>
42684
42685         Fix CVS-ism.
42686         * doc/gnulib.texi: Include updated-stamp.texi.
42687         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
42688         (updated-stamp.texi): New rule.
42689         (gnulib.info): Depend on it.
42690         * doc/.gitignore: Add updated-stamp.texi.
42691         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
42692
42693 2008-06-19  Bruno Haible  <bruno@clisp.org>
42694
42695         * doc/Makefile (gnulib.info): Update and simplify dependencies.
42696         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42697
42698 2008-06-19  Eric Blake  <ebb9@byu.net>
42699
42700         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
42701         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
42702         Reported by Stepan Kasal.
42703
42704 2008-06-18  Bruno Haible  <bruno@clisp.org>
42705
42706         * lib/fatal-signal.c (init_fatal_signals): Add comment.
42707         Reported by Eric Blake.
42708
42709 2008-06-18  Eric Blake  <ebb9@byu.net>
42710
42711         Work around cygwin 1.5.25 strsignal bug.
42712         * tests/test-strsignal.c: Allow for const char *.
42713         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
42714
42715 2008-06-18  Simon Josefsson  <simon@josefsson.org>
42716
42717         * users.txt: Update URL to article and add author/date
42718         information.
42719
42720 2008-06-17  Bruno Haible  <bruno@clisp.org>
42721
42722         New macro gl_DISABLE_THREADS.
42723         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
42724         if the user did not pass --enable-threads or --disable-threads option.
42725         (gl_DISABLE_THREADS): New macro.
42726         Reported by Eric Blake <ebb9@byu.net>.
42727
42728 2008-06-17  Bruno Haible  <bruno@clisp.org>
42729
42730         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
42731         when the macro ignores it.
42732         Based on a patch by Eric Blake <ebb9@byu.net>.
42733
42734 2008-06-17  Bruno Haible  <bruno@clisp.org>
42735
42736         * modules/tls (License): Change to LGPLv2+.
42737         Reported by Eric Blake.
42738
42739 2008-06-17  Eric Blake  <ebb9@byu.net>
42740
42741         Simplify c-stack prerequisites.
42742         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
42743         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
42744         no longer requires <ucontext.h> to exist.  Optimize setrlimit
42745         check.
42746         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
42747         <sys/resource.h>.
42748
42749         Move c-stack test into testsuite.
42750         * modules/c-stack-tests: New file.
42751         * lib/c-stack.c [DEBUG]: Move test program...
42752         * tests/test-c-stack.c: ...into this new file.  Skip rather than
42753         fail test if sigaltstack is lacking.
42754         * tests/test-c-stack.sh: New driver file.
42755
42756 2008-06-16  Eric Blake  <ebb9@byu.net>
42757
42758         Use raise module consistently.
42759         * modules/fatal-signal (Depends-on): Add raise.
42760         * modules/sigprocmask (Depends-on): Likewise.
42761         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
42762         * lib/sigprocmask.c (sigprocmask): Likewise.
42763         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42764         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
42765
42766         Fix compliance bug in sigpending.
42767         * lib/sigprocmask.c (sigpending): Return pending array via
42768         parameter, not return value.
42769
42770 2008-06-14  Eric Blake  <ebb9@byu.net>
42771
42772         Improve obstack-printf test code.
42773         * tests/test-obstack-printf.c (test_function): Fix comment, and
42774         simplify usage of obstack_* in macros.  Add a test for coverage.
42775         Reported by Bruno Haible.
42776
42777 2008-06-14  Bruno Haible  <bruno@clisp.org>
42778
42779         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
42780         array size as a constant, not as a const variable.
42781         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
42782         AC_USE_SYSTEM_EXTENSIONS.
42783         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42784         Test whether the obstack_printf function actually exists.
42785         * modules/obstack-printf (Depends-on): Add extensions.
42786         (Include): Remove obstack.h.
42787         * modules/obstack-printf-posix (Depends-on): Add extensions.
42788         (Include): Remove obstack.h.
42789
42790 2008-06-13  Eric Blake  <ebb9@byu.net>
42791
42792         Add obstack-printf and obstack-printf-posix modules.
42793         * modules/obstack-printf: New file.
42794         * modules/obstack-printf-posix: Likewise.
42795         * MODULES.html.sh (Misc): Mention them.
42796         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42797         Likewise.
42798         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42799         Likewise.
42800         * modules/stdio (Makefile.am): Accomodate new modules.
42801         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42802         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
42803         Declare.
42804         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
42805         functions.
42806         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
42807         (gl_REPLACE_OBSTACK_PRINTF): New macros
42808         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
42809         * tests/test-obstack-printf.c: New file.
42810         * modules/obstack-printf-tests: Likewise.
42811         * modules/obstack-printf-posix-tests: Likewise.
42812
42813 2008-06-11  Bruno Haible  <bruno@clisp.org>
42814
42815         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
42816         * lib/open.c: Include errno.h.
42817         (open): Fail when attempting to write to a file that has a trailing
42818         slash.
42819         * tests/test-open.c (main): Test against trailing slash bug.
42820         * doc/posix-functions/open.texi: Mention the trailing slash bug.
42821
42822 2008-06-10  Bruno Haible  <bruno@clisp.org>
42823
42824         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
42825         for $? to work inside the trap command, with various /bin/sh-s.
42826         * tests/test-vc-list-files-cvs.sh: Likewise.
42827
42828 2008-06-10  Bruno Haible  <bruno@clisp.org>
42829
42830         * lib/acl-internal.h: Don't include gettext.h here.
42831         * lib/set-mode-acl.c: Include gettext.h here.
42832         * lib/copy-acl.c: Likewise.
42833
42834 2008-06-10  Bruno Haible  <bruno@clisp.org>
42835
42836         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
42837         * lib/wait-process.c (wait_subprocess): Likewise.
42838         * lib/execute.h (execute): Add termsigp argument.
42839         * lib/execute.c (execute): Likewise.
42840         * lib/csharpcomp.c (compile_csharp_using_pnet,
42841         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
42842         * lib/csharpexec.c (execute_csharp_using_pnet,
42843         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
42844         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
42845         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
42846         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
42847         is_jikes_present): Update.
42848         * lib/javaexec.c (execute_java_class): Update.
42849         * lib/javaversion.c (execute_and_read_line): Update.
42850         * NEWS: Document the changes.
42851         Reported by Eric Blake.
42852
42853 2008-06-10  Eric Blake  <ebb9@byu.net>
42854
42855         Add missing include.
42856         * tests/test-strstr.c (includes): Add <signal.h>.
42857         * tests/test-strcasestr.c (includes): Likewise.
42858         * tests/test-memmem.c (includes): Likewise.
42859
42860 2008-06-10  Bruno Haible  <bruno@clisp.org>
42861
42862         * lib/wait-process.c (wait_subprocess): Add an assertion.
42863
42864 2008-06-10  Bruno Haible  <bruno@clisp.org>
42865
42866         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
42867
42868 2008-06-10  Bruno Haible  <bruno@clisp.org>
42869
42870         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
42871         using alarm().
42872         * tests/test-strcasestr.c (main): Likewise.
42873         * tests/test-strstr.c (main): Likewise.
42874
42875 2008-06-09  Bruno Haible  <bruno@clisp.org>
42876
42877         Work around the Solaris 10 ACE ACLs ABI change.
42878         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
42879         declare if ACL_NO_TRIVIAL is present.
42880         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
42881         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
42882         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
42883         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
42884         define if ACL_NO_TRIVIAL is present.
42885         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
42886         and use the current ABI.
42887         (file_has_acl): Use same #if condition as elsewhere.
42888         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
42889         in use, and use the current ABI.
42890         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
42891         Reported by Jim Meyering.
42892
42893 2008-06-09  Eric Blake  <ebb9@byu.net>
42894
42895         Work around environments that (stupidly) ignore SIGALRM.
42896         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
42897         before using alarm().
42898         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42899         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42900         Reported by Ian Beckwith <ianb@erislabs.net>.
42901
42902         Produce autobuild blurb earlier in log.
42903         * modules/autobuild (configure.ac-early): Move AB_INIT here.
42904
42905 2008-06-09  Jim Meyering  <meyering@redhat.com>
42906         and OndÅ™ej Vašík  <ovasik@redhat.com>
42907
42908         utimens.c: correct kernel bug work-around
42909         OndÅ™ej Vašík found that the invalid return value of 280 indicates
42910         failure, not success, and the kernel bug we're trying to work
42911         around affects not just the utimensat call, but also the fallback
42912         futimens call.
42913         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
42914         not success.
42915         [HAVE_FUTIMENS]: Use the same work-around, here.
42916
42917 2008-06-09  Jim Meyering  <meyering@redhat.com>
42918
42919         add more guards around definition of ACE_-related code
42920         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
42921         ALLOW and ACE_OWNER are also defined.
42922
42923 2008-06-08  Bruno Haible  <bruno@clisp.org>
42924
42925         * lib/acl-internal.h: Add me as co-author.
42926         * lib/file-has-acl.c: Likewise.
42927         * lib/set-mode-acl.c: Likewise.
42928         * lib/copy-acl.c: Likewise.
42929
42930 2008-06-08  Bruno Haible  <bruno@clisp.org>
42931
42932         Add support for AIX ACLs.
42933         * lib/acl-internal.h (acl_nontrivial): New declaration.
42934         * lib/file-has-acl.c (acl_nontrivial): New function.
42935         (file_has_acl): Add implementation using AIX 4 ACL API.
42936         * lib/set-mode-acl.c (qset_acl): Likewise.
42937         * lib/copy-acl.c (qcopy_acl): Likewise.
42938
42939 2008-06-08  Bruno Haible  <bruno@clisp.org>
42940
42941         Add support for HP-UX ACLs.
42942         * lib/acl-internal.h (acl_nontrivial): New declaration.
42943         * lib/file-has-acl.c (acl_nontrivial): New function.
42944         (file_has_acl): Add implementation using HP-UX 11 ACL API.
42945         * lib/set-mode-acl.c (qset_acl): Likewise.
42946         * lib/copy-acl.c (qcopy_acl): Likewise.
42947
42948 2008-06-08  Bruno Haible  <bruno@clisp.org>
42949
42950         Add support for Cygwin ACLs.
42951         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
42952         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
42953         the chmod_or_fchmod call.
42954         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
42955
42956 2008-06-08  Bruno Haible  <bruno@clisp.org>
42957
42958         Fix bug with setuid modes in Solaris 10+ code.
42959         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
42960         succeeded, when the mode contains some special bits.
42961
42962 2008-06-08  Bruno Haible  <bruno@clisp.org>
42963
42964         Add support for Solaris 7..10 ACLs.
42965         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
42966         declarations.
42967         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
42968         functions.
42969         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
42970         * lib/set-mode-acl.c (qset_acl): Likewise.
42971         * lib/copy-acl.c (qcopy_acl): Likewise.
42972
42973 2008-06-08  Bruno Haible  <bruno@clisp.org>
42974
42975         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
42976         declaration.
42977         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
42978         (acl_access_nontrivial): Remove MacOS X case.
42979         (file_has_acl): Use acl_extended_nontrivial.
42980         * lib/copy-acl.c (qcopy_acl): Likewise.
42981
42982 2008-06-08  Bruno Haible  <bruno@clisp.org>
42983
42984         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
42985
42986 2008-06-08  Jim Meyering  <meyering@redhat.com>
42987
42988         * modules/acl (Maintainer): Add Bruno Haible.
42989
42990 2008-06-07  Bruno Haible  <bruno@clisp.org>
42991
42992         Improve support for Tru64 ACLs.
42993         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
42994         ACL on OSF/1.
42995
42996 2008-06-07  Bruno Haible  <bruno@clisp.org>
42997
42998         Add support for MacOS X ACLs.
42999         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
43000         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
43001         * lib/set-mode-acl.c (qset_acl): Likewise.
43002         * lib/copy-acl.c (qcopy_acl): Likewise.
43003
43004 2008-06-07  Bruno Haible  <bruno@clisp.org>
43005
43006         Fix memory leak introduced on 2008-05-22.
43007         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
43008         use.
43009
43010 2008-06-07  Bruno Haible  <bruno@clisp.org>
43011
43012         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
43013         to construct an empty ACL.
43014
43015 2008-06-07  Bruno Haible  <bruno@clisp.org>
43016
43017         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
43018         precisely.
43019         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
43020
43021 2008-06-07  Bruno Haible  <bruno@clisp.org>
43022
43023         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
43024         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
43025
43026 2008-06-07  Bruno Haible  <bruno@clisp.org>
43027
43028         * doc/posix-functions/_setjmp.texi: Explain the use of this function
43029         regardless of POSIX.
43030         * doc/posix-functions/_longjmp.texi: Likewise.
43031         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
43032         SystemV platform in this case.
43033
43034 2008-06-06  Eric Blake  <ebb9@byu.net>
43035
43036         Document abort() bugs.
43037         * doc/posix-functions/abort.texi (abort): Mention anomalies.
43038
43039         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
43040         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
43041         sigsetjmp.
43042         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
43043         siglongjmp, but only as a macro.
43044         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
43045         is obsolete.
43046         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
43047
43048         Tweak documentation to cover cygwin argz bugs.
43049         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
43050         argz bug fix; no code change needed since no cygwin releases
43051         occurred between the last fix and the bug being tested.
43052         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
43053         module and recently fixed cygwin bugs.
43054         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
43055         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
43056         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
43057         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
43058         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
43059         Likewise.
43060         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
43061         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
43062         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
43063         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
43064         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
43065         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
43066         Likewise.
43067
43068         Avoid gcc warning on cygwin.
43069         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
43070         !ACL_NO_TRIVIAL]: Avoid unused variable.
43071
43072 2008-06-05  Eric Blake  <ebb9@byu.net>
43073
43074         Be tolerant of UNKNOWN version in gnulib-tool test dir.
43075         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
43076         git-version-gen fails to come up with a version.
43077         Reported by Simon Josefsson.
43078
43079 2008-06-05  Jim Meyering  <meyering@redhat.com>
43080             Paul Eggert  <eggert@cs.ucla.edu>
43081
43082         utimens.c: work around a probable Linux kernel bug
43083         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
43084         appears to be a kernel bug that causes utimensat to return 280
43085         instead of 0, indicating success.
43086
43087 2008-06-04  Bruno Haible  <bruno@clisp.org>
43088
43089         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
43090         2008-06-01 commit.
43091
43092 2008-06-04  Bruno Haible  <bruno@clisp.org>
43093
43094         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
43095         * lib/file-has-acl.c (acl_access_nontrivial): New function.
43096         (file_has_acl): Use it. Save errno afterwards.
43097         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
43098
43099 2008-06-03  Bruno Haible  <bruno@clisp.org>
43100
43101         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
43102         draft code. Simplify #ifs.
43103         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
43104         Put Solaris code after POSIX-draft code. Fix comments regarding
43105         Solaris 10, HP-UX. Mention Cygwin.
43106         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
43107
43108 2008-06-03  Eric Blake  <ebb9@byu.net>
43109
43110         Provide fallback for older kernels.
43111         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
43112         Provide runtime fallback if kernel lacks support.
43113         Reported by Mike Frysinger.
43114
43115 2008-06-02  Bruno Haible  <bruno@clisp.org>
43116
43117         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
43118         it exists.
43119
43120 2008-06-02  Bruno Haible  <bruno@clisp.org>
43121
43122         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
43123         * lib/copy-acl.c (qcopy_acl): Update comment.
43124
43125 2008-06-02  Bruno Haible  <bruno@clisp.org>
43126
43127         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
43128         like ACL APIs.
43129
43130 2008-06-02  Bruno Haible  <bruno@clisp.org>
43131
43132         * tests/test-file-has-acl.sh: Use different code for Cygwin.
43133         * tests/test-set-mode-acl.sh: Likewise.
43134         * tests/test-copy-acl.sh: Likewise.
43135         * tests/test-copy-file.sh: Likewise.
43136
43137 2008-06-02  Bruno Haible  <bruno@clisp.org>
43138
43139         * tests/test-file-has-acl.sh: Remove unused code.
43140
43141 2008-06-01  Bruno Haible  <bruno@clisp.org>
43142
43143         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
43144         (copy_acl): Just a wrapper around qcopy_acl that emits the error
43145         messages.
43146         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
43147
43148 2008-06-01  Bruno Haible  <bruno@clisp.org>
43149
43150         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
43151         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
43152         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
43153         APIs.
43154         * modules/acl-tests (configure.ac): Remove tests now contained in
43155         m4/acl.m4.
43156
43157 2008-06-02  Jim Meyering  <meyering@redhat.com>
43158
43159         announce-gen: use a better key-server host name
43160         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
43161         it may be more consistently reliable.  Suggested by Werner Koch
43162         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
43163
43164 2008-06-01  Bruno Haible  <bruno@clisp.org>
43165
43166         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
43167         Reported by Voroskoi Andras <voroskoi@gmail.com>.
43168
43169 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
43170
43171         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
43172
43173 2008-06-01  Bruno Haible  <bruno@clisp.org>
43174
43175         New ACL tests.
43176         * tests/test-file-has-acl.sh: New file.
43177         * tests/test-file-has-acl.c: New file.
43178         * tests/test-set-mode-acl.sh: New file.
43179         * tests/test-set-mode-acl.c: New file.
43180         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
43181         * tests/test-copy-acl.c: New file.
43182         * modules/acl-tests: New file, based on modules/copy-file-tests.
43183         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
43184         (Depends-on): Add acl-tests.
43185         (configure.ac): Remove checks.
43186         (Makefile.am): Don't create test-sameacls program here any more.
43187
43188 2008-06-01  Bruno Haible  <bruno@clisp.org>
43189
43190         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
43191         * tests/test-sameacls.c: Include progname.h.
43192         (main): Invoke set_program_name. Portability fixes for MacOS X,
43193         Solaris, HP-UX.
43194
43195 2008-06-01  Bruno Haible  <bruno@clisp.org>
43196
43197         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
43198         function.
43199         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
43200
43201 2008-06-01  Bruno Haible  <bruno@clisp.org>
43202
43203         * modules/rpmatch (Depends-on): Add strdup.
43204
43205 2008-06-01  Bruno Haible  <bruno@clisp.org>
43206
43207         * lib/pipe.c: Include unistd-safer.h.
43208         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
43209         * modules/pipe (Depends-on): Add unistd-safer.
43210
43211 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43212
43213         * modules/autobuild (configure.ac): Call AB_INIT.
43214
43215 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43216
43217         * tests/test-getaddrinfo.c: Don't print debug messages by default.
43218         Suggested by Bruno Haible <bruno@clisp.org>.
43219
43220 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43221
43222         * tests/test-base64.c: Cast size_t to unsigned long when invoking
43223         printf.  Use %lu instead of %d.  Reported by Bruno Haible
43224         <bruno@clisp.org>.
43225
43226 2008-05-29  Eric Blake  <ebb9@byu.net>
43227
43228         Prefer new POSIX 200x interfaces over futimesat.
43229         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
43230         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
43231         when available.
43232         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
43233
43234 2008-05-28  Bruno Haible  <bruno@clisp.org>
43235
43236         * modules/stpcpy (License): Change to LGPLv2+.
43237         Requested by David Lutterkort <dlutter@redhat.com>.
43238
43239 2008-05-27  Bruno Haible  <bruno@clisp.org>
43240
43241         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
43242         current mingw.
43243         Reported by Jose E. Marchesi <jemarch@gnu.org>.
43244
43245 2008-05-27  Bruno Haible  <bruno@clisp.org>
43246
43247         * modules/iconv_open (Link): New section, from module 'iconv'.
43248         * modules/striconv (Link): Likewise.
43249         * modules/striconveh (Link): Likewise.
43250         * modules/xstriconv (Link): Likewise.
43251         * modules/unicodeio (Link): Likewise.
43252         * modules/propername (Link): Likewise.
43253         Reported by Jim Meyering.
43254
43255 2008-05-26  Jim Meyering  <meyering@redhat.com>
43256
43257         sha256: do not artificially restrict buffer length to be < 2^32
43258         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
43259         uint32_t to size_t.
43260         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
43261         to match.
43262
43263         avoid unaligned access errors, e.g., on sparc
43264         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
43265         direct access through a possibly-unaligned uint64* pointer.
43266         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
43267         direct access through a possibly-unaligned uint32* pointer.
43268         Prompted by this patch from Tom "spot" Callaway:
43269         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
43270
43271         sha512.c: fix typo in comment
43272         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
43273
43274 2008-05-25  Bruno Haible  <bruno@clisp.org>
43275
43276         * lib/set-mode-acl.c: Renamed from lib/acl.c.
43277         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
43278         (Makefile.am): Update lib_SOURCES.
43279
43280 2008-05-25  Bruno Haible  <bruno@clisp.org>
43281
43282         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
43283
43284 2008-05-25  Jim Meyering  <meyering@redhat.com>
43285
43286         useless-if-before-free: freed expr may have white-space differences
43287         * build-aux/useless-if-before-free: Recognize cases in which the
43288         freed expression differs from the tested one in embedded white
43289         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
43290         $1 was used, so we can't make any regexp shy.  Improved tests now
43291         detect this.
43292
43293         useless-if-before-free: accept white space in the expression.
43294         * build-aux/useless-if-before-free: For now, any white space
43295         in the expression must be identical in the free argument.
43296
43297         useless-if-before-free: efficiency tweak
43298         * build-aux/useless-if-before-free: Make the expression-matching
43299         regexp "shy".
43300         Make the *outer* regexp shy, not the expr-matching one.
43301
43302         update code-in-comment to accept cast of free arg
43303         * build-aux/useless-if-before-free: Update regexp.
43304
43305 2008-05-25  Bruno Haible  <bruno@clisp.org>
43306
43307         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
43308         * modules/copy-file-tests (Files, Makefile.am): Update.
43309         * tests/test-copy-file.c (func_test_copy): Update.
43310
43311 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
43312
43313         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
43314
43315 2008-05-23  Bruno Haible  <bruno@clisp.org>
43316
43317         Improve support for ACLs on OSF/1.
43318         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
43319         Remove fallback for unknown flavors of ACLs.
43320
43321 2008-05-22  Bruno Haible  <bruno@clisp.org>
43322
43323         Add support for ACLs on OSF/1.
43324         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
43325         replacements.
43326         (acl_free_text): New macro fallback.
43327         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
43328         acl_free.
43329         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
43330         acl_free_text function. Require AC_C_INLINE.
43331
43332 2008-05-22  Bruno Haible  <bruno@clisp.org>
43333
43334         Make copy_acl work on MacOS X 10.5.
43335         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
43336         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
43337         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
43338         If MODE_INSIDE_ACL, don't assume that every system has the same text
43339         representation for ACLs as FreeBSD.
43340         * lib/copy-acl.c (copy_acl): Add support for platforms with
43341         !MODE_INSIDE_ACL.
43342         * lib/file-has-acl.c (file_has_acl): Likewise.
43343         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
43344         FreeBSD, MacOS X, or IRIX, respectively.
43345
43346 2008-05-22  Bruno Haible  <bruno@clisp.org>
43347
43348         * lib/acl.h: Don't include <sys/acl.h>.
43349         (GETACLCNT): Move fallback to lib/acl-internal.h.
43350         * lib/acl-internal.h: Include <sys/acl.h> here.
43351         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
43352
43353 2008-05-22  Bruno Haible  <bruno@clisp.org>
43354
43355         Split off copy_acl function to separate file.
43356         * lib/copy-acl.c: New file, extracted from lib/acl.c.
43357         * lib/acl.c (copy_acl): Moved function to separate file.
43358         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
43359         * modules/acl (Files): Add lib/copy-acl.c.
43360         (Makefiles.am): Augment lib_SOURCES.
43361
43362 2008-05-22  Bruno Haible  <bruno@clisp.org>
43363
43364         * modules/copy-file-tests: New file.
43365         * tests/test-copy-file.sh: New file.
43366         * tests/test-copy-file.c: New file.
43367         * tests/test-copy-file-sameacls.c: New file.
43368
43369 2008-05-22  Eric Blake  <ebb9@byu.net>
43370
43371         Avoid gcc warning.
43372         * tests/test-memcmp.c (main): Pass NULL indirectly.
43373
43374 2008-05-21  Bruno Haible  <bruno@clisp.org>
43375
43376         Add reference doc about ACLs.
43377         * doc/acl-resources.txt: New file.
43378         * doc/acl-cygwin.txt: New file.
43379
43380 2008-05-21  Bruno Haible  <bruno@clisp.org>
43381
43382         Avoid one more warning from gcc.
43383         * lib/vasnprintf.c (IF_LINT): Update comments.
43384         (VASNPRINTF): Use it also for the 'prefix' array initializer.
43385
43386 2008-05-21  Jim Meyering  <meyering@redhat.com>
43387
43388         avoid a warning from gcc
43389         * lib/vasnprintf.c (IF_LINT): Define.
43390         (scale10_round_decimal_long_double):
43391         Use it to avoid a "may be used uninitialized" warning.
43392         (scale10_round_decimal_double): Likewise.
43393
43394 2008-05-21  Simon Josefsson  <simon@josefsson.org>
43395
43396         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
43397         declared.
43398
43399 2008-05-20  Bruno Haible  <bruno@clisp.org>
43400
43401         * tests/test-memcmp.c (main): Test also the sign of the result. Test
43402         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
43403
43404 2008-05-20  Simon Josefsson  <simon@josefsson.org>
43405
43406         * modules/memcmp-tests: New file.
43407         * tests/test-memcmp.c: New file.
43408
43409 2008-05-19  Bruno Haible  <bruno@clisp.org>
43410
43411         * modules/propername (Notice, configure.ac): Put quoted "..." into
43412         --keyword option.
43413         * lib/propername.h: Update comments accordingly.
43414         Reported by Eric Blake.
43415
43416 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
43417
43418         * modules/getpass-gnu (Depends-on): Add fseeko.
43419
43420 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43421
43422         * modules/base64-tests: New file.
43423
43424 2008-05-19  Bo Borgerson <gigabo@gmail.com>
43425
43426         * lib/base64.c (base64_decode_ctx): If a decode context structure
43427         was passed in use it to ignore newlines.  If a context structure
43428         was _not_ passed in, continue to treat newlines as garbage (this
43429         is the historical behavior).  Formerly base64_decode.
43430         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43431         takes a decode context structure.
43432         * lib/base64.h (base64_decode): Macro for four-argument calls.
43433         (base64_decode_alloc): Likewise.
43434         * lib/base64.c (base64_decode_ctx): If a decode context structure
43435         was passed in use it to ignore newlines.  If a context structure
43436         was _not_ passed in, continue to treat newlines as garbage (this
43437         is the historical behavior).  Formerly base64_decode.
43438         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43439         takes a decode context structure.
43440         * lib/base64.h (base64_decode): Macro for four-argument calls.
43441         (base64_decode_alloc): Likewise.
43442
43443 2008-05-19  Jim Meyering  <meyering@redhat.com>
43444
43445         avoid a warning from gcc
43446         * lib/trim.c (IF_LINT): Define.
43447         (trim2): Use it to avoid a "may be used uninitialized" warning.
43448
43449         Fix doc typo.
43450         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
43451
43452 2008-05-19  Bruno Haible  <bruno@clisp.org>
43453
43454         * doc/glibc-functions/getpass.texi: Document limits of other
43455         implementations.
43456
43457 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43458             Bruno Haible <bruno@clisp.org>
43459
43460         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
43461
43462 2008-05-18  Bruno Haible  <bruno@clisp.org>
43463
43464         * modules/propername: New file, from GNU gettext.
43465         * lib/propername.h: New file, from GNU gettext.
43466         * lib/propername.c: New file, from GNU gettext.
43467         * MODULES.html.sh (Internationalization functions): Add propername.
43468
43469 2008-05-16  Jim Meyering  <meyering@redhat.com>
43470             Bruno Haible  <bruno@clisp.org>
43471
43472         Avoid some warnings from "gcc -Wshadow".
43473         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
43474
43475 2008-05-15  Eric Blake  <ebb9@byu.net>
43476
43477         Extend previous patch to cygwin 1.7.0.
43478         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
43479         fast implementation in cygwin >= 1.7.0.
43480         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43481         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43482
43483 2008-05-15  Bruno Haible  <bruno@clisp.org>
43484
43485         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
43486         implementation in glibc >= 2.9.
43487         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43488         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43489
43490 2008-05-15  Bruno Haible  <bruno@clisp.org>
43491
43492         * MODULES.html.sh (Internationalization functions): Remove linebreak.
43493         (Unicode string functions): Add unilbrk/*.
43494         Reported by Karl Berry.
43495
43496 2008-05-15  Eric Blake  <ebb9@byu.net>
43497
43498         Fix violation of <stdbool.h> replacement in regex.
43499         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
43500         * lib/regexec.c (re_search_internal): Likewise.
43501         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
43502
43503 2008-05-15  Jim Meyering  <meyering@redhat.com>
43504
43505         avoid distracting test output when git or cvs is not found
43506         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
43507         * tests/test-vc-list-files-git.sh: Likewise.
43508
43509 2008-05-15  Eric Blake  <ebb9@byu.net>
43510
43511         Glibc finally accepted the memmem speedup code, bugzilla #5514.
43512         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
43513         glibc version.
43514         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43515         * doc/posix-functions/strstr.texi (strstr): Likewise.
43516         * lib/str-two-way.h (MAX): Sychronize with glibc.
43517
43518 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
43519
43520         * lib/regcomp.c (optimize_utf8): Add a note on why we test
43521         opr.ctx_type.
43522         (calc_first): Initialize constraint field.
43523         (duplicate_node_closure): Use it instead of special casing ANCHORS.
43524         Fix grammar.
43525         (duplicate_node): Merge constraint field for all node types.
43526         (calc_eclosure_iter): Look at constraint field for all node types.
43527         * lib/regex_internal.c (create_cd_newstate): Don't look at
43528         opr.ctx_type.
43529
43530 2008-05-14  Bruno Haible  <bruno@clisp.org>
43531
43532         Help GCC to do better code generation.
43533         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
43534         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
43535         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
43536         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
43537         Declare with attribute 'malloc' if supported.
43538
43539 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
43540
43541         use "echo STR|wc -c" rather than unportable "expr length STR"
43542         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
43543         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
43544
43545 2008-05-14  Jim Meyering  <meyering@redhat.com>
43546
43547         use dd ibs=$n count=1 ... rather than less-portable head -c$n
43548         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
43549         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
43550         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
43551         via Collin Lasse.
43552
43553 2008-05-14  Eric Blake  <ebb9@byu.net>
43554
43555         Avoid quadratic growth in gl_LIBSOURCES.
43556         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
43557         Suggested by Bruno Haible.
43558
43559         Test xmemdup0.
43560         * modules/xmemdup0-tests: New file.
43561         * tests/test-xmemdup0.c: Likewise.
43562
43563 2008-05-13  Eric Blake  <ebb9@byu.net>
43564
43565         Split xmemdup0 into its own module.
43566         * modules/xmemdup0: New file.
43567         * lib/xmemdup0.h: Likewise.
43568         * lib/xmemdup0.c: Likewise.
43569         * MODULES.html.sh (Memory management functions): Add xmemdup0.
43570         * lib/xalloc.h (xmemdup0): Remove.
43571         * lib/xmalloc.c (xmemdup0): Likewise.
43572
43573 2008-05-13  Eric Blake  <ebb9@byu.net>
43574             Bruno Haible  <bruno@clisp.org>
43575
43576         Reduce number of forks required during autoconf.
43577         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
43578         and gl_LIBSOURCES_DIR.
43579         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
43580         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
43581         m4_syscmd per file.
43582         <m4_foreach_w>: Move...
43583         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
43584
43585 2008-05-13  Eric Blake  <ebb9@byu.net>
43586
43587         * gnulib-tool: Fix various comment typos.
43588
43589 2008-05-12  Bruno Haible  <bruno@clisp.org>
43590
43591         Tailor the linebreaking algorithm.
43592         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
43593
43594 2008-05-12  Bruno Haible  <bruno@clisp.org>
43595
43596         Update to Unicode 5.0.0.
43597         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43598         LBP_JV, LBP_JT. Redistribute values.
43599         (unilbrk_table): Change size.
43600         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
43601         Unicode TR#14 rev. 22.
43602         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43603         LBP_JV, LBP_JT. Redistribute values.
43604         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
43605         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
43606         Update.
43607         * lib/unilbrk/lbrkprop1.h: Regenerated.
43608         * lib/unilbrk/lbrkprop2.h: Regenerated.
43609         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
43610         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
43611         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
43612         Likewise.
43613         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
43614         Likewise.
43615         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
43616         result.
43617         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
43618         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
43619         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
43620         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
43621         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
43622         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
43623
43624 2008-05-11  Bruno Haible  <bruno@clisp.org>
43625
43626         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
43627
43628 2008-05-11  Bruno Haible  <bruno@clisp.org>
43629
43630         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
43631         * modules/unilbrk/gen-lbrk: New file.
43632
43633 2008-05-11  Bruno Haible  <bruno@clisp.org>
43634
43635         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
43636         * m4/sha512.m4 (gl_SHA512): Likewise.
43637
43638 2008-05-11  Jim Meyering  <meyering@redhat.com>
43639
43640         New modules: crypto/sha256, crypto/sha512 (from coreutils)
43641         * modules/crypto/sha256: New file.
43642         * modules/crypto/sha512: Likewise.
43643         * lib/sha256.c: Likewise.
43644         * lib/sha256.h: Likewise.
43645         * lib/sha512.c: Likewise.
43646         * lib/sha512.h: Likewise.
43647         * lib/u64.h: Likewise.
43648         * m4/sha256.m4: Likewise.
43649         * m4/sha512.m4: Likewise.
43650         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
43651
43652 2008-05-10  Bruno Haible  <bruno@clisp.org>
43653
43654         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
43655         (Input/Output <stdio.h>): Add xprintf.
43656         (Signal handling <signal.h>): Add strsignal.
43657         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
43658         (Core language properties): Add func.
43659         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
43660         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
43661         strings.
43662         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
43663         (Input/output): New section.
43664         (File system functions): Add openat-die, stat-macros.
43665         (Networking functions): Add sockets.
43666         (Unicode string functions): Add unictype/*.
43667         (Support for building libraries and executables): Add gperf.
43668         (Support for building documentation): Add agpl-3.0.
43669         (Misc): Add nocrash.
43670
43671 2008-05-10  Bruno Haible  <bruno@clisp.org>
43672
43673         * modules/unictype/gen-ctype: New file.
43674
43675 2008-05-10  Jim Meyering  <meyering@redhat.com>
43676
43677         Make chdir-safer.c more efficient on a system with no symlinks.
43678         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
43679         also if ELOOP is zero.  Suggested by Bruno Haible.
43680
43681         Make chdir-safer.c slightly safer.
43682         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
43683         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
43684
43685         Avoid compile failure on systems without ELOOP (like mingw).
43686         * lib/chdir-safer.c (ELOOP): Define if not already defined.
43687         Reported by Bruno Haible.
43688
43689 2008-05-10  Bruno Haible  <bruno@clisp.org>
43690
43691         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
43692         (is_utf8_encoding): Use a case-insensitive comparison.
43693         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
43694         streq.
43695
43696 2008-05-10  Bruno Haible  <bruno@clisp.org>
43697
43698         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
43699         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
43700         * lib/unilbrk/ulc-common.h (iconv_string_length,
43701         iconv_string_keeping_offsets): Remove declarations.
43702         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
43703         Don't include <iconv.h>, streq.h, xsize.h.
43704         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
43705         conversion.
43706         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
43707         <iconv.h>, streq.h, xsize.h.
43708         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
43709         conversion.
43710         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
43711         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
43712         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
43713         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
43714
43715 2008-05-10  Bruno Haible  <bruno@clisp.org>
43716
43717         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
43718         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
43719
43720         * modules/unilbrk/u32-width-linebreaks-tests: New file.
43721         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
43722
43723         * modules/unilbrk/u16-width-linebreaks-tests: New file.
43724         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
43725
43726         * modules/unilbrk/u8-width-linebreaks-tests: New file.
43727         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
43728
43729         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
43730         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
43731
43732         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
43733         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
43734
43735         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
43736         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
43737
43738         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
43739         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
43740
43741 2008-05-10  Bruno Haible  <bruno@clisp.org>
43742
43743         Split up 'linebreak' module.
43744         * lib/unilbrk.h: New file, based on lib/linebreak.h.
43745         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
43746         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
43747         modifications.
43748         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
43749         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
43750         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
43751         lib/linebreak.c.
43752         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
43753         lib/linebreak.c.
43754         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
43755         lib/linebreak.c.
43756         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
43757         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
43758         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
43759         lib/linebreak.c.
43760         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
43761         lib/linebreak.c.
43762         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
43763         lib/linebreak.c.
43764         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
43765         lib/linebreak.c.
43766         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
43767         lib/linebreak.c.
43768         * modules/unilbrk/base: New file.
43769         * modules/unilbrk/tables: New file.
43770         * modules/unilbrk/u8-possible-linebreaks: New file.
43771         * modules/unilbrk/u16-possible-linebreaks: New file.
43772         * modules/unilbrk/u32-possible-linebreaks: New file.
43773         * modules/unilbrk/ulc-common: New file.
43774         * modules/unilbrk/ulc-possible-linebreaks: New file.
43775         * modules/unilbrk/u8-width-linebreaks: New file.
43776         * modules/unilbrk/u16-width-linebreaks: New file.
43777         * modules/unilbrk/u32-width-linebreaks: New file.
43778         * modules/unilbrk/ulc-width-linebreaks: New file.
43779         * lib/linebreak.h: Remove file.
43780         * lib/linebreak.c: Remove file.
43781         * m4/linebreak.m4: Remove file.
43782         * modules/linebreak: Remove file.
43783         * NEWS: Mention the changes.
43784
43785 2008-05-09  Eric Blake  <ebb9@byu.net>
43786
43787         Add xmemdup0.
43788         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
43789         implementation.
43790         * lib/xmalloc.c (xmemdup0): New C implementation.
43791
43792 2008-05-08  Bruno Haible  <bruno@clisp.org>
43793
43794         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
43795
43796 2008-05-07  Eric Blake  <ebb9@byu.net>
43797
43798         Support cross-compilation of <wctype.h>.
43799         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
43800         AC_CACHE_CHECK.
43801
43802 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
43803
43804         * build-aux/vc-list-files: Add support for bzr.
43805
43806 2008-05-03  Jim Meyering  <meyering@redhat.com>
43807
43808         avoid failed assertion with tight malloc
43809         * tests/test-getndelim2.c: Correct an off-by-one assertion.
43810
43811 2008-05-03  Simon Josefsson  <simon@josefsson.org>
43812
43813         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
43814         are needed from arpa/inet.h.
43815         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
43816         Reported by Bruno Haible.
43817
43818 2008-05-02  Jim Meyering  <meyering@redhat.com>
43819
43820         avoid compilation error on FreeBSD 6
43821         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
43822
43823 2008-05-01  Jim Meyering  <meyering@redhat.com>
43824
43825         useless-if-before-free: correct --help's exit status description
43826         * build-aux/useless-if-before-free (usage): Like grep, exit 0
43827         for one or more matches, etc.  Reported by Bruno Haible.
43828
43829         vc-list-files: make the stand-alone gnulib test work
43830         * modules/vc-list-files-tests (configure.ac):
43831         Define and AC_SUBST abs_aux_dir.
43832         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
43833         $(abs_top_srcdir) to each script and having each of them
43834         duplicate the work of setting PATH, set PATH here, using
43835         the new variable, abs_aux_dir instead.
43836         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
43837         * tests/test-vc-list-files-git.sh: Likewise.
43838         Reported by Bruno Haible.
43839
43840 2008-05-01  Bruno Haible  <bruno@clisp.org>
43841
43842         * lib/getndelim2.c (getndelim2): Fix newsize computation during
43843         reallocation. Rename 'done' to 'found_delimiter'.
43844
43845 2008-05-01  Jim Meyering  <meyering@redhat.com>
43846
43847         vc-list-files: accommodate /bin/sh like the one from Solaris 10
43848         * build-aux/vc-list-files: Use `...`, not $(...).
43849
43850 2008-04-30  Jim Meyering  <meyering@redhat.com>
43851
43852         add tests for vc-list-files
43853         * modules/vc-list-files-tests: New module.
43854         * tests/test-vc-list-files-cvs.sh: New file.
43855         * tests/test-vc-list-files-git.sh: New file.
43856
43857         avoid a warning from gcc
43858         * lib/getndelim2.c (IF_LINT): Define.
43859         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
43860
43861         vc-list-files: work properly with build-aux/cvsu, too
43862         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
43863         to all cvs-based clauses.
43864
43865         vc-list-files: work properly in the CVS+awk case, too
43866         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
43867
43868         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
43869         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
43870         take more than one file argument, so .  Add quotes, just in case $dir
43871         ever contains a shell meta-character.  Prompted by Soren Hansen in
43872         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
43873
43874 2008-04-29  Eric Blake  <ebb9@byu.net>
43875
43876         Optimize getndelim2 to use block operations when possible.
43877         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
43878         freadseek, and memchr2.
43879         * lib/getndelim2.c (getndelim2): Use them for block reads.
43880
43881 2008-04-29  Bruno Haible  <bruno@clisp.org>
43882
43883         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
43884         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43885         * modules/inet_ntop (Depends-on): Add extensions.
43886         * modules/inet_pton (Depends-on): Likewise.
43887         Reported by Simon Josefsson.
43888
43889 2008-04-29  Jim Meyering  <meyering@redhat.com>
43890
43891         When the is more than one match in a block, match all of them.
43892         * build-aux/useless-if-before-free: Iterate through each block
43893         until there are no more matches.
43894
43895         Fix broken useless-if-before-free script.
43896         * build-aux/useless-if-before-free: Fix typo: missing "?" after
43897         the expression to match cast of argument to free-like function.
43898
43899 2008-04-29  Eric Blake  <ebb9@byu.net>
43900
43901         Use new header.
43902         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
43903
43904 2008-04-29  Jim Meyering  <meyering@redhat.com>
43905
43906         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
43907         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
43908         by gnulib to exist and to declare e.g., inet_ntop.
43909         Don't include "inet_ntop.h", now removed.
43910
43911         * m4/arpa_inet_h.m4: Remove trailing blanks.
43912
43913 2008-04-29  Eric Blake  <ebb9@byu.net>
43914
43915         Silence valgrind on safe reads beyond potential array bounds.
43916         * lib/rawmemchr.valgrind: New file.
43917         * lib/strchrnul.valgrind: Likewise.
43918         * modules/rawmemchr (Files): Distribute new file.
43919         * modules/strchrnul (Files): Likewise.
43920         Suggested by Bruno Haible.
43921
43922 2008-04-29  Bruno Haible  <bruno@clisp.org>
43923
43924         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
43925         (inet_ntop, inet_pton): Change portability warning's wording.
43926         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
43927         Invoke gl_CHECK_NEXT_HEADERS.
43928         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
43929         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
43930         set ARPA_INET_H.
43931         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43932         * modules/arpa_inet (Description): No longer only for systems that
43933         lack it.
43934         (Depends-on): Add include_next.
43935         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
43936         HAVE_ARPA_INET_H.
43937
43938 2008-04-29  Jim Meyering  <meyering@redhat.com>
43939
43940         * modules/mkdir (License): Re-license as LGPLv2+.
43941
43942 2008-04-29  Bruno Haible  <bruno@clisp.org>
43943
43944         * modules/rawmemchr (Maintainer): Set to Eric.
43945         * modules/strchrnul (Maintainer): Likewise.
43946
43947 2008-04-29  Simon Josefsson  <simon@josefsson.org>
43948
43949         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
43950         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
43951
43952         * modules/arpa_inet (arpa/inet.h): Use them.
43953
43954 2008-04-28  Eric Blake  <ebb9@byu.net>
43955
43956         Test getndelim2.
43957         * modules/getndelim2-tests: New file.
43958         * tests/test-getndelim2.c: Likewise.
43959         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
43960         stream.
43961         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
43962
43963         * MODULES.html.sh: Document new module.
43964
43965 2008-04-20  Bruno Haible  <bruno@clisp.org>
43966
43967         * lib/c-stack.c (die): Use raise.
43968         * modules/c-stack (Depends-on): Add raise.
43969
43970 2008-04-28  Bruno Haible  <bruno@clisp.org>
43971
43972         Expect rpmatch to be declared.
43973         * lib/yesno.c (rpmatch): Remove declaration.
43974
43975         Declare rpmatch.
43976         * lib/stdlib.in.h (rpmatch): New declaration.
43977         * lib/rpmatch.c: Include <stdlib.h> first.
43978         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
43979         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
43980         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
43981         HAVE_RPMATCH.
43982         * modules/rpmatch (Depends-on): Add stdlib, extensions.
43983         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43984         (Include): Set to <stdlib.h>.
43985         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
43986         HAVE_RPMATCH.
43987         * NEWS: Document the change.
43988
43989 2008-04-28  Bruno Haible  <bruno@clisp.org>
43990
43991         Change rpmatch to use nl_langinfo when appropriate.
43992         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
43993         (N_): New macro.
43994         (localized_pattern): New function/macro.
43995         (try): Remove match, nomatch arguments. Copy the pattern into safe
43996         memory before caching it.
43997         (rpmatch): Use localized_pattern. Add translator comments.
43998         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
43999         Suggested by Eric Blake.
44000         * modules/rpmatch (Depends-on): Add stdbool.
44001
44002 2008-04-28  Eric Blake  <ebb9@byu.net>
44003
44004         Add rawmemchr module, matching glibc.
44005         * modules/string (Makefile.am): New indicator.
44006         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
44007         * lib/string.in.h (rawmemchr): Declare when appropriate.
44008         * modules/rawmemchr: New file.
44009         * m4/rawmemchr.m4: Likewise.
44010         * lib/rawmemchr.c: Likewise.
44011         * modules/rawmemchr-tests: Likewise.
44012         * tests/test-rawmemchr.c: Likewise.
44013         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
44014         module.
44015         * modules/strchrnul (Depends-on): Add rawmemchr.
44016         * lib/strchrnul.c (strchrnul): Optimize a corner case.
44017
44018         Whitespace cleanup.
44019         * tests/test-strchrnul.c: Reindent.
44020         * lib/strchrnul.c: Likewise.
44021
44022         Optimize and test strchrnul.
44023         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
44024         * modules/strchrnul-tests: New file.
44025         * tests/test-strchrnul.c: Likewise.
44026
44027         Remove intprops dependency.
44028         * modules/memchr (Depends-on): Remove intprops.
44029         * modules/memrchr (Depends-on): Likewise.
44030         * modules/memchr2 (Depends-on): Likewise.
44031         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
44032         * lib/memrchr.c (__memrchr): Likewise.
44033         * lib/memrchr2.c (memchr2): Likewise.
44034         Reported by Simon Josefsson.
44035
44036 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44037
44038         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
44039         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44040
44041 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44042
44043         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
44044
44045         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
44046
44047         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
44048
44049         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
44050         declarations.
44051         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
44052
44053         * m4/inet_pton.m4: Don't check for header files.
44054
44055         * m4/inet_ntop.m4: Don't check for header files.
44056
44057 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44058
44059         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
44060         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
44061         trigger for cygwin).
44062         Reported by Bruno Haible  <bruno@clisp.org>.
44063
44064 2008-04-28  Bruno Haible  <bruno@clisp.org>
44065
44066         * doc/posix-functions/strdup.texi: Mention mingw problem.
44067
44068 2008-04-27  Bruno Haible  <bruno@clisp.org>
44069
44070         * modules/stat-time-tests (Depends-on): Add sleep.
44071         * tests/test-stat-time.c (force_unlink): New function.
44072         (cleanup): Use it.
44073         (test_mtime): Remove the ctime related tests.
44074         (test_ctime): New function, containing the ctime related tests.
44075         (main): Call test_ctime, except on native Windows platforms.
44076
44077 2008-04-27  Bruno Haible  <bruno@clisp.org>
44078
44079         * lib/rpmatch.c (rpmatch): Add some comments.
44080         Reported by James Youngman <jay@gnu.org>.
44081
44082 2008-04-27  Bruno Haible  <bruno@clisp.org>
44083
44084         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
44085         quiet NaNs.
44086
44087 2008-04-27  Bruno Haible  <bruno@clisp.org>
44088
44089         Make test-yesno.sh work on mingw.
44090         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
44091         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
44092         (main): Set stdin to binary mode.
44093         * modules/yesno-tests (Depends-on): Add binary-io.
44094
44095 2008-04-27  Bruno Haible  <bruno@clisp.org>
44096
44097         Fix 'isfinite' on x86, x86_64, ia64 platforms.
44098         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
44099         argument that lie outside the IEEE 854 domain.
44100         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
44101         (gl_ISFINITE): Use it.
44102         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
44103
44104 2008-04-27  Bruno Haible  <bruno@clisp.org>
44105
44106         Allow local renaming in config.h.
44107         * lib/memrchr.c (memrchr): Don't undefine outside libc.
44108
44109 2008-04-27  Bruno Haible  <bruno@clisp.org>
44110
44111         * lib/memchr.c (__memchr): Change type of 'i'.
44112         * lib/memchr2.c (memchr2): Likewise.
44113
44114 2008-04-26  Eric Blake  <ebb9@byu.net>
44115         and Bruno Haible  <bruno@clisp.org>
44116
44117         Optimize and test memrchr.
44118         * modules/memrchr (Depends-on): Add intprops.
44119         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
44120         * modules/memrchr-tests: New file.
44121         * tests/test-memrchr.c: New file.
44122
44123 2008-04-26  Bruno Haible  <bruno@clisp.org>
44124
44125         Add tentative support for DragonFly BSD.
44126         * lib/stdio-impl.h: Add macros for DragonFly BSD.
44127         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
44128         fp.
44129         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44130         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
44131         * lib/fpurge.c (fpurge): Likewise.
44132         * lib/freadable.c (freaadable): Likewise.
44133         * lib/freadahead.c (freadahead): Likewise.
44134         * lib/freading.c (freading): Likewise.
44135         * lib/freadptr.c (freadptr): Likewise.
44136         * lib/freadseek.c (freadptrinc): Likewise.
44137         * lib/fseeko.c (fseeko): Likewise.
44138         * lib/fseterr.c (fseterr): Likewise.
44139         * lib/fwritable.c (fwritable): Likewise.
44140         * lib/fwriting.c (fwriting): Likewise.
44141
44142 2008-04-26  Bruno Haible  <bruno@clisp.org>
44143
44144         * lib/stdio-impl.h: New file.
44145         * lib/fbufmode.c: Include stdio-impl.h.
44146         (fbufmode): Use fp_, remove redundant #defines.
44147         * lib/fflush.c: Include stdio-impl.h.
44148         (clear_ungetc_buffer): Remove redundant #defines.
44149         * lib/fpurge.c: Include stdio-impl.h.
44150         (fpurge): Remove redundant #defines.
44151         * lib/freadable.c: Include stdio-impl.h.
44152         (freadable): Remove redundant #defines.
44153         * lib/freadahead.c: Include stdio-impl.h.
44154         (freadahead): Remove redundant #defines.
44155         * lib/freading.c: Include stdio-impl.h.
44156         (freading): Remove redundant #defines.
44157         * lib/freadptr.c: Include stdio-impl.h.
44158         (freadptr): Remove redundant #defines.
44159         * lib/freadseek.c: Include stdio-impl.h.
44160         (freadptrinc): Remove redundant #defines.
44161         * lib/fseeko.c: Include stdio-impl.h.
44162         (rpl_fseeko): Remove redundant #defines.
44163         * lib/fseterr.c: Include stdio-impl.h.
44164         (fseterr): Remove redundant #defines.
44165         * lib/fwritable.c: Include stdio-impl.h.
44166         (fwritable: Remove redundant #defines.
44167         * lib/fwriting.c: Include stdio-impl.h.
44168         (fwriting): Remove redundant #defines.
44169         * modules/fbufmode (Files): Add lib/stdio-impl.h.
44170         * modules/fflush (Files): Likewise.
44171         * modules/fpurge (Files): Likewise.
44172         * modules/freadable (Files): Likewise.
44173         * modules/freadahead (Files): Likewise.
44174         * modules/freading (Files): Likewise.
44175         * modules/freadptr (Files): Likewise.
44176         * modules/freadseek (Files): Likewise.
44177         * modules/fseeko (Files): Likewise.
44178         * modules/fseterr (Files): Likewise.
44179         * modules/fwritable (Files): Likewise.
44180         * modules/fwriting (Files): Likewise.
44181
44182 2008-04-26  Bruno Haible  <bruno@clisp.org>
44183
44184         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44185         restore_seek_optimization, update_fpos_cache): New functions, extracted
44186         from rpl_fflush.
44187         (rpl_fflush): Use them.
44188         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
44189         (gl_REPLACE_FFLUSH): Use it.
44190
44191 2008-04-26  Bruno Haible  <bruno@clisp.org>
44192
44193         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
44194         on Solaris.
44195         * tests/test-xstrtoimax.sh: Likewise.
44196         * tests/test-xstrtoumax.sh: Likewise.
44197         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44198
44199 2008-04-26  Bruno Haible  <bruno@clisp.org>
44200
44201         * modules/memchr-tests: New file.
44202         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
44203
44204 2008-04-26  Eric Blake  <ebb9@byu.net>
44205             Bruno Haible  <bruno@clisp.org>
44206
44207         * lib/memchr.c: Include intprops.h.
44208         (__memchr): Optimize parallel detection of matching bytes. Rename local
44209         variables. Add explanatory comments.
44210
44211 2008-04-26  Bruno Haible  <bruno@clisp.org>
44212
44213         Fix module 'memchr', broken since 2000-10-28.
44214         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
44215
44216 2008-04-26  Bruno Haible  <bruno@clisp.org>
44217
44218         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
44219         comments.
44220
44221 2008-04-25  Eric Blake  <ebb9@byu.net>
44222
44223         Use native fstatat on cygwin 1.7.0.
44224         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
44225         first.
44226
44227 2008-04-23  Eric Blake  <ebb9@byu.net>
44228
44229         Improve memchr2 performance.
44230         * lib/memchr2.c (memchr2): Further optimize parallel detection of
44231         NUL bytes.
44232         * modules/memchr2 (Depends-on): Use intprops.h.
44233
44234 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44235
44236         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
44237         an inline function instead of a CPP macro.  Patch by Ben Pfaff
44238         <blp@cs.stanford.edu>.
44239
44240 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44241
44242         * lib/arpa_inet.in.h: New file.
44243
44244         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
44245         (Makefile.am): Sed in substitute header file.
44246
44247         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
44248         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
44249
44250         * modules/inet_ntop (configure.ac): Use
44251         gl_ARPA_INET_MODULE_INDICATOR.
44252
44253         * modules/inet_pton (configure.ac): Use
44254         gl_ARPA_INET_MODULE_INDICATOR.
44255
44256 2008-04-22  Jim Meyering  <meyering@redhat.com>
44257
44258         * modules/verify (License): Re-license as LGPLv2+.
44259
44260 2008-04-22  Simon Josefsson  <simon@josefsson.org>
44261
44262         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
44263         parameter to void* as per POSIX standard (MinGW uses char*).
44264
44265 2008-04-21  Bruno Haible  <bruno@clisp.org>
44266
44267         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44268         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44269         Define to replacements if REPLACE_ISWCNTRL is 1.
44270         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
44271         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
44272         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
44273         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
44274         what it fixes.
44275         * doc/posix-functions/iswalpha.texi: Likewise.
44276         * doc/posix-functions/iswblank.texi: Likewise.
44277         * doc/posix-functions/iswcntrl.texi: Likewise.
44278         * doc/posix-functions/iswdigit.texi: Likewise.
44279         * doc/posix-functions/iswgraph.texi: Likewise.
44280         * doc/posix-functions/iswlower.texi: Likewise.
44281         * doc/posix-functions/iswprint.texi: Likewise.
44282         * doc/posix-functions/iswpunct.texi: Likewise.
44283         * doc/posix-functions/iswspace.texi: Likewise.
44284         * doc/posix-functions/iswupper.texi: Likewise.
44285         * doc/posix-functions/iswxdigit.texi: Likewise.
44286         Reported by Alain Guibert.
44287
44288 2008-04-21  Bruno Haible  <bruno@clisp.org>
44289
44290         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
44291         Patch by Alain Guibert.
44292
44293 2008-04-21  Bruno Haible  <bruno@clisp.org>
44294
44295         Fix test failures on mingw.
44296         * tests/test-xstrtol.c (print_no_progname): New function.
44297         (main): Install it in error_print_progname hook.
44298         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
44299         * tests/test-xstrtoimax.sh: Likewise.
44300         * tests/test-xstrtoumax.sh: Likewise.
44301
44302 2008-04-21  Bruno Haible  <bruno@clisp.org>
44303
44304         Fix test failure on mingw.
44305         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
44306
44307 2008-04-21  Bruno Haible  <bruno@clisp.org>
44308
44309         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
44310         Actually assign a value.
44311
44312 2008-04-20  Bruno Haible  <bruno@clisp.org>
44313
44314         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
44315         take 2.
44316         * lib/canonicalize.c (canonicalize_file_name): Elide if the
44317         'canonicalize-lgpl' module is also used.
44318         * lib/canonicalize-lgpl.c: Undo last change.
44319         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
44320
44321 2008-04-20  Bruno Haible  <bruno@clisp.org>
44322
44323         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
44324         config.h. Provide _mkdir based fallback for mingw.
44325         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
44326         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
44327         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
44328         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
44329         rather than defining mkdir in config.h.
44330         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
44331         (gl_SYS_STAT_H_DEFAULTS): New macro.
44332         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
44333         HAVE_IO_H any more.
44334         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
44335         HAVE_DECL_MKDIR and HAVE_IO_H.
44336
44337 2008-04-20  Bruno Haible  <bruno@clisp.org>
44338
44339         * lib/isapipe.c: Port to native Windows platforms.
44340
44341 2008-04-20  Bruno Haible  <bruno@clisp.org>
44342
44343         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
44344
44345 2008-04-21  Eric Blake  <ebb9@byu.net>
44346
44347         Work around preprocessors that don't handle UINTMAX_MAX.
44348         * lib/memchr2.c (memchr2): Avoid embedded #if.
44349         Reported by Alain Guibert, fix suggested by Bruno Haible.
44350
44351 2008-04-21  Simon Josefsson  <simon@josefsson.org>
44352
44353         * doc/posix-functions/strftime.texi (strftime): Explain better
44354         Windows incompatibility.  Suggested by Micah Cowan
44355         <micah@cowan.name>.
44356
44357 2008-04-20  Bruno Haible  <bruno@clisp.org>
44358
44359         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
44360         unistr/u8-mblen.
44361
44362 2008-04-20  Bruno Haible  <bruno@clisp.org>
44363
44364         Fix test failure on platforms with non-GNU iconv.
44365         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
44366         (U_TO_U8): Use it, rather than u16_to_u8.
44367         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
44368         units at the end of the input string.
44369         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
44370
44371 2008-04-20  Bruno Haible  <bruno@clisp.org>
44372
44373         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
44374         when the resulting length is 0.
44375         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
44376
44377 2008-04-20  Bruno Haible  <bruno@clisp.org>
44378
44379         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
44380         works.
44381         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
44382
44383 2008-04-20  Bruno Haible  <bruno@clisp.org>
44384
44385         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
44386         * modules/tsearch-tests (configure.ac): Test for initstate function.
44387
44388 2008-04-20  Bruno Haible  <bruno@clisp.org>
44389
44390         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
44391         for nlink_t if missing.
44392         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
44393
44394 2008-04-19  Bruno Haible  <bruno@clisp.org>
44395
44396         Work around snprintf bug on Linux libc5.
44397         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
44398         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44399         gl_SNPRINTF_SIZE1.
44400         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44401         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
44402         that test failed.
44403         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
44404         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
44405         * modules/snprintf (Files): Add m4/printf.m4.
44406         * modules/vsnprintf (Files): Likewise.
44407         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
44408         * doc/posix-functions/vsnprintf.texi: Likewise.
44409
44410 2008-04-19  Bruno Haible  <bruno@clisp.org>
44411
44412         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
44413         from 0.0058 to less than 10^-7.
44414
44415 2008-04-19  Bruno Haible  <bruno@clisp.org>
44416
44417         Fix rounding when a precision is given.
44418         * lib/vasnprintf.c (is_borderline): New function.
44419         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
44420         9...9x.
44421         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
44422         %e, %g.
44423         * tests/test-vasprintf-posix.c (test_function): Likewise.
44424         * tests/test-snprintf-posix.h (test_function): Likewise.
44425         * tests/test-sprintf-posix.h (test_function): Likewise.
44426         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
44427         * tests/test-printf-posix.h (test_function): Likewise.
44428         * tests/test-printf-posix.output: Update.
44429         Reported by John Darrington <john@darrington.wattle.id.au> via
44430         Ben Pfaff <blp@cs.stanford.edu>.
44431
44432 2008-04-18  Simon Josefsson  <simon@josefsson.org>
44433
44434         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
44435         Suggested by Bruno Haible <bruno@clisp.org>.
44436
44437 2008-04-17  Bruno Haible  <bruno@clisp.org>
44438
44439         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
44440         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
44441         implementation.
44442         Patch by Bruce Merry <bmerry@gmail.com>.
44443
44444 2008-04-17  Simon Josefsson  <simon@josefsson.org>
44445
44446         * doc/posix-functions/strftime.texi (strftime): Mention that %e
44447         doesn't work under Windows.
44448
44449 2008-04-16  Bruno Haible  <bruno@clisp.org>
44450
44451         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
44452         New macros.
44453         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
44454         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
44455         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
44456         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
44457         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
44458         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
44459         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
44460         macros.
44461         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
44462         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
44463         Northern Sotho, Uighur.
44464
44465 2008-04-16  Bruno Haible  <bruno@clisp.org>
44466
44467         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
44468         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
44469         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
44470         Reported by Daniel Bergström <daniel@octocode.com>.
44471
44472 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
44473             Bruno Haible  <bruno@clisp.org>
44474
44475         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
44476         function.
44477         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
44478         New functions, mostly extracted from gl_locale_name_default.
44479         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
44480
44481 2008-04-16  Eric Blake  <ebb9@byu.net>
44482
44483         Adjust strtod detection to catch glibc 2.7 bug.
44484         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
44485         Reported by John Gatewood Ham.
44486
44487 2008-04-16  Bruno Haible  <bruno@clisp.org>
44488
44489         Add tentative support for Linux libc5.
44490         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
44491         * lib/fpurge.c (fpurge): Likewise.
44492         * lib/freadable.c (freadable): Likewise.
44493         * lib/freadahead.c (freadahead): Likewise.
44494         * lib/freading.c (freading): Likewise.
44495         * lib/freadptr.c (freadptr): Likewise.
44496         * lib/freadseek.c (freadptrinc): Likewise.
44497         * lib/fseeko.c (rpl_fseeko): Likewise.
44498         * lib/fseterr.c (fseterr): Likewise.
44499         * lib/fwritable.c (fwritable): Likewise.
44500         * lib/fwriting.c (fwriting): Likewise.
44501         Reported by Alain Guibert <alguibert+bts@free.fr>.
44502
44503 2008-04-15  Bruno Haible  <bruno@clisp.org>
44504
44505         * modules/mathl (configure.ac): Define module indicator.
44506
44507 2008-04-15  Bruno Haible  <bruno@clisp.org>
44508
44509         * lib/logl.c (logl): Remove unused variables.
44510
44511 2008-04-15  Bruno Haible  <bruno@clisp.org>
44512
44513         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
44514         fails.
44515
44516 2008-04-15  Bruno Haible  <bruno@clisp.org>
44517
44518         * lib/trim.c (trim2): Fix argument of isspace() macro.
44519
44520 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
44521
44522         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
44523         to 0.
44524         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
44525
44526 2008-04-14  Bruno Haible  <bruno@clisp.org>
44527
44528         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
44529         AC_LANG_PROGRAM argument.
44530         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
44531         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
44532         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44533         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
44534         * m4/math_h.m4 (gl_MATH_H): Likewise.
44535         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
44536         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44537         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
44538         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
44539         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44540         * m4/regex.m4 (gl_REGEX): Likewise.
44541         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
44542         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
44543         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44544         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
44545         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44546         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44547         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44548         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44549
44550 2008-04-14  Jim Meyering  <meyering@redhat.com>
44551
44552         test-strtod: fix typos: s/abs/fabs/
44553         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
44554
44555 2008-04-13  Bruno Haible  <bruno@clisp.org>
44556
44557         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
44558         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
44559         module is also used and while not building the reloc-wrapper.
44560
44561 2008-04-13  Bruno Haible  <bruno@clisp.org>
44562
44563         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
44564
44565 2008-04-13  Bruno Haible  <bruno@clisp.org>
44566
44567         Fix AIX compilation failure introduced on 2008-04-02.
44568         * tests/test-frexp.c (exp): Undefine before redefining.
44569         * tests/test-frexpl.c (exp): Likewise.
44570
44571 2008-04-13  Bruno Haible  <bruno@clisp.org>
44572
44573         Work around a HP-UX stdio bug.
44574         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
44575         * tests/test-ftello.c (main): Likewise.
44576         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
44577         * doc/posix-functions/ftello.texi: Likewise.
44578
44579 2008-04-13  Bruno Haible  <bruno@clisp.org>
44580
44581         Make test-signbit pass on HP-UX/hppa.
44582         * tests/test-signbit.c (minus_zerol): New variable.
44583         (test_signbitl): Use it.
44584
44585 2008-04-13  Bruno Haible  <bruno@clisp.org>
44586
44587         Make truncl work on OSF/1 4.0.
44588         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
44589         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44590         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44591         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
44592         HAVE_DECL_TRUNCL.
44593         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
44594         HAVE_DECL_TRUNCL.
44595         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
44596
44597 2008-04-13  Bruno Haible  <bruno@clisp.org>
44598
44599         * lib/unictype.h: Remove trailing comma from enumeration definitions.
44600
44601 2008-04-13  Bruno Haible  <bruno@clisp.org>
44602
44603         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
44604         expression, so as to avoid HP-UX 11 cc compiler bug.
44605
44606 2008-04-13  Bruno Haible  <bruno@clisp.org>
44607
44608         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
44609
44610 2008-04-13  Bruno Haible  <bruno@clisp.org>
44611
44612         * lib/git-merge-changelog.c: Remove empty declaration outside of
44613         functions.
44614
44615 2008-04-13  Bruno Haible  <bruno@clisp.org>
44616
44617         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
44618
44619 2008-04-13  Bruno Haible  <bruno@clisp.org>
44620
44621         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
44622         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
44623         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
44624         also if it exists but lacks definitions of the SHUT_* macros.
44625         * modules/sys_socket (Description): Update.
44626         Reported by Elbert Pol <e.pol@chello.nl>.
44627
44628 2008-04-13  Bruno Haible  <bruno@clisp.org>
44629
44630         * lib/localcharset.c (OS2): Don't redefine if already defined.
44631         Reported by Elbert Pol <e.pol@chello.nl>.
44632
44633 2008-04-13  Bruno Haible  <bruno@clisp.org>
44634
44635         * lib/binary-io.h [__EMX__]: Include <io.h>.
44636         Reported by Elbert Pol <e.pol@chello.nl>.
44637
44638 2008-04-12  Bruno Haible  <bruno@clisp.org>
44639
44640         * lib/fpucw.h: Enable the definitions also for x86_64.
44641         Needed for NetBSD/x86_64.
44642         Reported by Thomas Klausner <tk@giga.or.at>.
44643
44644 2008-04-12  Bruno Haible  <bruno@clisp.org>
44645
44646         * tests/test-strtod.c: Include isnand.h.
44647         (main): Use isnand instead of isnan.
44648         Reported by Jim Meyering.
44649
44650 2008-04-12  Bruno Haible  <bruno@clisp.org>
44651
44652         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
44653         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
44654
44655 2008-04-12  Jim Meyering  <meyering@redhat.com>
44656
44657         * m4/math_h.m4 (gl_MATH_H): Fix typos.
44658
44659 2008-04-12  Bruno Haible  <bruno@clisp.org>
44660
44661         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
44662         Reported by Elbert Pol <e.pol@chello.nl>.
44663
44664 2008-04-12  Eric Blake  <ebb9@byu.net>
44665
44666         Work around Solaris 10 math.h bug.
44667         * m4/math_h.m4 (gl_MATH_H): Check for bug.
44668         (gl_MATH_H_DEFAULTS): Set up default.
44669         * modules/math (Makefile.am): Replace new indicators.
44670         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
44671         * tests/test-math.c (main): Test this.
44672         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
44673         * doc/posix-headers/math.texi (math.h): Mention bug.
44674         Reported by Nelson H. F. Beebe and Jim Meyering.
44675
44676 2008-04-11  Bruno Haible  <bruno@clisp.org>
44677
44678         Adapt to future versions of Apple GCC.
44679         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
44680         Reported by Peter O'Gorman <peter@pogma.com>.
44681
44682 2008-04-11  Bruno Haible  <bruno@clisp.org>
44683
44684         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
44685
44686 2008-04-11  Bruno Haible  <bruno@clisp.org>
44687
44688         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
44689
44690         * modules/getaddrinfo-tests (Makefile.am): Define
44691         test_getaddrinfo_LDADD.
44692
44693 2008-04-11  Bruno Haible  <bruno@clisp.org>
44694
44695         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
44696         (init): Fix syntax error.
44697         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
44698         is declared.
44699
44700 2008-04-11  Bruno Haible  <bruno@clisp.org>
44701
44702         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
44703         * modules/glob (Depends-on): Add stdbool.
44704
44705 2008-04-11  Bruno Haible  <bruno@clisp.org>
44706
44707         * lib/trim.c: Include <string.h>.
44708
44709 2008-04-11  Eric Blake  <ebb9@byu.net>
44710
44711         Avoid compile failure on OS/2.
44712         * lib/regex_internal.h (internal_function): Disable optimization
44713         on OS/2 (__EMX__), where it caused compiler error.
44714         Reported by Elbert Pol.
44715
44716 2008-04-11  Bruno Haible  <bruno@clisp.org>
44717
44718         Flush the standard error stream before aborting. Needed on mingw.
44719         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
44720         * tests/test-array_list.c (ASSERT): Likewise.
44721         * tests/test-array_oset.c (ASSERT): Likewise.
44722         * tests/test-avltree_list.c (ASSERT): Likewise.
44723         * tests/test-avltree_oset.c (ASSERT): Likewise.
44724         * tests/test-avltreehash_list.c (ASSERT): Likewise.
44725         * tests/test-binary-io.c (ASSERT): Likewise.
44726         * tests/test-byteswap.c (ASSERT): Likewise.
44727         * tests/test-c-ctype.c (ASSERT): Likewise.
44728         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
44729         * tests/test-c-strcasestr.c (ASSERT): Likewise.
44730         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
44731         * tests/test-c-strstr.c (ASSERT): Likewise.
44732         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
44733         * tests/test-canonicalize.c (ASSERT): Likewise.
44734         * tests/test-carray_list.c (ASSERT): Likewise.
44735         * tests/test-ceilf1.c (ASSERT): Likewise.
44736         * tests/test-ceilf2.c (ASSERT): Likewise.
44737         * tests/test-ceill.c (ASSERT): Likewise.
44738         * tests/test-count-one-bits.c (ASSERT): Likewise.
44739         * tests/test-fbufmode.c (ASSERT): Likewise.
44740         * tests/test-fflush2.c (ASSERT): Likewise.
44741         * tests/test-floorf1.c (ASSERT): Likewise.
44742         * tests/test-floorf2.c (ASSERT): Likewise.
44743         * tests/test-floorl.c (ASSERT): Likewise.
44744         * tests/test-fopen.c (ASSERT): Likewise.
44745         * tests/test-fpending.c (ASSERT): Likewise.
44746         * tests/test-fprintf-posix.c (ASSERT): Likewise.
44747         * tests/test-fpurge.c (ASSERT): Likewise.
44748         * tests/test-freadable.c (ASSERT): Likewise.
44749         * tests/test-freadahead.c (ASSERT): Likewise.
44750         * tests/test-freading.c (ASSERT): Likewise.
44751         * tests/test-freadptr.c (ASSERT): Likewise.
44752         * tests/test-freadptr2.c (ASSERT): Likewise.
44753         * tests/test-freadseek.c (ASSERT): Likewise.
44754         * tests/test-freopen.c (ASSERT): Likewise.
44755         * tests/test-frexp.c (ASSERT): Likewise.
44756         * tests/test-frexpl.c (ASSERT): Likewise.
44757         * tests/test-fseek.c (ASSERT): Likewise.
44758         * tests/test-fseeko.c (ASSERT): Likewise.
44759         * tests/test-fstrcmp.c (ASSERT): Likewise.
44760         * tests/test-ftell.c (ASSERT): Likewise.
44761         * tests/test-ftello.c (ASSERT): Likewise.
44762         * tests/test-func.c (ASSERT): Likewise.
44763         * tests/test-fwritable.c (ASSERT): Likewise.
44764         * tests/test-fwriting.c (ASSERT): Likewise.
44765         * tests/test-getdelim.c (ASSERT): Likewise.
44766         * tests/test-getline.c (ASSERT): Likewise.
44767         * tests/test-i-ring.c (ASSERT): Likewise.
44768         * tests/test-iconv-utf.c (ASSERT): Likewise.
44769         * tests/test-iconv.c (ASSERT): Likewise.
44770         * tests/test-isfinite.c (ASSERT): Likewise.
44771         * tests/test-isnand.c (ASSERT): Likewise.
44772         * tests/test-isnanf.c (ASSERT): Likewise.
44773         * tests/test-isnanl.h (ASSERT): Likewise.
44774         * tests/test-ldexpl.c (ASSERT): Likewise.
44775         * tests/test-linked_list.c (ASSERT): Likewise.
44776         * tests/test-linkedhash_list.c (ASSERT): Likewise.
44777         * tests/test-localename.c (ASSERT): Likewise.
44778         * tests/test-lseek.c (ASSERT): Likewise.
44779         * tests/test-mbscasecmp.c (ASSERT): Likewise.
44780         * tests/test-mbscasestr1.c (ASSERT): Likewise.
44781         * tests/test-mbscasestr2.c (ASSERT): Likewise.
44782         * tests/test-mbscasestr3.c (ASSERT): Likewise.
44783         * tests/test-mbscasestr4.c (ASSERT): Likewise.
44784         * tests/test-mbschr.c (ASSERT): Likewise.
44785         * tests/test-mbscspn.c (ASSERT): Likewise.
44786         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
44787         * tests/test-mbspbrk.c (ASSERT): Likewise.
44788         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
44789         * tests/test-mbsrchr.c (ASSERT): Likewise.
44790         * tests/test-mbsspn.c (ASSERT): Likewise.
44791         * tests/test-mbsstr1.c (ASSERT): Likewise.
44792         * tests/test-mbsstr2.c (ASSERT): Likewise.
44793         * tests/test-mbsstr3.c (ASSERT): Likewise.
44794         * tests/test-memchr2.c (ASSERT): Likewise.
44795         * tests/test-memmem.c (ASSERT): Likewise.
44796         * tests/test-open.c (ASSERT): Likewise.
44797         * tests/test-printf-frexp.c (ASSERT): Likewise.
44798         * tests/test-printf-frexpl.c (ASSERT): Likewise.
44799         * tests/test-printf-posix.c (ASSERT): Likewise.
44800         * tests/test-quotearg.c (ASSERT): Likewise.
44801         * tests/test-rbtree_list.c (ASSERT): Likewise.
44802         * tests/test-rbtree_oset.c (ASSERT): Likewise.
44803         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
44804         * tests/test-round1.c (ASSERT): Likewise.
44805         * tests/test-roundf1.c (ASSERT): Likewise.
44806         * tests/test-roundl.c (ASSERT): Likewise.
44807         * tests/test-signbit.c (ASSERT): Likewise.
44808         * tests/test-sleep.c (ASSERT): Likewise.
44809         * tests/test-snprintf-posix.c (ASSERT): Likewise.
44810         * tests/test-snprintf.c (ASSERT): Likewise.
44811         * tests/test-sprintf-posix.c (ASSERT): Likewise.
44812         * tests/test-stat-time.c (ASSERT): Likewise.
44813         * tests/test-strcasestr.c (ASSERT): Likewise.
44814         * tests/test-strerror.c (ASSERT): Likewise.
44815         * tests/test-striconv.c (ASSERT): Likewise.
44816         * tests/test-striconveh.c (ASSERT): Likewise.
44817         * tests/test-striconveha.c (ASSERT): Likewise.
44818         * tests/test-strsignal.c (ASSERT): Likewise.
44819         * tests/test-strstr.c (ASSERT): Likewise.
44820         * tests/test-strtod.c (ASSERT): Likewise.
44821         * tests/test-trunc1.c (ASSERT): Likewise.
44822         * tests/test-trunc2.c (ASSERT): Likewise.
44823         * tests/test-truncf1.c (ASSERT): Likewise.
44824         * tests/test-truncf2.c (ASSERT): Likewise.
44825         * tests/test-truncl.c (ASSERT): Likewise.
44826         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
44827         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
44828         * tests/test-vasnprintf.c (ASSERT): Likewise.
44829         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
44830         * tests/test-vasprintf.c (ASSERT): Likewise.
44831         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
44832         * tests/test-vprintf-posix.c (ASSERT): Likewise.
44833         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
44834         * tests/test-vsnprintf.c (ASSERT): Likewise.
44835         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
44836         * tests/test-wcwidth.c (ASSERT): Likewise.
44837         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
44838         * tests/test-xprintf-posix.c (ASSERT): Likewise.
44839         * tests/test-xvasprintf.c (ASSERT): Likewise.
44840         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
44841         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
44842         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
44843         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
44844         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
44845         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
44846         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
44847         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
44848         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
44849         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
44850         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
44851         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
44852         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
44853         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
44854         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
44855         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
44856         * tests/unictype/test-block_list.c (ASSERT): Likewise.
44857         * tests/unictype/test-block_of.c (ASSERT): Likewise.
44858         * tests/unictype/test-block_test.c (ASSERT): Likewise.
44859         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
44860         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
44861         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
44862         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
44863         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
44864         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
44865         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
44866         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
44867         * tests/unictype/test-combining.c (ASSERT): Likewise.
44868         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
44869         * tests/unictype/test-digit.c (ASSERT): Likewise.
44870         * tests/unictype/test-mirror.c (ASSERT): Likewise.
44871         * tests/unictype/test-numeric.c (ASSERT): Likewise.
44872         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
44873         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
44874         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
44875         * tests/unictype/test-scripts.c (ASSERT): Likewise.
44876         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
44877         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
44878         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
44879         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
44880         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
44881         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
44882         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
44883         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
44884         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
44885         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
44886         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
44887         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
44888         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
44889         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
44890         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
44891         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
44892         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
44893         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
44894         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
44895         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
44896         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
44897         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
44898         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
44899         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
44900         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
44901         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
44902         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
44903         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
44904         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
44905         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
44906         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
44907         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
44908         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
44909         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
44910         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
44911         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
44912         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
44913         Reported by Eric Blake.
44914
44915 2008-04-11  Bruno Haible  <bruno@clisp.org>
44916
44917         * lib/wchar.in.h: Tweak comment.
44918
44919 2008-04-11  Bruno Haible  <bruno@clisp.org>
44920
44921         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
44922         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
44923         gl_COMMON.
44924         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
44925
44926 2008-04-11  Bruno Haible  <bruno@clisp.org>
44927
44928         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
44929
44930 2008-04-11  Simon Josefsson  <simon@josefsson.org>
44931
44932         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
44933         of attempting to use non-existing /dev/*random.  Based on patch
44934         from Adam Strzelecki <ono@java.pl> in
44935         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
44936
44937 2008-04-08  Bruno Haible  <bruno@clisp.org>
44938
44939         Add tentative support for emx+gcc.
44940         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
44941         * lib/fpurge.c (fpurge): Likewise.
44942         * lib/freadable.c (freadable): Likewise.
44943         * lib/freadahead.c (freadahead): Likewise.
44944         * lib/freading.c (freading): Likewise.
44945         * lib/freadptr.c (freadptr): Likewise.
44946         * lib/freadseek.c (freadptrinc): Likewise.
44947         * lib/fseeko.c (rpl_fseeko): Likewise.
44948         * lib/fseterr.c (fseterr): Likewise.
44949         * lib/fwritable.c (fwritable): Likewise.
44950         * lib/fwriting.c (fwriting): Likewise.
44951         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
44952
44953 2008-04-09  Eric Blake  <ebb9@byu.net>
44954
44955         Avoid some autoconf warnings.
44956         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
44957         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
44958         * m4/afs.m4 (gl_AFS): Likewise.
44959         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
44960         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
44961         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44962         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
44963         (gl_INTEGER_TYPE_SUFFIX): Likewise.
44964         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
44965         (AC_CHECK_DECLS_ONCE): Likewise.
44966         Rename file...
44967         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
44968         gnulib-tool requires autoconf 2.59 or better.
44969         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
44970
44971 2008-04-08  Eric Blake  <ebb9@byu.net>
44972
44973         Use 'git describe --match' if present (added in git 1.5.5).
44974         * build-aux/git-version-gen: Limit result to tags that match 'v*'
44975         if possible.
44976
44977 2008-04-08  Bruno Haible  <bruno@clisp.org>
44978
44979         Add tentative support for OpenServer.
44980         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
44981         _ptr, _cnt.
44982         * lib/fpurge.c (fpurge): Likewise.
44983         * lib/freadable.c (freadable): Likewise.
44984         * lib/freadahead.c (freadahead): Likewise.
44985         * lib/freading.c (freading): Likewise.
44986         * lib/freadptr.c (freadptr): Likewise.
44987         * lib/freadseek.c (freadptrinc): Likewise.
44988         * lib/fseeko.c (rpl_fseeko): Likewise.
44989         * lib/fseterr.c (fseterr): Likewise.
44990         * lib/fwritable.c (fwritable): Likewise.
44991         * lib/fwriting.c (fwriting): Likewise.
44992         Reported by Roger Cornelius <rac@tenzing.org> and
44993         Brian K. White <brian@aljex.com>.
44994
44995 2008-04-06  Jim Meyering  <meyering@redhat.com>
44996
44997         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
44998
44999 2008-04-06  Bruno Haible  <bruno@clisp.org>
45000
45001         Avoid possible error with non-ASCII bytes in UTF-8 locales.
45002         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
45003         * tests/test-printf-posix.sh: Likewise.
45004         * tests/test-vfprintf-posix.sh: Likewise.
45005         * tests/test-vprintf-posix.sh: Likewise.
45006         * tests/test-xprintf-posix.sh: Likewise.
45007
45008 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45009
45010         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
45011         hide error from 'ls', needed on OS/2.
45012         Report by Elbert Pol <elbert.pol@gmail.com>.
45013
45014 2008-04-04  Eric Blake  <ebb9@byu.net>
45015
45016         Make test-fseeko.c failures meaningful.
45017         * tests/test-fseeko.c: Print line number on failure.
45018         * tests/test-fseek.c: Likewise.
45019         Reported by Nelson H. F. Beebe.
45020
45021         Improve strtod bug detection check.
45022         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
45023         required for Solaris 10.
45024         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
45025
45026 2008-04-04  Bruno Haible  <bruno@clisp.org>
45027
45028         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
45029         by m4/setenv.m4.
45030
45031 2008-04-03  Eric Blake  <ebb9@byu.net>
45032
45033         Ensure sane .version contents.
45034         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
45035         version string.
45036         * build-aux/git-version-gen: Improve documentation.
45037
45038         Make GNU make output nicer.
45039         * top/GNUmakefile [!_have-Makefile]: Add dependency on
45040         MAKECMDGOALS to enforce message for all command line targets.  Set
45041         srcdir for use in maint.mk.
45042
45043         Another maintainer tweak.
45044         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
45045         a target that regenerates version.
45046
45047 2008-04-03  Jim Meyering  <meyering@redhat.com>
45048
45049         vc-list-files: don't cause coreutils "make po-check" failure
45050         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
45051
45052 2008-04-03  Eric Blake  <ebb9@byu.net>
45053
45054         Allow VPATH usage of vc-list-files.
45055         * build-aux/vc-list-files (scriptversion): Add timestamp.
45056         (options): Add --help, --version, -C.
45057         (CVS): Support installed cvsu.
45058
45059 2008-04-02  Bruno Haible  <bruno@clisp.org>
45060
45061         Avoid some "statement with no effect" warnings from gcc.
45062         * tests/test-wctype.c (main): Explicitly ignore unused values.
45063         Reported by Jim Meyering.
45064
45065 2008-04-02  Jim Meyering  <meyering@redhat.com>
45066
45067         Avoid some warnings from "gcc -Wshadow".
45068         * tests/test-frexp.c (exp): Define to a different identifier.
45069         * tests/test-frexpl.c (exp): Likewise.
45070
45071 2008-04-03  Jim Meyering  <meyering@redhat.com>
45072
45073         bootstrap: remove dangling *.[ch] symlinks from lib
45074         * build-aux/bootstrap [dangling symlink removal]: Move find's
45075         -depth option to precede all others, to avoid a warning.
45076         Remove *.[ch] files too, and from "$source_base" (usually lib/).
45077
45078 2008-04-02  Bruno Haible  <bruno@clisp.org>
45079
45080         Avoid some warnings from "gcc -Wshadow".
45081         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
45082         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
45083         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
45084         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
45085         Reported by Jim Meyering.
45086
45087 2008-04-01  Bruno Haible  <bruno@clisp.org>
45088
45089         Fix test to work on IRIX 6.5 with cc.
45090         * tests/test-math.c (numeric_equal): New function.
45091         (main): Use it.
45092
45093 2008-04-01  Bruno Haible  <bruno@clisp.org>
45094
45095         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
45096
45097 2008-04-01  Bruno Haible  <bruno@clisp.org>
45098
45099         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
45100         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45101         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
45102         (Depends-on): Remove math.
45103
45104         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
45105         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45106         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
45107         (Depends-on): Remove math.
45108
45109         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
45110         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45111         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
45112         (Depends-on): Remove math.
45113         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
45114         (Depends-on): Remove math.
45115
45116         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
45117         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45118         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
45119         (Depends-on): Remove math.
45120         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
45121         (Depends-on): Remove math.
45122
45123         * tests/test-round1.c: Include nan.h.
45124         (main): Use NaNd instead of NAN.
45125         * modules/round-tests (Files): Add tests/nan.h.
45126
45127         * tests/test-trunc1.c: Include nan.h.
45128         (main): Use NaNd instead of NAN.
45129         * modules/trunc-tests (Files): Add tests/nan.h.
45130
45131         * tests/test-roundf1.c: Include nan.h.
45132         (main): Use NaNf instead of NAN.
45133         * modules/roundf-tests (Files): Add tests/nan.h.
45134
45135         * tests/test-truncf1.c: Include nan.h.
45136         (main): Use NaNf instead of NAN.
45137         * modules/truncf-tests (Files): Add tests/nan.h.
45138
45139         * tests/test-ceilf1.c: Include nan.h.
45140         (main): Use NaNf instead of NAN.
45141         * modules/ceilf-tests (Files): Add tests/nan.h.
45142
45143         * tests/test-floorf1.c: Include nan.h.
45144         (main): Use NaNf instead of NAN.
45145         * modules/floorf-tests (Files): Add tests/nan.h.
45146
45147         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
45148         (main): Use NaNf instead of NAN.
45149         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
45150
45151         * tests/test-isnand.c: Include nan.h instead of <math.h>.
45152         (main): Use NaNd instead of NAN.
45153         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
45154
45155         * tests/test-frexp.c: Include nan.h.
45156         (main): Use NaNd instead of NAN.
45157         * modules/frexp-tests (Files): Add tests/nan.h.
45158
45159         * lib/isnan.c: Don't include <math.h>.
45160         (FUNC): Don't use NAN macro.
45161         * modules/isnand-nolibm (Depends-on): Remove math.
45162         * modules/isnanf-nolibm (Depends-on): Remove math.
45163         * modules/isnanl (Depends-on): Remove math.
45164         * modules/isnanl-nolibm (Depends-on): Remove math.
45165
45166         * tests/nan.h: New file.
45167
45168 2008-04-01  Eric Blake  <ebb9@byu.net>
45169
45170         Fix typos.
45171         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
45172         values to be the right type.
45173
45174         For now, cater to gnulib strtod inaccuracies.
45175         * tests/test-strtod.c (main): Allow 1-ulp error on expected
45176         fractional results.  While not as nice from a QoI perspective, it
45177         is a quicker patch than correctly implementing decimal to binary
45178         rounding.
45179
45180 2008-03-31  Eric Blake  <ebb9@byu.net>
45181
45182         Guarantee a definition of NAN.
45183         * lib/math.in.h (NAN): Define if missing.
45184         * tests/test-math.c (main): Test it.
45185         * doc/posix-headers/math.texi (math.h): Document this.
45186         * lib/isnan.c (rpl_isnand): Use it.
45187         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
45188         * tests/test-floorf1.c (NaN): Likewise.
45189         * tests/test-frexp.c (NaN): Likewise.
45190         * tests/test-isnand.c (NaN): Likewise.
45191         * tests/test-isnanf.c (NaN): Likewise.
45192         * tests/test-round1.c (NaN): Likewise.
45193         * tests/test-roundf1.c (NaN): Likewise.
45194         * tests/test-snprintf-posix.h (NaN): Likewise.
45195         * tests/test-sprintf-posix.h (NaN): Likewise.
45196         * tests/test-trunc1.c (NaN): Likewise.
45197         * tests/test-truncf1.c (NaN): Likewise.
45198         * tests/test-vasnprintf-posix.c (NaN): Likewise.
45199         * tests/test-vasprintf-posix.c (NaN): Likewise.
45200         * modules/isnand-nolibm (Depends-on): Add math.
45201         * modules/isnanf-nolibm (Depends-on): Likewise.
45202         * modules/isnanl (Depends-on): Likewise.
45203         * modules/isnanl-nolibm (Depends-on): Likewise.
45204         * modules/snprintf-posix-tests (Depends-on): Likewise.
45205         * modules/sprintf-posix-tests (Depends-on): Likewise.
45206         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
45207         * modules/vsprintf-posix-tests (Depends-on): Likewise.
45208         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
45209         * modules/vasprintf-posix-tests (Depends-on): Likewise.
45210
45211 2008-03-31  Bruno Haible  <bruno@clisp.org>
45212
45213         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
45214         * doc/posix-functions/strtod.texi: Likewise.
45215
45216 2008-03-31  Bruno Haible  <bruno@clisp.org>
45217
45218         * tests/test-strtod.c (main): Don't use C99 syntax.
45219
45220 2008-03-31  Bruno Haible  <bruno@clisp.org>
45221
45222         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
45223         Reported by Eric Blake.
45224
45225 2008-03-31  Jim Meyering  <meyering@redhat.com>
45226
45227         Don't compare actual signbit return values.
45228         * tests/test-strtod.c (main): Rather, compare only their
45229         zero/non-zero nature.
45230
45231 2008-03-31  Eric Blake  <ebb9@byu.net>
45232
45233         More strtod documentation.
45234         * doc/posix-functions/strtod.texi (strtod): Interpret more test
45235         failures as distinct bugs.
45236
45237 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45238
45239         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
45240         Problem reported by Erik Benada in
45241         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
45242
45243 2008-03-30  Bruno Haible  <bruno@clisp.org>
45244
45245         * tests/test-strtod.c: Add comments about which assertion fails on which
45246         platform.
45247         * doc/posix-functions/strtod.texi: Add info about many more platforms.
45248
45249 2008-03-30  Eric Blake  <ebb9@byu.net>
45250
45251         Test signbit behavior on zeros.
45252         * tests/test-signbit.c (test_signbitf): Add tests for zero.
45253         (test_signbitd, test_signbitl): Likewise.
45254
45255         More strtod touchups.
45256         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
45257         sign of negative underflow, for now.  Use .5, not .1.
45258         * doc/posix-functions/strtod.texi (strtod): Mention these
45259         limitations.
45260         Reported by Jim Meyering.
45261
45262 2008-03-30  Bruno Haible  <bruno@clisp.org>
45263
45264         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
45265         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
45266
45267 2008-03-30  Bruno Haible  <bruno@clisp.org>
45268
45269         Avoid failure when attempting to return empty iconv results on some
45270         platforms.
45271         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
45272         allocation, don't report ENOMEM when the resulting string is empty.
45273
45274 2008-03-30  Bruno Haible  <bruno@clisp.org>
45275
45276         Fix buffer overrun.
45277         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
45278         Don't consider the width for tmp_length. Check count against tmp_length
45279         before doing the padding. Ensure enough allocation during padding.
45280
45281 2008-03-30  Eric Blake  <ebb9@byu.net>
45282
45283         strtod touchups.
45284         * lib/strtod.c (strtod): Avoid compiler warnings.
45285         Reported by Jim Meyering.
45286
45287 2008-03-30  Bruno Haible  <bruno@clisp.org>
45288
45289         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
45290         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
45291         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
45292         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
45293         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
45294         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
45295         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
45296         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
45297
45298         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
45299         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
45300         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
45301         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
45302         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
45303         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
45304         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
45305         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
45306
45307         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
45308         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
45309         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
45310         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
45311         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
45312         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
45313         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
45314         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
45315
45316         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
45317         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
45318
45319         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
45320         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
45321
45322         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
45323         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
45324
45325         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
45326         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
45327         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
45328
45329         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
45330         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
45331         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
45332
45333         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
45334         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
45335         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
45336
45337         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
45338         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
45339         * modules/vasprintf (Depends-on): Add EOVERFLOW.
45340
45341         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
45342         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
45343         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
45344         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
45345         (Depends-on): Add EOVERFLOW.
45346         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
45347         (Depends-on): Add EOVERFLOW.
45348         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45349         (Depends-on): Add EOVERFLOW.
45350         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45351         (Depends-on): Add EOVERFLOW.
45352         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45353         (Depends-on): Add EOVERFLOW.
45354         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45355         (Depends-on): Add EOVERFLOW.
45356         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45357         (Depends-on): Add EOVERFLOW.
45358         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45359         (Depends-on): Add EOVERFLOW.
45360
45361         * lib/sprintf.c (EOVERFLOW): Remove fallback.
45362         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
45363         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
45364
45365         * lib/snprintf.c (EOVERFLOW): Remove fallback.
45366         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
45367         * modules/snprintf (Depends-on): Add EOVERFLOW.
45368
45369         * lib/poll.c (EOVERFLOW): Remove fallback.
45370         * modules/poll (Depends-on): Add EOVERFLOW.
45371
45372         * lib/getugroups.c (EOVERFLOW): Remove fallback.
45373         * modules/getugroups (Depends-on): Add EOVERFLOW.
45374
45375         * lib/getdelim.c (EOVERFLOW): Remove fallback.
45376         * modules/getdelim (Depends-on): Add EOVERFLOW.
45377
45378         * lib/ftell.c (EOVERFLOW): Remove fallback.
45379         * modules/ftell (Depends-on): Add EOVERFLOW.
45380
45381         * lib/fprintf.c (EOVERFLOW): Remove fallback.
45382         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
45383         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
45384
45385         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
45386
45387         * modules/EOVERFLOW-tests: New file.
45388         * tests/test-EOVERFLOW.c: New file.
45389
45390         * modules/EOVERFLOW: New file.
45391         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
45392
45393 2008-03-30  Bruno Haible  <bruno@clisp.org>
45394
45395         Fix bug introduced on 2007-06-10.
45396         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
45397         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
45398
45399 2008-03-30  Bruno Haible  <bruno@clisp.org>
45400
45401         Improve freadseek's efficiency after ungetc.
45402         * lib/freadseek.c: Include freadahead.h.
45403         (freadptrinc): New function, extracted from freadseek.
45404         (freadseek): Use it in a loop. Use freadahead to determine the number
45405         of loop iterations.
45406         * modules/freadseek (Depends-on): Add freadahead.
45407         (configure.ac): Require AC_C_INLINE.
45408
45409 2008-03-30  Bruno Haible  <bruno@clisp.org>
45410
45411         * lib/freadseek.c (freadseek): Don't ignore the return value of
45412         freadptr.
45413
45414 2008-03-29  Eric Blake  <ebb9@byu.net>
45415
45416         Add hex float support.
45417         * modules/strtod (Depends-on): Add c-ctype.
45418         (Link): Mention POW_LIB.
45419         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
45420         whitespace between 'e' and exponent.
45421         * tests/test-strtod.c (main): Enable hex float tests.
45422         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
45423         now provides.
45424
45425         Document various strtod bugs, with some fixes.
45426         * doc/posix-functions/strtod.texi (strtod): Document bugs with
45427         "-0x", "inf", "nan", and hex constants.
45428         * doc/posix-functions/atof.texi (atof): Likewise.
45429         * modules/stdlib (Makefile.am): Support strtod.
45430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45431         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
45432         detect additional strtod bugs.
45433         * lib/stdlib.in.h (rpl_strtod): Add declarations.
45434         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
45435         bool where appropriate.  Parse 'inf' and 'nan'.
45436         * tests/test-strtod.c: New file.
45437         * modules/strtod (Depends-on): Add stdbool, stdlib.
45438         (configure.ac): Turn on module indicator.
45439         * modules/strtod-tests: New module.
45440
45441 2008-03-29  Eric Blake  <ebb9@byu.net>
45442
45443         Fix ftell on mingw.
45444         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
45445         * modules/ftell-tests (Depends-on): Add binary-io.
45446         * modules/ftello-tests (Depends-on): Likewise.
45447         * tests/test-ftell.c (main): Enhance test to cover behavior after
45448         ungetc.  Enforce binary mode.
45449         * tests/test-ftello.c (main): Likewise.
45450
45451         Pass test-freadseek on cygwin.
45452         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
45453         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
45454         ungetc buffer.
45455
45456         * tests/test-fflush2.c (main): Fix typo.
45457
45458 2008-03-29  Bruno Haible  <bruno@clisp.org>
45459
45460         * tests/test-fflush2.c (main): Temporarily disable the contents of
45461         this test.
45462         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
45463         Reported by Eric Blake.
45464
45465 2008-03-28  Simon Josefsson  <simon@josefsson.org>
45466
45467         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
45468         (GC_SHA224_DIGEST_SIZE): Add.
45469
45470         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
45471         (gc_hash_digest_length): Likewise.
45472         (gc_hash_buffer): Likewise.
45473
45474 2008-03-25  Bruno Haible  <bruno@clisp.org>
45475
45476         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
45477         detail which gettext release to use.
45478         Reported by Simon Josefsson.
45479
45480 2008-03-26  Jim Meyering  <meyering@redhat.com>
45481
45482         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
45483         * modules/gnumakefile (clean-GNUmakefile): Also, use
45484         test ... && ... || : syntax rather than if-then ... fi.
45485
45486         gnumakefile: Don't double-quote-expand $(VPATH) value.
45487         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
45488
45489 2008-03-24  Eric Blake  <ebb9@byu.net>
45490
45491         Alter GNUmakefile to install into top directory.
45492         * modules/maintainer-makefile: Split, and add dependency...
45493         * modules/gnumakefile: to this new module.
45494         * build-aux/GNUmakefile: Move...
45495         * top/GNUmakefile: ...here.
45496         * build-aux/maint.mk: Move...
45497         * top/maint.mk: ...here.
45498         * MODULES.html.sh (Support for maintaining...): Document new
45499         module.
45500
45501 2008-03-23  Bruno Haible  <bruno@clisp.org>
45502
45503         * gnulib-tool: New options --vc-files, --no-vc-files.
45504         (func_usage): Document them.
45505         (vc_files): New variable.
45506         (func_import): Consider vc_files.
45507         (func_create_testdir): Set vc_files to empty.
45508         Suggested by Jim Meyering and Karl Berry.
45509
45510 2008-03-23  Bruno Haible  <bruno@clisp.org>
45511
45512         Fix regex compilation error on HP-UX 11.
45513         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
45514         * modules/regex (Files): Add m4/mbstate_t.m4.
45515         Reported by Ton Voon <ton.voon@altinity.com>.
45516
45517 2008-03-23  Bruno Haible  <bruno@clisp.org>
45518
45519         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
45520
45521 2008-03-23  Eric Blake  <ebb9@byu.net>
45522             Bruno Haible  <bruno@clisp.org>
45523
45524         Install files from top/ in the destination directory.
45525         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45526         augmentation also for the files from top/.
45527         (func_import, func_create_testdir): Rewrite file names:
45528         top/filename -> filename.
45529
45530 2008-03-23  Bruno Haible  <bruno@clisp.org>
45531
45532         Tweak "gnulib --version" output.
45533         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
45534
45535 2008-03-23  Bruno Haible  <bruno@clisp.org>
45536
45537         Tweak "gnulib --version" output.
45538         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
45539         rather than contents of ChangeLog, when possible.
45540
45541 2008-03-21  Eric Blake  <ebb9@byu.net>
45542
45543         More --version tweaks.
45544         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
45545         date of last ChangeLog entry.
45546
45547 2008-03-21  Jim Meyering  <meyering@redhat.com>
45548
45549         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
45550
45551 2008-03-20  Eric Blake  <ebb9@byu.net>
45552
45553         VPATH fix.
45554         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
45555
45556 2008-03-20  Simon Josefsson  <simon@josefsson.org>
45557
45558         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
45559         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
45560
45561 2008-03-20  Eric Blake  <ebb9@byu.net>
45562
45563         Sync GNUmakefile with coreutils.
45564         * build-aux/GNUmakefile (have-Makefile): Rename...
45565         (_have-Makefile): ...to this, for namespace consideration.
45566         (GNUmakefile.cfg): Include, if present.
45567         (_autoreconf): Define a default.
45568         (_is-dist-target): New rule for rebuilds to pick up intra-release
45569         version.
45570         (maint-cfg.mk): Rename...
45571         (cfg.mk): ...to this.
45572
45573 2008-03-18  Jim Meyering  <meyering@redhat.com>
45574
45575         New script and module: mktempd
45576         * MODULES.html.sh (maint+release support): Add mktempd.
45577         * build-aux/mktempd: New file.
45578         * modules/mktempd: New file.
45579
45580 2008-03-15  Jim Meyering  <meyering@redhat.com>
45581
45582         Undo last change.
45583         * lib/sha1.c, lib/md5.c: 63 != ~63.
45584         Reported by Andreas Schwab.
45585
45586         sha1.c, md5.c: Hoist a redundant expression.
45587         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
45588         "ctx->buflen" only once, before calling *_process_block.
45589         * lib/md5.c (md5_process_bytes): Likewise.
45590
45591 2008-03-14  Eric Blake  <ebb9@byu.net>
45592
45593         Bump copyright year in files generated by gnulib-tool.
45594         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
45595         gnulib-tool, rather than hard-coding it.
45596
45597         Fix 'gnulib-tool --version' output to work with git.
45598         * gnulib-tool (func_gnulib_dir): New function, extracted from...
45599         (startup): ...here.
45600         (func_version): Use it to invoke git-version-gen, rather than
45601         relying on CVS keyword expansion.  Modernize wording.
45602         (cvsdatestamp, last_checkin_date, version): Kill unused
45603         variables.
45604
45605 2008-03-12  Jim Meyering  <meyering@redhat.com>
45606
45607         Recognize optional cast of the argument to free.
45608         * build-aux/useless-if-before-free: Update regexps.
45609
45610         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
45611
45612 2008-03-11  Bruno Haible  <bruno@clisp.org>
45613
45614         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
45615         by a single package.
45616         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
45617         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
45618         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
45619         Reported by Sam Steingold <sds@gnu.org>.
45620
45621 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45622
45623         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
45624         repositories.
45625
45626 2008-03-11  Bruno Haible  <bruno@clisp.org>
45627
45628         Avoid conflicts between local macro definitions.
45629         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
45630         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
45631
45632 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
45633             Bruno Haible  <bruno@clisp.org>
45634
45635         Make va_copy work with some version of xlc on AIX 5.1.
45636         * lib/stdarg.in.h: New file.
45637         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
45638         On AIX, use a <stdarg.h> file substitute.
45639         * modules/stdarg (Files): Add lib/stdarg.in.h.
45640         (Depends-on): Add include_next.
45641         (Makefile.am): Build a stdarg.h substitute if requested.
45642         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
45643
45644 2008-03-10  Bruno Haible  <bruno@clisp.org>
45645
45646         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
45647         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45648         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
45649
45650 2008-03-10  Bruno Haible  <bruno@clisp.org>
45651
45652         * modules/stdlib (Depends-on): Add include_next, remove
45653         absolute-header.
45654
45655 2008-03-09  Bruno Haible  <bruno@clisp.org>
45656
45657         * lib/freadahead.h (freadahead): Document more precisely.
45658         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
45659         the sum of both buffer sizes.
45660         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
45661         * NEWS: Document the change.
45662
45663 2008-03-09  Bruno Haible  <bruno@clisp.org>
45664
45665         Extend freadptr to return also the buffer size.
45666         * lib/freadptr.h (freadptr): Add sizep argument.
45667         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
45668         (freadptr): Add sizep argument. Determine buffer size like freadahead
45669         does.
45670         * tests/test-freadptr.c: Don't include freadahead.h.
45671         (main): Adapt for new calling convention of freadptr.
45672         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
45673         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
45674         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
45675         tests/test-freadptr2.sh.
45676         (Depends): Remove freadahead.
45677         (TESTS): Add test-freadptr2.sh.
45678         (check_PROGRAMS): Add test-freadptr2.
45679
45680 2008-03-09  Bruno Haible  <bruno@clisp.org>
45681
45682         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
45683         Report and solution by Simon Josefsson.
45684
45685 2008-03-06  Bruno Haible  <bruno@clisp.org>
45686
45687         Make fflush after ungetc work on BSD platforms.
45688         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
45689         * tests/test-fflush2.c: New file.
45690         * tests/test-fflush2.sh: New file.
45691         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
45692         tests/test-fflush2.c.
45693         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
45694         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
45695
45696 2008-03-06  Eric Blake  <ebb9@byu.net>
45697
45698         Likewise for ftello.
45699         * modules/ftello (Dependencies): Add extensions.
45700         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
45701
45702 2008-03-06  Bruno Haible  <bruno@clisp.org>
45703
45704         * modules/fseeko (Dependencies): Add extensions.
45705         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
45706         Needed on glibc systems.
45707
45708 2008-03-06  Bruno Haible  <bruno@clisp.org>
45709
45710         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
45711         email address.
45712         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45713
45714 2008-03-06  Bruno Haible  <bruno@clisp.org>
45715
45716         * users.txt: Add libgnupdf.
45717
45718 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45719
45720         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
45721         (Header File Substitutes, Function Substitutes,
45722         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
45723         (Build robot for gnulib): Fix typo.
45724
45725 2008-03-06  Bruno Haible  <bruno@clisp.org>
45726
45727         * doc/gnulib-tool.texi (VCS Issues): Small updates.
45728         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45729
45730 2008-03-06  Bruno Haible  <bruno@clisp.org>
45731
45732         * doc/func.texi: New file, extracted from doc/gnulib.texi.
45733         * doc/gnulib.texi: Include it.
45734
45735 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45736
45737         * modules/func (License): Change license to unlimited; there was
45738         no LGPL parts in the module anyway.
45739
45740 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45741
45742         * modules/__func__: Renamed to modules/func.
45743         * modules/__func__-tests: Renamed to modules/func-tests.
45744         * tests/test-__func__.c: Renamed to tests/test-func.c.
45745         * m4/__func__.m4: Renamed to m4/func.m4.
45746         * doc/gnulib.texi (__func__): Section renamed to func.
45747         Suggested by Eric Blake <ebb9@byu.net>.
45748
45749 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45750
45751         * doc/gnulib.texi (__func__): Use C99 terminology when talking
45752         about __func__.  Make example self-contained.  Suggested by Eric
45753         Blake <ebb9@byu.net>.
45754
45755         * tests/test-__func__.c (main): Avoid extraneous () around __func.
45756         Suggested by Eric Blake <ebb9@byu.net>.
45757
45758 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45759
45760         * modules/__func__: New file.
45761         * modules/__func__-tests: New file.
45762         * tests/test-__func__.c: New file.
45763         * m4/__func__.m4: New file.
45764         * doc/gnulib.texi (__func__): Document __func__ module.
45765
45766 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45767
45768         * modules/byteswap (License): Re-license as LGPLv2+.
45769
45770 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45771
45772         * doc/Makefile: Add pdf target.
45773
45774 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45775
45776         * modules/inline (License): Use 'unlimited', since there are only
45777         *.m4 files in this module.
45778
45779 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
45780             Bruno Haible  <bruno@clisp.org>
45781
45782         Add support for HP C 7.1 on OpenVMS 8.3.
45783         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
45784
45785 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
45786
45787         Update VMS specifics.
45788         * lib/getopt.c [VMS]: Remove include of unixlib.h.
45789
45790 2008-03-02  Jim Meyering  <meyering@redhat.com>
45791
45792         Remove the last dependency on the "free" module.
45793         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
45794         Reported by Bob Proulx.
45795
45796         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
45797
45798         Remove useless "if" tests before free.  Deprecate "free" module.
45799         * doc/posix-functions/free.texi: Mention that this
45800         module is no longer useful.
45801         * modules/free (Notice): Say this module is obsolete.
45802         * modules/readutmp (Depends-on): Remove free.
45803         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
45804         * lib/putenv.c (putenv): Likewise.
45805         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
45806         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
45807         * tests/test-c-strcasestr.c (main): Likewise.
45808         * tests/test-c-strstr.c (main): Likewise.
45809         * tests/test-mbscasestr1.c (main): Likewise.
45810         * tests/test-mbscasestr2.c (main): Likewise.
45811         * tests/test-mbsstr1.c (main): Likewise.
45812         * tests/test-mbsstr2.c (main): Likewise.
45813         * tests/test-memmem.c (main): Likewise.
45814         * tests/test-strcasestr.c (main): Likewise.
45815         * tests/test-striconv.c (main): Likewise.
45816         * tests/test-striconveh.c (main): Likewise.
45817         * tests/test-striconveha.c (main): Likewise.
45818         * tests/test-strstr.c (main): Likewise.
45819
45820         * build-aux/git-version-gen: Adjust a comment and the Usage string.
45821
45822         bootstrap: sync from coreutils again
45823         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
45824
45825 2008-03-01  Jim Meyering  <meyering@redhat.com>
45826
45827         bootstrap: sync from coreutils
45828         * build-aux/bootstrap (update_po_files): Copy a .po file into place
45829         also when the target doesn't exist.
45830
45831 2008-03-01  Eric Blake  <ebb9@byu.net>
45832
45833         Fix bugs in last patch.
45834         * lib/memchr2.c (memchr2): Fix typo.
45835         * tests/test-memchr2.c: Test previous bug, and don't use GNU
45836         extension.
45837         Reported by Bruce Korb.
45838
45839         New module 'memchr2'.
45840         * modules/memchr2: New file.
45841         * modules/memchr2-tests: Likewise.
45842         * lib/memchr2.h: Likewise.
45843         * lib/memchr2.c: Likewise, based on memchr.c.
45844         * tests/test-memchr2.c: New test.
45845         * MODULES.html.sh (String handling): Add memchr2.
45846
45847 2008-02-29  Bruno Haible  <bruno@clisp.org>
45848
45849         * modules/freadseek-tests: New file.
45850         * tests/test-freadseek.sh: New file.
45851         * tests/test-freadseek.c: New file.
45852
45853         New module 'freadseek'.
45854         * modules/freadseek: New file.
45855         * lib/freadseek.h: New file.
45856         * lib/freadseek.c: New file.
45857         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
45858
45859 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
45860
45861         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
45862         wydawca.
45863
45864         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
45865         program_invocation_name and program_invocation_short_name are
45866         present.
45867
45868 2008-02-28  Bruno Haible  <bruno@clisp.org>
45869
45870         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
45871         * tests/test-freadptr.sh: Also test non-seekable stdin.
45872
45873 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
45874
45875         * build-aux/bootstrap (source_base, m4_base)
45876         (doc_base, tests_base): New variables.
45877         (gnulib_tool_options): Do not hardcode base directories, use
45878         the above variables instead.
45879
45880 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
45881
45882         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
45883
45884 2008-02-28  Bruno Haible  <bruno@clisp.org>
45885
45886         * modules/freadptr-tests: New file.
45887         * tests/test-freadptr.sh: New file.
45888         * tests/test-freadptr.c: New file.
45889
45890         New module 'freadptr'.
45891         * modules/freadptr: New file.
45892         * lib/freadptr.h: New file.
45893         * lib/freadptr.c: New file.
45894         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
45895
45896 2008-02-26  Karl Berry  <karl@freefriends.org>
45897
45898         Sync from Libtool:
45899         * libltdl/argz.c (argz_add, argz_count): New functions.
45900         * libltdl/argz.in.h: Declare them.
45901         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
45902
45903 2008-02-22  Bruno Haible  <bruno@clisp.org>
45904
45905         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
45906         is a pointer type.  Needed for HP-UX 10.
45907         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
45908         * doc/posix-functions/gmtime_r.texi: Likewise.
45909         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
45910
45911 2008-02-24  Bruno Haible  <bruno@clisp.org>
45912
45913         * modules/environ-tests: New file.
45914         * tests/test-environ.c: New file.
45915
45916         New module 'environ'.
45917         * modules/environ: New file.
45918         * lib/unistd.in.h (environ): New declaration.
45919         * m4/environ.m4: New file.
45920         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
45921         after use.
45922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
45923         HAVE_DECL_ENVIRON.
45924         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
45925         HAVE_DECL_ENVIRON.
45926         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
45927         wrong claim that 'environ' is missing on some systems.
45928         * modules/execute (Depends-on): Add environ.
45929         * lib/execute.c (environ): Remove fallback declaration.
45930         * modules/pipe (Depends-on): Add environ.
45931         * lib/pipe.c (environ): Remove fallback declaration.
45932         * modules/setenv (Depends-on): Add environ.
45933         * lib/setenv.c (environ): Remove fallback declaration.
45934         * modules/unsetenv (Depends-on): Add environ.
45935         * lib/unsetenv.c (environ): Remove fallback declaration.
45936         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
45937         m4/environ.m4.
45938         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
45939         (gl_PREREQ_UNSETENV): Likewise.
45940
45941 2008-02-24  Bruno Haible  <bruno@clisp.org>
45942
45943         * doc/posix-functions/environ.texi: Document the MacOS X problem.
45944
45945 2008-02-20  Bob Proulx  <bob@proulx.com>
45946
45947         Enable use of older two part flavor 'git describe'.
45948         * build-aux/git-version-gen: If using the older two part flavor of
45949         git version then recreate the third part now present in the
45950         newer three part flavor of git describe.
45951
45952 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
45953
45954         * lib/fts.c (fts_build): Typo correction to comment.
45955
45956 2008-02-17  Bruno Haible  <bruno@clisp.org>
45957
45958         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
45959         generating no-op conflicts.
45960
45961 2008-02-17  Bruno Haible  <bruno@clisp.org>
45962
45963         Speed up by 10%.
45964         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
45965         result_entries, rather than an index-based loop.
45966
45967 2008-02-17  Bruno Haible  <bruno@clisp.org>
45968
45969         Speed up by 25%.
45970         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
45971         'hashcode_cached'.
45972         (entry_create): New function.
45973         (entry_hashcode): Use the cached hashcode if possible.
45974         (read_changelog_file, try_split_merged_entry): Use entry_create.
45975
45976 2008-02-17  Bruno Haible  <bruno@clisp.org>
45977
45978         Speed up from O(n^2) to O(n) for long ChangeLog files.
45979         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
45980         (read_changelog_file): Change implementation of entries_reversed list
45981         to rbtreehash.
45982         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
45983
45984 2008-02-17  Bruno Haible  <bruno@clisp.org>
45985
45986         New option --split-merged-entry.
45987         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
45988         (find_paragraph_end, try_split_merged_entry): New functions.
45989         (long_options): Add option --split-merged-entry.
45990         (usage): Document option --split-merged-entry.
45991         (main): Implement option --split-merged-entry.
45992         Reported by Eric Blake.
45993
45994 2008-02-17  Bruno Haible  <bruno@clisp.org>
45995
45996         * lib/git-merge-changelog.c: Include c-strstr.h.
45997         (main): Support the "git pull --rebase" situation.
45998         * modules/git-merge-changelog (Depends-on): Add c-strstr.
45999         Reported by Eric Blake.
46000
46001 2008-02-16  Eric Blake  <ebb9@byu.net>
46002
46003         Avoid doubling \ in common case of "c-maybe" quoting style.
46004         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
46005         eliding outer quotes.
46006         * lib/quotearg.h: Document this.
46007         * tests/test-quotearg.c (result_strings, inputs, results_g)
46008         (flag_results, locale_results): Test it by adding a new string to
46009         each test group.
46010         (compare_strings): Test new string.
46011
46012 2008-02-13  Eric Blake  <ebb9@byu.net>
46013
46014         Avoid trigraph quoting in default output.
46015         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
46016         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
46017         unless explicitly requested.
46018         * tests/test-quotearg.c (flag_results, main): Add additional tests.
46019
46020 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
46021
46022         Don't rely on signed integer overflowing to negative value.
46023         * lib/getugroups.c (getugroups): Include <limits.h>.
46024         Instead, compare against INT_MAX, and increment only if the test passes.
46025
46026 2008-02-13  Jim Meyering  <meyering@redhat.com>
46027         and Eric Blake  <ebb9@byu.net>
46028
46029         Avoid shadowing warning and compile errors on Linux.
46030         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
46031         forwarding macros on Linux.
46032         (dcgettext): Define a stub, for Linux.
46033         (results_g, main): Avoid warnings.
46034
46035 2008-02-12  Eric Blake  <ebb9@byu.net>
46036
46037         Silence warning in last patch.
46038         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
46039
46040         Quotearg part 4: add tests, fix c-maybe colon quoting.
46041         * lib/quotearg.h: Improve documentation.
46042         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
46043         escapes when adding outer quotes.  When quoting trigraphs, use
46044         valid C notation.  When quoting NUL, omit extra characters if next
46045         character is not digit.  Alter prototype.
46046         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
46047         callers.
46048         * modules/quotearg-tests: New module.
46049         * tests/test-quotearg.c: New test.
46050
46051 2008-02-07  Eric Blake  <ebb9@byu.net>
46052
46053         Quotearg part 3: add flag to control outer quote elision.
46054         * lib/quotearg.h (c_maybe_quoting_style): New style.
46055         (enum quoting_flags): Better documentation of flags.
46056         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
46057         c-maybe style.
46058         (quotearg_buffer_restyled): Handle new flag to elide outer
46059         quotes.
46060
46061         Quotearg part 2: add flag that can control NUL elision.
46062         * lib/quotearg.h (set_quoting_flags): New prototype.
46063         * lib/quotearg.c (struct quoting_options): Add flag field.
46064         (set_quoting_flags): New function.
46065         (quotearg_buffer_restyled): Add flags parameter.
46066         (quotearg_alloc_mem): Set the flag if length cannot be returned.
46067         (quotearg_n_options): Set the flag, since length cannot be
46068         returned.
46069         (quoting_options_from_style): Default flags correctly.
46070
46071         Quotearg part 1: more wrappers, restore quotearg_char state.
46072         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
46073         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
46074         (quotearg_colon_mem): New wrappers.
46075         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
46076         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
46077         functions.
46078         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
46079         (quotearg_colon_mem): New functions.
46080
46081 2008-02-11  Bruno Haible  <bruno@clisp.org>
46082
46083         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
46084         library in the current directory: it does not work with parallel make.
46085         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46086
46087 2008-02-11  Bruno Haible  <bruno@clisp.org>
46088
46089         * .gitattributes: New file.
46090
46091 2008-02-11  Jim Meyering  <meyering@redhat.com>
46092
46093         useless-if-before-free: Fix reversed exit values.
46094         * build-aux/useless-if-before-free: Use correct values
46095         for EXIT_MATCH and EXIT_NO_MATCH.
46096
46097         * build-aux/useless-if-before-free: Close stdout carefully.
46098
46099 2008-02-10  Bruno Haible  <bruno@clisp.org>
46100
46101         New module 'git-merge-changelog'.
46102         * modules/git-merge-changelog: New file.
46103         * lib/git-merge-changelog.c: New file.
46104
46105 2008-02-10  Jim Meyering  <meyering@redhat.com>
46106
46107         useless-if-before-free: New option: --list (-l).
46108
46109         useless-if-before-free: Don't exit immediately upon open failure.
46110         * build-aux/useless-if-before-free: Exit 2 for errors.
46111         Upon failure to open a file, don't exit immediately.
46112         Rather, just warn and continue with any remaining files.
46113
46114 2008-02-10  Bruno Haible  <bruno@clisp.org>
46115
46116         New abstract list operation 'node_set_value'.
46117         * lib/gl_list.h (gl_list_node_set_value): New function.
46118         (struct gl_list_implementation): New field node_set_value.
46119         * lib/gl_list.c (gl_list_node_set_value): New function.
46120         * lib/gl_array_list.c (gl_array_node_set_value): New function.
46121         (gl_array_list_implementation): Update.
46122         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
46123         (gl_carray_list_implementation): Update.
46124         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
46125         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46126         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46127         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
46128         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46129         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46130         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46131         Update.
46132         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46133         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
46134         (gl_sublist_list_implementation): Update.
46135
46136 2008-02-10  Bruno Haible  <bruno@clisp.org>
46137
46138         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
46139         Needed when ELEMENT is #defined to 'some_type *'.
46140
46141 2008-02-10  Jim Meyering  <meyering@redhat.com>
46142
46143         New script and module: useless-if-before-free
46144         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
46145         * build-aux/useless-if-before-free: New file.
46146         * modules/useless-if-before-free: New file.
46147
46148         * build-aux/gitlog-to-changelog: Use committer date, not author date.
46149
46150         xstrtol_error: Fix typo.
46151         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
46152         s/exit_failure/exit_status/.
46153
46154 2008-02-09  Jim Meyering  <meyering@redhat.com>
46155
46156         New script and module: gitlog-to-changelog
46157         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
46158         * modules/gitlog-to-changelog: New file.
46159         * build-aux/gitlog-to-changelog: New file.
46160
46161 2008-02-08  Jim Meyering  <meyering@redhat.com>
46162
46163         Avoid two "parameter unused" warnings.
46164         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
46165         Mark "st" as used.
46166
46167         Use "git COMMAND", not "git-COMMAND".
46168         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
46169         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
46170         * build-aux/git-version-gen: Use "git status", not "git-status".
46171
46172 2008-02-07  Bruno Haible  <bruno@clisp.org>
46173
46174         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
46175         Avoids a crash on Windows Vista.
46176         Reported by Adam Strzelecki <ono@java.pl> via
46177         Simon Josefsson <simon@josefsson.org>.
46178
46179 2008-02-06  Bruno Haible  <bruno@clisp.org>
46180
46181         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
46182         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
46183         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
46184         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
46185         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46186         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46187         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
46188         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
46189         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46190         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46191         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46192         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46193         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46194         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46195         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46196         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
46197         left-adjust flag.
46198         * tests/test-snprintf-posix.h (test_function): Likewise.
46199         * tests/test-sprintf-posix.h (test_function): Likewise.
46200         * tests/test-vasprintf-posix.c (test_function): Likewise.
46201         * doc/posix-functions/fprintf.texi: Update.
46202         * doc/posix-functions/printf.texi: Update.
46203         * doc/posix-functions/snprintf.texi: Update.
46204         * doc/posix-functions/sprintf.texi: Update.
46205         * doc/posix-functions/vfprintf.texi: Update.
46206         * doc/posix-functions/vprintf.texi: Update.
46207         * doc/posix-functions/vsnprintf.texi: Update.
46208         * doc/posix-functions/vsprintf.texi: Update.
46209         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46210
46211 2008-02-06  Bruno Haible  <bruno@clisp.org>
46212
46213         Fix bug introduced on 2008-01-26.
46214         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
46215
46216 2008-02-06  Bruno Haible  <bruno@clisp.org>
46217
46218         Fix bug introduced on 2007-06-10.
46219         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
46220         !NEED_PRINTF_FLAG_ZERO.
46221
46222 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
46223
46224         getloadavg: use libperfstat on AIX5
46225         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
46226
46227 2008-02-03  Bruno Haible  <bruno@clisp.org>
46228
46229         * lib/diffseq.h: Add comments about required #includes.
46230         Reported by Michael Biggs <gnulib@doubleplum.net>.
46231
46232 2008-02-01  Bruno Haible  <bruno@clisp.org>
46233
46234         * users.txt: Add gnuit.
46235
46236 2008-01-31  Bruno Haible  <bruno@clisp.org>
46237
46238         * lib/md4.c (set_uint32): Mark as inline.
46239         * lib/md5.c (set_uint32): Likewise.
46240         * lib/sha1.c (set_uint32): Likewise.
46241         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
46242         * m4/md5.m4 (gl_MD5): Likewise.
46243         * m4/sha1.m4 (gl_SHA1): Likewise.
46244
46245 2008-01-31  Jim Meyering  <meyering@redhat.com>
46246
46247         Use "sizeof VAR", rather than a literal "4".
46248         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
46249         * lib/md4.c (md4_read_ctx): Likewise.
46250         * lib/sha1.c (sha1_read_ctx): Likewise.
46251
46252 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46253
46254         * tests/test-sha1.c: New file, based on test-md5.c.
46255
46256         * modules/crypto/sha1-tests: New file.
46257
46258 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46259
46260         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
46261
46262 2008-01-31  Jim Meyering  <meyering@redhat.com>
46263
46264         Prefer "sizeof v" over the equivalent "4".
46265         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
46266         * lib/md5.c (set_uint32): Likewise.
46267         * lib/sha1.c (set_uint32): Likewise.
46268
46269 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46270
46271         * lib/sha1.c (set_uint32): Mark function as static.
46272
46273 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46274
46275         md2: clarify comments to say that alignment is not required.
46276         * lib/md2.h: Remove warning about alignment in comment.
46277         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
46278         never been required.
46279
46280 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46281
46282         md4: adapt alignment constraint fix from sha1.
46283         * lib/md4.c (set_uint32): New function, from sha1.c
46284         (md4_read_ctx): Use it.
46285         (md4_finish_ctx): Doc fix.
46286         * lib/md4.h: Doc fix.
46287
46288 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46289
46290         md5: adapt alignment constraint fix from sha1.
46291         * lib/md5.c (set_uint32): New function, from sha1.c
46292         (md5_read_ctx): Use it.
46293         (md5_finish_ctx): Doc fix.
46294         * lib/md5.h: Doc fix.
46295
46296 2008-01-30  Peter Palfrader  <weasel@debian.org>
46297
46298         sha1: remove the result buffer alignment constraint
46299         * lib/sha1.c (set_uint32): New function.
46300         (sha1_read_ctx): Rewrite to remove the result buffer alignment
46301         constraint.
46302         (sha1_finish_ctx): Remove comment warning about alignment constraint.
46303         * lib/sha1.h: Likewise.
46304
46305 2008-01-30  Andreas Schwab  <schwab@suse.de>
46306             Bruno Haible  <bruno@clisp.org>
46307
46308         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
46309         correct definition of LDBL_MIN_EXP.
46310
46311 2008-01-30  Karl Berry  <karl@gnu.org>
46312
46313         * config/srclist-update: try to preserve x bit on updates.
46314         * config/srclistvars.sh: update for karl.
46315
46316 2008-01-29  Jim Meyering  <meyering@redhat.com>
46317
46318         vasnprintf.c: Avoid warning about unused label
46319         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
46320         "overflow" label definition and associated code with the
46321         same cpp condition that guards the sole use of that label.
46322
46323 2008-01-26  Bruno Haible  <bruno@clisp.org>
46324
46325         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
46326         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
46327         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
46328         * lib/isnanl-nolibm.h (isnanl): Likewise.
46329         Reported by Paul Eggert <eggert@cs.ucla.edu>.
46330
46331 2008-01-26  Bruno Haible  <bruno@clisp.org>
46332
46333         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
46334         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
46335
46336 2008-01-26  Bruno Haible  <bruno@clisp.org>
46337
46338         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
46339         GCC >= 4.0 built-in.
46340         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
46341
46342 2008-01-26  Bruno Haible  <bruno@clisp.org>
46343
46344         Rename isnan, applicable to 'double' only, to isnand.
46345         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
46346         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
46347         (configure.ac): Update.
46348         (Include): Replace "isnan.h" with "isnand.h".
46349         * m4/isnand.m4: Renamed from m4/isnan.m4.
46350         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
46351         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
46352         instead of isnan.c.
46353         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
46354         instead of HAVE_ISNAN_IN_LIBC.
46355         (isnand): Renamed from isnan.
46356         * lib/isnand.c: New file.
46357         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
46358         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
46359         (Makefile.am): Update.
46360         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
46361         Include isnand.h instead of isnan.h.
46362         (main): Test isnand instead of isnan.
46363         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
46364         isnan-nolibm.
46365         * modules/frexp (Depends-on): Likewise.
46366         * modules/frexp-tests (Depends-on): Likewise.
46367         * modules/frexp-nolibm (Depends-on): Likewise.
46368         * modules/frexp-nolibm-tests (Depends-on): Likewise.
46369         * modules/isfinite (Depends-on): Likewise.
46370         * modules/round-tests (Depends-on): Likewise.
46371         * modules/signbit (Depends-on): Likewise.
46372         * modules/signbit-tests (Depends-on): Likewise.
46373         * modules/snprintf-posix (Depends-on): Likewise.
46374         * modules/sprintf-posix (Depends-on): Likewise.
46375         * modules/trunc-tests (Depends-on): Likewise.
46376         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46377         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46378         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46379         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46380         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46381         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46382         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46383         * modules/vasnprintf-posix (Depends-on): Likewise.
46384         * modules/vasprintf-posix (Depends-on): Likewise.
46385         * modules/vfprintf-posix (Depends-on): Likewise.
46386         * modules/vsnprintf-posix (Depends-on): Likewise.
46387         * modules/vsprintf-posix (Depends-on): Likewise.
46388         * lib/frexp.c: Include isnand.h instead of isnan.h.
46389         (ISNAN): Set to isnand instead of isnan.
46390         * lib/isfinite.c: Include isnand.h instead of isnan.h.
46391         (gl_isfinited): Use isnand instead of isnan.
46392         * lib/signbitd.c: Include isnand.h instead of isnan.h.
46393         (gl_signbitd): Use isnand instead of isnan.
46394         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
46395         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
46396         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
46397         (main): Use isnand instead of isnan.
46398         * tests/test-round1.c: Include isnand.h.
46399         (main): Use isnand instead of isnan.
46400         * tests/test-round2.c: Include isnand.h instead of isnan.h.
46401         (ISNAN): Set to isnand instead of isnan.
46402         * tests/test-trunc1.c: Include isnand.h.
46403         (main): Use isnand instead of isnan.
46404         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
46405         (equal): Use isnand instead of isnan.
46406         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
46407         isnand-nolibm.
46408         * NEWS: Mention the change.
46409
46410 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46411             Bruno Haible  <bruno@clisp.org>
46412
46413         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
46414         the GCC builtins for signbits are present and set
46415         REPLACE_SIGNBIT_USING_GCC if so.
46416         * lib/math.in.h (signbit): Define using GCC builtins if
46417         REPLACE_SIGNBIT_USING_GCC is set.
46418         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
46419         REPLACE_SIGNBIT_USING_GCC.
46420         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
46421
46422 2008-01-25  Jim Meyering  <meyering@redhat.com>
46423
46424         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
46425         * lib/poll.c: Include <config.h>, not "config.h".
46426         * tests/test-getaddrinfo.c: Likewise.
46427
46428 2008-01-25  Simon Josefsson  <simon@josefsson.org>
46429
46430         * modules/sockets-tests: New file.
46431
46432 2008-01-24  Simon Josefsson  <simon@josefsson.org>
46433
46434         * modules/sockets: New module, can be used to call WSA_Startup and
46435         WSA_Cleanup when needed.
46436
46437         * lib/sockets.h, lib/sockets.c: New files.
46438
46439         * m4/sockets.m4: New file.
46440
46441         * tests/test-sockets.c: New file.
46442
46443 2008-01-19  Bruno Haible  <bruno@clisp.org>
46444
46445         * doc/posix-headers: Renamed from doc/headers.
46446         * doc/posix-functions: Renamed from doc/functions.
46447         * doc/gnulib.texi: Update.
46448
46449 2008-01-19  Bruno Haible  <bruno@clisp.org>
46450
46451         * doc/glibc-functions/strcasestr.texi: Include contents of
46452         doc/functions/strcasestr.texi, fixing the list of platforms.
46453         * doc/functions/strcasestr.texi: Remove file.
46454
46455 2008-01-19  Bruno Haible  <bruno@clisp.org>
46456
46457         * doc/glibc-functions/memmem.texi: Include contents of
46458         doc/functions/memmem.texi.
46459         * doc/functions/memmem.texi: Remove file.
46460
46461 2008-01-18  Bruno Haible  <bruno@clisp.org>
46462
46463         * doc/glibc-functions/*.texi: New files.
46464         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
46465         to use the new files.
46466
46467 2008-01-17  Bruno Haible  <bruno@clisp.org>
46468
46469         * tests/test-gethostname.c (main): Fix printf statement.
46470
46471 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46472
46473         * modules/gethostname-tests: New file.
46474
46475         * tests/test-gethostname.c: New file.
46476
46477 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46478
46479         * lib/gethostname.c: Include string.h unconditionally, strncpy is
46480         used by the UNAME case.  Reported by Bruno Haible
46481         <bruno@clisp.org>.
46482
46483 2008-01-17  Eric Blake  <ebb9@byu.net>
46484
46485         Convert c-strcasestr to be more efficient.
46486         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
46487         (Depends-on): Add c-strcase, remove malloca, strnlen.
46488         * tests/test-c-strcasestr.c (main): Enhance test.
46489         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
46490
46491 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46492
46493         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
46494         Use it in creating po/Makevars.
46495
46496 2008-01-15  Simon Josefsson  <simon@josefsson.org>
46497
46498         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
46499         Applications that requires it should initialize libgcrypt
46500         manually.
46501
46502 2008-01-16  Simon Josefsson  <simon@josefsson.org>
46503
46504         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
46505
46506 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
46507
46508         Fix problem with getdate on mingw32 reported by Simon Josefsson
46509         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
46510         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
46511         tzname", when deciding whether to declare tzname.
46512         * lib/strftime.c (tzname): Likewise.
46513
46514 2008-01-15  Bruno Haible  <bruno@clisp.org>
46515
46516         Work around a MacOS X 10.5 bug in frexpl().
46517         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
46518         * doc/functions/frexpl.texi: Document the bug.
46519         Reported by Elias Pipping <pipping@gentoo.org>.
46520
46521 2008-01-14  Eric Blake  <ebb9@byu.net>
46522
46523         Touch up previous patch.
46524         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
46525         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
46526
46527         Convert strcasestr module to use Two-Way algorithm.
46528         * modules/strcasestr-simple: New module, based on the old
46529         strcasestr, but with Two-Way rather than KMP.
46530         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
46531         * lib/string.in.h (rpl_strcasestr): Declare.
46532         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
46533         performance.
46534         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
46535         * modules/string (Makefile.am): Support strcasestr.
46536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46537         * modules/strcasestr-tests (Depends-on): Check for alarm.
46538         * tests/test-strcasestr.c: Augment test.
46539         * lib/str-two-way.h: Clean up stray macro.
46540         * NEWS: Document new module.
46541         * MODULES.html.sh (string handling): Likewise.
46542         * doc/functions/strcasestr.texi: New file.
46543         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
46544         here, since it is not a POSIX function.
46545
46546 2008-01-14  Colin Watson  <cjwatson@debian.org>
46547             Bruno Haible  <bruno@clisp.org>
46548
46549         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
46550         works fine; if not, set REPLACE_STRSIGNAL.
46551         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
46552         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46553         REPLACE_STRSIGNAL.
46554         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
46555         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
46556         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
46557
46558 2008-01-14  Bruno Haible  <bruno@clisp.org>
46559
46560         * modules/strsignal (Include): Change to <string.h>.
46561
46562 2008-01-14  Colin Watson  <cjwatson@debian.org>
46563
46564         * modules/argp (Notice): Add a notice recommending to change
46565         XGETTEXT_OPTIONS.
46566         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
46567
46568 2008-01-13  Colin Watson  <cjwatson@debian.org>
46569
46570         * modules/strsignal-tests: New file.
46571         * tests/test-strsignal.c: New file.
46572
46573         * lib/strsignal.c: New file, from glibc with modifications.
46574         * lib/siglist.h: New file, from glibc with modifications.
46575         * lib/string.in.h (strsignal): New declaration.
46576         * m4/strsignal.m4: New file.
46577         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46578         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
46579         * modules/strsignal: New file.
46580         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
46581         HAVE_DECL_STRSIGNAL.
46582
46583 2008-01-13  Bruno Haible  <bruno@clisp.org>
46584
46585         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
46586         locale encoding is not ASCII. Needed for OpenBSD 4.0.
46587         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46588         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46589
46590 2008-01-13  Bruno Haible  <bruno@clisp.org>
46591
46592         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
46593         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
46594         * lib/argp.h (__attribute__): Likewise.
46595         * lib/c-stack.c (__attribute__): Likewise.
46596         * lib/error.h (__attribute__): Likewise.
46597         * lib/fts.c (__attribute__): Likewise.
46598         * lib/openat.h (__attribute__): Likewise.
46599         * lib/stdio.in.h (__attribute__): Likewise.
46600         * lib/string.in.h (__attribute__): Likewise.
46601         * lib/utimens.c (__attribute__): Likewise.
46602         * lib/vasnprintf.h (__attribute__): Likewise.
46603         * lib/xalloc.h (__attribute__): Likewise.
46604         * lib/xprintf.h (__attribute__): Likewise.
46605         * lib/xstrtol.h (__attribute__): Likewise.
46606         * lib/xvasprintf.h (__attribute__): Likewise.
46607
46608 2008-01-12  Bruno Haible  <bruno@clisp.org>
46609
46610         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
46611         * doc/glibc-headers/a.out.texi: New file.
46612         * doc/glibc-headers/aliases.texi: New file.
46613         * doc/glibc-headers/alloca.texi: New file.
46614         * doc/glibc-headers/ar.texi: New file.
46615         * doc/glibc-headers/argp.texi: New file.
46616         * doc/glibc-headers/argz.texi: New file.
46617         * doc/glibc-headers/byteswap.texi: New file.
46618         * doc/glibc-headers/crypt.texi: New file.
46619         * doc/glibc-headers/endian.texi: New file.
46620         * doc/glibc-headers/envz.texi: New file.
46621         * doc/glibc-headers/err.texi: New file.
46622         * doc/glibc-headers/error.texi: New file.
46623         * doc/glibc-headers/execinfo.texi: New file.
46624         * doc/glibc-headers/fpu_control.texi: New file.
46625         * doc/glibc-headers/fstab.texi: New file.
46626         * doc/glibc-headers/fts.texi: New file.
46627         * doc/glibc-headers/getopt.texi: New file.
46628         * doc/glibc-headers/ieee754.texi: New file.
46629         * doc/glibc-headers/ifaddrs.texi: New file.
46630         * doc/glibc-headers/libintl.texi: New file.
46631         * doc/glibc-headers/mcheck.texi: New file.
46632         * doc/glibc-headers/mntent.texi: New file.
46633         * doc/glibc-headers/obstack.texi: New file.
46634         * doc/glibc-headers/paths.texi: New file.
46635         * doc/glibc-headers/printf.texi: New file.
46636         * doc/glibc-headers/pty.texi: New file.
46637         * doc/glibc-headers/resolv.texi: New file.
46638         * doc/glibc-headers/shadow.texi: New file.
46639         * doc/glibc-headers/sysexits.texi: New file.
46640         * doc/glibc-headers/ttyent.texi: New file.
46641
46642 2008-01-12  Jim Meyering  <meyering@redhat.com>
46643
46644         announce-gen: emit Gnulib's git-based version string.
46645         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
46646         New option --gnulib-version=V, where V is expected to be
46647         the output of running git describe in the gnulib directory.
46648         (get_tool_versions): Request feedback on xdelta.  I suspect it's
46649         not useful, and plan to stop publishing an xdelta file with each
46650         coreutils release.
46651
46652         * build-aux/announce-gen: Also check for lzma-compressed files.
46653
46654 2008-01-11  Bruno Haible  <bruno@clisp.org>
46655
46656         * tests/test-memmem.c (main): Increase maximum allowed time.
46657         * tests/test-strstr.c (main): Likewise.
46658
46659 2008-01-11  Bruno Haible  <bruno@clisp.org>
46660
46661         * doc/functions/memmem.texi: Add more precisions about platforms.
46662         * doc/functions/strstr.texi: Likewise.
46663
46664 2008-01-10  Eric Blake  <ebb9@byu.net>
46665
46666         * m4/strstr.m4: Delete cruft from copy-n-paste.
46667         Reported by Bruno Haible.
46668
46669 2008-01-10  Bruno Haible  <bruno@clisp.org>
46670
46671         Make c-strstr rely on strstr.
46672         * lib/c-strstr.c: Don't include str-kmp.h.
46673         (c_strstr): Define in terms of strstr.
46674         * modules/c-strstr (Files): Remove lib/str-kmp.h.
46675         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
46676
46677 2008-01-10  Bruno Haible  <bruno@clisp.org>
46678
46679         * doc/gnulib.texi (String Functions in C Locale): New section.
46680         * doc/c-ctype.texi: New file.
46681         * doc/c-strcase.texi: New file.
46682         * doc/c-strcaseeq.texi: New file.
46683         * doc/c-strcasestr.texi: New file.
46684         * doc/c-strstr.texi: New file.
46685         * doc/c-strtod.texi: New file.
46686         * doc/c-strtold.texi: New file.
46687
46688 2008-01-10  Eric Blake  <ebb9@byu.net>
46689
46690         * lib/relocatable.h: Fix a comment.
46691
46692 2008-01-10  Eric Blake  <ebb9@byu.net>
46693
46694         Share two-way algorithm.
46695         * lib/str-two-way.h: New file, merged from...
46696         * lib/memmem.c: ...here...
46697         * lib/strstr.c: ...and here.
46698         * modules/memmem (Files): Use it.
46699         * modules/strstr (Files): Likewise.
46700
46701         Avoid quadratic strstr implementations.
46702         * lib/strstr.c: New file.
46703         * m4/strstr.m4: Likewise.
46704         * modules/strstr: Likewise.
46705         * modules/strstr-tests: Likewise.
46706         * tests/test-strstr.c: Likewise.
46707         * lib/string.in.h (rpl_strstr): Declare.
46708         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
46709         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
46710         * modules/string (Makefile.am): Likewise.
46711         * MODULES.html.sh (string handling): Mention new module.
46712         * doc/functions/strstr.texi (strstr): Document the bug.
46713
46714 2008-01-10  Bruno Haible  <bruno@clisp.org>
46715
46716         * lib/relocatable.h (relocate): State whether result is freshly
46717         allocated or not.
46718         * lib/relocatable.c (relocate): Return a freshly allocated string
46719         instead of a pointer to a privately held string.
46720         Reported by Sylvain Beucler <beuc@gnu.org>.
46721
46722 2008-01-10  Colin Watson  <cjwatson@debian.org>
46723
46724         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
46725         s/S_ISNLK/S_ISLNK/.
46726
46727 2008-01-09  Bruno Haible  <bruno@clisp.org>
46728
46729         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
46730         and other files.
46731         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
46732         if it's only a guess.
46733         * modules/memmem: Simplify by depending on memmem-simple.
46734
46735 2008-01-09  Bruno Haible  <bruno@clisp.org>
46736
46737         Work around OpenBSD 4.0 tdelete() bug.
46738         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
46739         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
46740         macros and don't redefine the enum values.
46741         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
46742         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
46743         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
46744
46745 2008-01-09  Bruno Haible  <bruno@clisp.org>
46746
46747         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
46748         (main): Don't perform the tests if setlocale did not install a UTF-8
46749         locale. Needed on OpenBSD 4.0.
46750         * modules/wcwidth-tests (Depends-on): Add localcharset.
46751
46752 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46753
46754         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
46755         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
46756         * NEWS: announce this.
46757         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
46758
46759 2008-01-09  Simon Josefsson  <simon@josefsson.org>
46760         and Eric Blake  <ebb9@byu.net>
46761
46762         Add memmem-simple module.
46763         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
46764         (gl_FUNC_MEMMEM): Separate performance from presence checks.
46765         * modules/memmem-simple: New file.
46766         * modules/memmem (Description): Tweak.
46767         * MODULES.html.sh (string handling): Mention new module.
46768         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
46769         addressed by memmem-simple.
46770         * NEWS: Document the difference.
46771
46772 2008-01-09  Eric Blake  <ebb9@byu.net>
46773
46774         Give gcc some memmem optimization hints.
46775         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
46776         (strcasestr): Declare as pure.
46777         * modules/memmem (Maintainer): Claim my implementation.
46778
46779 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46780
46781         Support AIX 6.1 and higher.
46782         * build-aux/config.libpath: Likewise.
46783         * build-aux/config.rpath: Likewise.
46784
46785 2008-01-08  Jim Meyering  <meyering@redhat.com>
46786             Bruno Haible  <bruno@clisp.org>
46787
46788         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
46789         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
46790         Reported by Peter Fales in
46791         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
46792
46793 2008-01-08  Bruno Haible  <bruno@clisp.org>
46794
46795         * modules/unictype/category-of (Depends-on): Add
46796         unictype/category-none.
46797         * modules/unictype/category-and-tests (Depends-on): Add
46798         unictype/category-{L,N,Lu,Nd}.
46799         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
46800         * modules/unictype/category-or-tests (Depends-on): Add
46801         unictype/category-{L,N}.
46802         * modules/unictype/category-name-tests (Depends-on): Add
46803         unictype/category-{Z,Nl}.
46804         Reported by Simon Josefsson.
46805
46806 2008-01-08  Bruno Haible  <bruno@clisp.org>
46807
46808         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
46809         convention better.
46810         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
46811         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
46812         Reported by Peter Miller <millerp@canb.auug.org.au>.
46813
46814 2008-01-08  Eric Blake  <ebb9@byu.net>
46815
46816         Rewrite memmem to guarantee linear complexity without malloc.
46817         * lib/memmem.c (memmem): Use Two-Way rather than
46818         Knuth-Morris-Pratt, to allow O(1) space usage.
46819         (critical_factorization, two_way_short_needle)
46820         (two_way_long_needle): New functions.
46821         (knuth_morris_pratt): Delete.
46822         * modules/memmem (Depends-on): No longer need malloca or stdbool.
46823         Add stdint.
46824         * tests/test-memmem.c (main): Add tests for periodic needle and
46825         sublinear performance.
46826         * doc/functions/memmem.texi (memmem): Document other deficiencies
46827         in cygwin and older glibc.
46828
46829 2008-01-08  Bruno Haible  <bruno@clisp.org>
46830
46831         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
46832         augmentation.
46833
46834 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
46835
46836         Add a configure time option: --disable-acl.
46837         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
46838         AC_ARG_ENABLE(acl).
46839
46840 2008-01-06  Simon Josefsson  <simon@josefsson.org>
46841
46842         * tests/test-localename.c: Don't include obsolete "setenv.h".
46843
46844         * modules/localename-tests (Depends-on): Need unsetenv.
46845
46846 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46847
46848         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
46849
46850 2008-01-06  Colin Watson  <cjwatson@debian.org>
46851
46852         * users.txt: Add man-db.
46853
46854 2008-01-07  Bruno Haible  <bruno@clisp.org>
46855
46856         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
46857         previous section name.
46858
46859 2008-01-07  Bruno Haible  <bruno@clisp.org>
46860
46861         * lib/progname.c (set_program_name): Don't strip off a leading
46862         "lt-" prefix outside a .libs directory.
46863         Suggested by Paul Eggert.
46864
46865 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
46866             Bruno Haible  <bruno@clisp.org>
46867
46868         Improve memory cleanup in 'relocatable' module.
46869         * lib/relocatable.h (compute_curr_prefix): Change return type to
46870         'char *'.
46871         * lib/relocatable.c (compute_curr_prefix): Change return type to
46872         'char *'. Free curr_installdir after use.
46873         (relocate): Free curr_prefix_better after use.
46874         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
46875
46876 2008-01-01  Bruno Haible  <bruno@clisp.org>
46877
46878         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
46879         failure on older glibc systems.
46880         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46881
46882 2008-01-05  Eric Blake  <ebb9@byu.net>
46883
46884         Avoid quadratic system memmem.
46885         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
46886         Reported by Ralf Wildenhues.
46887
46888         Fix memmem test for mingw.
46889         * modules/memmem-tests (configure.ac): Check for alarm.
46890         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
46891         it.
46892         * doc/functions/memmem.texi: New file.
46893         * doc/gnulib.texi (Function Substitutes): Add memmem.
46894         Reported by Bruno Haible.
46895
46896 2008-01-04  Bruno Haible  <bruno@clisp.org>
46897
46898         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
46899         Require gl_HEADER_STRINGS_H_DEFAULTS, not
46900         gl_HEADER_STRING_H_DEFAULTS.
46901
46902 2008-01-04  Eric Blake  <ebb9@byu.net>
46903
46904         Shorten duration of memmem test.
46905         * tests/test-memmem.c (main): Use alarm to declare failure if test
46906         is taking too long.
46907         Reported by Ralf Wildenhues.
46908
46909 2007-12-21  Simon Josefsson  <simon@josefsson.org>
46910
46911         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
46912         string, needed by strerror.
46913
46914 2008-01-03  Colin Watson  <cjwatson@debian.org>
46915             Bruno Haible  <bruno@clisp.org>
46916
46917         * doc/gnulib-tool.texi (Localization): New section.
46918
46919 2008-01-02  Bruno Haible  <bruno@clisp.org>
46920
46921         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
46922         variables to 'unsigned char *' type.
46923         Reported by Paul Eggert.
46924
46925 2008-01-02  Jim Meyering  <jim@meyering.net>
46926
46927         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
46928
46929 2007-12-31  Jim Meyering  <jim@meyering.net>
46930
46931         Avoid use of private FTS type name.
46932         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
46933
46934 2007-12-30  Karl Berry  <karl@gnu.org>
46935
46936         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
46937         work around defect in Texinfo and/or the standalone Info browser.
46938
46939 2007-12-30  Bruno Haible  <bruno@clisp.org>
46940
46941         Unify 5 copies of the KMP code.
46942         * lib/str-kmp.h: New file.
46943         * lib/c-strcasestr.c: Include str-kmp.h.
46944         (knuth_morris_pratt): Remove function.
46945         (c_strcasestr): Update.
46946         * lib/c-strstr.c: Include str-kmp.h.
46947         (knuth_morris_pratt): Remove function.
46948         (c_strcasestr): Update.
46949         * lib/mbscasestr.c: Include str-kmp.h.
46950         (knuth_morris_pratt_unibyte): Remove function.
46951         * lib/mbsstr.c: Include str-kmp.h.
46952         (knuth_morris_pratt_unibyte): Remove function.
46953         * lib/strcasestr.c: Include str-kmp.h.
46954         (knuth_morris_pratt): Remove function.
46955         (strcasestr): Update.
46956         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
46957         * modules/c-strstr (Files): Likewise.
46958         * modules/mbscasestr (Files): Likewise.
46959         * modules/mbsstr (Files): Likewise.
46960         * modules/strcasestr (Files): Likewise.
46961         Suggested by Paul Eggert.
46962
46963 2007-12-30  Bruno Haible  <bruno@clisp.org>
46964
46965         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
46966         defined.
46967
46968 2007-12-30  Bruno Haible  <bruno@clisp.org>
46969
46970         * lib/xmalloca.h: Include xalloc.h.
46971         (xnmalloca): New macro.
46972
46973 2007-12-30  Bruno Haible  <bruno@clisp.org>
46974
46975         * lib/malloca.h (nmalloca): New macro.
46976         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
46977         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
46978         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
46979         knuth_morris_pratt_multibyte): Likewise.
46980         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
46981         knuth_morris_pratt_multibyte): Likewise.
46982         * lib/memmem.c (knuth_morris_pratt): Likewise.
46983         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
46984
46985 2007-12-25  Bruno Haible  <bruno@clisp.org>
46986
46987         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
46988         * lib/glob.c: Don't include openat.h.
46989         (link_exists2_p): Add back the code that deals with the
46990         !GLOB_ALTDIRFUNC case.
46991         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
46992         let it do the filename concatenation.
46993         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
46994         * modules/glob (Depends-on): Remove openat.
46995
46996 2007-12-31  Bruno Haible  <bruno@clisp.org>
46997
46998         * modules/dirfd (License): Change to LGPLv2+.
46999         Approved by Jim Meyering.
47000
47001 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47002
47003         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
47004         when multiplying M by sizeof (size_t).
47005
47006 2007-12-10  Martin Lambers  <marlam@marlam.de>
47007
47008         Override getpagesize on mingw.
47009         * lib/getpagesize.c: New file.
47010         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
47011         * modules/getpagesize (Files): Add lib/getpagesize.c.
47012         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
47013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47014         REPLACE_GETPAGESIZE.
47015         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
47016
47017 2007-12-25  Bruno Haible  <bruno@clisp.org>
47018
47019         * modules/localcharset (Notice): New field.
47020         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
47021         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
47022
47023 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47024             Bruno Haible  <bruno@clisp.org>
47025
47026         Avoid using the syntax symbol() in formatted documentation.
47027         * MODULES.html.sh (func_module): When replacing symbol() with a
47028         hyperlink, remove the parentheses. Show an error if some remain.
47029         Recognize and render the '...' syntax.
47030         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
47031         Rework. Add paragraph about GCC's inlining.
47032         * doc/alloca.texi: Likewise.
47033         * doc/error.texi: Remove parentheses from symbol reference.
47034         * doc/gnulib-intro.texi: Likewise.
47035         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
47036         * modules/fnmatch (Description): Reword to say "the ... function".
47037         * modules/full-read (Description): Likewise.
47038         * modules/full-write (Description): Likewise.
47039         * modules/safe-read (Description): Likewise.
47040         * modules/safe-write (Description): Likewise.
47041         * modules/strchrnul (Description): Likewise.
47042         * modules/trim (Description): Likewise.
47043         * modules/error (Description): Remove parentheses from symbol
47044         references.
47045         * modules/verror (Description): Likewise.
47046         Reported by Karl Berry.
47047
47048 2007-12-25  Bruno Haible  <bruno@clisp.org>
47049
47050         Fixup after 2007-10-16 commit.
47051         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
47052
47053 2007-12-24  Bruno Haible  <bruno@clisp.org>
47054
47055         Make --enable-relocatable work with DESTDIR.
47056         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
47057         to compute installdir from destprog.
47058         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
47059         also set the RELOC_DESTDIR variable.
47060         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47061
47062 2007-12-24  Bruno Haible  <bruno@clisp.org>
47063
47064         Fix link error due to xalloc_die().
47065         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
47066         of xreadlink.
47067         * lib/relocwrapper.c: Update comments.
47068         * build-aux/install-reloc: Remove xreadlink.c from file list.
47069         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
47070         xreadlink.c.
47071         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47072
47073 2007-12-24  Bruno Haible  <bruno@clisp.org>
47074
47075         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
47076         * lib/setenv.h: Remove file.
47077         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
47078         lib/setenv.h.
47079         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
47080         (Depends-on): Add stdlib.
47081         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
47082         gl_FUNC_UNSETENV.
47083         (Include): Replace setenv.h with <stdlib.h>.
47084         * modules/unsetenv: New file.
47085         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
47086         * lib/unsetenv.c: Include <stdlib.h> first.
47087         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
47088         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
47089         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
47090         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
47091         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
47092         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47093         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
47094         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47095         * doc/functions/unsetenv.texi: Update.
47096         * modules/xsetenv (Depends-on): Add unsetenv.
47097         * modules/getdate (Depends-on): Likewise.
47098         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
47099         * lib/xsetenv.c: Don't include setenv.h.
47100         * lib/getdate.y: Likewise.
47101         * lib/relocwrapper.c: Likewise.
47102         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
47103         (Depends-on): Add stdlib.
47104         * NEWS: Mention the changes.
47105         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47106
47107 2007-12-23  Bruno Haible  <bruno@clisp.org>
47108
47109         * lib/memmem.c (memmem): Use lowercase variable names. Tab
47110         indentation.
47111
47112 2007-12-23  Bruno Haible  <bruno@clisp.org>
47113
47114         * lib/c-strcasestr.c: Add more comments.
47115         * lib/c-strstr.c: Likewise.
47116         * lib/mbscasestr.c: Likewise.
47117         * lib/mbsstr.c: Likewise.
47118         * lib/strcasestr.c: Likewise.
47119         * lib/memmem.c: Likewise.
47120
47121 2007-12-23  Bruno Haible  <bruno@clisp.org>
47122
47123         * tests/test-memmem.c: Include <string.h> first.
47124
47125 2007-12-22  Bruno Haible  <bruno@clisp.org>
47126
47127         * gnulib-tool (func_create_testdir): Change $auxdir while generating
47128         the contents of $testsbase.
47129         Reported by Ralf Wildenhues.
47130
47131 2007-12-22  Bruno Haible  <bruno@clisp.org>
47132
47133         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
47134         two variables local_ldadd_before, local_ldadd_last.
47135
47136 2007-12-20  Eric Blake  <ebb9@byu.net>
47137
47138         Work around circular library issue when cross-compiling.
47139         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
47140         that progname.o does not need to pull in rpl_memcmp.
47141
47142 2007-12-19  Eric Blake  <ebb9@byu.net>
47143
47144         Fix memmem to avoid O(n^2) worst-case complexity.
47145         * lib/memmem.c (knuth_morris_pratt): New function.
47146         (memmem): Use it if first few naive iterations fail.
47147         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
47148         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
47149         * modules/memchr (License): Likewise.
47150         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
47151         malloca.
47152         * tests/test-memmem.c: Rewrite, borrowing ideas from
47153         test-mbsstr1.c; the old version wouldn't even compile!
47154         * modules/memmem-tests: New file.
47155         * lib/string.in.h (rpl_memmem): Add declaration.
47156         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
47157         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
47158         REPLACE_MEMMEM.
47159
47160 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47161
47162         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
47163         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
47164         before any system include files, and undef after them all.  This
47165         should fix a problem on VMS reported by John E. Malmberg in
47166         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
47167
47168 2007-12-17  Eric Blake  <ebb9@byu.net>
47169
47170         Revert addition of verify, for BSD/OS.
47171         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
47172         can't handle large files, for the sake of obsolete platforms.
47173         * modules/fseeko (Depends-on): Remove verify.
47174         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
47175         * doc/functions/ftello.texi (ftello): Likewise.
47176         * doc/functions/fgetpos.texi (fgetpos): Likewise.
47177         Reported by Larry Jones.
47178
47179 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
47180
47181         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
47182         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
47183
47184 2007-12-17  Jim Meyering  <meyering@redhat.com>
47185
47186         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
47187         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
47188         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
47189         * modules/getcwd (Depends-on): Add openat.
47190         Reported by Petr Salinger.
47191
47192 2007-12-17  Bruno Haible  <bruno@clisp.org>
47193
47194         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
47195         avoid a segmentation fault of the configure test on x86_64 systems.
47196
47197 2007-12-15  Jim Meyering  <meyering@redhat.com>
47198
47199         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
47200
47201 2007-12-13  Eric Blake  <ebb9@byu.net>
47202
47203         Another fseek test.
47204         * tests/test-fseek.c (main): Also test ungetc handling.
47205         * tests/test-fseeko.c (main): Likewise.
47206         * modules/fseeko (Depends-on): Add verify.
47207         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
47208         large.
47209         Reported by Larry Jones.
47210
47211         Fix fseeko on mingw.
47212         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
47213         seek.
47214
47215         Beef up fseek tests.
47216         * tests/test-fseek.c (main): Also test eof handling.
47217         * tests/test-fseeko.c (main): Likewise.
47218         Reported by Larry Jones.
47219
47220 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
47221
47222         Fix fseeko on BSD-based platforms.
47223         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
47224         successful seek.
47225
47226 2007-12-12  Eric Blake  <ebb9@byu.net>
47227
47228         Allow circular dependency of separate libtests.a
47229         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
47230         when use_libtests.
47231
47232 2007-12-11  Eric Blake  <ebb9@byu.net>
47233
47234         Fix bug with -0.0L in previous patch.
47235         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
47236         * tests/test-isnan.c (main): Also test on zeroes.
47237         * tests/test-isnanf.c (main): Likewise.
47238         * tests/test-isnanl.h (main): Likewise.
47239
47240         Detect pseudo-denormals on x86 even when cross-compiling.
47241         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
47242         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
47243         invalid bit patterns that happen to satisfy ==.
47244
47245         Avoid link failures with separate libtests.a.
47246         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
47247         last, to satisfy circular dependencies.
47248
47249 2007-12-11  Eric Blake  <ebb9@byu.net>
47250         and Bruno Haible  <bruno@clisp.org>
47251
47252         Fix OpenBSD 4.0 <float.h> handling of long double.
47253         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
47254         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
47255         * doc/headers/float.texi (float.h): Document OpenBSD bug.
47256
47257 2007-12-11  Jim Meyering  <meyering@redhat.com>
47258
47259         * users.txt: Add libvirt.
47260
47261         Support versions of autoconf prior to 2.59c.
47262         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
47263         if it is not already defined.
47264
47265 2007-12-09  Bruno Haible  <bruno@clisp.org>
47266
47267         Let 'gnulib-tool --import' collect sources needed for the tests in
47268         tests/ rather than in lib/.
47269         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
47270         argument. If true, add rules to generate libtests.a, and put libtests.a
47271         into $(LDADD). Consider source files in subdirectories and set
47272         uses_subdirs.
47273         (func_emit_initmacro_start, func_emit_initmacro_end,
47274         func_emit_initmacro_done): Pass all arguments explicitly.
47275         (func_import): Determine two module lists main_modules,
47276         testsrelated_modules. Determine use_libtests. Determine two variables
47277         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
47278         instead of just sed_transform_lib_file. Determine two variables
47279         main_files and testsrelated_files. Compute 'files' as the union of
47280         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
47281         func_add_or_update. In the generated gnulib-comp.m4, collect the
47282         object files for tests/ in different variables than those for lib/.
47283         Substitute LIBTESTS_LIBDEPS.
47284         (func_create_testdir): Combine the uses_subdirs results from
47285         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
47286
47287 2007-12-09  Bruno Haible  <bruno@clisp.org>
47288
47289         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
47290         the build-aux directory.
47291
47292 2007-12-09  Bruno Haible  <bruno@clisp.org>
47293
47294         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
47295         introduced on 2006-09-09.
47296
47297 2007-12-07  Jim Meyering  <meyering@redhat.com>
47298
47299         Let these macros work also with autoconf-2.59.
47300         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
47301         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
47302         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47303
47304 2007-12-06  Jim Meyering  <meyering@redhat.com>
47305
47306         Avoid a configure-time syntax error in gl_FUNC_ACL.
47307         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
47308         function in each branch, before testing the cache variable.
47309
47310 2007-12-04  Eric Blake  <ebb9@byu.net>
47311
47312         Make scripts executable.
47313         * build-aux/config.guess: Add execute permissions.
47314         * build-aux/config.sub: Likewise.
47315         * build-aux/gendocs.sh: Likewise.
47316
47317         Fix frexp on mingw.
47318         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
47319         cross-compiling.
47320         * doc/functions/frexp.texi (frexp): Document the bug.
47321
47322         Make cygwin fseeko check more reliable.
47323         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
47324         version numbers, rather than unrelated feature check.
47325         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
47326         * doc/functions/ftello.texi (ftello): Likewise.
47327         Reported by Bruno Haible.
47328
47329         * m4/strerror.m4: Bump version number.
47330
47331 2007-12-03  Bruno Haible  <bruno@clisp.org>
47332
47333         * doc/functions/mprotect.texi: Mention the mingw problem.
47334
47335 2007-12-03  Eric Blake  <ebb9@byu.net>
47336
47337         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
47338         REPLACE_STRERROR is initialized before this macro.
47339
47340 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47341
47342         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
47343         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
47344         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
47345         put -lsec in even for programs other than 'ls'.  This fixes a problem
47346         for gettext reported by Bruno Haible in
47347         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
47348         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
47349         Add support for Solaris 10.  This isn't efficient, but should get the
47350         job done for now.
47351
47352 2007-12-03  James Youngman  <jay@gnu.org>
47353
47354         * doc/regexprops-generic.texi: change "an close-group" to "a
47355         close-group" and "illegal" to "not allowed".
47356
47357 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47358
47359         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
47360         pr_byname.h. Needed for the rare case when the maintainer has done
47361         "make maintainer-clean" in the source directory and then attempts a
47362         build outside the source directory.
47363         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
47364         scripts_byname.h.
47365
47366 2007-12-02  Martin Lambers <marlam@marlam.de>
47367             Bruno Haible  <bruno@clisp.org>
47368
47369         * lib/getpagesize.h: Remove file.
47370         * lib/unistd.in.h: Include declaration of getpagesize here.
47371         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
47372         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
47373         HAVE_SYS_PARAM_H.
47374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
47375         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47376         * modules/getpagesize (Files): Remove lib/getpagesize.h.
47377         (Depends-on): Add unistd.
47378         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47379         (Include): Use <unistd.h> instead of getpagesize.h.
47380         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
47381         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47382         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
47383         gl_GETPAGESIZE invocation, already handled by module dependency.
47384         * lib/pagealign_alloc.c: Don't include getpagesize.h.
47385
47386 2007-12-02  Bruno Haible  <bruno@clisp.org>
47387
47388         * modules/strings-tests: New file.
47389         * tests/test-strings.c: New file.
47390
47391         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
47392         * lib/strings.in.h: New file.
47393         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
47394         * m4/strings_h.m4: New file.
47395         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
47396         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
47397         * modules/strings: New file.
47398         * modules/string (Makefile.am): Update.
47399         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
47400         Reported by Karl Berry.
47401
47402 2007-12-01  Eric Blake  <ebb9@byu.net>
47403
47404         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
47405         accomodate fix in cygwin 1.5.25.
47406
47407 2007-12-01  Jim Meyering  <meyering@redhat.com>
47408
47409         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
47410         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
47411         that would inhibit utf8-optimization of a regexp containing line-
47412         or buffer-anchors, e.g., `^', `$'.
47413
47414 2007-11-30  Bruno Haible  <bruno@clisp.org>
47415
47416         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
47417         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
47418         glthread_recursive_lock_init.
47419         * lib/lock.c (glthread_recursive_lock_init)
47420         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
47421         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47422
47423 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
47424
47425         New function qset_acl, like set_acl but with syscall semantics.
47426         * lib/acl.h (qset_acl): New decl.
47427         * lib/acl.c (qset_acl): New function.
47428         (set_acl): Use new function.  Use more-consistent diagnostics.
47429
47430 2007-11-28  Jim Meyering  <meyering@redhat.com>
47431
47432         * modules/physmem (License): Change from GPL to LGPLv2+.
47433
47434 2007-11-26  Bruno Haible  <bruno@clisp.org>
47435
47436         * lib/vasnprintf.c (decode_long_double): Don't abort if the
47437         'long double' type has excess precision.
47438         Reported by Jim Meyering in
47439         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
47440
47441 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47442
47443         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
47444         Sync from <http://gnu.org/licenses>.
47445         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
47446         with license text from same location.
47447         * doc/maintain.texi, doc/standards.texi:  Sync from
47448         <http://savannah.gnu.org/projects/gnustandards>.
47449
47450 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
47451         and Jim Meyering  <meyering@redhat.com>
47452
47453         Adjust getdate' grammar to accept a slightly more regular language.
47454         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
47455         Before, the former was rejected.
47456         * lib/getdate.y (digits_to_date_time): New function, factored
47457         out of ...
47458         (number): ...here.  Just call digits_to_date_time.
47459         (hybrid): New non-terminal to handle an <unsigned number,
47460         signed relative offset> sequence consistently.
47461
47462 2007-11-18  Jim Meyering  <meyering@redhat.com>
47463
47464         Pull my changes from coreutils:
47465         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
47466         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
47467         use of $gnulib_tool_option_extras, so that it's separated from the
47468         preceding argument.
47469
47470         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
47471         * build-aux/bootstrap (cp_mark_as_generated): Create any required
47472         parent destination directories before copying a file into place.
47473
47474 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
47475
47476         bootstrap: work also with 4-argument variant of AC_INIT
47477         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
47478
47479 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47480
47481         Port test-getaddrinfo to Solaris.
47482         Problem reported by Bruno Haible in
47483         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
47484         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
47485         explanation of setting 'hints'.
47486         Don't reject an implementation merely because it returns EAI_SERVICE.
47487         (EAI_SERVICE): Define to 0 if not defined.
47488
47489 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47490
47491         The license of gnu-make and posix-shell is now "GPLed build tool".
47492         * modules/gnu-make (License): Likewise.
47493         * modules/posix-shell (License): Likewise.
47494
47495         New module posix-shell, for determining a POSIX shell
47496         or perhaps something that is close enough to a POSIX shell.
47497         * m4/posix-shell.m4: New file.
47498         * modules/posix-shell: New file.
47499
47500         * MODULES.html.sh: Mention new module.
47501
47502         New module gnu-make, for determining whether we're using GNU Make.
47503         * m4/gnu-make.m4: New file.
47504         * modules/gnu-make: New file.
47505         * MODULES.html.sh: Mention new module.
47506
47507 2007-11-14  Jim Meyering  <meyering@redhat.com>
47508
47509         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
47510         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
47511         use this macro to create a function _definition_.
47512         Remove useless "#undef ARGMATCH_DIE".
47513
47514 2007-11-14  Bruno Haible  <bruno@clisp.org>
47515
47516         * lib/config.charset: Update for OpenBSD 4.1.
47517         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
47518
47519 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
47520
47521         Document 64-bit #if problems in stdint.texi.
47522         * doc/headers/stdint.texi (stdint.h): Mention problems with
47523         64-bit-#if, and how to work around them.
47524
47525         Don't insist on 'long long int' support in the preprocessor.  It
47526         breaks too many things.  For example, PRIdMAX still uses a 'long
47527         long int' format with the latest Sun compiler, even though
47528         HAVE_LONG_LONG_INT isn't defined due to that compiler's
47529         preprocessor problem.  This causes the latest coreutils to dump
47530         core on Solaris 10 sparc with the Sun C compiler.
47531         Instead, fix the 2007-10-16 problem in a different way, by evaluating
47532         the troublesome expressions at configure-time, not at #if-time.
47533         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
47534         preprocessor.
47535         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
47536         compile-time C checks, done at 'configure'-time.
47537         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
47538         * modules/inttypes (Makefile): Substitute the new symbols that
47539         gl_INTTYPES_H now generates.
47540         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
47541
47542 2007-11-12  Bruno Haible  <bruno@clisp.org>
47543
47544         Tests for Unicode character classification functions.
47545
47546         * modules/unictype/bidicategory-byname-tests: New file.
47547         * modules/unictype/bidicategory-name-tests: New file.
47548         * modules/unictype/bidicategory-of-tests: New file.
47549         * modules/unictype/bidicategory-test-tests: New file.
47550         * modules/unictype/block-list-tests: New file.
47551         * modules/unictype/block-of-tests: New file.
47552         * modules/unictype/block-test-tests: New file.
47553         * modules/unictype/category-C-tests: New file.
47554         * modules/unictype/category-Cc-tests: New file.
47555         * modules/unictype/category-Cf-tests: New file.
47556         * modules/unictype/category-Cn-tests: New file.
47557         * modules/unictype/category-Co-tests: New file.
47558         * modules/unictype/category-Cs-tests: New file.
47559         * modules/unictype/category-L-tests: New file.
47560         * modules/unictype/category-Ll-tests: New file.
47561         * modules/unictype/category-Lm-tests: New file.
47562         * modules/unictype/category-Lo-tests: New file.
47563         * modules/unictype/category-Lt-tests: New file.
47564         * modules/unictype/category-Lu-tests: New file.
47565         * modules/unictype/category-M-tests: New file.
47566         * modules/unictype/category-Mc-tests: New file.
47567         * modules/unictype/category-Me-tests: New file.
47568         * modules/unictype/category-Mn-tests: New file.
47569         * modules/unictype/category-N-tests: New file.
47570         * modules/unictype/category-Nd-tests: New file.
47571         * modules/unictype/category-Nl-tests: New file.
47572         * modules/unictype/category-No-tests: New file.
47573         * modules/unictype/category-P-tests: New file.
47574         * modules/unictype/category-Pc-tests: New file.
47575         * modules/unictype/category-Pd-tests: New file.
47576         * modules/unictype/category-Pe-tests: New file.
47577         * modules/unictype/category-Pf-tests: New file.
47578         * modules/unictype/category-Pi-tests: New file.
47579         * modules/unictype/category-Po-tests: New file.
47580         * modules/unictype/category-Ps-tests: New file.
47581         * modules/unictype/category-S-tests: New file.
47582         * modules/unictype/category-Sc-tests: New file.
47583         * modules/unictype/category-Sk-tests: New file.
47584         * modules/unictype/category-Sm-tests: New file.
47585         * modules/unictype/category-So-tests: New file.
47586         * modules/unictype/category-Z-tests: New file.
47587         * modules/unictype/category-Zl-tests: New file.
47588         * modules/unictype/category-Zp-tests: New file.
47589         * modules/unictype/category-Zs-tests: New file.
47590         * modules/unictype/category-and-not-tests: New file.
47591         * modules/unictype/category-and-tests: New file.
47592         * modules/unictype/category-byname-tests: New file.
47593         * modules/unictype/category-name-tests: New file.
47594         * modules/unictype/category-none-tests: New file.
47595         * modules/unictype/category-of-tests: New file.
47596         * modules/unictype/category-or-tests: New file.
47597         * modules/unictype/category-test-withtable-tests: New file.
47598         * modules/unictype/combining-class-tests: New file.
47599         * modules/unictype/ctype-alnum-tests: New file.
47600         * modules/unictype/ctype-alpha-tests: New file.
47601         * modules/unictype/ctype-blank-tests: New file.
47602         * modules/unictype/ctype-cntrl-tests: New file.
47603         * modules/unictype/ctype-digit-tests: New file.
47604         * modules/unictype/ctype-graph-tests: New file.
47605         * modules/unictype/ctype-lower-tests: New file.
47606         * modules/unictype/ctype-print-tests: New file.
47607         * modules/unictype/ctype-punct-tests: New file.
47608         * modules/unictype/ctype-space-tests: New file.
47609         * modules/unictype/ctype-upper-tests: New file.
47610         * modules/unictype/ctype-xdigit-tests: New file.
47611         * modules/unictype/decimal-digit-tests: New file.
47612         * modules/unictype/digit-tests: New file.
47613         * modules/unictype/mirror-tests: New file.
47614         * modules/unictype/numeric-tests: New file.
47615         * modules/unictype/property-alphabetic-tests: New file.
47616         * modules/unictype/property-ascii-hex-digit-tests: New file.
47617         * modules/unictype/property-bidi-arabic-digit-tests: New file.
47618         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
47619         * modules/unictype/property-bidi-block-separator-tests: New file.
47620         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
47621         * modules/unictype/property-bidi-common-separator-tests: New file.
47622         * modules/unictype/property-bidi-control-tests: New file.
47623         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
47624         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
47625         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
47626         * modules/unictype/property-bidi-european-digit-tests: New file.
47627         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
47628         * modules/unictype/property-bidi-left-to-right-tests: New file.
47629         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
47630         * modules/unictype/property-bidi-other-neutral-tests: New file.
47631         * modules/unictype/property-bidi-pdf-tests: New file.
47632         * modules/unictype/property-bidi-segment-separator-tests: New file.
47633         * modules/unictype/property-bidi-whitespace-tests: New file.
47634         * modules/unictype/property-byname-tests: New file.
47635         * modules/unictype/property-combining-tests: New file.
47636         * modules/unictype/property-composite-tests: New file.
47637         * modules/unictype/property-currency-symbol-tests: New file.
47638         * modules/unictype/property-dash-tests: New file.
47639         * modules/unictype/property-decimal-digit-tests: New file.
47640         * modules/unictype/property-default-ignorable-code-point-tests: New file.
47641         * modules/unictype/property-deprecated-tests: New file.
47642         * modules/unictype/property-diacritic-tests: New file.
47643         * modules/unictype/property-extender-tests: New file.
47644         * modules/unictype/property-format-control-tests: New file.
47645         * modules/unictype/property-grapheme-base-tests: New file.
47646         * modules/unictype/property-grapheme-extend-tests: New file.
47647         * modules/unictype/property-grapheme-link-tests: New file.
47648         * modules/unictype/property-hex-digit-tests: New file.
47649         * modules/unictype/property-hyphen-tests: New file.
47650         * modules/unictype/property-id-continue-tests: New file.
47651         * modules/unictype/property-id-start-tests: New file.
47652         * modules/unictype/property-ideographic-tests: New file.
47653         * modules/unictype/property-ids-binary-operator-tests: New file.
47654         * modules/unictype/property-ids-trinary-operator-tests: New file.
47655         * modules/unictype/property-ignorable-control-tests: New file.
47656         * modules/unictype/property-iso-control-tests: New file.
47657         * modules/unictype/property-join-control-tests: New file.
47658         * modules/unictype/property-left-of-pair-tests: New file.
47659         * modules/unictype/property-line-separator-tests: New file.
47660         * modules/unictype/property-logical-order-exception-tests: New file.
47661         * modules/unictype/property-lowercase-tests: New file.
47662         * modules/unictype/property-math-tests: New file.
47663         * modules/unictype/property-non-break-tests: New file.
47664         * modules/unictype/property-not-a-character-tests: New file.
47665         * modules/unictype/property-numeric-tests: New file.
47666         * modules/unictype/property-other-alphabetic-tests: New file.
47667         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
47668         * modules/unictype/property-other-grapheme-extend-tests: New file.
47669         * modules/unictype/property-other-id-continue-tests: New file.
47670         * modules/unictype/property-other-id-start-tests: New file.
47671         * modules/unictype/property-other-lowercase-tests: New file.
47672         * modules/unictype/property-other-math-tests: New file.
47673         * modules/unictype/property-other-uppercase-tests: New file.
47674         * modules/unictype/property-paired-punctuation-tests: New file.
47675         * modules/unictype/property-paragraph-separator-tests: New file.
47676         * modules/unictype/property-pattern-syntax-tests: New file.
47677         * modules/unictype/property-pattern-white-space-tests: New file.
47678         * modules/unictype/property-private-use-tests: New file.
47679         * modules/unictype/property-punctuation-tests: New file.
47680         * modules/unictype/property-quotation-mark-tests: New file.
47681         * modules/unictype/property-radical-tests: New file.
47682         * modules/unictype/property-sentence-terminal-tests: New file.
47683         * modules/unictype/property-soft-dotted-tests: New file.
47684         * modules/unictype/property-space-tests: New file.
47685         * modules/unictype/property-terminal-punctuation-tests: New file.
47686         * modules/unictype/property-test-tests: New file.
47687         * modules/unictype/property-titlecase-tests: New file.
47688         * modules/unictype/property-unassigned-code-value-tests: New file.
47689         * modules/unictype/property-unified-ideograph-tests: New file.
47690         * modules/unictype/property-uppercase-tests: New file.
47691         * modules/unictype/property-variation-selector-tests: New file.
47692         * modules/unictype/property-white-space-tests: New file.
47693         * modules/unictype/property-xid-continue-tests: New file.
47694         * modules/unictype/property-xid-start-tests: New file.
47695         * modules/unictype/property-zero-width-tests: New file.
47696         * modules/unictype/scripts-tests: New file.
47697         * modules/unictype/syntax-c-ident-tests: New file.
47698         * modules/unictype/syntax-c-whitespace-tests: New file.
47699         * modules/unictype/syntax-java-ident-tests: New file.
47700         * modules/unictype/syntax-java-whitespace-tests: New file.
47701         * tests/unictype/test-bidi_byname.c: New file.
47702         * tests/unictype/test-bidi_name.c: New file.
47703         * tests/unictype/test-bidi_of.c: New file.
47704         * tests/unictype/test-bidi_test.c: New file.
47705         * tests/unictype/test-block_list.c: New file.
47706         * tests/unictype/test-block_of.c: New file.
47707         * tests/unictype/test-block_test.c: New file.
47708         * tests/unictype/test-categ_and.c: New file.
47709         * tests/unictype/test-categ_and_not.c: New file.
47710         * tests/unictype/test-categ_byname.c: New file.
47711         * tests/unictype/test-categ_name.c: New file.
47712         * tests/unictype/test-categ_none.c: New file.
47713         * tests/unictype/test-categ_of.c: New file.
47714         * tests/unictype/test-categ_or.c: New file.
47715         * tests/unictype/test-categ_test_withtable.c: New file.
47716         * tests/unictype/test-combining.c: New file.
47717         * tests/unictype/test-decdigit.c: New file.
47718         * tests/unictype/test-digit.c: New file.
47719         * tests/unictype/test-mirror.c: New file.
47720         * tests/unictype/test-numeric.c: New file.
47721         * tests/unictype/test-pr_byname.c: New file.
47722         * tests/unictype/test-pr_test.c: New file.
47723         * tests/unictype/test-predicate-part1.h: New file.
47724         * tests/unictype/test-predicate-part2.h: New file.
47725         * tests/unictype/test-scripts.c: New file.
47726         * tests/unictype/test-sy_c_ident.c: New file.
47727         * tests/unictype/test-sy_java_ident.c: New file.
47728
47729         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
47730         for Unicode 5.0.0.
47731         * tests/unictype/test-categ_Cc.c: Likewise.
47732         * tests/unictype/test-categ_Cf.c: Likewise.
47733         * tests/unictype/test-categ_Cn.c: Likewise.
47734         * tests/unictype/test-categ_Co.c: Likewise.
47735         * tests/unictype/test-categ_Cs.c: Likewise.
47736         * tests/unictype/test-categ_L.c: Likewise.
47737         * tests/unictype/test-categ_Ll.c: Likewise.
47738         * tests/unictype/test-categ_Lm.c: Likewise.
47739         * tests/unictype/test-categ_Lo.c: Likewise.
47740         * tests/unictype/test-categ_Lt.c: Likewise.
47741         * tests/unictype/test-categ_Lu.c: Likewise.
47742         * tests/unictype/test-categ_M.c: Likewise.
47743         * tests/unictype/test-categ_Mc.c: Likewise.
47744         * tests/unictype/test-categ_Me.c: Likewise.
47745         * tests/unictype/test-categ_Mn.c: Likewise.
47746         * tests/unictype/test-categ_N.c: Likewise.
47747         * tests/unictype/test-categ_Nd.c: Likewise.
47748         * tests/unictype/test-categ_Nl.c: Likewise.
47749         * tests/unictype/test-categ_No.c: Likewise.
47750         * tests/unictype/test-categ_P.c: Likewise.
47751         * tests/unictype/test-categ_Pc.c: Likewise.
47752         * tests/unictype/test-categ_Pd.c: Likewise.
47753         * tests/unictype/test-categ_Pe.c: Likewise.
47754         * tests/unictype/test-categ_Pf.c: Likewise.
47755         * tests/unictype/test-categ_Pi.c: Likewise.
47756         * tests/unictype/test-categ_Po.c: Likewise.
47757         * tests/unictype/test-categ_Ps.c: Likewise.
47758         * tests/unictype/test-categ_S.c: Likewise.
47759         * tests/unictype/test-categ_Sc.c: Likewise.
47760         * tests/unictype/test-categ_Sk.c: Likewise.
47761         * tests/unictype/test-categ_Sm.c: Likewise.
47762         * tests/unictype/test-categ_So.c: Likewise.
47763         * tests/unictype/test-categ_Z.c: Likewise.
47764         * tests/unictype/test-categ_Zl.c: Likewise.
47765         * tests/unictype/test-categ_Zp.c: Likewise.
47766         * tests/unictype/test-categ_Zs.c: Likewise.
47767         * tests/unictype/test-ctype_alnum.c: Likewise.
47768         * tests/unictype/test-ctype_alpha.c: Likewise.
47769         * tests/unictype/test-ctype_blank.c: Likewise.
47770         * tests/unictype/test-ctype_cntrl.c: Likewise.
47771         * tests/unictype/test-ctype_digit.c: Likewise.
47772         * tests/unictype/test-ctype_graph.c: Likewise.
47773         * tests/unictype/test-ctype_lower.c: Likewise.
47774         * tests/unictype/test-ctype_print.c: Likewise.
47775         * tests/unictype/test-ctype_punct.c: Likewise.
47776         * tests/unictype/test-ctype_space.c: Likewise.
47777         * tests/unictype/test-ctype_upper.c: Likewise.
47778         * tests/unictype/test-ctype_xdigit.c: Likewise.
47779         * tests/unictype/test-decdigit.h: Likewise.
47780         * tests/unictype/test-digit.h: Likewise.
47781         * tests/unictype/test-numeric.h: Likewise.
47782         * tests/unictype/test-pr_alphabetic.c: Likewise.
47783         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
47784         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
47785         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
47786         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
47787         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
47788         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
47789         * tests/unictype/test-pr_bidi_control.c: Likewise.
47790         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
47791         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
47792         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
47793         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
47794         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
47795         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
47796         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
47797         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
47798         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
47799         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
47800         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
47801         * tests/unictype/test-pr_combining.c: Likewise.
47802         * tests/unictype/test-pr_composite.c: Likewise.
47803         * tests/unictype/test-pr_currency_symbol.c: Likewise.
47804         * tests/unictype/test-pr_dash.c: Likewise.
47805         * tests/unictype/test-pr_decimal_digit.c: Likewise.
47806         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
47807         * tests/unictype/test-pr_deprecated.c: Likewise.
47808         * tests/unictype/test-pr_diacritic.c: Likewise.
47809         * tests/unictype/test-pr_extender.c: Likewise.
47810         * tests/unictype/test-pr_format_control.c: Likewise.
47811         * tests/unictype/test-pr_grapheme_base.c: Likewise.
47812         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
47813         * tests/unictype/test-pr_grapheme_link.c: Likewise.
47814         * tests/unictype/test-pr_hex_digit.c: Likewise.
47815         * tests/unictype/test-pr_hyphen.c: Likewise.
47816         * tests/unictype/test-pr_id_continue.c: Likewise.
47817         * tests/unictype/test-pr_id_start.c: Likewise.
47818         * tests/unictype/test-pr_ideographic.c: Likewise.
47819         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
47820         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
47821         * tests/unictype/test-pr_ignorable_control.c: Likewise.
47822         * tests/unictype/test-pr_iso_control.c: Likewise.
47823         * tests/unictype/test-pr_join_control.c: Likewise.
47824         * tests/unictype/test-pr_left_of_pair.c: Likewise.
47825         * tests/unictype/test-pr_line_separator.c: Likewise.
47826         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
47827         * tests/unictype/test-pr_lowercase.c: Likewise.
47828         * tests/unictype/test-pr_math.c: Likewise.
47829         * tests/unictype/test-pr_non_break.c: Likewise.
47830         * tests/unictype/test-pr_not_a_character.c: Likewise.
47831         * tests/unictype/test-pr_numeric.c: Likewise.
47832         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
47833         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
47834         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
47835         * tests/unictype/test-pr_other_id_continue.c: Likewise.
47836         * tests/unictype/test-pr_other_id_start.c: Likewise.
47837         * tests/unictype/test-pr_other_lowercase.c: Likewise.
47838         * tests/unictype/test-pr_other_math.c: Likewise.
47839         * tests/unictype/test-pr_other_uppercase.c: Likewise.
47840         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
47841         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
47842         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
47843         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
47844         * tests/unictype/test-pr_private_use.c: Likewise.
47845         * tests/unictype/test-pr_punctuation.c: Likewise.
47846         * tests/unictype/test-pr_quotation_mark.c: Likewise.
47847         * tests/unictype/test-pr_radical.c: Likewise.
47848         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
47849         * tests/unictype/test-pr_soft_dotted.c: Likewise.
47850         * tests/unictype/test-pr_space.c: Likewise.
47851         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
47852         * tests/unictype/test-pr_titlecase.c: Likewise.
47853         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
47854         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
47855         * tests/unictype/test-pr_uppercase.c: Likewise.
47856         * tests/unictype/test-pr_variation_selector.c: Likewise.
47857         * tests/unictype/test-pr_white_space.c: Likewise.
47858         * tests/unictype/test-pr_xid_continue.c: Likewise.
47859         * tests/unictype/test-pr_xid_start.c: Likewise.
47860         * tests/unictype/test-pr_zero_width.c: Likewise.
47861         * tests/unictype/test-sy_c_whitespace.c: Likewise.
47862         * tests/unictype/test-sy_java_whitespace.c: Likewise.
47863
47864 2007-11-12  Bruno Haible  <bruno@clisp.org>
47865
47866         Unicode character classification functions.
47867         * lib/unictype.h: New file.
47868         * modules/unictype/base: New file.
47869         * modules/unictype/category-L: New file.
47870         * modules/unictype/category-Lu: New file.
47871         * modules/unictype/category-Ll: New file.
47872         * modules/unictype/category-Lt: New file.
47873         * modules/unictype/category-Lm: New file.
47874         * modules/unictype/category-Lo: New file.
47875         * modules/unictype/category-M: New file.
47876         * modules/unictype/category-Mn: New file.
47877         * modules/unictype/category-Mc: New file.
47878         * modules/unictype/category-Me: New file.
47879         * modules/unictype/category-N: New file.
47880         * modules/unictype/category-Nd: New file.
47881         * modules/unictype/category-Nl: New file.
47882         * modules/unictype/category-No: New file.
47883         * modules/unictype/category-P: New file.
47884         * modules/unictype/category-Pc: New file.
47885         * modules/unictype/category-Pd: New file.
47886         * modules/unictype/category-Ps: New file.
47887         * modules/unictype/category-Pe: New file.
47888         * modules/unictype/category-Pi: New file.
47889         * modules/unictype/category-Pf: New file.
47890         * modules/unictype/category-Po: New file.
47891         * modules/unictype/category-S: New file.
47892         * modules/unictype/category-Sm: New file.
47893         * modules/unictype/category-Sc: New file.
47894         * modules/unictype/category-Sk: New file.
47895         * modules/unictype/category-So: New file.
47896         * modules/unictype/category-Z: New file.
47897         * modules/unictype/category-Zs: New file.
47898         * modules/unictype/category-Zl: New file.
47899         * modules/unictype/category-Zp: New file.
47900         * modules/unictype/category-C: New file.
47901         * modules/unictype/category-Cc: New file.
47902         * modules/unictype/category-Cf: New file.
47903         * modules/unictype/category-Cs: New file.
47904         * modules/unictype/category-Co: New file.
47905         * modules/unictype/category-Cn: New file.
47906         * modules/unictype/category-or: New file.
47907         * modules/unictype/category-of: New file.
47908         * modules/unictype/category-test: New file.
47909         * modules/unictype/category-test-withtable: New file.
47910         * modules/unictype/category-byname: New file.
47911         * modules/unictype/category-none: New file.
47912         * modules/unictype/category-and: New file.
47913         * modules/unictype/category-and-not: New file.
47914         * modules/unictype/category-name: New file.
47915         * modules/unictype/combining-class: New file.
47916         * modules/unictype/category-all: New file.
47917         * modules/unictype/bidicategory-all: New file.
47918         * modules/unictype/bidicategory-byname: New file.
47919         * modules/unictype/bidicategory-name: New file.
47920         * modules/unictype/bidicategory-of: New file.
47921         * modules/unictype/bidicategory-test: New file.
47922         * modules/unictype/decimal-digit: New file.
47923         * modules/unictype/digit: New file.
47924         * modules/unictype/numeric: New file.
47925         * modules/unictype/mirror: New file.
47926         * modules/unictype/property-white-space: New file.
47927         * modules/unictype/property-alphabetic: New file.
47928         * modules/unictype/property-other-alphabetic: New file.
47929         * modules/unictype/property-not-a-character: New file.
47930         * modules/unictype/property-default-ignorable-code-point: New file.
47931         * modules/unictype/property-other-default-ignorable-code-point: New
47932         file.
47933         * modules/unictype/property-deprecated: New file.
47934         * modules/unictype/property-logical-order-exception: New file.
47935         * modules/unictype/property-variation-selector: New file.
47936         * modules/unictype/property-private-use: New file.
47937         * modules/unictype/property-unassigned-code-value: New file.
47938         * modules/unictype/property-uppercase: New file.
47939         * modules/unictype/property-other-uppercase: New file.
47940         * modules/unictype/property-lowercase: New file.
47941         * modules/unictype/property-other-lowercase: New file.
47942         * modules/unictype/property-titlecase: New file.
47943         * modules/unictype/property-soft-dotted: New file.
47944         * modules/unictype/property-id-start: New file.
47945         * modules/unictype/property-other-id-start: New file.
47946         * modules/unictype/property-id-continue: New file.
47947         * modules/unictype/property-other-id-continue: New file.
47948         * modules/unictype/property-xid-start: New file.
47949         * modules/unictype/property-xid-continue: New file.
47950         * modules/unictype/property-pattern-white-space: New file.
47951         * modules/unictype/property-pattern-syntax: New file.
47952         * modules/unictype/property-join-control: New file.
47953         * modules/unictype/property-grapheme-base: New file.
47954         * modules/unictype/property-grapheme-extend: New file.
47955         * modules/unictype/property-other-grapheme-extend: New file.
47956         * modules/unictype/property-grapheme-link: New file.
47957         * modules/unictype/property-bidi-control: New file.
47958         * modules/unictype/property-bidi-left-to-right: New file.
47959         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
47960         * modules/unictype/property-bidi-arabic-right-to-left: New file.
47961         * modules/unictype/property-bidi-european-digit: New file.
47962         * modules/unictype/property-bidi-eur-num-separator: New file.
47963         * modules/unictype/property-bidi-eur-num-terminator: New file.
47964         * modules/unictype/property-bidi-arabic-digit: New file.
47965         * modules/unictype/property-bidi-common-separator: New file.
47966         * modules/unictype/property-bidi-block-separator: New file.
47967         * modules/unictype/property-bidi-segment-separator: New file.
47968         * modules/unictype/property-bidi-whitespace: New file.
47969         * modules/unictype/property-bidi-non-spacing-mark: New file.
47970         * modules/unictype/property-bidi-boundary-neutral: New file.
47971         * modules/unictype/property-bidi-pdf: New file.
47972         * modules/unictype/property-bidi-embedding-or-override: New file.
47973         * modules/unictype/property-bidi-other-neutral: New file.
47974         * modules/unictype/property-hex-digit: New file.
47975         * modules/unictype/property-ascii-hex-digit: New file.
47976         * modules/unictype/property-ideographic: New file.
47977         * modules/unictype/property-unified-ideograph: New file.
47978         * modules/unictype/property-radical: New file.
47979         * modules/unictype/property-ids-binary-operator: New file.
47980         * modules/unictype/property-ids-trinary-operator: New file.
47981         * modules/unictype/property-zero-width: New file.
47982         * modules/unictype/property-space: New file.
47983         * modules/unictype/property-non-break: New file.
47984         * modules/unictype/property-iso-control: New file.
47985         * modules/unictype/property-format-control: New file.
47986         * modules/unictype/property-dash: New file.
47987         * modules/unictype/property-hyphen: New file.
47988         * modules/unictype/property-punctuation: New file.
47989         * modules/unictype/property-line-separator: New file.
47990         * modules/unictype/property-paragraph-separator: New file.
47991         * modules/unictype/property-quotation-mark: New file.
47992         * modules/unictype/property-sentence-terminal: New file.
47993         * modules/unictype/property-terminal-punctuation: New file.
47994         * modules/unictype/property-currency-symbol: New file.
47995         * modules/unictype/property-math: New file.
47996         * modules/unictype/property-other-math: New file.
47997         * modules/unictype/property-paired-punctuation: New file.
47998         * modules/unictype/property-left-of-pair: New file.
47999         * modules/unictype/property-combining: New file.
48000         * modules/unictype/property-composite: New file.
48001         * modules/unictype/property-decimal-digit: New file.
48002         * modules/unictype/property-numeric: New file.
48003         * modules/unictype/property-diacritic: New file.
48004         * modules/unictype/property-extender: New file.
48005         * modules/unictype/property-ignorable-control: New file.
48006         * modules/unictype/property-test: New file.
48007         * modules/unictype/property-byname: New file.
48008         * modules/unictype/property-all: New file.
48009         * modules/unictype/scripts: New file.
48010         * modules/unictype/scripts-all: New file.
48011         * modules/unictype/block-of: New file.
48012         * modules/unictype/block-test: New file.
48013         * modules/unictype/block-list: New file.
48014         * modules/unictype/block-all: New file.
48015         * modules/unictype/syntax-c-whitespace: New file.
48016         * modules/unictype/syntax-java-whitespace: New file.
48017         * modules/unictype/syntax-c-ident: New file.
48018         * modules/unictype/syntax-java-ident: New file.
48019         * modules/unictype/ctype-alnum: New file.
48020         * modules/unictype/ctype-alpha: New file.
48021         * modules/unictype/ctype-cntrl: New file.
48022         * modules/unictype/ctype-digit: New file.
48023         * modules/unictype/ctype-graph: New file.
48024         * modules/unictype/ctype-lower: New file.
48025         * modules/unictype/ctype-print: New file.
48026         * modules/unictype/ctype-punct: New file.
48027         * modules/unictype/ctype-space: New file.
48028         * modules/unictype/ctype-upper: New file.
48029         * modules/unictype/ctype-xdigit: New file.
48030         * modules/unictype/ctype-blank: New file.
48031         * lib/unictype/bidi_byname.c: New file.
48032         * lib/unictype/bidi_name.c: New file.
48033         * lib/unictype/bidi_of.c: New file.
48034         * lib/unictype/bidi_test.c: New file.
48035         * lib/unictype/bitmap.h: New file.
48036         * lib/unictype/block_test.c: New file.
48037         * lib/unictype/blocks.c: New file.
48038         * lib/unictype/categ_C.c: New file.
48039         * lib/unictype/categ_Cc.c: New file.
48040         * lib/unictype/categ_Cf.c: New file.
48041         * lib/unictype/categ_Cn.c: New file.
48042         * lib/unictype/categ_Co.c: New file.
48043         * lib/unictype/categ_Cs.c: New file.
48044         * lib/unictype/categ_L.c: New file.
48045         * lib/unictype/categ_Ll.c: New file.
48046         * lib/unictype/categ_Lm.c: New file.
48047         * lib/unictype/categ_Lo.c: New file.
48048         * lib/unictype/categ_Lt.c: New file.
48049         * lib/unictype/categ_Lu.c: New file.
48050         * lib/unictype/categ_M.c: New file.
48051         * lib/unictype/categ_Mc.c: New file.
48052         * lib/unictype/categ_Me.c: New file.
48053         * lib/unictype/categ_Mn.c: New file.
48054         * lib/unictype/categ_N.c: New file.
48055         * lib/unictype/categ_Nd.c: New file.
48056         * lib/unictype/categ_Nl.c: New file.
48057         * lib/unictype/categ_No.c: New file.
48058         * lib/unictype/categ_P.c: New file.
48059         * lib/unictype/categ_Pc.c: New file.
48060         * lib/unictype/categ_Pd.c: New file.
48061         * lib/unictype/categ_Pe.c: New file.
48062         * lib/unictype/categ_Pf.c: New file.
48063         * lib/unictype/categ_Pi.c: New file.
48064         * lib/unictype/categ_Po.c: New file.
48065         * lib/unictype/categ_Ps.c: New file.
48066         * lib/unictype/categ_S.c: New file.
48067         * lib/unictype/categ_Sc.c: New file.
48068         * lib/unictype/categ_Sk.c: New file.
48069         * lib/unictype/categ_Sm.c: New file.
48070         * lib/unictype/categ_So.c: New file.
48071         * lib/unictype/categ_Z.c: New file.
48072         * lib/unictype/categ_Zl.c: New file.
48073         * lib/unictype/categ_Zp.c: New file.
48074         * lib/unictype/categ_Zs.c: New file.
48075         * lib/unictype/categ_and.c: New file.
48076         * lib/unictype/categ_and_not.c: New file.
48077         * lib/unictype/categ_byname.c: New file.
48078         * lib/unictype/categ_name.c: New file.
48079         * lib/unictype/categ_none.c: New file.
48080         * lib/unictype/categ_of.c: New file.
48081         * lib/unictype/categ_or.c: New file.
48082         * lib/unictype/categ_test.c: New file.
48083         * lib/unictype/combining.c: New file.
48084         * lib/unictype/ctype_alnum.c: New file.
48085         * lib/unictype/ctype_alpha.c: New file.
48086         * lib/unictype/ctype_blank.c: New file.
48087         * lib/unictype/ctype_cntrl.c: New file.
48088         * lib/unictype/ctype_digit.c: New file.
48089         * lib/unictype/ctype_graph.c: New file.
48090         * lib/unictype/ctype_lower.c: New file.
48091         * lib/unictype/ctype_print.c: New file.
48092         * lib/unictype/ctype_punct.c: New file.
48093         * lib/unictype/ctype_space.c: New file.
48094         * lib/unictype/ctype_upper.c: New file.
48095         * lib/unictype/ctype_xdigit.c: New file.
48096         * lib/unictype/decdigit.c: New file.
48097         * lib/unictype/digit.c: New file.
48098         * lib/unictype/identsyntaxmap.h: New file.
48099         * lib/unictype/mirror.c: New file.
48100         * lib/unictype/numeric.c: New file.
48101         * lib/unictype/pr_alphabetic.c: New file.
48102         * lib/unictype/pr_ascii_hex_digit.c: New file.
48103         * lib/unictype/pr_bidi_arabic_digit.c: New file.
48104         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
48105         * lib/unictype/pr_bidi_block_separator.c: New file.
48106         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
48107         * lib/unictype/pr_bidi_common_separator.c: New file.
48108         * lib/unictype/pr_bidi_control.c: New file.
48109         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
48110         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
48111         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
48112         * lib/unictype/pr_bidi_european_digit.c: New file.
48113         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
48114         * lib/unictype/pr_bidi_left_to_right.c: New file.
48115         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
48116         * lib/unictype/pr_bidi_other_neutral.c: New file.
48117         * lib/unictype/pr_bidi_pdf.c: New file.
48118         * lib/unictype/pr_bidi_segment_separator.c: New file.
48119         * lib/unictype/pr_bidi_whitespace.c: New file.
48120         * lib/unictype/pr_byname.c: New file.
48121         * lib/unictype/pr_byname.gperf: New file.
48122         * lib/unictype/pr_combining.c: New file.
48123         * lib/unictype/pr_composite.c: New file.
48124         * lib/unictype/pr_currency_symbol.c: New file.
48125         * lib/unictype/pr_dash.c: New file.
48126         * lib/unictype/pr_decimal_digit.c: New file.
48127         * lib/unictype/pr_default_ignorable_code_point.c: New file.
48128         * lib/unictype/pr_deprecated.c: New file.
48129         * lib/unictype/pr_diacritic.c: New file.
48130         * lib/unictype/pr_extender.c: New file.
48131         * lib/unictype/pr_format_control.c: New file.
48132         * lib/unictype/pr_grapheme_base.c: New file.
48133         * lib/unictype/pr_grapheme_extend.c: New file.
48134         * lib/unictype/pr_grapheme_link.c: New file.
48135         * lib/unictype/pr_hex_digit.c: New file.
48136         * lib/unictype/pr_hyphen.c: New file.
48137         * lib/unictype/pr_id_continue.c: New file.
48138         * lib/unictype/pr_id_start.c: New file.
48139         * lib/unictype/pr_ideographic.c: New file.
48140         * lib/unictype/pr_ids_binary_operator.c: New file.
48141         * lib/unictype/pr_ids_trinary_operator.c: New file.
48142         * lib/unictype/pr_ignorable_control.c: New file.
48143         * lib/unictype/pr_iso_control.c: New file.
48144         * lib/unictype/pr_join_control.c: New file.
48145         * lib/unictype/pr_left_of_pair.c: New file.
48146         * lib/unictype/pr_line_separator.c: New file.
48147         * lib/unictype/pr_logical_order_exception.c: New file.
48148         * lib/unictype/pr_lowercase.c: New file.
48149         * lib/unictype/pr_math.c: New file.
48150         * lib/unictype/pr_non_break.c: New file.
48151         * lib/unictype/pr_not_a_character.c: New file.
48152         * lib/unictype/pr_numeric.c: New file.
48153         * lib/unictype/pr_other_alphabetic.c: New file.
48154         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
48155         * lib/unictype/pr_other_grapheme_extend.c: New file.
48156         * lib/unictype/pr_other_id_continue.c: New file.
48157         * lib/unictype/pr_other_id_start.c: New file.
48158         * lib/unictype/pr_other_lowercase.c: New file.
48159         * lib/unictype/pr_other_math.c: New file.
48160         * lib/unictype/pr_other_uppercase.c: New file.
48161         * lib/unictype/pr_paired_punctuation.c: New file.
48162         * lib/unictype/pr_paragraph_separator.c: New file.
48163         * lib/unictype/pr_pattern_syntax.c: New file.
48164         * lib/unictype/pr_pattern_white_space.c: New file.
48165         * lib/unictype/pr_private_use.c: New file.
48166         * lib/unictype/pr_punctuation.c: New file.
48167         * lib/unictype/pr_quotation_mark.c: New file.
48168         * lib/unictype/pr_radical.c: New file.
48169         * lib/unictype/pr_sentence_terminal.c: New file.
48170         * lib/unictype/pr_soft_dotted.c: New file.
48171         * lib/unictype/pr_space.c: New file.
48172         * lib/unictype/pr_terminal_punctuation.c: New file.
48173         * lib/unictype/pr_test.c: New file.
48174         * lib/unictype/pr_titlecase.c: New file.
48175         * lib/unictype/pr_unassigned_code_value.c: New file.
48176         * lib/unictype/pr_unified_ideograph.c: New file.
48177         * lib/unictype/pr_uppercase.c: New file.
48178         * lib/unictype/pr_variation_selector.c: New file.
48179         * lib/unictype/pr_white_space.c: New file.
48180         * lib/unictype/pr_xid_continue.c: New file.
48181         * lib/unictype/pr_xid_start.c: New file.
48182         * lib/unictype/pr_zero_width.c: New file.
48183         * lib/unictype/scripts.c: New file.
48184         * lib/unictype/sy_c_ident.c: New file.
48185         * lib/unictype/sy_c_whitespace.c: New file.
48186         * lib/unictype/sy_java_ident.c: New file.
48187         * lib/unictype/sy_java_whitespace.c: New file.
48188
48189         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
48190         Unicode 5.0.0.
48191         * lib/unictype/blocks.h: Likewise.
48192         * lib/unictype/categ_C.h: Likewise.
48193         * lib/unictype/categ_Cc.h: Likewise.
48194         * lib/unictype/categ_Cf.h: Likewise.
48195         * lib/unictype/categ_Cn.h: Likewise.
48196         * lib/unictype/categ_Co.h: Likewise.
48197         * lib/unictype/categ_Cs.h: Likewise.
48198         * lib/unictype/categ_L.h: Likewise.
48199         * lib/unictype/categ_Ll.h: Likewise.
48200         * lib/unictype/categ_Lm.h: Likewise.
48201         * lib/unictype/categ_Lo.h: Likewise.
48202         * lib/unictype/categ_Lt.h: Likewise.
48203         * lib/unictype/categ_Lu.h: Likewise.
48204         * lib/unictype/categ_M.h: Likewise.
48205         * lib/unictype/categ_Mc.h: Likewise.
48206         * lib/unictype/categ_Me.h: Likewise.
48207         * lib/unictype/categ_Mn.h: Likewise.
48208         * lib/unictype/categ_N.h: Likewise.
48209         * lib/unictype/categ_Nd.h: Likewise.
48210         * lib/unictype/categ_Nl.h: Likewise.
48211         * lib/unictype/categ_No.h: Likewise.
48212         * lib/unictype/categ_P.h: Likewise.
48213         * lib/unictype/categ_Pc.h: Likewise.
48214         * lib/unictype/categ_Pd.h: Likewise.
48215         * lib/unictype/categ_Pe.h: Likewise.
48216         * lib/unictype/categ_Pf.h: Likewise.
48217         * lib/unictype/categ_Pi.h: Likewise.
48218         * lib/unictype/categ_Po.h: Likewise.
48219         * lib/unictype/categ_Ps.h: Likewise.
48220         * lib/unictype/categ_S.h: Likewise.
48221         * lib/unictype/categ_Sc.h: Likewise.
48222         * lib/unictype/categ_Sk.h: Likewise.
48223         * lib/unictype/categ_Sm.h: Likewise.
48224         * lib/unictype/categ_So.h: Likewise.
48225         * lib/unictype/categ_Z.h: Likewise.
48226         * lib/unictype/categ_Zl.h: Likewise.
48227         * lib/unictype/categ_Zp.h: Likewise.
48228         * lib/unictype/categ_Zs.h: Likewise.
48229         * lib/unictype/categ_of.h: Likewise.
48230         * lib/unictype/combining.h: Likewise.
48231         * lib/unictype/ctype_alnum.h: Likewise.
48232         * lib/unictype/ctype_alpha.h: Likewise.
48233         * lib/unictype/ctype_blank.h: Likewise.
48234         * lib/unictype/ctype_cntrl.h: Likewise.
48235         * lib/unictype/ctype_digit.h: Likewise.
48236         * lib/unictype/ctype_graph.h: Likewise.
48237         * lib/unictype/ctype_lower.h: Likewise.
48238         * lib/unictype/ctype_print.h: Likewise.
48239         * lib/unictype/ctype_punct.h: Likewise.
48240         * lib/unictype/ctype_space.h: Likewise.
48241         * lib/unictype/ctype_upper.h: Likewise.
48242         * lib/unictype/ctype_xdigit.h: Likewise.
48243         * lib/unictype/decdigit.h: Likewise.
48244         * lib/unictype/digit.h: Likewise.
48245         * lib/unictype/mirror.h: Likewise.
48246         * lib/unictype/numeric.h: Likewise.
48247         * lib/unictype/pr_alphabetic.h: Likewise.
48248         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
48249         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
48250         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
48251         * lib/unictype/pr_bidi_block_separator.h: Likewise.
48252         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
48253         * lib/unictype/pr_bidi_common_separator.h: Likewise.
48254         * lib/unictype/pr_bidi_control.h: Likewise.
48255         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
48256         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
48257         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
48258         * lib/unictype/pr_bidi_european_digit.h: Likewise.
48259         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
48260         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
48261         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
48262         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
48263         * lib/unictype/pr_bidi_pdf.h: Likewise.
48264         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
48265         * lib/unictype/pr_bidi_whitespace.h: Likewise.
48266         * lib/unictype/pr_combining.h: Likewise.
48267         * lib/unictype/pr_composite.h: Likewise.
48268         * lib/unictype/pr_currency_symbol.h: Likewise.
48269         * lib/unictype/pr_dash.h: Likewise.
48270         * lib/unictype/pr_decimal_digit.h: Likewise.
48271         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
48272         * lib/unictype/pr_deprecated.h: Likewise.
48273         * lib/unictype/pr_diacritic.h: Likewise.
48274         * lib/unictype/pr_extender.h: Likewise.
48275         * lib/unictype/pr_format_control.h: Likewise.
48276         * lib/unictype/pr_grapheme_base.h: Likewise.
48277         * lib/unictype/pr_grapheme_extend.h: Likewise.
48278         * lib/unictype/pr_grapheme_link.h: Likewise.
48279         * lib/unictype/pr_hex_digit.h: Likewise.
48280         * lib/unictype/pr_hyphen.h: Likewise.
48281         * lib/unictype/pr_id_continue.h: Likewise.
48282         * lib/unictype/pr_id_start.h: Likewise.
48283         * lib/unictype/pr_ideographic.h: Likewise.
48284         * lib/unictype/pr_ids_binary_operator.h: Likewise.
48285         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
48286         * lib/unictype/pr_ignorable_control.h: Likewise.
48287         * lib/unictype/pr_iso_control.h: Likewise.
48288         * lib/unictype/pr_join_control.h: Likewise.
48289         * lib/unictype/pr_left_of_pair.h: Likewise.
48290         * lib/unictype/pr_line_separator.h: Likewise.
48291         * lib/unictype/pr_logical_order_exception.h: Likewise.
48292         * lib/unictype/pr_lowercase.h: Likewise.
48293         * lib/unictype/pr_math.h: Likewise.
48294         * lib/unictype/pr_non_break.h: Likewise.
48295         * lib/unictype/pr_not_a_character.h: Likewise.
48296         * lib/unictype/pr_numeric.h: Likewise.
48297         * lib/unictype/pr_other_alphabetic.h: Likewise.
48298         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
48299         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
48300         * lib/unictype/pr_other_id_continue.h: Likewise.
48301         * lib/unictype/pr_other_id_start.h: Likewise.
48302         * lib/unictype/pr_other_lowercase.h: Likewise.
48303         * lib/unictype/pr_other_math.h: Likewise.
48304         * lib/unictype/pr_other_uppercase.h: Likewise.
48305         * lib/unictype/pr_paired_punctuation.h: Likewise.
48306         * lib/unictype/pr_paragraph_separator.h: Likewise.
48307         * lib/unictype/pr_pattern_syntax.h: Likewise.
48308         * lib/unictype/pr_pattern_white_space.h: Likewise.
48309         * lib/unictype/pr_private_use.h: Likewise.
48310         * lib/unictype/pr_punctuation.h: Likewise.
48311         * lib/unictype/pr_quotation_mark.h: Likewise.
48312         * lib/unictype/pr_radical.h: Likewise.
48313         * lib/unictype/pr_sentence_terminal.h: Likewise.
48314         * lib/unictype/pr_soft_dotted.h: Likewise.
48315         * lib/unictype/pr_space.h: Likewise.
48316         * lib/unictype/pr_terminal_punctuation.h: Likewise.
48317         * lib/unictype/pr_titlecase.h: Likewise.
48318         * lib/unictype/pr_unassigned_code_value.h: Likewise.
48319         * lib/unictype/pr_unified_ideograph.h: Likewise.
48320         * lib/unictype/pr_uppercase.h: Likewise.
48321         * lib/unictype/pr_variation_selector.h: Likewise.
48322         * lib/unictype/pr_white_space.h: Likewise.
48323         * lib/unictype/pr_xid_continue.h: Likewise.
48324         * lib/unictype/pr_xid_start.h: Likewise.
48325         * lib/unictype/pr_zero_width.h: Likewise.
48326         * lib/unictype/scripts.h: Likewise.
48327         * lib/unictype/scripts_byname.gperf: Likewise.
48328         * lib/unictype/sy_c_ident.h: Likewise.
48329         * lib/unictype/sy_c_whitespace.h: Likewise.
48330         * lib/unictype/sy_java_ident.h: Likewise.
48331         * lib/unictype/sy_java_whitespace.h: Likewise.
48332
48333         * lib/unictype/Makefile: New file.
48334         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
48335         glibc.
48336         * lib/unictype/3level.h: New file, copied from glibc.
48337         * lib/unictype/3levelbit.h: New file.
48338
48339 2007-11-11  Bruno Haible  <bruno@clisp.org>
48340
48341         * modules/gperf: New file.
48342         * modules/iconv_open (Depends-on): Add it.
48343         (Makefile.am): Remove the GPERF definition.
48344
48345 2007-11-11  Bruno Haible  <bruno@clisp.org>
48346
48347         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
48348         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
48349
48350 2007-11-11  Bruno Haible  <bruno@clisp.org>
48351
48352         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
48353         (usage): Remove function.
48354
48355 2007-11-11  Bruno Haible  <bruno@clisp.org>
48356
48357         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
48358         gl_FUNC_CEILF_LIBS.
48359         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
48360         gl_FUNC_CEIL_LIBS.
48361         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
48362         gl_FUNC_CEILL_LIBS.
48363         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
48364         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
48365         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
48366
48367 2007-11-11  Bruno Haible  <bruno@clisp.org>
48368
48369         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
48370         roundf were declared but do not exist on functions.
48371         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
48372         roundl were declared but do not exist on functions.
48373         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
48374         HAVE_FLOORL_AND_CEILL, respectively.
48375         Needed for Sun C on Solaris 10.
48376
48377 2007-11-11  Bruno Haible  <bruno@clisp.org>
48378
48379         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
48380         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
48381         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
48382         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
48383         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
48384         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
48385         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
48386         HAVE_DECL_ROUNDF.
48387         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
48388         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
48389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
48390         of HAVE_DECL_ROUND*.
48391         * modules/math (Makefile.am): Update.
48392
48393 2007-11-10  Bruno Haible  <bruno@clisp.org>
48394
48395         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
48396         ptrdiff_t as m4/intl.m4.
48397
48398 2007-11-10  Jim Meyering  <meyering@redhat.com>
48399
48400         Avoid link failure for the argmatch test.
48401         * tests/test-argmatch.c (usage): Define function to avoid a link
48402         failure: argmatch_die requires a usage function.
48403
48404 2007-11-09  Bruno Haible  <bruno@clisp.org>
48405
48406         * doc/functions/snprintf.texi: Mention BeOS deficiency.
48407         * doc/functions/vsnprintf.texi: Likewise.
48408         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
48409         with a size argument < 2.
48410
48411 2007-11-09  Bruno Haible  <bruno@clisp.org>
48412
48413         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
48414         buffer. Fixes an inefficiency introduced on 2007-11-03.
48415
48416 2007-11-09  Bruno Haible  <bruno@clisp.org>
48417
48418         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
48419         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
48420
48421 2007-11-08  Jim Meyering  <meyering@redhat.com>
48422
48423         Change cache variable name prefix "jm_" to "gl_" everywhere.
48424         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
48425         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
48426         * m4/uptime.m4: s/gl_/jm_/
48427
48428 2007-11-07  Bruno Haible  <bruno@clisp.org>
48429
48430         Update to GNU gettext 0.17.
48431         * m4/intl.m4: Update to GNU gettext 0.17.
48432         * m4/po.m4: Likewise.
48433         * modules/gettext (Files): Remove m4/ulonglong.m4.
48434         (configure.ac): Require gettext infrastructure from version 0.17.
48435
48436 2007-11-06  Bruno Haible  <bruno@clisp.org>
48437
48438         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
48439         symbolic values are not defined in a public header.
48440         * lib/freadable.c (freadable) [QNX]: Likewise.
48441         * lib/freadahead.c (freadahead) [QNX]: Likewise.
48442         * lib/freading.c (freading) [QNX]: Likewise.
48443         * lib/fseterr.c (fseterr) [QNX]: Likewise.
48444         * lib/fwritable.c (fwritable) [QNX]: Likewise.
48445         * lib/fwriting.c (fwriting) [QNX]: Likewise.
48446         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
48447         Reported by Alain Magloire.
48448
48449         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
48450
48451 2007-11-05  Bruno Haible  <bruno@clisp.org>
48452
48453         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
48454         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
48455         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
48456         Reported by Eric Blake.
48457
48458 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48459             Bruno Haible  <bruno@clisp.org>
48460
48461         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
48462         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
48463         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
48464         (malloc): Undefine also before including <stdlib.h>.
48465         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
48466         Needed on OSF/1 4.0.
48467
48468 2007-11-05  Jim Meyering  <meyering@redhat.com>
48469
48470         git-version-gen: sync from coreutils.
48471         * build-aux/git-version-gen: Add comments.
48472         Change the first '-' to '.' in the snapshot version string,
48473         e.g., 6.9-377-08144 -> 6.9.377-08144
48474         Remove first parameter.
48475         Don't declare a version "-dirty" merely because a time
48476         stamp has changed.
48477
48478 2007-11-04  Bruno Haible  <bruno@clisp.org>
48479
48480         * lib/lock.h: Protect all macro definitions containing an 'if'
48481         statement through a "do { ... } while (0)".
48482         * lib/tls.h: Likewise.
48483
48484 2007-11-04  Bruno Haible  <bruno@clisp.org>
48485
48486         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
48487
48488 2007-11-04  Bruno Haible  <bruno@clisp.org>
48489
48490         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
48491         * modules/fprintf-posix (Depends-on): Add nocrash.
48492         * modules/snprintf-posix (Depends-on): Likewise.
48493         * modules/sprintf-posix (Depends-on): Likewise.
48494         * modules/vasnprintf-posix (Depends-on): Likewise.
48495         * modules/vasprintf-posix (Depends-on): Likewise.
48496         * modules/vfprintf-posix (Depends-on): Likewise.
48497         * modules/vsnprintf-posix (Depends-on): Likewise.
48498         * modules/vsprintf-posix (Depends-on): Likewise.
48499         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48500         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48501         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48502         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48503         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48504         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48505         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48506
48507 2007-11-04  Bruno Haible  <bruno@clisp.org>
48508
48509         * modules/nocrash: New file.
48510         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
48511         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
48512
48513 2007-11-04  Bruno Haible  <bruno@clisp.org>
48514
48515         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
48516         precision handling.
48517         * tests/test-vasprintf-posix.c (test_function): Likewise.
48518         * tests/test-snprintf-posix.h (test_function): Likewise.
48519         * tests/test-sprintf-posix.h (test_function): Likewise.
48520
48521         Fix *printf behaviour for large precisions on mingw and BeOS.
48522         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
48523         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
48524         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
48525         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48526         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48527         gl_PRINTF_PRECISION and test its result. Invoke
48528         gl_PREREQ_VASNPRINTF_PRECISION.
48529         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48530         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48531         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48532         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48533         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48534         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48535         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48536         * doc/functions/fprintf.texi: Update.
48537         * doc/functions/printf.texi: Update.
48538         * doc/functions/snprintf.texi: Update.
48539         * doc/functions/sprintf.texi: Update.
48540         * doc/functions/vfprintf.texi: Update.
48541         * doc/functions/vprintf.texi: Update.
48542         * doc/functions/vsnprintf.texi: Update.
48543         * doc/functions/vsprintf.texi: Update.
48544
48545 2007-11-04  Bruno Haible  <bruno@clisp.org>
48546
48547         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
48548
48549 2007-11-04  Bruno Haible  <bruno@clisp.org>
48550
48551         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
48552         Reported by Sylvain Beucler <beuc@gnu.org>.
48553
48554 2007-11-03  Bruno Haible  <bruno@clisp.org>
48555
48556         * tests/test-fprintf-posix2.sh: New file.
48557         * tests/test-fprintf-posix2.c: New file.
48558         * modules/fprintf-posix-tests (Files): Add them.
48559         (TESTS): Add test-fprintf-posix2.sh.
48560         (configure.ac): Check for getrlimit and setrlimit.
48561         (check_PROGRAMS): Add test-fprintf-posix2.
48562
48563         * tests/test-printf-posix2.sh: New file.
48564         * tests/test-printf-posix2.c: New file.
48565         * modules/printf-posix-tests (Files): Add them.
48566         (TESTS): Add test-printf-posix2.sh.
48567         (configure.ac): Check for getrlimit and setrlimit.
48568         (check_PROGRAMS): Add test-printf-posix2.
48569
48570         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
48571         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
48572         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
48573         (decode_double): New function, copied from decode_long_double.
48574         (scale10_round_decimal_decoded): New function, extracted from
48575         scale10_round_decimal_long_double.
48576         (scale10_round_decimal_long_double): Use it.
48577         (scale10_round_decimal_double): New function.
48578         (floorlog10): New function.
48579         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
48580         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
48581         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48582         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48583         gl_PRINTF_ENOMEM and test its result. Invoke
48584         gl_PREREQ_VASNPRINTF_ENOMEM.
48585         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48586         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48587         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48588         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48589         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48590         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48591         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48592         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
48593         * modules/snprintf-posix (Depends-on): Likewise.
48594         * modules/sprintf-posix (Depends-on): Likewise.
48595         * modules/vasnprintf-posix (Depends-on): Likewise.
48596         * modules/vasprintf-posix (Depends-on): Likewise.
48597         * modules/vfprintf-posix (Depends-on): Likewise.
48598         * modules/vsnprintf-posix (Depends-on): Likewise.
48599         * modules/vsprintf-posix (Depends-on): Likewise.
48600         * doc/functions/fprintf.texi: Update.
48601         * doc/functions/printf.texi: Update.
48602         * doc/functions/snprintf.texi: Update.
48603         * doc/functions/sprintf.texi: Update.
48604         * doc/functions/vfprintf.texi: Update.
48605         * doc/functions/vprintf.texi: Update.
48606         * doc/functions/vsnprintf.texi: Update.
48607         * doc/functions/vsprintf.texi: Update.
48608
48609 2007-11-03  Bruno Haible  <bruno@clisp.org>
48610
48611         * modules/frexp-nolibm-tests: New file.
48612
48613         * modules/frexp-nolibm: New file.
48614         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
48615
48616 2007-11-03  Bruno Haible  <bruno@clisp.org>
48617
48618         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
48619         value is C99 compliant.
48620         Needed for OSF/1 5.1.
48621
48622 2007-11-03  Bruno Haible  <bruno@clisp.org>
48623
48624         Fix out-of-memory handling of vasnprintf.
48625         * lib/printf-parse.c: Include <errno.h>.
48626         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
48627         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
48628         is already set.
48629
48630 2007-11-02  Eric Blake  <ebb9@byu.net>
48631
48632         Fix tests on cygwin.
48633         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
48634
48635 2007-11-01  Bruno Haible  <bruno@clisp.org>
48636
48637         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
48638         warning.
48639         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
48640         needed for POSIX compatibility.
48641
48642 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
48643
48644         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
48645         for compatibility with GNU.
48646
48647 2007-11-01  Bruno Haible  <bruno@clisp.org>
48648
48649         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
48650         (putenv): Renamed from rpl_putenv. Change argument type from
48651         'const char *' to 'char *'.
48652         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
48653         of defining putenv in config.h, just set REPLACE_PUTENV.
48654         * modules/putenv (Depends-on): Add stdlib.
48655         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48656         (Include): Use <stdlib.h>.
48657         * lib/stdlib.in.h (putenv): New declaration.
48658         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
48659         REPLACE_PUTENV.
48660         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
48661         REPLACE_PUTENV.
48662         Needed for MacOS X 10.5.0.
48663         Reported by Peter O'Gorman <peter@pogma.com>.
48664
48665 2007-11-01  Jim Meyering  <meyering@redhat.com>
48666
48667         Treat an empty date string exactly like "0".
48668         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
48669         if the remaining date string (to be parsed) is empty, use "0".
48670         Reported by Mischa Molhoek and discussed in this thread:
48671         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
48672
48673 2007-10-31  Bruno Haible  <bruno@clisp.org>
48674
48675         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
48676         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
48677         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
48678         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
48679         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
48680         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
48681
48682 2007-10-31  Bruno Haible  <bruno@clisp.org>
48683
48684         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
48685         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
48686         (AC_TYPE_LONG_LONG_INT): Use it.
48687         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
48688         it as well.
48689         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
48690         to m4/longlong.m4.
48691         * modules/stdint (Files): Remove m4/ulonglong.m4.
48692         * modules/strtoull (Files): Use m4/longlong.m4 instead of
48693         m4/ulonglong.m4.
48694         * modules/strtoumax (Files): Likewise.
48695
48696 2007-10-30  Bruno Haible  <bruno@clisp.org>
48697
48698         * modules/xvasprintf-posix: New file.
48699         Suggested by Eric Blake.
48700
48701 2007-10-30  Bruno Haible  <bruno@clisp.org>
48702
48703         * modules/xprintf-posix-tests: New file.
48704         * tests/test-xprintf-posix.sh: New file.
48705         * tests/test-xprintf-posix.c: New file.
48706         * tests/test-xfprintf-posix.c: New file.
48707
48708         * modules/xprintf-posix: New file.
48709
48710 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48711
48712         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
48713         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
48714         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
48715
48716 2007-10-29  Bruno Haible  <bruno@clisp.org>
48717
48718         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
48719         contain the special marker '_cv_'.
48720         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
48721         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
48722         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
48723         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
48724         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
48725         Reported by Ralf Wildenhues.
48726
48727 2007-10-29  Bruno Haible  <bruno@clisp.org>
48728
48729         * gnulib-tool (func_import): When --lgpl is not specified, set
48730         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
48731         GPLv3.
48732         Reported by Simon Josefsson.
48733
48734 2007-10-28  Bruno Haible  <bruno@clisp.org>
48735
48736         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
48737         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
48738         HAVE_DECL_ISFINITE.
48739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48740         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
48741         HAVE_DECL_ISFINITE.
48742
48743 2007-10-28  Bruno Haible  <bruno@clisp.org>
48744
48745         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
48746         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
48747
48748 2007-10-28  Bruno Haible  <bruno@clisp.org>
48749
48750         Fix link errors with Sun C 5.0 on Solaris 10.
48751         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
48752         function is declared but not present in the compiler's libm.
48753         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
48754         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48755         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
48756         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
48757         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
48758         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
48759         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
48760         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48761         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
48762         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
48763         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
48764         HAVE_DECL_FLOORL.
48765
48766 2007-10-28  Bruno Haible  <bruno@clisp.org>
48767
48768         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
48769         gl_FUNC_FLOORL. Cache the result.
48770         (gl_FUNC_FLOORL): Use it.
48771         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
48772         gl_FUNC_CEILL. Cache the result.
48773         (gl_FUNC_CEILL): Use it.
48774
48775         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
48776         gl_FUNC_FLOOR. Cache the result.
48777         (gl_FUNC_FLOOR): Use it.
48778         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
48779         gl_FUNC_CEIL. Cache the result.
48780         (gl_FUNC_CEIL): Use it.
48781
48782         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
48783         gl_FUNC_FLOORF. Cache the result.
48784         (gl_FUNC_FLOORF): Use it.
48785         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
48786         gl_FUNC_CEILF. Cache the result.
48787         (gl_FUNC_CEILF): Use it.
48788
48789 2007-10-28  Bruno Haible  <bruno@clisp.org>
48790
48791         * gnulib-tool: Allow specifying the LGPL version number through
48792         --lgpl=2 or --lgpl=3.
48793         (func_usage): Document --lgpl with argument.
48794         Handle --lgpl=... arguments.
48795         (func_import): Recognize also gl_LGPL calls with an argument. When
48796         --lgpl=2 is used and the module's license is just LGPL, report an
48797         error. Set sed_transform_lib_file according to the lgpl variable. In
48798         the generated files, use --lgpl or gl_LGPL invocations with argument,
48799         if necessary.
48800         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
48801         an LGPv2+ license.
48802         * doc/gnulib-tool.texi (Modified imports): Update explanation of
48803         gl_LGPL macro.
48804
48805 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48806             Bruno Haible  <bruno@clisp.org>
48807
48808         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
48809         (u16_uctomb_aux): Likewise.
48810         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
48811         !HAVE_INLINE.
48812         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
48813
48814 2007-10-28  Bruno Haible  <bruno@clisp.org>
48815
48816         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
48817         Invoke AM_GETTEXT_OPTION if it exists.
48818         * modules/vasprintf: Likewise.
48819         * modules/verror: Likewise.
48820         * modules/xprintf: Likewise.
48821         * modules/xvasprintf: Likewise.
48822
48823 2007-10-27  Ben Pfaff  <blp@gnu.org>
48824
48825         * lib/math.in.h: Define isfinite macro and prototypes for
48826         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
48827         implementations.
48828         * m4/math_h.m4: New substitutions for isfinite module.
48829         * lib/isfinite.c: New file.
48830         * m4/isfinite.m4: New file.
48831         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
48832         * modules/isfinite: New file.
48833         * modules/isfinite-tests: New file.
48834         * tests/tests-isfinite.c: New file.
48835         * doc/functions/isfinite.texi: Mention isfinite module.
48836         * MODULES.html.sh: Mention new module.
48837
48838 2007-10-27  Ben Pfaff  <blp@gnu.org>
48839
48840         Ralf Wildenhues reported that Tru64 4.0D declares the round
48841         functions but does not have definitions.
48842         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
48843         cannot be found in any library, set the output variable to
48844         "missing" instead of "".
48845         * m4/round.m4: Also use our substitute if we cannot find round in
48846         any library, even if it is declared.
48847         * m4/roundf.m4: Likewise for roundf.
48848         * m4/roundl.m4: Likewise for roundl.
48849         * lib/math.in.h: Undefine roundf, round, roundl before defining
48850         their replacements, to allow for hypothetical systems where these
48851         may be defined as macros but not available in libraries.
48852
48853 2007-10-27  Bruno Haible  <bruno@clisp.org>
48854
48855         * doc/gnulib.texi: Invoke @firstparagraphindent.
48856         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
48857         changes in gnulib.
48858         (Source changes): New section.
48859
48860 2007-10-26  Bruno Haible  <bruno@clisp.org>
48861
48862         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
48863         borrowed from autoconf.
48864
48865 2007-10-26  Bruno Haible  <bruno@clisp.org>
48866
48867         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
48868         strerror returned the empty string. Needed on HP-UX 11.00.
48869
48870 2007-10-24  Micah Cowan  <micah@cowan.name>
48871
48872         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
48873         * build-aux/bootstrap: Remove support for now-unnecessary option,
48874         --cvs-user, and envvars CVS_USER, CVS_RSH.
48875
48876 2007-10-24  Jim Meyering  <meyering@redhat.com>
48877
48878         Avoid diagnostics from sha1sum when there is no cached checksum.
48879         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
48880         if the po.s1 file hasn't been created yet.
48881
48882         * build-aux/bootstrap: Sync from coreutils:
48883         2007-10-24  Jim Meyering  <meyering@redhat.com>
48884         Get gnulib from the git repository, not from an obsolete cvs one.
48885         * build-aux/bootstrap: Suggestion from Micah Cowan.
48886         2007-10-04  Jim Meyering  <jim@meyering.net>
48887         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
48888         (update_po_files): Work also when there are no .po files in po/.
48889
48890 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48891
48892         * README: Append ".git" to git and cg examples.
48893         Problem reported by Benoit Sigoure.
48894
48895 2007-10-23  Micah Cowan  <micah@cowan.name>
48896
48897         * users.txt: Add wget.
48898
48899 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48900
48901         Fix linking of some unistdio tests on FreeBSD.
48902         * modules/unistdio/u16-vsnprintf-tests
48903         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
48904         * modules/unistdio/u16-vsprintf-tests
48905         (test_u16_vsnprintf1_LDADD): Likewise.
48906         * modules/unistdio/u32-vsnprintf-tests
48907         (test_u32_vsnprintf1_LDADD): Likewise.
48908         * modules/unistdio/u32-vsprintf-tests
48909         (test_u32_vsprintf1_LDADD): Likewise.
48910         * modules/unistdio/u8-vsnprintf-tests
48911         (test_u8_vsnprintf1_LDADD): Likewise.
48912         * modules/unistdio/u8-vsprintf-tests
48913         (test_u8_vsprintf1_LDADD): Likewise.
48914         * modules/unistdio/ulc-vsnprintf-tests
48915         (test_ulc_vsnprintf1_LDADD): Likewise.
48916         * modules/unistdio/ulc-vsprintf-tests
48917         (test_ulc_vsprintf1_LDADD): Likewise.
48918
48919         Fix linking of some uniconv tests on FreeBSD.
48920         * modules/uniconv/u16-conv-from-enc-tests
48921         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
48922         * modules/uniconv/u16-conv-to-enc-tests
48923         (test_u16_conv_to_enc_LDADD): Likewise.
48924         * modules/uniconv/u16-strconv-from-enc-tests
48925         (test_u16_strconv_from_enc_LDADD): Likewise.
48926         * modules/uniconv/u16-strconv-to-enc-tests
48927         (test_u16_strconv_to_enc_LDADD): Likewise.
48928         * modules/uniconv/u32-conv-from-enc-tests
48929         (test_u32_conv_from_enc_LDADD): Likewise.
48930         * modules/uniconv/u32-conv-to-enc-tests
48931         (test_u32_conv_to_enc_LDADD): Likewise.
48932         * modules/uniconv/u32-strconv-from-enc-tests
48933         (test_u32_strconv_from_enc_LDADD): Likewise.
48934         * modules/uniconv/u32-strconv-to-enc-tests
48935         (test_u32_strconv_to_enc_LDADD): Likewise.
48936         * modules/uniconv/u8-conv-from-enc-tests
48937         (test_u8_conv_from_enc_LDADD): Likewise.
48938         * modules/uniconv/u8-conv-to-enc-tests
48939         (test_u8_conv_to_enc_LDADD): Likewise.
48940         * modules/uniconv/u8-strconv-from-enc-tests
48941         (test_u8_strconv_from_enc_LDADD): Likewise.
48942         * modules/uniconv/u8-strconv-to-enc-tests
48943         (test_u8_strconv_to_enc_LDADD): Likewise.
48944
48945 2007-10-22  Bruno Haible  <bruno@clisp.org>
48946
48947         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
48948         size.
48949
48950 2007-10-22  Eric Blake  <ebb9@byu.net>
48951
48952         Tweak x*printf documentation.
48953         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
48954         variable name and comments.
48955         Suggested by Bruno Haible.
48956
48957 2007-10-22  Bruno Haible  <bruno@clisp.org>
48958
48959         * lib/acl.c (copy_acl): Fix file name in comment.
48960
48961 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
48962
48963         Fix Tru64 problem with stdbool.h.
48964         * lib/stdbool.in.h (false, true):
48965         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
48966         Don't declare as an enum in this situation; it runs afoul of Tru64.
48967         Problem reported by Steven M. Schweda in
48968         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
48969
48970 2007-10-22  Eric Blake  <ebb9@byu.net>
48971
48972         Also wrap vf?printf.
48973         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
48974         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
48975         (xvprintf, xvfprintf): New functions.
48976
48977 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48978
48979         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
48980         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
48981
48982         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
48983         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
48984
48985 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
48986
48987         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
48988         by Bruno Haible.
48989
48990 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48991
48992         * lib/getloadavg.c
48993         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
48994         Undef `sys' after including sys/table.h, for Tru64 4.0D.
48995
48996         * tests/test-i-ring.c: Work for C89.
48997
48998 2007-10-22  Bruno Haible  <bruno@clisp.org>
48999
49000         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
49001         -1u, in preprocessor expression, so that we don't test for the bug
49002         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
49003         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
49004
49005 2007-10-22  Eric Blake  <ebb9@byu.net>
49006
49007         * tests/test-yesno.sh: Silence stderr during test.
49008
49009 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49010
49011         * modules/crypto/gc-camellia: New file.
49012
49013         * m4/gc-camellia.m4: New file.
49014
49015         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
49016
49017         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
49018
49019 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49020
49021         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
49022         --help to stdout.  Reported by sms@antinode.org (Steven
49023         M. Schweda).
49024
49025 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49026
49027         * users.txt: Fix link to libksba.
49028
49029 2007-10-21  Ben Pfaff  <blp@gnu.org>
49030
49031         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
49032         round.c roundf implementation that depends on floorf and ceilf to
49033         be tested unconditionally.
49034
49035 2007-10-21  Ben Pfaff  <blp@gnu.org>
49036
49037         * m4/check-libm-func.m4: Removed.
49038         * m4/check-math-lib.m4: New file.
49039         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
49040         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
49041         definition and lack of AC_LIBOBJ([roundf]).
49042         * m4/roundl.m4: Ditto, and similarly for roundl.
49043         * modules/round: Reference new m4 file.
49044         * modules/roundf: Ditto.
49045         * modules/roundl: Ditto.
49046         * tests/test-round2.c (main): Use ROUND instead of round.
49047         Bug report from Bruno Haible.
49048
49049 2007-10-21  Bruno Haible  <bruno@clisp.org>
49050
49051         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
49052         context.
49053
49054 2007-10-21  Bruno Haible  <bruno@clisp.org>
49055
49056         * tests/test-wcwidth.c (main): Allow negative result for some control
49057         characters.
49058
49059         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
49060         Needed on OSF/1 5.1.
49061
49062 2007-10-21  Bruno Haible  <bruno@clisp.org>
49063
49064         * tests/test-floorf1.c: Include isnanf.h.
49065         (main): Use isnanf() instead of isnan().
49066         * tests/test-ceilf1.c: Include isnanf.h.
49067         (main): Use isnanf() instead of isnan().
49068         * tests/test-truncf1.c: Include isnanf.h.
49069         (main): Use isnanf() instead of isnan().
49070         * tests/test-roundf1.c: Include isnanf.h.
49071         (main): Use isnanf() instead of isnan().
49072
49073 2007-10-21  Eric Blake  <ebb9@byu.net>
49074
49075         * users.txt: Update URL for m4.
49076
49077 2007-10-21  Bruno Haible  <bruno@clisp.org>
49078
49079         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
49080
49081 2007-10-21  Bruno Haible  <bruno@clisp.org>
49082
49083         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
49084         Git's management files if the CVS files are not present.
49085
49086 2007-10-20  Bruno Haible  <bruno@clisp.org>
49087
49088         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
49089         gcc-3.4.x.
49090
49091 2007-10-20  Ben Pfaff  <blp@gnu.org>
49092
49093         * lib/math.in.h: Declare round, roundf, roundl if we are providing
49094         implementations.
49095         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
49096         * lib/round.c: New file.
49097         * lib/roundf.c: New file.
49098         * lib/roundl.c: New file.
49099         * m4/round.m4: New file.
49100         * m4/roundf.m4: New file.
49101         * m4/roundl.m4: New file.
49102         * m4/check-libm-func-m4: New file.
49103         * modules/math: Replace round, roundf, roundl related @VARS@ in
49104         math.in.h.
49105         * modules/round: New file.
49106         * modules/round-tests: New file.
49107         * modules/roundf: New file.
49108         * modules/roundf-tests: New file.
49109         * modules/roundl: New file.
49110         * modules/roundl-tests: New file.
49111         * tests/test-round1.c: New file.
49112         * tests/test-round2.c: New file.
49113         * tests/test-roundf1.c: New file.
49114         * tests/test-roundf2.c: New file.
49115         * tests/test-roundl.c: New file.
49116         * doc/functions/round.texi: Mention round module.
49117         * doc/functions/roundf.texi: Mention roundf module.
49118         * doc/functions/roundl.texi: Mention roundl module.
49119         * MODULES.html.sh: Mention new modules.
49120         Thanks to Bruno Haible for suggestions.
49121
49122 2007-10-20  Jim Meyering  <meyering@redhat.com>
49123
49124         * lib/xprintf.c: Include <config.h> unconditionally.
49125
49126         Change xprintf's license to GPL.
49127         * modules/xprintf (License): s/LGPL/GPL/, since this module
49128         depends on modules (exit and exitfail) which are GPL.
49129         Suggestion from Bruno Haible.
49130
49131         xprintf fixes.
49132         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
49133         Use a clearer diagnostic.
49134         Patch from Bruno Haible.
49135
49136 2007-10-20  Bruno Haible  <bruno@clisp.org>
49137
49138         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
49139         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
49140         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49141
49142 2007-10-20  Bruno Haible  <bruno@clisp.org>
49143
49144         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
49145         precision in the comparison result > x - 1 or similar.
49146         * tests/test-ceilf2.c (correct_result_p): Likewise.
49147         * tests/test-truncf2.c (correct_result_p): Likewise.
49148         * tests/test-trunc2.c (correct_result_p): Likewise.
49149         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49150
49151 2007-10-20  Bruno Haible  <bruno@clisp.org>
49152
49153         * modules/ceil: New file.
49154         * m4/ceil.m4: New file.
49155         * doc/functions/ceil.texi: Mention the 'ceil' module.
49156
49157 2007-10-20  Bruno Haible  <bruno@clisp.org>
49158
49159         * modules/floor: New file.
49160         * m4/floor.m4: New file.
49161         * doc/functions/floor.texi: Mention the 'floor' module.
49162
49163 2007-10-20  Bruno Haible  <bruno@clisp.org>
49164
49165         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
49166         of %a.
49167         * modules/floorf-tests (Depends-on): Likewise.
49168         * modules/truncf-tests (Depends-on): Likewise.
49169         * modules/trunc-tests (Depends-on): Likewise.
49170         Reported by Ben Pfaff.
49171
49172 2007-10-19  Jim Meyering  <meyering@redhat.com>
49173
49174         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
49175         Don't bother testing specific errno values.  Just test ferror.
49176
49177         New module: xprintf
49178         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
49179
49180 2007-10-19  Bruno Haible  <bruno@clisp.org>
49181
49182         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
49183         syntax.
49184         * modules/javaexec (Makefile.am): Likewise.
49185         * modules/relocatable-prog (Makefile.am): Likewise.
49186         Suggested by Jim Meyering.
49187
49188 2007-10-18  Bruno Haible  <bruno@clisp.org>
49189
49190         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
49191         Reported by Jim Meyering.
49192
49193 2007-10-18  Eric Blake  <ebb9@byu.net>
49194
49195         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
49196
49197 2007-10-18  Bruno Haible  <bruno@clisp.org>
49198
49199         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
49200         the format string into writable memory. Needed in Fortify conditions.
49201
49202 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
49203             Bruno Haible  <bruno@clisp.org>
49204
49205         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
49206         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
49207         * modules/trim (Depends-on): Add mbchar.
49208         (configure.ac): Add gl_FUNC_MBRTOWC.
49209         (Makefile.am): Augment lib_SOURCES.
49210
49211 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49212
49213         Modify glob.c to use fstatat and dirfd, to simplify it.
49214         Suggested by Eric Blake.
49215         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
49216         Don't include <stdbool.h>; not used.
49217         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
49218         (link_exists_p): Simplify implementation, since we can now assume
49219         dirfd and fstatat.
49220         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
49221
49222 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49223
49224         * gnulib-tool (func_get_dependencies): Fix sed script to
49225         match only tests.
49226
49227 2007-10-17  Bruno Haible  <bruno@clisp.org>
49228
49229         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
49230         allow locale names without encoding suffix.
49231         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49232         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49233
49234 2007-10-16  Bruno Haible  <bruno@clisp.org>
49235
49236         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
49237         * lib/getgroups.c (getgroups): Likewise.
49238         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
49239
49240 2007-10-16  Bruno Haible  <bruno@clisp.org>
49241
49242         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
49243         * modules/malloc-posix (License): Likewise.
49244         * modules/realloc-posix (License): Likewise.
49245         * modules/calloc-posix (License): Likewise.
49246         * modules/intprops (License): Change from GPL to LGPL, with
49247         Paul Eggert's approval.
49248
49249 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49250
49251         Merge glibc changes into lib/glob.c.
49252
49253         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
49254         2007-10-15 04:59:03 UTC.  Here are the changes:
49255
49256         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
49257
49258         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
49259
49260         * lib/glob.c: Add some branch prediction throughout.
49261
49262         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
49263
49264         [BZ #5103]
49265         * lib/glob.c (glob): Recognize patterns starting \/.
49266
49267         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
49268
49269         [BZ #3996]
49270         * lib/glob.c (attribute_hidden): Define if not defined.
49271         (glob): Unescape dirname, filename or username when needed and not
49272         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
49273         is NULL.  Handle unescaped [ in pattern without closing ].
49274         Don't pass GLOB_CHECK down to recursive glob for directories.
49275         (__glob_pattern_type): New function.
49276         (__glob_pattern_p): Implement using __glob_pattern_type.
49277         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
49278         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
49279         Remove unreachable code.
49280
49281         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
49282
49283         * lib/glob.c (glob_in_dir): Add some comments and asserts to
49284         explain why there are no leaks.
49285
49286         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
49287
49288         [BZ #3253]
49289         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
49290         time, rather allocate increasingly bigger arrays of pointers, if
49291         possible with alloca, if too large with malloc.
49292
49293 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49294
49295         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
49296         Problem reported by H.Merijn Brand in
49297         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
49298         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
49299         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49300
49301 2007-10-15  Bruno Haible  <bruno@clisp.org>
49302
49303         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
49304         with explicit rpl_ prefix.
49305         * lib/fopen.c (fopen): Likewise.
49306         * lib/freopen.c (freopen): Likewise.
49307         * lib/iconv.c (iconv): Likewise.
49308         * lib/iconv_close.c (iconv_close): Likewise.
49309
49310 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49311
49312         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
49313
49314 2007-10-15  Bruno Haible  <bruno@clisp.org>
49315
49316         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
49317         <stddef.h> instead of <stdlib.h> since we only need NULL.
49318         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49319
49320 2007-10-15  Bruno Haible  <bruno@clisp.org>
49321
49322         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
49323         Replace paragraph talking about LIBOBJS.
49324         Reported by Colin Watson <cjwatson@debian.org>.
49325
49326 2007-10-15  Bruno Haible  <bruno@clisp.org>
49327
49328         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
49329         <stdlib.h> before using NULL.
49330
49331 2007-10-15  Simon Josefsson  <simon@josefsson.org>
49332
49333         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
49334         Reported by Albert Chin <china@thewrittenword.com>.
49335
49336 2007-10-14  Bruno Haible  <bruno@clisp.org>
49337
49338         * modules/iconv_open-utf-tests: New file.
49339         * tests/test-iconv-utf.c: New file.
49340
49341         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
49342         * modules/iconv_open-utf: New file.
49343         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
49344         (iconv, iconv_close): New declarations.
49345         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
49346         be defined.
49347         (iconv_open): Add special handling of conversion between UTF-8 and
49348         UTF-{16,32}{BE,LE}.
49349         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
49350         * lib/iconv_close.c: New file.
49351         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
49352         gl_FUNC_ICONV_OPEN.
49353         (gl_FUNC_ICONV_OPEN): Use it.
49354         (gl_FUNC_ICONV_OPEN_UTF): New macro.
49355         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
49356         and REPLACE_ICONV_UTF.
49357         * modules/iconv_open (Depends-on): Add c-strcase.
49358         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
49359         ICONV_CONST.
49360         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
49361
49362 2007-10-13  Albert Chin  <china@thewrittenword.com>
49363             Bruno Haible  <bruno@clisp.org>
49364
49365         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
49366         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
49367
49368 2007-10-13  Bruno Haible  <bruno@clisp.org>
49369
49370         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
49371         defined, use the ISO C99 inline semantics.
49372         * lib/argp.h (ARGP_EI): Likewise.
49373
49374 2007-10-13  Bruno Haible  <bruno@clisp.org>
49375
49376         Handle 'inline' change in gcc 4.3.0.
49377         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
49378         argp_fmtstream_write, argp_fmtstream_set_lmargin,
49379         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
49380         argp_fmtstream_point): Disable 'extern' declaration if the function
49381         definition is going to be provided inline.
49382         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
49383         semantics, not the ISO C99 inline semantics.
49384         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
49385         'extern' declaration if the function definition is going to be provided
49386         inline.
49387         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
49388         the GNU C inline semantics, not the ISO C99 inline semantics. With
49389         GCC 4.2, avoid a warning.
49390
49391 2007-10-13  Bruno Haible  <bruno@clisp.org>
49392
49393         * lib/freading.h (freading): Enable the use of __freading for
49394         glibc >= 2.7.
49395         * lib/freading.c (freading): Likewise.
49396
49397 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49398
49399         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
49400         "warning: C99 inline functions are not supported; using GNU89".
49401
49402 2007-10-12  Bruno Haible  <bruno@clisp.org>
49403
49404         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
49405         of 2.
49406         * tests/test-ceilf2.c: New file.
49407         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
49408
49409         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
49410         * modules/ceilf-tests: Update.
49411
49412 2007-10-12  Bruno Haible  <bruno@clisp.org>
49413
49414         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
49415         of 2.
49416         * tests/test-floorf2.c: New file.
49417         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
49418
49419         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
49420         * modules/floorf-tests: Update.
49421
49422 2007-10-12  Bruno Haible  <bruno@clisp.org>
49423
49424         * tests/test-trunc2.c: New file.
49425         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
49426
49427         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
49428         * modules/trunc-tests: Update.
49429
49430 2007-10-12  Bruno Haible  <bruno@clisp.org>
49431
49432         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
49433         of 2.
49434         * tests/test-truncf2.c: New file.
49435         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
49436
49437         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
49438         * modules/truncf-tests: Update.
49439
49440 2007-10-11  Eric Blake  <ebb9@byu.net>
49441
49442         Don't claim strerror is broken on Interix.
49443         * doc/functions/strerror.texi (strerror): Known broken systems are
49444         now Solaris 8, and not Interix.
49445         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
49446         Interix on cross-compile.
49447         Reported by Martin Koeppe in
49448         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
49449
49450 2007-10-11  Bruno Haible  <bruno@clisp.org>
49451
49452         * modules/i-ring-tests: New file.
49453         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
49454         instead of assert.
49455
49456 2007-10-11  Bruno Haible  <bruno@clisp.org>
49457
49458         * modules/filenamecat-tests: New file.
49459         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
49460         * lib/filenamecat.c: Remove test code.
49461
49462 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49463
49464         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
49465
49466         * lib/strerror.c: Include <string.h> always, to test interface,
49467         and to remove the need for the dummy.
49468         Include intprops.h to compute width instead of doing it ourselves
49469         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
49470         (strerror): Define it to return NULL if there's no system strerror.
49471         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
49472         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
49473         ancient pre-strerror Unix systems well any more.  Saying "unknown
49474         system error" is enough.
49475         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
49476         simpler strerror.c implementation.
49477         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
49478         Simplify the tests to reflect the simpler strerror implementation.
49479         * modules/strerror (Depends-on): Add intprops.
49480
49481 2007-10-09  Eric Blake  <ebb9@byu.net>
49482
49483         Silence test-fpending.
49484         * modules/fpending-tests (Files): Add wrapper script.
49485         * tests/test-fpending.sh: New file.
49486
49487 2007-10-09  Bruno Haible  <bruno@clisp.org>
49488
49489         * MODULES.html.sh (func_module): Don't create a hyperlink for
49490         function names like 'printf_frexp'.
49491         (Misc): Add crc, memxor.
49492         (Characteristics of floating types): New section.
49493         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
49494         isnanf-nolibm, signbit, trunc, truncf, truncl.
49495         (Enhancements for ISO C 99 functions): New subsection Input/output.
49496         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
49497         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
49498         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
49499         (Compatibility checks for POSIX:2001 functions): Add clock-time.
49500         (Enhancements for POSIX:2001 functions): Add chdir-long.
49501         (File system functions): Add areadlink, chdir-safer, read-file.
49502         Remove cycle-check.
49503         (File system as inode set): New section.
49504         (Date and time): Add gethrxtime.
49505         (Multithreading): Add openmp.
49506         (Internationalization functions): Add localename.
49507         (Unicode string functions): Add unistr/u*-mbsnlen.
49508         (Support for maintaining and releasing projects): Add git-version-gen.
49509         (Lone files): Remove directories.
49510
49511 2007-10-08  Ben Pfaff  <blp@gnu.org>
49512
49513         * lib/xmalloca.h: Fix typo in comment.
49514
49515 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49516
49517         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
49518         when avoiding problems with integer overflow.  Use a portable test
49519         instead.
49520
49521 2007-10-08  Simon Josefsson  <simon@josefsson.org>
49522
49523         * modules/dummy (License): Change to LGPLv2+.
49524         * modules/float (License): Likewise
49525         * modules/realloc (License): Likewise
49526         * modules/stdlib (License): Likewise
49527
49528 2007-10-07  Bruno Haible  <bruno@clisp.org>
49529
49530         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
49531         * floor.c (TWO_MANT_DIG): Likewise.
49532         * ceil.c (TWO_MANT_DIG): Likewise.
49533         Reported by Ben Pfaff.
49534
49535 2007-10-07  Bruno Haible  <bruno@clisp.org>
49536
49537         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
49538         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
49539         * lib/frexp.c (FUNC): Likewise.
49540         * lib/printf-frexp.h (printf_frexp): Likewise.
49541         * lib/printf-frexpl.h (printf_frexpl): Likewise.
49542         * lib/printf-frexp.c (FUNC): Likewise.
49543         Suggested by Jim Meyering.
49544
49545 2007-10-07  Jim Meyering  <meyering@redhat.com>
49546
49547         Make xnanosleep's integer overflow test more robust.
49548         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
49549         so that gcc-4.3.0 doesn't optimize away this test for overflow.
49550
49551 2007-10-07  Bruno Haible  <bruno@clisp.org>
49552
49553         * NEWS: Mention the license change.
49554
49555         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
49556         abbreviations in the modules files.
49557
49558         Change copyright notice from GPLv2+ to GPLv3+.
49559         * README: Change copyright notice.
49560         * MODULES.html.sh: Likewise.
49561         * build-aux/bootstrap.conf: Likewise.
49562         * build-aux/config.libpath: Likewise.
49563         * build-aux/csharpcomp.sh.in: Likewise.
49564         * build-aux/csharpexec.sh.in: Likewise.
49565         * build-aux/install-reloc: Likewise.
49566         * build-aux/javacomp.sh.in: Likewise.
49567         * build-aux/javaexec.sh.in: Likewise.
49568         * build-aux/ldd.sh.in: Likewise.
49569         * build-aux/reloc-ldflags: Likewise.
49570         * build-aux/relocatable.sh.in: Likewise.
49571         * build-aux/x-to-1.in: Likewise.
49572         * check-module: Likewise.
49573         * config/srclistvars.sh: Likewise.
49574         * gnulib-tool: Likewise.
49575         * lib/acl-internal.h: Likewise.
49576         * lib/acl.c: Likewise.
49577         * lib/acl.h: Likewise.
49578         * lib/acl_entries.c: Likewise.
49579         * lib/areadlink-with-size.c: Likewise.
49580         * lib/areadlink.c: Likewise.
49581         * lib/areadlink.h: Likewise.
49582         * lib/argmatch.c: Likewise.
49583         * lib/argmatch.h: Likewise.
49584         * lib/argp-ba.c: Likewise.
49585         * lib/argp-eexst.c: Likewise.
49586         * lib/argp-fmtstream.c: Likewise.
49587         * lib/argp-fmtstream.h: Likewise.
49588         * lib/argp-fs-xinl.c: Likewise.
49589         * lib/argp-help.c: Likewise.
49590         * lib/argp-namefrob.h: Likewise.
49591         * lib/argp-parse.c: Likewise.
49592         * lib/argp-pin.c: Likewise.
49593         * lib/argp-pv.c: Likewise.
49594         * lib/argp-pvh.c: Likewise.
49595         * lib/argp-xinl.c: Likewise.
49596         * lib/argp.h: Likewise.
49597         * lib/at-func.c: Likewise.
49598         * lib/atanl.c: Likewise.
49599         * lib/backupfile.c: Likewise.
49600         * lib/backupfile.h: Likewise.
49601         * lib/basename.c: Likewise.
49602         * lib/binary-io.h: Likewise.
49603         * lib/byteswap.in.h: Likewise.
49604         * lib/c-stack.c: Likewise.
49605         * lib/c-stack.h: Likewise.
49606         * lib/c-strcasestr.c: Likewise.
49607         * lib/c-strcasestr.h: Likewise.
49608         * lib/c-strstr.c: Likewise.
49609         * lib/c-strstr.h: Likewise.
49610         * lib/c-strtod.c: Likewise.
49611         * lib/calloc.c: Likewise.
49612         * lib/canon-host.c: Likewise.
49613         * lib/canon-host.h: Likewise.
49614         * lib/canonicalize-lgpl.c: Likewise.
49615         * lib/canonicalize.c: Likewise.
49616         * lib/canonicalize.h: Likewise.
49617         * lib/ceil.c: Likewise.
49618         * lib/ceilf.c: Likewise.
49619         * lib/ceill.c: Likewise.
49620         * lib/chdir-long.c: Likewise.
49621         * lib/chdir-long.h: Likewise.
49622         * lib/chdir-safer.c: Likewise.
49623         * lib/chdir-safer.h: Likewise.
49624         * lib/chown.c: Likewise.
49625         * lib/classpath.c: Likewise.
49626         * lib/classpath.h: Likewise.
49627         * lib/clean-temp.c: Likewise.
49628         * lib/clean-temp.h: Likewise.
49629         * lib/cloexec.c: Likewise.
49630         * lib/close-stream.c: Likewise.
49631         * lib/closein.c: Likewise.
49632         * lib/closein.h: Likewise.
49633         * lib/closeout.c: Likewise.
49634         * lib/closeout.h: Likewise.
49635         * lib/concat-filename.c: Likewise.
49636         * lib/copy-file.c: Likewise.
49637         * lib/copy-file.h: Likewise.
49638         * lib/count-one-bits.h: Likewise.
49639         * lib/crc.c: Likewise.
49640         * lib/crc.h: Likewise.
49641         * lib/creat-safer.c: Likewise.
49642         * lib/csharpcomp.c: Likewise.
49643         * lib/csharpcomp.h: Likewise.
49644         * lib/csharpexec.c: Likewise.
49645         * lib/csharpexec.h: Likewise.
49646         * lib/cycle-check.c: Likewise.
49647         * lib/cycle-check.h: Likewise.
49648         * lib/diacrit.c: Likewise.
49649         * lib/diacrit.h: Likewise.
49650         * lib/diffseq.h: Likewise.
49651         * lib/dirchownmod.c: Likewise.
49652         * lib/dirent.in.h: Likewise.
49653         * lib/dirfd.c: Likewise.
49654         * lib/dirfd.h: Likewise.
49655         * lib/dirname.c: Likewise.
49656         * lib/dirname.h: Likewise.
49657         * lib/dummy.c: Likewise.
49658         * lib/dup-safer.c: Likewise.
49659         * lib/dup2.c: Likewise.
49660         * lib/eealloc.h: Likewise.
49661         * lib/error.c: Likewise.
49662         * lib/error.h: Likewise.
49663         * lib/euidaccess.c: Likewise.
49664         * lib/exclude.c: Likewise.
49665         * lib/exclude.h: Likewise.
49666         * lib/execute.c: Likewise.
49667         * lib/execute.h: Likewise.
49668         * lib/exitfail.c: Likewise.
49669         * lib/exitfail.h: Likewise.
49670         * lib/expl.c: Likewise.
49671         * lib/fatal-signal.c: Likewise.
49672         * lib/fatal-signal.h: Likewise.
49673         * lib/fbufmode.c: Likewise.
49674         * lib/fbufmode.h: Likewise.
49675         * lib/fchdir.c: Likewise.
49676         * lib/fchmodat.c: Likewise.
49677         * lib/fchownat.c: Likewise.
49678         * lib/fcntl--.h: Likewise.
49679         * lib/fcntl-safer.h: Likewise.
49680         * lib/fcntl.in.h: Likewise.
49681         * lib/fd-safer.c: Likewise.
49682         * lib/fflush.c: Likewise.
49683         * lib/file-has-acl.c: Likewise.
49684         * lib/file-set.c: Likewise.
49685         * lib/file-type.c: Likewise.
49686         * lib/file-type.h: Likewise.
49687         * lib/fileblocks.c: Likewise.
49688         * lib/filemode.c: Likewise.
49689         * lib/filemode.h: Likewise.
49690         * lib/filename.h: Likewise.
49691         * lib/filenamecat.c: Likewise.
49692         * lib/filenamecat.h: Likewise.
49693         * lib/findprog.c: Likewise.
49694         * lib/findprog.h: Likewise.
49695         * lib/float.in.h: Likewise.
49696         * lib/floor.c: Likewise.
49697         * lib/floorf.c: Likewise.
49698         * lib/floorl.c: Likewise.
49699         * lib/fopen-safer.c: Likewise.
49700         * lib/fopen.c: Likewise.
49701         * lib/fpending.c: Likewise.
49702         * lib/fpending.h: Likewise.
49703         * lib/fprintf.c: Likewise.
49704         * lib/fprintftime.h: Likewise.
49705         * lib/fpucw.h: Likewise.
49706         * lib/fpurge.c: Likewise.
49707         * lib/fpurge.h: Likewise.
49708         * lib/freadable.c: Likewise.
49709         * lib/freadable.h: Likewise.
49710         * lib/freadahead.c: Likewise.
49711         * lib/freadahead.h: Likewise.
49712         * lib/freading.c: Likewise.
49713         * lib/freading.h: Likewise.
49714         * lib/free.c: Likewise.
49715         * lib/freopen.c: Likewise.
49716         * lib/frexp.c: Likewise.
49717         * lib/frexpl.c: Likewise.
49718         * lib/fseek.c: Likewise.
49719         * lib/fseterr.c: Likewise.
49720         * lib/fseterr.h: Likewise.
49721         * lib/fstatat.c: Likewise.
49722         * lib/fstrcmp.c: Likewise.
49723         * lib/fstrcmp.h: Likewise.
49724         * lib/fsusage.c: Likewise.
49725         * lib/fsusage.h: Likewise.
49726         * lib/ftell.c: Likewise.
49727         * lib/ftello.c: Likewise.
49728         * lib/fts-cycle.c: Likewise.
49729         * lib/fts.c: Likewise.
49730         * lib/fts_.h: Likewise.
49731         * lib/full-read.c: Likewise.
49732         * lib/full-read.h: Likewise.
49733         * lib/full-write.c: Likewise.
49734         * lib/full-write.h: Likewise.
49735         * lib/fwritable.c: Likewise.
49736         * lib/fwritable.h: Likewise.
49737         * lib/fwriteerror.c: Likewise.
49738         * lib/fwriteerror.h: Likewise.
49739         * lib/fwriting.c: Likewise.
49740         * lib/fwriting.h: Likewise.
49741         * lib/gcd.c: Likewise.
49742         * lib/gcd.h: Likewise.
49743         * lib/getcwd.c: Likewise.
49744         * lib/getdate.h: Likewise.
49745         * lib/getdate.y: Likewise.
49746         * lib/getdomainname.c: Likewise.
49747         * lib/getdomainname.h: Likewise.
49748         * lib/getgroups.c: Likewise.
49749         * lib/gethostname.c: Likewise.
49750         * lib/gethrxtime.c: Likewise.
49751         * lib/gethrxtime.h: Likewise.
49752         * lib/getloadavg.c: Likewise.
49753         * lib/getndelim2.c: Likewise.
49754         * lib/getndelim2.h: Likewise.
49755         * lib/getnline.c: Likewise.
49756         * lib/getnline.h: Likewise.
49757         * lib/getopt.c: Likewise.
49758         * lib/getopt.in.h: Likewise.
49759         * lib/getopt1.c: Likewise.
49760         * lib/getopt_int.h: Likewise.
49761         * lib/getpagesize.h: Likewise.
49762         * lib/getsubopt.c: Likewise.
49763         * lib/gettime.c: Likewise.
49764         * lib/getugroups.c: Likewise.
49765         * lib/getugroups.h: Likewise.
49766         * lib/getusershell.c: Likewise.
49767         * lib/gl_anyavltree_list1.h: Likewise.
49768         * lib/gl_anyavltree_list2.h: Likewise.
49769         * lib/gl_anyhash_list1.h: Likewise.
49770         * lib/gl_anyhash_list2.h: Likewise.
49771         * lib/gl_anylinked_list1.h: Likewise.
49772         * lib/gl_anylinked_list2.h: Likewise.
49773         * lib/gl_anyrbtree_list1.h: Likewise.
49774         * lib/gl_anyrbtree_list2.h: Likewise.
49775         * lib/gl_anytree_list1.h: Likewise.
49776         * lib/gl_anytree_list2.h: Likewise.
49777         * lib/gl_anytree_oset.h: Likewise.
49778         * lib/gl_anytreehash_list1.h: Likewise.
49779         * lib/gl_anytreehash_list2.h: Likewise.
49780         * lib/gl_array_list.c: Likewise.
49781         * lib/gl_array_list.h: Likewise.
49782         * lib/gl_array_oset.c: Likewise.
49783         * lib/gl_array_oset.h: Likewise.
49784         * lib/gl_avltree_list.c: Likewise.
49785         * lib/gl_avltree_list.h: Likewise.
49786         * lib/gl_avltree_oset.c: Likewise.
49787         * lib/gl_avltree_oset.h: Likewise.
49788         * lib/gl_avltreehash_list.c: Likewise.
49789         * lib/gl_avltreehash_list.h: Likewise.
49790         * lib/gl_carray_list.c: Likewise.
49791         * lib/gl_carray_list.h: Likewise.
49792         * lib/gl_linked_list.c: Likewise.
49793         * lib/gl_linked_list.h: Likewise.
49794         * lib/gl_linkedhash_list.c: Likewise.
49795         * lib/gl_linkedhash_list.h: Likewise.
49796         * lib/gl_list.c: Likewise.
49797         * lib/gl_list.h: Likewise.
49798         * lib/gl_oset.c: Likewise.
49799         * lib/gl_oset.h: Likewise.
49800         * lib/gl_rbtree_list.c: Likewise.
49801         * lib/gl_rbtree_list.h: Likewise.
49802         * lib/gl_rbtree_oset.c: Likewise.
49803         * lib/gl_rbtree_oset.h: Likewise.
49804         * lib/gl_rbtreehash_list.c: Likewise.
49805         * lib/gl_rbtreehash_list.h: Likewise.
49806         * lib/gl_sublist.c: Likewise.
49807         * lib/gl_sublist.h: Likewise.
49808         * lib/group-member.c: Likewise.
49809         * lib/group-member.h: Likewise.
49810         * lib/hard-locale.c: Likewise.
49811         * lib/hard-locale.h: Likewise.
49812         * lib/hash-pjw.c: Likewise.
49813         * lib/hash-pjw.h: Likewise.
49814         * lib/hash-triple.c: Likewise.
49815         * lib/hash.c: Likewise.
49816         * lib/hash.h: Likewise.
49817         * lib/human.c: Likewise.
49818         * lib/human.h: Likewise.
49819         * lib/i-ring.c: Likewise.
49820         * lib/i-ring.h: Likewise.
49821         * lib/idcache.c: Likewise.
49822         * lib/imaxabs.c: Likewise.
49823         * lib/imaxdiv.c: Likewise.
49824         * lib/inet_pton.c: Likewise.
49825         * lib/inet_pton.h: Likewise.
49826         * lib/intprops.h: Likewise.
49827         * lib/inttostr.c: Likewise.
49828         * lib/inttostr.h: Likewise.
49829         * lib/inttypes.in.h: Likewise.
49830         * lib/isapipe.c: Likewise.
49831         * lib/isdir.c: Likewise.
49832         * lib/isnan.c: Likewise.
49833         * lib/isnan.h: Likewise.
49834         * lib/isnanf.c: Likewise.
49835         * lib/isnanf.h: Likewise.
49836         * lib/isnanl-nolibm.h: Likewise.
49837         * lib/isnanl.c: Likewise.
49838         * lib/isnanl.h: Likewise.
49839         * lib/javacomp.c: Likewise.
49840         * lib/javacomp.h: Likewise.
49841         * lib/javaexec.c: Likewise.
49842         * lib/javaexec.h: Likewise.
49843         * lib/javaversion.c: Likewise.
49844         * lib/javaversion.h: Likewise.
49845         * lib/javaversion.java: Likewise.
49846         * lib/lbrkprop.h: Likewise.
49847         * lib/lchmod.h: Likewise.
49848         * lib/lchown.c: Likewise.
49849         * lib/ldexpl.c: Likewise.
49850         * lib/linebreak.c: Likewise.
49851         * lib/linebreak.h: Likewise.
49852         * lib/linebuffer.c: Likewise.
49853         * lib/linebuffer.h: Likewise.
49854         * lib/locale.in.h: Likewise.
49855         * lib/logl.c: Likewise.
49856         * lib/long-options.c: Likewise.
49857         * lib/long-options.h: Likewise.
49858         * lib/lstat.c: Likewise.
49859         * lib/lstat.h: Likewise.
49860         * lib/math.in.h: Likewise.
49861         * lib/mbchar.c: Likewise.
49862         * lib/mbchar.h: Likewise.
49863         * lib/mbfile.h: Likewise.
49864         * lib/mbiter.h: Likewise.
49865         * lib/mbscasecmp.c: Likewise.
49866         * lib/mbscasestr.c: Likewise.
49867         * lib/mbschr.c: Likewise.
49868         * lib/mbscspn.c: Likewise.
49869         * lib/mbslen.c: Likewise.
49870         * lib/mbsncasecmp.c: Likewise.
49871         * lib/mbsnlen.c: Likewise.
49872         * lib/mbspbrk.c: Likewise.
49873         * lib/mbspcasecmp.c: Likewise.
49874         * lib/mbsrchr.c: Likewise.
49875         * lib/mbssep.c: Likewise.
49876         * lib/mbsspn.c: Likewise.
49877         * lib/mbsstr.c: Likewise.
49878         * lib/mbstok_r.c: Likewise.
49879         * lib/mbswidth.c: Likewise.
49880         * lib/mbswidth.h: Likewise.
49881         * lib/mbuiter.h: Likewise.
49882         * lib/memcasecmp.c: Likewise.
49883         * lib/memcasecmp.h: Likewise.
49884         * lib/memchr.c: Likewise.
49885         * lib/memcmp.c: Likewise.
49886         * lib/memcoll.c: Likewise.
49887         * lib/memcoll.h: Likewise.
49888         * lib/memcpy.c: Likewise.
49889         * lib/memrchr.c: Likewise.
49890         * lib/mkancesdirs.c: Likewise.
49891         * lib/mkdir-p.c: Likewise.
49892         * lib/mkdir-p.h: Likewise.
49893         * lib/mkdir.c: Likewise.
49894         * lib/mkdirat.c: Likewise.
49895         * lib/mkdtemp.c: Likewise.
49896         * lib/mkstemp-safer.c: Likewise.
49897         * lib/mkstemp.c: Likewise.
49898         * lib/modechange.c: Likewise.
49899         * lib/modechange.h: Likewise.
49900         * lib/mountlist.c: Likewise.
49901         * lib/mountlist.h: Likewise.
49902         * lib/mpsort.c: Likewise.
49903         * lib/nanosleep.c: Likewise.
49904         * lib/obstack.c: Likewise.
49905         * lib/obstack.h: Likewise.
49906         * lib/open-safer.c: Likewise.
49907         * lib/open.c: Likewise.
49908         * lib/openat-die.c: Likewise.
49909         * lib/openat-priv.h: Likewise.
49910         * lib/openat-proc.c: Likewise.
49911         * lib/openat.c: Likewise.
49912         * lib/openat.h: Likewise.
49913         * lib/pagealign_alloc.c: Likewise.
49914         * lib/pagealign_alloc.h: Likewise.
49915         * lib/physmem.c: Likewise.
49916         * lib/physmem.h: Likewise.
49917         * lib/pipe-safer.c: Likewise.
49918         * lib/pipe.c: Likewise.
49919         * lib/pipe.h: Likewise.
49920         * lib/posixtm.c: Likewise.
49921         * lib/posixtm.h: Likewise.
49922         * lib/posixver.c: Likewise.
49923         * lib/printf-frexp.c: Likewise.
49924         * lib/printf-frexp.h: Likewise.
49925         * lib/printf-frexpl.c: Likewise.
49926         * lib/printf-frexpl.h: Likewise.
49927         * lib/printf.c: Likewise.
49928         * lib/progname.c: Likewise.
49929         * lib/progname.h: Likewise.
49930         * lib/progreloc.c: Likewise.
49931         * lib/putenv.c: Likewise.
49932         * lib/quote.c: Likewise.
49933         * lib/quote.h: Likewise.
49934         * lib/quotearg.c: Likewise.
49935         * lib/quotearg.h: Likewise.
49936         * lib/raise.c: Likewise.
49937         * lib/readline.c: Likewise.
49938         * lib/readline.h: Likewise.
49939         * lib/readlink.c: Likewise.
49940         * lib/readtokens.c: Likewise.
49941         * lib/readtokens.h: Likewise.
49942         * lib/readtokens0.c: Likewise.
49943         * lib/readtokens0.h: Likewise.
49944         * lib/readutmp.c: Likewise.
49945         * lib/readutmp.h: Likewise.
49946         * lib/realloc.c: Likewise.
49947         * lib/relocwrapper.c: Likewise.
49948         * lib/rename-dest-slash.c: Likewise.
49949         * lib/rename.c: Likewise.
49950         * lib/rmdir.c: Likewise.
49951         * lib/rpmatch.c: Likewise.
49952         * lib/safe-read.c: Likewise.
49953         * lib/safe-read.h: Likewise.
49954         * lib/safe-write.c: Likewise.
49955         * lib/safe-write.h: Likewise.
49956         * lib/same-inode.h: Likewise.
49957         * lib/same.c: Likewise.
49958         * lib/same.h: Likewise.
49959         * lib/save-cwd.c: Likewise.
49960         * lib/save-cwd.h: Likewise.
49961         * lib/savedir.c: Likewise.
49962         * lib/savedir.h: Likewise.
49963         * lib/savewd.c: Likewise.
49964         * lib/savewd.h: Likewise.
49965         * lib/search.in.h: Likewise.
49966         * lib/setenv.c: Likewise.
49967         * lib/setenv.h: Likewise.
49968         * lib/settime.c: Likewise.
49969         * lib/sh-quote.c: Likewise.
49970         * lib/sh-quote.h: Likewise.
49971         * lib/sig2str.c: Likewise.
49972         * lib/sig2str.h: Likewise.
49973         * lib/signal.in.h: Likewise.
49974         * lib/signbitd.c: Likewise.
49975         * lib/signbitf.c: Likewise.
49976         * lib/signbitl.c: Likewise.
49977         * lib/sigprocmask.c: Likewise.
49978         * lib/sincosl.c: Likewise.
49979         * lib/sleep.c: Likewise.
49980         * lib/sprintf.c: Likewise.
49981         * lib/sqrtl.c: Likewise.
49982         * lib/stat-time.h: Likewise.
49983         * lib/stdio--.h: Likewise.
49984         * lib/stdio-safer.h: Likewise.
49985         * lib/stdlib--.h: Likewise.
49986         * lib/stdlib-safer.h: Likewise.
49987         * lib/stdlib.in.h: Likewise.
49988         * lib/stpcpy.c: Likewise.
49989         * lib/stpncpy.c: Likewise.
49990         * lib/strchrnul.c: Likewise.
49991         * lib/strcspn.c: Likewise.
49992         * lib/strerror.c: Likewise.
49993         * lib/strftime.c: Likewise.
49994         * lib/strftime.h: Likewise.
49995         * lib/striconveh.c: Likewise.
49996         * lib/striconveh.h: Likewise.
49997         * lib/striconveha.c: Likewise.
49998         * lib/striconveha.h: Likewise.
49999         * lib/stripslash.c: Likewise.
50000         * lib/strnlen1.c: Likewise.
50001         * lib/strnlen1.h: Likewise.
50002         * lib/strtod.c: Likewise.
50003         * lib/strtoimax.c: Likewise.
50004         * lib/strtok_r.c: Likewise.
50005         * lib/strtol.c: Likewise.
50006         * lib/strtoll.c: Likewise.
50007         * lib/strtoul.c: Likewise.
50008         * lib/strtoull.c: Likewise.
50009         * lib/sysexits.in.h: Likewise.
50010         * lib/tempname.c: Likewise.
50011         * lib/tempname.h: Likewise.
50012         * lib/timespec.h: Likewise.
50013         * lib/tls.c: Likewise.
50014         * lib/tls.h: Likewise.
50015         * lib/tmpdir.c: Likewise.
50016         * lib/tmpdir.h: Likewise.
50017         * lib/tmpfile-safer.c: Likewise.
50018         * lib/tmpfile.c: Likewise.
50019         * lib/trigl.c: Likewise.
50020         * lib/trigl.h: Likewise.
50021         * lib/trim.c: Likewise.
50022         * lib/trim.h: Likewise.
50023         * lib/trunc.c: Likewise.
50024         * lib/truncf.c: Likewise.
50025         * lib/truncl.c: Likewise.
50026         * lib/tsearch.c: Likewise.
50027         * lib/unicodeio.c: Likewise.
50028         * lib/unicodeio.h: Likewise.
50029         * lib/unistd--.h: Likewise.
50030         * lib/unistd-safer.h: Likewise.
50031         * lib/unistdio/ulc-fprintf.c: Likewise.
50032         * lib/unistdio/ulc-vfprintf.c: Likewise.
50033         * lib/unlinkdir.c: Likewise.
50034         * lib/unlinkdir.h: Likewise.
50035         * lib/unlocked-io.h: Likewise.
50036         * lib/unsetenv.c: Likewise.
50037         * lib/userspec.c: Likewise.
50038         * lib/utime.c: Likewise.
50039         * lib/utimecmp.c: Likewise.
50040         * lib/utimecmp.h: Likewise.
50041         * lib/utimens.c: Likewise.
50042         * lib/verify.h: Likewise.
50043         * lib/verror.c: Likewise.
50044         * lib/verror.h: Likewise.
50045         * lib/version-etc-fsf.c: Likewise.
50046         * lib/version-etc.c: Likewise.
50047         * lib/version-etc.h: Likewise.
50048         * lib/vfprintf.c: Likewise.
50049         * lib/vprintf.c: Likewise.
50050         * lib/vsprintf.c: Likewise.
50051         * lib/w32spawn.h: Likewise.
50052         * lib/wait-process.c: Likewise.
50053         * lib/wait-process.h: Likewise.
50054         * lib/wcwidth.c: Likewise.
50055         * lib/write-any-file.c: Likewise.
50056         * lib/xalloc-die.c: Likewise.
50057         * lib/xalloc.h: Likewise.
50058         * lib/xasprintf.c: Likewise.
50059         * lib/xgetcwd.c: Likewise.
50060         * lib/xgetcwd.h: Likewise.
50061         * lib/xgetdomainname.c: Likewise.
50062         * lib/xgetdomainname.h: Likewise.
50063         * lib/xgethostname.c: Likewise.
50064         * lib/xmalloc.c: Likewise.
50065         * lib/xmalloca.c: Likewise.
50066         * lib/xmalloca.h: Likewise.
50067         * lib/xmemcoll.c: Likewise.
50068         * lib/xnanosleep.c: Likewise.
50069         * lib/xreadlink.c: Likewise.
50070         * lib/xreadlink.h: Likewise.
50071         * lib/xsetenv.c: Likewise.
50072         * lib/xsetenv.h: Likewise.
50073         * lib/xstriconv.c: Likewise.
50074         * lib/xstriconv.h: Likewise.
50075         * lib/xstrndup.c: Likewise.
50076         * lib/xstrndup.h: Likewise.
50077         * lib/xstrtod.c: Likewise.
50078         * lib/xstrtod.h: Likewise.
50079         * lib/xstrtol-error.c: Likewise.
50080         * lib/xstrtol.c: Likewise.
50081         * lib/xstrtol.h: Likewise.
50082         * lib/xtime.h: Likewise.
50083         * lib/xvasprintf.c: Likewise.
50084         * lib/xvasprintf.h: Likewise.
50085         * lib/yesno.c: Likewise.
50086         * lib/yesno.h: Likewise.
50087         * posix-modules: Likewise.
50088         * tests/test-alloca-opt.c: Likewise.
50089         * tests/test-arcfour.c: Likewise.
50090         * tests/test-arctwo.c: Likewise.
50091         * tests/test-argmatch.c: Likewise.
50092         * tests/test-argp-2.sh: Likewise.
50093         * tests/test-argp.c: Likewise.
50094         * tests/test-arpa_inet.c: Likewise.
50095         * tests/test-array_list.c: Likewise.
50096         * tests/test-array_oset.c: Likewise.
50097         * tests/test-atexit.c: Likewise.
50098         * tests/test-avltree_list.c: Likewise.
50099         * tests/test-avltree_oset.c: Likewise.
50100         * tests/test-avltreehash_list.c: Likewise.
50101         * tests/test-base64.c: Likewise.
50102         * tests/test-binary-io.c: Likewise.
50103         * tests/test-byteswap.c: Likewise.
50104         * tests/test-c-ctype.c: Likewise.
50105         * tests/test-c-strcasecmp.c: Likewise.
50106         * tests/test-c-strcasestr.c: Likewise.
50107         * tests/test-c-strncasecmp.c: Likewise.
50108         * tests/test-c-strstr.c: Likewise.
50109         * tests/test-canonicalize-lgpl.c: Likewise.
50110         * tests/test-canonicalize.c: Likewise.
50111         * tests/test-carray_list.c: Likewise.
50112         * tests/test-ceilf.c: Likewise.
50113         * tests/test-ceill.c: Likewise.
50114         * tests/test-count-one-bits.c: Likewise.
50115         * tests/test-crc.c: Likewise.
50116         * tests/test-dirname.c: Likewise.
50117         * tests/test-fbufmode.c: Likewise.
50118         * tests/test-fcntl.c: Likewise.
50119         * tests/test-fflush.c: Likewise.
50120         * tests/test-floorf.c: Likewise.
50121         * tests/test-floorl.c: Likewise.
50122         * tests/test-fopen.c: Likewise.
50123         * tests/test-fprintf-posix.c: Likewise.
50124         * tests/test-fprintf-posix.h: Likewise.
50125         * tests/test-fpurge.c: Likewise.
50126         * tests/test-freadable.c: Likewise.
50127         * tests/test-freadahead.c: Likewise.
50128         * tests/test-freading.c: Likewise.
50129         * tests/test-freopen.c: Likewise.
50130         * tests/test-frexp.c: Likewise.
50131         * tests/test-frexpl.c: Likewise.
50132         * tests/test-fseek.c: Likewise.
50133         * tests/test-fseeko.c: Likewise.
50134         * tests/test-fseterr.c: Likewise.
50135         * tests/test-fstrcmp.c: Likewise.
50136         * tests/test-ftell.c: Likewise.
50137         * tests/test-ftello.c: Likewise.
50138         * tests/test-fwritable.c: Likewise.
50139         * tests/test-fwriting.c: Likewise.
50140         * tests/test-getaddrinfo.c: Likewise.
50141         * tests/test-getpass.c: Likewise.
50142         * tests/test-gettimeofday.c: Likewise.
50143         * tests/test-hmac-md5.c: Likewise.
50144         * tests/test-hmac-sha1.c: Likewise.
50145         * tests/test-iconv.c: Likewise.
50146         * tests/test-iconvme.c: Likewise.
50147         * tests/test-inttypes.c: Likewise.
50148         * tests/test-isnan.c: Likewise.
50149         * tests/test-isnanf.c: Likewise.
50150         * tests/test-isnanl-nolibm.c: Likewise.
50151         * tests/test-isnanl.c: Likewise.
50152         * tests/test-isnanl.h: Likewise.
50153         * tests/test-ldexpl.c: Likewise.
50154         * tests/test-linked_list.c: Likewise.
50155         * tests/test-linkedhash_list.c: Likewise.
50156         * tests/test-locale.c: Likewise.
50157         * tests/test-localename.c: Likewise.
50158         * tests/test-lock.c: Likewise.
50159         * tests/test-lseek.c: Likewise.
50160         * tests/test-malloca.c: Likewise.
50161         * tests/test-math.c: Likewise.
50162         * tests/test-mbscasecmp.c: Likewise.
50163         * tests/test-mbscasestr1.c: Likewise.
50164         * tests/test-mbscasestr2.c: Likewise.
50165         * tests/test-mbscasestr3.c: Likewise.
50166         * tests/test-mbscasestr4.c: Likewise.
50167         * tests/test-mbschr.c: Likewise.
50168         * tests/test-mbscspn.c: Likewise.
50169         * tests/test-mbsncasecmp.c: Likewise.
50170         * tests/test-mbspbrk.c: Likewise.
50171         * tests/test-mbspcasecmp.c: Likewise.
50172         * tests/test-mbsrchr.c: Likewise.
50173         * tests/test-mbsspn.c: Likewise.
50174         * tests/test-mbsstr1.c: Likewise.
50175         * tests/test-mbsstr2.c: Likewise.
50176         * tests/test-mbsstr3.c: Likewise.
50177         * tests/test-md5.c: Likewise.
50178         * tests/test-memmem.c: Likewise.
50179         * tests/test-netinet_in.c: Likewise.
50180         * tests/test-open.c: Likewise.
50181         * tests/test-printf-frexp.c: Likewise.
50182         * tests/test-printf-frexpl.c: Likewise.
50183         * tests/test-printf-posix.c: Likewise.
50184         * tests/test-printf-posix.h: Likewise.
50185         * tests/test-rbtree_list.c: Likewise.
50186         * tests/test-rbtree_oset.c: Likewise.
50187         * tests/test-rbtreehash_list.c: Likewise.
50188         * tests/test-read-file.c: Likewise.
50189         * tests/test-rijndael.c: Likewise.
50190         * tests/test-search.c: Likewise.
50191         * tests/test-signbit.c: Likewise.
50192         * tests/test-sleep.c: Likewise.
50193         * tests/test-snprintf-posix.c: Likewise.
50194         * tests/test-snprintf-posix.h: Likewise.
50195         * tests/test-snprintf.c: Likewise.
50196         * tests/test-sprintf-posix.c: Likewise.
50197         * tests/test-sprintf-posix.h: Likewise.
50198         * tests/test-stat-time.c: Likewise.
50199         * tests/test-stdbool.c: Likewise.
50200         * tests/test-stdint.c: Likewise.
50201         * tests/test-stdio.c: Likewise.
50202         * tests/test-stdlib.c: Likewise.
50203         * tests/test-stpncpy.c: Likewise.
50204         * tests/test-strcasestr.c: Likewise.
50205         * tests/test-striconv.c: Likewise.
50206         * tests/test-striconveh.c: Likewise.
50207         * tests/test-striconveha.c: Likewise.
50208         * tests/test-string.c: Likewise.
50209         * tests/test-sys_select.c: Likewise.
50210         * tests/test-sys_socket.c: Likewise.
50211         * tests/test-sys_stat.c: Likewise.
50212         * tests/test-sys_time.c: Likewise.
50213         * tests/test-sysexits.c: Likewise.
50214         * tests/test-time.c: Likewise.
50215         * tests/test-tls.c: Likewise.
50216         * tests/test-trunc.c: Likewise.
50217         * tests/test-truncf.c: Likewise.
50218         * tests/test-truncl.c: Likewise.
50219         * tests/test-unistd.c: Likewise.
50220         * tests/test-vasnprintf-posix.c: Likewise.
50221         * tests/test-vasnprintf-posix2.c: Likewise.
50222         * tests/test-vasnprintf.c: Likewise.
50223         * tests/test-vasprintf-posix.c: Likewise.
50224         * tests/test-vasprintf.c: Likewise.
50225         * tests/test-verify.c: Likewise.
50226         * tests/test-vfprintf-posix.c: Likewise.
50227         * tests/test-vprintf-posix.c: Likewise.
50228         * tests/test-vsnprintf-posix.c: Likewise.
50229         * tests/test-vsnprintf.c: Likewise.
50230         * tests/test-vsprintf-posix.c: Likewise.
50231         * tests/test-wchar.c: Likewise.
50232         * tests/test-wctype.c: Likewise.
50233         * tests/test-wcwidth.c: Likewise.
50234         * tests/test-xstrtol.c: Likewise.
50235         * tests/test-xvasprintf.c: Likewise.
50236         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
50237         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
50238         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50239         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50240         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50241         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
50242         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50243         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50244         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50245         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
50246         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50247         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50248         * tests/uniname/test-uninames.c: Likewise.
50249         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
50250         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
50251         * tests/unistdio/test-u16-printf1.h: Likewise.
50252         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
50253         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
50254         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
50255         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
50256         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
50257         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
50258         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
50259         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
50260         * tests/unistdio/test-u32-printf1.h: Likewise.
50261         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
50262         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
50263         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
50264         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
50265         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
50266         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
50267         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
50268         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
50269         * tests/unistdio/test-u8-printf1.h: Likewise.
50270         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
50271         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
50272         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
50273         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
50274         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
50275         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
50276         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
50277         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
50278         * tests/unistdio/test-ulc-printf1.h: Likewise.
50279         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
50280         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
50281         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
50282         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
50283         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
50284         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
50285         * tests/uniwidth/test-u16-strwidth.c: Likewise.
50286         * tests/uniwidth/test-u16-width.c: Likewise.
50287         * tests/uniwidth/test-u32-strwidth.c: Likewise.
50288         * tests/uniwidth/test-u32-width.c: Likewise.
50289         * tests/uniwidth/test-u8-strwidth.c: Likewise.
50290         * tests/uniwidth/test-u8-width.c: Likewise.
50291         * tests/uniwidth/test-uc_width.c: Likewise.
50292         * config/srclist-update: Likewise.
50293         (fixlicense): Update to GPLv3+.
50294
50295         Change copyright notice from LGPLv2.1+ to LGPLv3+.
50296         * tests/test-tsearch.c: Change copyright notice.
50297
50298         Change copyright notice from LGPLv2.0+ to LGPLv3+.
50299         * lib/c-strcaseeq.h: Change copyright notice.
50300         * lib/streq.h: Likewise.
50301         * lib/uniconv.h: Likewise.
50302         * lib/uniconv/u-conv-from-enc.h: Likewise.
50303         * lib/uniconv/u-conv-to-enc.h: Likewise.
50304         * lib/uniconv/u-strconv-from-enc.h: Likewise.
50305         * lib/uniconv/u-strconv-to-enc.h: Likewise.
50306         * lib/uniconv/u16-conv-from-enc.c: Likewise.
50307         * lib/uniconv/u16-conv-to-enc.c: Likewise.
50308         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
50309         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
50310         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
50311         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
50312         * lib/uniconv/u32-conv-from-enc.c: Likewise.
50313         * lib/uniconv/u32-conv-to-enc.c: Likewise.
50314         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
50315         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
50316         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
50317         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
50318         * lib/uniconv/u8-conv-from-enc.c: Likewise.
50319         * lib/uniconv/u8-conv-to-enc.c: Likewise.
50320         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
50321         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
50322         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
50323         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
50324         * lib/uniname.h: Likewise.
50325         * lib/uniname/uniname.c: Likewise.
50326         * lib/unistdio.h: Likewise.
50327         * lib/unistdio/u-asnprintf.h: Likewise.
50328         * lib/unistdio/u-asprintf.h: Likewise.
50329         * lib/unistdio/u-printf-args.c: Likewise.
50330         * lib/unistdio/u-printf-args.h: Likewise.
50331         * lib/unistdio/u-printf-parse.h: Likewise.
50332         * lib/unistdio/u-snprintf.h: Likewise.
50333         * lib/unistdio/u-sprintf.h: Likewise.
50334         * lib/unistdio/u-vasprintf.h: Likewise.
50335         * lib/unistdio/u-vsnprintf.h: Likewise.
50336         * lib/unistdio/u-vsprintf.h: Likewise.
50337         * lib/unistdio/u16-asnprintf.c: Likewise.
50338         * lib/unistdio/u16-asprintf.c: Likewise.
50339         * lib/unistdio/u16-printf-parse.c: Likewise.
50340         * lib/unistdio/u16-snprintf.c: Likewise.
50341         * lib/unistdio/u16-sprintf.c: Likewise.
50342         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
50343         * lib/unistdio/u16-u16-asprintf.c: Likewise.
50344         * lib/unistdio/u16-u16-snprintf.c: Likewise.
50345         * lib/unistdio/u16-u16-sprintf.c: Likewise.
50346         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
50347         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
50348         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
50349         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
50350         * lib/unistdio/u16-vasnprintf.c: Likewise.
50351         * lib/unistdio/u16-vasprintf.c: Likewise.
50352         * lib/unistdio/u16-vsnprintf.c: Likewise.
50353         * lib/unistdio/u16-vsprintf.c: Likewise.
50354         * lib/unistdio/u32-asnprintf.c: Likewise.
50355         * lib/unistdio/u32-asprintf.c: Likewise.
50356         * lib/unistdio/u32-printf-parse.c: Likewise.
50357         * lib/unistdio/u32-snprintf.c: Likewise.
50358         * lib/unistdio/u32-sprintf.c: Likewise.
50359         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
50360         * lib/unistdio/u32-u32-asprintf.c: Likewise.
50361         * lib/unistdio/u32-u32-snprintf.c: Likewise.
50362         * lib/unistdio/u32-u32-sprintf.c: Likewise.
50363         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
50364         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
50365         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
50366         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
50367         * lib/unistdio/u32-vasnprintf.c: Likewise.
50368         * lib/unistdio/u32-vasprintf.c: Likewise.
50369         * lib/unistdio/u32-vsnprintf.c: Likewise.
50370         * lib/unistdio/u32-vsprintf.c: Likewise.
50371         * lib/unistdio/u8-asnprintf.c: Likewise.
50372         * lib/unistdio/u8-asprintf.c: Likewise.
50373         * lib/unistdio/u8-printf-parse.c: Likewise.
50374         * lib/unistdio/u8-snprintf.c: Likewise.
50375         * lib/unistdio/u8-sprintf.c: Likewise.
50376         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
50377         * lib/unistdio/u8-u8-asprintf.c: Likewise.
50378         * lib/unistdio/u8-u8-snprintf.c: Likewise.
50379         * lib/unistdio/u8-u8-sprintf.c: Likewise.
50380         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
50381         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
50382         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
50383         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
50384         * lib/unistdio/u8-vasnprintf.c: Likewise.
50385         * lib/unistdio/u8-vasprintf.c: Likewise.
50386         * lib/unistdio/u8-vsnprintf.c: Likewise.
50387         * lib/unistdio/u8-vsprintf.c: Likewise.
50388         * lib/unistdio/ulc-asnprintf.c: Likewise.
50389         * lib/unistdio/ulc-asprintf.c: Likewise.
50390         * lib/unistdio/ulc-printf-parse.c: Likewise.
50391         * lib/unistdio/ulc-snprintf.c: Likewise.
50392         * lib/unistdio/ulc-sprintf.c: Likewise.
50393         * lib/unistdio/ulc-vasnprintf.c: Likewise.
50394         * lib/unistdio/ulc-vasprintf.c: Likewise.
50395         * lib/unistdio/ulc-vsnprintf.c: Likewise.
50396         * lib/unistdio/ulc-vsprintf.c: Likewise.
50397         * lib/unistr.h: Likewise.
50398         * lib/unistr/u-cpy-alloc.h: Likewise.
50399         * lib/unistr/u-cpy.h: Likewise.
50400         * lib/unistr/u-endswith.h: Likewise.
50401         * lib/unistr/u-move.h: Likewise.
50402         * lib/unistr/u-set.h: Likewise.
50403         * lib/unistr/u-startswith.h: Likewise.
50404         * lib/unistr/u-stpcpy.h: Likewise.
50405         * lib/unistr/u-stpncpy.h: Likewise.
50406         * lib/unistr/u-strcat.h: Likewise.
50407         * lib/unistr/u-strcpy.h: Likewise.
50408         * lib/unistr/u-strcspn.h: Likewise.
50409         * lib/unistr/u-strdup.h: Likewise.
50410         * lib/unistr/u-strlen.h: Likewise.
50411         * lib/unistr/u-strncat.h: Likewise.
50412         * lib/unistr/u-strncpy.h: Likewise.
50413         * lib/unistr/u-strnlen.h: Likewise.
50414         * lib/unistr/u-strpbrk.h: Likewise.
50415         * lib/unistr/u-strspn.h: Likewise.
50416         * lib/unistr/u-strstr.h: Likewise.
50417         * lib/unistr/u-strtok.h: Likewise.
50418         * lib/unistr/u16-check.c: Likewise.
50419         * lib/unistr/u16-chr.c: Likewise.
50420         * lib/unistr/u16-cmp.c: Likewise.
50421         * lib/unistr/u16-cpy-alloc.c: Likewise.
50422         * lib/unistr/u16-cpy.c: Likewise.
50423         * lib/unistr/u16-endswith.c: Likewise.
50424         * lib/unistr/u16-mblen.c: Likewise.
50425         * lib/unistr/u16-mbsnlen.c: Likewise.
50426         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50427         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50428         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50429         * lib/unistr/u16-mbtouc.c: Likewise.
50430         * lib/unistr/u16-mbtoucr.c: Likewise.
50431         * lib/unistr/u16-move.c: Likewise.
50432         * lib/unistr/u16-next.c: Likewise.
50433         * lib/unistr/u16-prev.c: Likewise.
50434         * lib/unistr/u16-set.c: Likewise.
50435         * lib/unistr/u16-startswith.c: Likewise.
50436         * lib/unistr/u16-stpcpy.c: Likewise.
50437         * lib/unistr/u16-stpncpy.c: Likewise.
50438         * lib/unistr/u16-strcat.c: Likewise.
50439         * lib/unistr/u16-strchr.c: Likewise.
50440         * lib/unistr/u16-strcmp.c: Likewise.
50441         * lib/unistr/u16-strcpy.c: Likewise.
50442         * lib/unistr/u16-strcspn.c: Likewise.
50443         * lib/unistr/u16-strdup.c: Likewise.
50444         * lib/unistr/u16-strlen.c: Likewise.
50445         * lib/unistr/u16-strmblen.c: Likewise.
50446         * lib/unistr/u16-strmbtouc.c: Likewise.
50447         * lib/unistr/u16-strncat.c: Likewise.
50448         * lib/unistr/u16-strncmp.c: Likewise.
50449         * lib/unistr/u16-strncpy.c: Likewise.
50450         * lib/unistr/u16-strnlen.c: Likewise.
50451         * lib/unistr/u16-strpbrk.c: Likewise.
50452         * lib/unistr/u16-strrchr.c: Likewise.
50453         * lib/unistr/u16-strspn.c: Likewise.
50454         * lib/unistr/u16-strstr.c: Likewise.
50455         * lib/unistr/u16-strtok.c: Likewise.
50456         * lib/unistr/u16-to-u32.c: Likewise.
50457         * lib/unistr/u16-to-u8.c: Likewise.
50458         * lib/unistr/u16-uctomb-aux.c: Likewise.
50459         * lib/unistr/u16-uctomb.c: Likewise.
50460         * lib/unistr/u32-check.c: Likewise.
50461         * lib/unistr/u32-chr.c: Likewise.
50462         * lib/unistr/u32-cmp.c: Likewise.
50463         * lib/unistr/u32-cpy-alloc.c: Likewise.
50464         * lib/unistr/u32-cpy.c: Likewise.
50465         * lib/unistr/u32-endswith.c: Likewise.
50466         * lib/unistr/u32-mblen.c: Likewise.
50467         * lib/unistr/u32-mbsnlen.c: Likewise.
50468         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50469         * lib/unistr/u32-mbtouc.c: Likewise.
50470         * lib/unistr/u32-mbtoucr.c: Likewise.
50471         * lib/unistr/u32-move.c: Likewise.
50472         * lib/unistr/u32-next.c: Likewise.
50473         * lib/unistr/u32-prev.c: Likewise.
50474         * lib/unistr/u32-set.c: Likewise.
50475         * lib/unistr/u32-startswith.c: Likewise.
50476         * lib/unistr/u32-stpcpy.c: Likewise.
50477         * lib/unistr/u32-stpncpy.c: Likewise.
50478         * lib/unistr/u32-strcat.c: Likewise.
50479         * lib/unistr/u32-strchr.c: Likewise.
50480         * lib/unistr/u32-strcmp.c: Likewise.
50481         * lib/unistr/u32-strcpy.c: Likewise.
50482         * lib/unistr/u32-strcspn.c: Likewise.
50483         * lib/unistr/u32-strdup.c: Likewise.
50484         * lib/unistr/u32-strlen.c: Likewise.
50485         * lib/unistr/u32-strmblen.c: Likewise.
50486         * lib/unistr/u32-strmbtouc.c: Likewise.
50487         * lib/unistr/u32-strncat.c: Likewise.
50488         * lib/unistr/u32-strncmp.c: Likewise.
50489         * lib/unistr/u32-strncpy.c: Likewise.
50490         * lib/unistr/u32-strnlen.c: Likewise.
50491         * lib/unistr/u32-strpbrk.c: Likewise.
50492         * lib/unistr/u32-strrchr.c: Likewise.
50493         * lib/unistr/u32-strspn.c: Likewise.
50494         * lib/unistr/u32-strstr.c: Likewise.
50495         * lib/unistr/u32-strtok.c: Likewise.
50496         * lib/unistr/u32-to-u16.c: Likewise.
50497         * lib/unistr/u32-to-u8.c: Likewise.
50498         * lib/unistr/u32-uctomb.c: Likewise.
50499         * lib/unistr/u8-check.c: Likewise.
50500         * lib/unistr/u8-chr.c: Likewise.
50501         * lib/unistr/u8-cmp.c: Likewise.
50502         * lib/unistr/u8-cpy-alloc.c: Likewise.
50503         * lib/unistr/u8-cpy.c: Likewise.
50504         * lib/unistr/u8-endswith.c: Likewise.
50505         * lib/unistr/u8-mblen.c: Likewise.
50506         * lib/unistr/u8-mbsnlen.c: Likewise.
50507         * lib/unistr/u8-mbtouc-aux.c: Likewise.
50508         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50509         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50510         * lib/unistr/u8-mbtouc.c: Likewise.
50511         * lib/unistr/u8-mbtoucr.c: Likewise.
50512         * lib/unistr/u8-move.c: Likewise.
50513         * lib/unistr/u8-next.c: Likewise.
50514         * lib/unistr/u8-prev.c: Likewise.
50515         * lib/unistr/u8-set.c: Likewise.
50516         * lib/unistr/u8-startswith.c: Likewise.
50517         * lib/unistr/u8-stpcpy.c: Likewise.
50518         * lib/unistr/u8-stpncpy.c: Likewise.
50519         * lib/unistr/u8-strcat.c: Likewise.
50520         * lib/unistr/u8-strchr.c: Likewise.
50521         * lib/unistr/u8-strcmp.c: Likewise.
50522         * lib/unistr/u8-strcpy.c: Likewise.
50523         * lib/unistr/u8-strcspn.c: Likewise.
50524         * lib/unistr/u8-strdup.c: Likewise.
50525         * lib/unistr/u8-strlen.c: Likewise.
50526         * lib/unistr/u8-strmblen.c: Likewise.
50527         * lib/unistr/u8-strmbtouc.c: Likewise.
50528         * lib/unistr/u8-strncat.c: Likewise.
50529         * lib/unistr/u8-strncmp.c: Likewise.
50530         * lib/unistr/u8-strncpy.c: Likewise.
50531         * lib/unistr/u8-strnlen.c: Likewise.
50532         * lib/unistr/u8-strpbrk.c: Likewise.
50533         * lib/unistr/u8-strrchr.c: Likewise.
50534         * lib/unistr/u8-strspn.c: Likewise.
50535         * lib/unistr/u8-strstr.c: Likewise.
50536         * lib/unistr/u8-strtok.c: Likewise.
50537         * lib/unistr/u8-to-u16.c: Likewise.
50538         * lib/unistr/u8-to-u32.c: Likewise.
50539         * lib/unistr/u8-uctomb-aux.c: Likewise.
50540         * lib/unistr/u8-uctomb.c: Likewise.
50541         * lib/unitypes.h: Likewise.
50542         * lib/uniwidth.h: Likewise.
50543         * lib/uniwidth/cjk.h: Likewise.
50544         * lib/uniwidth/u16-strwidth.c: Likewise.
50545         * lib/uniwidth/u16-width.c: Likewise.
50546         * lib/uniwidth/u32-strwidth.c: Likewise.
50547         * lib/uniwidth/u32-width.c: Likewise.
50548         * lib/uniwidth/u8-strwidth.c: Likewise.
50549         * lib/uniwidth/u8-width.c: Likewise.
50550         * lib/uniwidth/width.c: Likewise.
50551
50552 2007-10-07  Bruno Haible  <bruno@clisp.org>
50553
50554         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
50555         The file is still under LGPL (see modules/inttypes).
50556
50557 2007-10-06  Bruno Haible  <bruno@clisp.org>
50558
50559         * modules/trunc (Dependencies): Add 'extensions'.
50560         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
50561         Reported by Ben Pfaff <blp@gnu.org>.
50562
50563 2007-10-06  Bruno Haible  <bruno@clisp.org>
50564
50565         * modules/freopen-tests: New file.
50566         * tests/test-freopen.c: New file.
50567
50568         * modules/fopen-tests: New file.
50569         * tests/test-fopen.c: New file.
50570
50571         * modules/fopen: New file.
50572         * lib/fopen.c: New file.
50573         * m4/fopen.m4: New file.
50574         * modules/freopen: New file.
50575         * lib/freopen.c: New file.
50576         * m4/freopen.m4: New file.
50577         * lib/stdio.in.h (fopen, freopen): New declarations.
50578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
50579         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50580         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
50581         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50582         * doc/functions/fopen.texi: Mention the 'fopen' module.
50583         * doc/functions/freopen.texi: Mention the 'freopen' module.
50584
50585 2007-10-06  Bruno Haible  <bruno@clisp.org>
50586
50587         * modules/open-tests: New file.
50588         * tests/test-open.c: New file.
50589
50590         * modules/open: New file.
50591         * lib/open.c: New file.
50592         * m4/open.m4: New file.
50593         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
50594         lib/open.c does.
50595         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
50596         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
50597         macros.
50598         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
50599         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
50600         REPLACE_OPEN.
50601         * doc/functions/open.texi: Mention the 'open' module.
50602
50603 2007-10-04  Bruno Haible  <bruno@clisp.org>
50604
50605         * modules/ceill-tests: New file.
50606         * tests/test-ceill.c: New file.
50607
50608         * modules/ceill: New file.
50609         * lib/ceill.c: Replace entire file.
50610         * m4/ceill.m4: New file.
50611         * lib/math.in.h (ceill): Replace declaration.
50612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
50613         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
50614         * doc/functions/ceill.texi: Mention the 'ceill' module.
50615         * modules/mathl (Files): Remove lib/ceill.c.
50616         (Depends-on): Add ceill.
50617
50618 2007-10-04  Bruno Haible  <bruno@clisp.org>
50619
50620         * modules/ceilf-tests: New file.
50621         * tests/test-ceilf.c: New file.
50622
50623         * modules/ceilf: New file.
50624         * lib/ceil.c: New file.
50625         * lib/ceilf.c: New file.
50626         * m4/ceilf.m4: New file.
50627         * lib/math.in.h (ceilf): New declaration.
50628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
50629         HAVE_DECL_CEILF.
50630         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
50631         HAVE_DECL_CEILF.
50632         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
50633
50634 2007-10-04  Bruno Haible  <bruno@clisp.org>
50635
50636         * modules/floorl-tests: New file.
50637         * tests/test-floorl.c: New file.
50638
50639         * modules/floorl: New file.
50640         * lib/floorl.c: Replace entire file.
50641         * m4/floorl.m4: New file.
50642         * lib/math.in.h (floorl): Replace declaration.
50643         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
50644         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
50645         * doc/functions/floorl.texi: Mention the 'floorl' module.
50646         * modules/mathl (Files): Remove lib/floorl.c.
50647         (Depends-on): Add floorl.
50648
50649 2007-10-04  Bruno Haible  <bruno@clisp.org>
50650
50651         * modules/floorf-tests: New file.
50652         * tests/test-floorf.c: New file.
50653
50654         * modules/floorf: New file.
50655         * lib/floor.c: New file.
50656         * lib/floorf.c: New file.
50657         * m4/floorf.m4: New file.
50658         * lib/math.in.h (floorf): New declaration.
50659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
50660         HAVE_DECL_FLOORF.
50661         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
50662         HAVE_DECL_FLOORF.
50663         * doc/functions/floorf.texi: Mention the 'floorf' module.
50664
50665 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
50666             Bruno Haible  <bruno@clisp.org>
50667
50668         Advertise for the Git server instead of the CVS server.
50669         * doc/gnulib-intro.texi (Steady Development): Mention the Git
50670         repository instead of the CVS one.
50671         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
50672         about all VCS systems generically.
50673         * doc/gnulib.texi (Introduction): Capitalize `Git'.
50674
50675 2007-10-04  Bruno Haible  <bruno@clisp.org>
50676
50677         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
50678         means.
50679         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
50680
50681 2007-10-04  Bruno Haible  <bruno@clisp.org>
50682
50683         * modules/truncl-tests: New file.
50684         * tests/test-truncl.c: New file.
50685
50686         * modules/truncl: New file.
50687         * lib/truncl.c: New file.
50688         * m4/truncl.m4: New file.
50689         * lib/math.in.h (truncl): New declaration.
50690         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
50691         HAVE_DECL_TRUNCL.
50692         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
50693         HAVE_DECL_TRUNCL.
50694         * doc/functions/truncl.texi: Mention the 'truncl' module.
50695
50696 2007-10-04  Bruno Haible  <bruno@clisp.org>
50697
50698         * modules/truncf-tests: New file.
50699         * tests/test-truncf.c: New file.
50700
50701         * modules/truncf: New file.
50702         * lib/trunc.c: Make paramerizable through USE_* macros.
50703         * lib/truncf.c: New file.
50704         * m4/truncf.m4: New file.
50705         * lib/math.in.h (truncf): New declaration.
50706         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
50707         HAVE_DECL_TRUNCF.
50708         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
50709         HAVE_DECL_TRUNCF.
50710         * doc/functions/truncf.texi: Mention the 'truncf' module.
50711
50712 2007-10-03  Bruno Haible  <bruno@clisp.org>
50713
50714         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50715         augmentation also for tests modules.
50716         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
50717         * modules/atexit-tests (Makefile.am): Likewise.
50718         * modules/binary-io-tests (Makefile.am): Likewise.
50719         * modules/c-strcase-tests (Makefile.am): Likewise.
50720         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
50721         * modules/canonicalize-tests (Makefile.am): Likewise.
50722         * modules/closein-tests (Makefile.am): Likewise.
50723         * modules/fprintf-posix-tests (Makefile.am): Likewise.
50724         * modules/freadahead-tests (Makefile.am): Likewise.
50725         * modules/fseek-tests (Makefile.am): Likewise.
50726         * modules/fseeko-tests (Makefile.am): Likewise.
50727         * modules/ftell-tests (Makefile.am): Likewise.
50728         * modules/ftello-tests (Makefile.am): Likewise.
50729         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
50730         * modules/isnanl-tests (Makefile.am): Likewise.
50731         * modules/lseek-tests (Makefile.am): Likewise.
50732         * modules/mbscasecmp-tests (Makefile.am): Likewise.
50733         * modules/mbscasestr-tests (Makefile.am): Likewise.
50734         * modules/mbschr-tests (Makefile.am): Likewise.
50735         * modules/mbscspn-tests (Makefile.am): Likewise.
50736         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
50737         * modules/mbspbrk-tests (Makefile.am): Likewise.
50738         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
50739         * modules/mbsrchr-tests (Makefile.am): Likewise.
50740         * modules/mbsspn-tests (Makefile.am): Likewise.
50741         * modules/mbsstr-tests (Makefile.am): Likewise.
50742         * modules/printf-posix-tests (Makefile.am): Likewise.
50743         * modules/snprintf-posix-tests (Makefile.am): Likewise.
50744         * modules/sprintf-posix-tests (Makefile.am): Likewise.
50745         * modules/tsearch-tests (Makefile.am): Likewise.
50746         * modules/uniname/uniname-tests (Makefile.am): Likewise.
50747         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
50748         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
50749         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
50750         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
50751         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
50752         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
50753         * modules/vprintf-posix-tests (Makefile.am): Likewise.
50754         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
50755         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
50756         * modules/xstrtoimax-tests (Makefile.am): Likewise.
50757         * modules/xstrtol-tests (Makefile.am): Likewise.
50758         * modules/xstrtoumax-tests (Makefile.am): Likewise.
50759         * modules/yesno-tests (Makefile.am): Likewise.
50760
50761 2007-10-03  Bruno Haible  <bruno@clisp.org>
50762
50763         * modules/trunc-tests: New file.
50764         * tests/test-trunc.c: New file.
50765
50766         * modules/trunc: New file.
50767         * lib/trunc.c: New file.
50768         * m4/trunc.m4: New file.
50769         * lib/math.in.h (trunc): New declaration.
50770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
50771         HAVE_DECL_TRUNC.
50772         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
50773         HAVE_DECL_TRUNC.
50774         * doc/functions/trunc.texi: Mention the 'trunc' module.
50775
50776 2007-10-03  Bruno Haible  <bruno@clisp.org>
50777
50778         * tests/test-fpending.c: New file, mostly copied
50779         from coreutils/lib/t-fpending.c.
50780         * modules/fpending-tests: New file.
50781
50782 2007-10-03  Bruno Haible  <bruno@clisp.org>
50783
50784         Port the stdio extensions to QNX (untested).
50785         * lib/fseterr.c (fseterr): Add support for QNX.
50786         * lib/fbufmode.c (fbufmode): Likewise.
50787         * lib/freadable.c (freadable): Likewise.
50788         * lib/fwritable.c (fwritable): Likewise.
50789         * lib/freading.c (freading): Likewise.
50790         * lib/fwriting.c (fwriting): Likewise.
50791         * lib/freadahead.c (freadahed): Likewise.
50792         * lib/fpurge.c (fpurge): Likewise.
50793         * lib/fseeko.c (rpl_fseeko): Likewise.
50794
50795 2007-10-03  Bruno Haible  <bruno@clisp.org>
50796             Jim Meyering  <jim@meyering.net>
50797             Eric Blake  <ebb9@byu.net>
50798
50799         * doc/relocatable.texi: Use @command instead of @program.
50800
50801 2007-10-02  Jim Meyering  <jim@meyering.net>
50802
50803         Perform one more "_.h" -> ".in.h" substitution.
50804         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
50805         instead of unistd_.h here, too.
50806
50807 2007-10-01  Bruno Haible  <bruno@clisp.org>
50808
50809         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
50810         Needed for the alloca-opt module.
50811
50812 2007-09-30  Bruno Haible  <bruno@clisp.org>
50813
50814         * lib/alloca.in.h: Renamed from lib/alloca_.h.
50815         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
50816         alloca_.h.
50817         * lib/argz.in.h: Renamed from lib/argz_.h.
50818         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
50819         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
50820         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
50821         byteswap_.h.
50822         * lib/dirent.in.h: Renamed from lib/dirent_.h.
50823         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
50824         dirent_.h.
50825         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
50826         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
50827         fcntl_.h.
50828         * lib/float.in.h: Renamed from lib/float_.h.
50829         * modules/float (Files, Makefile.am): Use float.in.h instead of
50830         float_.h.
50831         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
50832         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
50833         fnmatch_.h.
50834         * lib/getopt.in.h: Renamed from lib/getopt_.h.
50835         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
50836         getopt_.h.
50837         * lib/glob.in.h: Renamed from lib/glob_.h.
50838         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
50839         * lib/iconv.in.h: Renamed from lib/iconv_.h.
50840         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
50841         iconv_.h.
50842         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
50843         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
50844         inttypes_.h.
50845         * lib/locale.in.h: Renamed from lib/locale_.h.
50846         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
50847         locale_.h.
50848         * lib/math.in.h: Renamed from lib/math_.h.
50849         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
50850         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
50851         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
50852         of netinet_in_.h. Add dependency.
50853         * lib/poll.in.h: Renamed from lib/poll_.h.
50854         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
50855         * lib/search.in.h: Renamed from lib/search_.h.
50856         * modules/search (Files, Makefile.am): Use search.in.h instead of
50857         search_.h.
50858         * lib/signal.in.h: Renamed from lib/signal_.h.
50859         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
50860         _signal.h.
50861         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
50862         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
50863         stdbool_.h.
50864         * lib/stdint.in.h: Renamed from lib/stdint_.h.
50865         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
50866         stdint_.h.
50867         * lib/stdio.in.h: Renamed from lib/stdio_.h.
50868         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
50869         stdio_.h.
50870         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
50871         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
50872         stdlib_.h.
50873         * lib/string.in.h: Renamed from lib/string_.h.
50874         * modules/string (Files, Makefile.am): Use string.in.h instead of
50875         string_.h.
50876         * doc/gnulib-tool.texi (Initial import): Update.
50877         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
50878         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
50879         of sys_select_.h. Add dependency.
50880         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
50881         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
50882         of sys_socket_.h.
50883         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
50884         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
50885         sys_stat_.h.
50886         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
50887         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
50888         sys_time_.h.
50889         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
50890         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
50891         sysexits_.h.
50892         * lib/time.in.h: Renamed from lib/time_.h.
50893         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
50894         * lib/unistd.in.h: Renamed from lib/unistd_.h.
50895         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
50896         unistd_.h.
50897         * lib/wchar.in.h: Renamed from lib/wchar_.h.
50898         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
50899         wchar_.h.
50900         * lib/wctype.in.h: Renamed from lib/wctype_.h.
50901         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
50902         wctype_.h.
50903         * build-aux/bootstrap (slurp): Update.
50904         * lib/.cppi-disable: Update.
50905
50906 2007-09-30  Bruno Haible  <bruno@clisp.org>
50907
50908         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
50909         Needed on BeOS.
50910
50911 2007-09-30  Bruno Haible  <bruno@clisp.org>
50912
50913         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
50914
50915 2007-09-29  Bruno Haible  <bruno@clisp.org>
50916
50917         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
50918
50919 2007-09-29  Bruno Haible  <bruno@clisp.org>
50920
50921         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
50922         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
50923         * build-aux/install-reloc: Compile also areadlink.c.
50924         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
50925
50926 2007-09-29  Bruno Haible  <bruno@clisp.org>
50927
50928         * gnulib-tool (func_emit_initmacro_done): Indentation.
50929
50930 2007-09-29  Bruno Haible  <bruno@clisp.org>
50931
50932         * README: Add CVS checkout update instructions.
50933         Info from Bob Proulx <bob@proulx.com>.
50934
50935 2007-09-28  Eric Blake  <ebb9@byu.net>
50936
50937         Provide move-if-change.
50938         * build-aux/move-if-change: New file, based on best practice
50939         rather than any canonical upstream location.
50940
50941 2007-09-28  Jim Meyering  <jim@meyering.net>
50942
50943         Fix canonicalize loop-detection corner case.
50944         Do not attempt to stat the symlink values stored via seen_triple.
50945         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
50946         on linux-2.6.18, (but not 2.6.22).
50947         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
50948         triple_compare.  The former compares dev,ino,filename, while the latter
50949         would actually stat dirname(filename) when dev and ino were equal.
50950         * lib/hash-triple.c: Install <string.h>.
50951         (STREQ): Define.
50952         (triple_compare_ino_str): New function.
50953         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
50954
50955 2007-09-28  Eric Blake  <ebb9@byu.net>
50956
50957         Enforce that AC_REPLACE_FUNCS files exist.
50958         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
50959         override check for typos.
50960
50961         Fix test-closein on Solaris 10.
50962         * tests/test-closein.c (main): Don't assume stdin can be inherited
50963         closed on all systems.
50964         * tests/test-closein.sh: Likewise.
50965         Reported by Piotr Tarnowski.
50966
50967 2007-09-28  Jim Meyering  <jim@meyering.net>
50968
50969         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
50970
50971 2007-09-27  Jim Meyering  <jim@meyering.net>
50972
50973         canonicalize: Avoid a false-positive cycle failure.
50974         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
50975         Sort.  Remove cycle-check.
50976         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
50977         not cycle-check.h.
50978         (seen_triple): New function.
50979         (canonicalize_filename_mode): Use it instead of cycle-check.
50980         * tests/test-canonicalize.c: Add a test for this bug.
50981         * tests/test-canonicalize.sh: Set up and run the test.
50982
50983         New module, file-set, from coreutils.
50984         * modules/file-set: Define it.
50985         * lib/file-set.c, lib/file-set.h: Implement.
50986
50987         New module, hash-triple, from coreutils.
50988         * modules/hash-triple: Define it.
50989         * lib/hash-triple.c, lib/hash-triple.h: Implement.
50990
50991 2007-09-25  Eric Blake  <ebb9@byu.net>
50992
50993         Fix strerror on Interix.
50994         * lib/string_.h (strerror): Declare replacement.
50995         * doc/functions/strerror.texi (strerror): Document the Interix
50996         shortcoming.
50997         * modules/string (Makefile.am): Support new hooks.
50998         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
50999         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
51000         gl_FUNC_STRERROR_SEPARATE.
51001         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
51002         * lib/strerror.c (rpl_strerror): Provide replacement.
51003         * modules/strerror (Depends-on): Add string.
51004         (configure.ac): Detect use of module.
51005         * tests/test-strerror.c: New file.
51006         * modules/strerror-tests: New test module.
51007         * modules/argp (Depends-on): Add strerror.
51008         * modules/error (Depends-on): Likewise.
51009         Reported by Martin Koeppe.
51010
51011 2007-09-24  Bruno Haible  <bruno@clisp.org>
51012
51013         * README: Update git instructions.
51014
51015 2007-09-24  Eric Blake  <ebb9@byu.net>
51016
51017         Revert fpending breakage from 2007-09-08.
51018         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
51019         __fpending.c.
51020
51021 2007-09-24  Jim Meyering  <jim@meyering.net>
51022
51023         filenamecat.c: Add a test.
51024         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
51025         showing how the function works when DIR is the empty string.
51026
51027 2007-09-21  Simon Josefsson  <simon@josefsson.org>
51028
51029         * tests/test-canonicalize.sh: Turn on executable bit.
51030
51031 2007-09-19  Eric Blake  <ebb9@byu.net>
51032
51033         * README: Update CVS instructions.
51034
51035 2007-09-18  Bruno Haible  <bruno@clisp.org>
51036
51037         * modules/areadlink: New file.
51038         * lib/areadlink.h (areadlink): New declaration.
51039         * lib/areadlink.c: New file, based on lib/xreadlink.c.
51040
51041 2007-09-17  Jim Meyering  <jim@meyering.net>
51042
51043         * lib/savewd.c (ESTALE) [!defined]: Define.
51044         Reported to be required on Interix by Martin Koeppe.
51045
51046 2007-09-17  Bruno Haible  <bruno@clisp.org>
51047
51048         * gnulib-tool (func_version): Use $version.
51049
51050 2007-09-16  Bruno Haible  <bruno@clisp.org>
51051
51052         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
51053         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
51054         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
51055         Reported by Greg Schafer <gschafer@zip.com.au>.
51056
51057 2007-09-15  Bruno Haible  <bruno@clisp.org>
51058
51059         * gnulib-tool (sed): Try a little harder to make bash understand the
51060         alias.
51061         Reported by Bruce Korb <bruce.korb@gmail.com>.
51062
51063 2007-09-13  Eric Blake  <ebb9@byu.net>
51064
51065         * ChangeLog: Remove conflict markers.
51066
51067 2007-09-13  Simon Josefsson  <simon@josefsson.org>
51068
51069         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
51070         Reported by Bruno Haible <bruno@clisp.org>.
51071
51072 2007-09-12  Bruno Haible  <bruno@clisp.org>
51073
51074         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
51075         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
51076         is not defined.
51077
51078 2007-09-12  Eric Blake  <ebb9@byu.net>
51079
51080         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
51081         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
51082         Autoconf definition.
51083         * modules/euidaccess (Depends-on): Add extensions, for
51084         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
51085         * modules/fnmatch (Depends-on): Likewise.
51086         * modules/getaddrinfo (Depends-on): Likewise.
51087         * modules/getdelim (Depends-on): Likewise.
51088         * modules/getline (Depends-on): Likewise.
51089         * modules/getsubopt (Depends-on): Likewise.
51090         * modules/gettext (Depends-on): Likewise.
51091         * modules/group-member (Depends-on): Likewise.
51092         * modules/mbchar (Depends-on): Likewise.
51093         * modules/memmem (Depends-on): Likewise.
51094         * modules/mempcpy (Depends-on): Likewise.
51095         * modules/memrchr (Depends-on): Likewise.
51096         * modules/pagealign_alloc (Depends-on): Likewise.
51097         * modules/readutmp (Depends-on): Likewise.
51098         * modules/stpcpy (Depends-on): Likewise.
51099         * modules/stpncpy (Depends-on): Likewise.
51100         * modules/strchrnul (Depends-on): Likewise.
51101         * modules/strndup (Depends-on): Likewise.
51102         * modules/strsep (Depends-on): Likewise.
51103         * modules/strverscmp (Depends-on): Likewise.
51104         * modules/vasprintf (Depends-on): Likewise.
51105         * modules/wcwidth (Depends-on): Likewise.
51106         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
51107         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
51108         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
51109         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
51110         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51111         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51112         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
51113         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51114         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
51115         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
51116         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51117         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51118         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51119         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
51120         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
51121         * m4/readutmp.m4 (gl_READUTMP): Likewise.
51122         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51123         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51124         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51125         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51126         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51127         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51128         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51129         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
51130         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
51131         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51132         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
51133         so that lock.m4 can be used in gettext without extensions module.
51134
51135 2007-09-11  Bruno Haible  <bruno@clisp.org>
51136
51137         * m4/isc-posix.m4: Remove file.
51138         Suggested by Eric Blake.
51139
51140 2007-09-11  Eric Blake  <ebb9@byu.net>
51141
51142         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
51143
51144 2007-09-10  Bruno Haible  <bruno@clisp.org>
51145
51146         * posix-modules: Fix typo in error message.
51147         Reported by Matt <mkraai@beckman.com>.
51148
51149 2007-09-09  Bruno Haible  <bruno@clisp.org>
51150
51151         * doc/functions/getdelim.texi: Update list of platforms lacking the
51152         function.
51153         * doc/functions/getline.texi: Likewise.
51154
51155 2007-09-09  Jim Meyering  <jim@meyering.net>
51156
51157         * lib/hash.c (hash_initialize): Detect calloc failure.
51158         Reported by Bruno Haible.
51159
51160 2007-09-09  Bruno Haible  <bruno@clisp.org>
51161
51162         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
51163         malloc or realloc fails.
51164
51165 2007-09-09  Bruno Haible  <bruno@clisp.org>
51166
51167         * modules/getcwd (Depends-on): Add malloc-posix.
51168         * modules/glob (Depends-on): Likewise.
51169         * modules/putenv (Depends-on): Likewise.
51170         * modules/strdup (Depends-on): Likewise.
51171         * modules/getdelim (Depends-on): Add realloc-posix.
51172         * modules/read-file (Depends-on): Likewise.
51173
51174 2007-09-09  Bruno Haible  <bruno@clisp.org>
51175
51176         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
51177         (gl_FUNC_MALLOC_POSIX): Require it.
51178         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
51179         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
51180         * modules/realloc (Files): Add m4/malloc.m4.
51181         * modules/calloc (Files): Likewise.
51182
51183 2007-09-09  Bruno Haible  <bruno@clisp.org>
51184
51185         * modules/malloc-posix: New file.
51186         * modules/malloc (Depends-on): Add malloc-posix.
51187         * lib/malloc.c: Include errno.h.
51188         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
51189         and a POSIX-compatible malloc into a single function. Set ENOMEM
51190         when returning NULL.
51191         * m4/malloc.m4: New file.
51192         * doc/functions/malloc.texi: Mention the malloc-posix module.
51193         * lib/stdlib_.h (malloc): New declaration.
51194         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51195         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
51196         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
51197         and HAVE_MALLOC_POSIX.
51198
51199 2007-09-09  Bruno Haible  <bruno@clisp.org>
51200
51201         * modules/realloc-posix: New file.
51202         * modules/realloc (Depends-on): Add realloc-posix.
51203         * lib/realloc.c: Include errno.h.
51204         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
51205         and a POSIX-compatible realloc into a single function. Set ENOMEM
51206         when returning NULL.
51207         * m4/realloc.m4: New file.
51208         * doc/functions/realloc.texi: Mention the realloc-posix module.
51209         * lib/stdlib_.h (realloc): New declaration.
51210         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51211         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
51212         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
51213         and HAVE_REALLOC_POSIX.
51214
51215 2007-09-09  Bruno Haible  <bruno@clisp.org>
51216
51217         * modules/calloc-posix: New file.
51218         * modules/calloc (Depends-on): Add calloc-posix.
51219         * lib/calloc.c: Include errno.h.
51220         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
51221         and a POSIX-compatible calloc into a single function. Set ENOMEM
51222         when returning NULL.
51223         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
51224         * doc/functions/calloc.texi: Mention the calloc-posix module.
51225         * lib/stdlib_.h (calloc): New declaration.
51226         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51227         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
51228         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
51229         and HAVE_CALLOC_POSIX.
51230
51231 2007-09-09  Bruno Haible  <bruno@clisp.org>
51232
51233         Allow for modules to show an arbitrary notice.
51234         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
51235         * gnulib-tool: New option --extract-notice.
51236         (func_usage): Document it.
51237         (sed_extract_prog): Update.
51238         (func_get_notice): New function.
51239         (func_modules_notice): New function.
51240         (func_import, func_create_testdir): Invoke it.
51241         Suggested by Jim Meyering.
51242
51243 2007-09-09  Bruno Haible  <bruno@clisp.org>
51244
51245         * gnulib-tool: New options --verbose, --quiet.
51246         (func_usage): Document them.
51247         (verbose): New variable.
51248         (func_execute_command): New function.
51249         (func_import): Don't show the module list and the file list if
51250         $verbose < 0.
51251         (func_create_testdir): Likewise. Use func_execute_command.
51252         (func_create_megatestdir): Use func_execute_command.
51253
51254 2007-09-08  Bruno Haible  <bruno@clisp.org>
51255
51256         * gnulib-tool (func_import): Prefer rsync over wget when available,
51257         for fetching the PO files.
51258
51259 2007-09-08  Bruno Haible  <bruno@clisp.org>
51260
51261         * posix-modules: New file. Portions copied from gnulib-tool.
51262         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
51263
51264 2007-09-08  Jim Meyering  <jim@meyering.net>
51265
51266         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
51267         * lib/fpending.h: Rename from __fpending.h.
51268         * lib/fpending.c: Rename from __fpending.c.
51269         Include "fpending.h", not "__fpending.h".
51270         * lib/__fpending.h, lib/__fpending.c: Remove files.
51271         * modules/fpending (Files): Reflect new file names.
51272         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
51273
51274 2007-09-08  Bruno Haible  <bruno@clisp.org>
51275
51276         * m4/inttypes-h.m4: Remove stub file.
51277
51278 2007-09-07  Simon Josefsson  <simon@josefsson.org>
51279
51280         * doc/headers/stdint.texi: Discuss #include_next issue.
51281
51282 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51283
51284         * build-aux/bootstrap: Remove obsolete comment about wget --help.
51285
51286 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51287
51288         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
51289         in variable name.
51290
51291 2007-09-03  Jim Meyering  <jim@meyering.net>
51292
51293         New module: git-version-gen.
51294         * modules/git-version-gen: New file.
51295
51296         Import changes from coreutils for bootstrap script.
51297
51298         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
51299
51300         bootstrap: uses rsync to download the .po files
51301         * build-aux/bootstrap (po_download_command_format): New global.
51302         (download_po_files): Use rsync.
51303         (update_po_files): Don't remove .po files after download,
51304         so future rsync runs can take advantage of the copies.
51305
51306         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
51307
51308         Solve the unnecessary-.po-file-regeneration problem once and for all.
51309         * build-aux/bootstrap (download_po_files): New function, renamed from
51310         get_translations.  Now, downloads, but doesn't update LINGUAS.
51311         (update_po_files): New function.
51312
51313         bootstrap: Ignore more.
51314         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
51315         uniwidth to e.g., lib/.gitignore.
51316         (slurp): Handle the sys_stat_.h -> sys mapping, too.
51317
51318         * build-aux/bootstrap: New setting: vc_ignore.
51319         (insert_sorted_if_absent): Create $file if absent.
51320         Adapt to new, possibly empty, list: $vc_ignore.
51321
51322         bootstrap: generate more ignorable names
51323         * build-aux/bootstrap (slurp): When generating ignorable names,
51324         also map .sin to .sed, .gperf to .c, and .y to .c.
51325
51326 2007-09-03  Jim Meyering  <jim@meyering.net>
51327
51328         * build-aux/git-version-gen: New file, from coreutils.  For details, see
51329         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
51330
51331 2007-09-02  Bruno Haible  <bruno@clisp.org>
51332
51333         Fix mis-recognition of 'mcs' on QNX 6.
51334         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
51335         output contains the string "Mono".
51336         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
51337         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
51338
51339 2007-09-01  Bruno Haible  <bruno@clisp.org>
51340
51341         Fix collision between uniwidth/* and linebreak modules.
51342         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
51343         u32_width): Remove declarations.
51344         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
51345         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
51346         streq3, streq2, streq1, streq0): Remove functions.
51347         (STREQ): Remove macro.
51348         (is_cjk_encoding): Remove function.
51349         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
51350         (uc_width, u8_width, u16_width, u32_width): Remove functions.
51351         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
51352         * NEWS: Document the change.
51353
51354 2007-09-01  Bruno Haible  <bruno@clisp.org>
51355
51356         * lib/streq.h: Add double-inclusion guard.
51357
51358 2007-09-01  Karl Berry  <karl@gnu.org>
51359
51360         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
51361
51362 2007-08-28  Jim Meyering  <jim@meyering.net>
51363
51364         Rename mreadlink_with_size to areadlink_with_size.
51365         * NEWS: Document the change.
51366         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
51367         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
51368         * lib/mreadlink.h: Rename this to...
51369         * lib/areadlink.h: ...this.
51370         * modules/mreadlink-with-size: Rename this to...
51371         * modules/areadlink-with-size: ...this.
51372         * lib/canonicalize.c: Reflect the renaming.
51373         * modules/canonicalize: Likewise.
51374
51375 2007-08-26  Bruno Haible  <bruno@clisp.org>
51376
51377         * gnulib-tool (func_import): When deciding which files to remove,
51378         consider also dangling symbolic links.
51379         Reported by Eric Blake.
51380
51381 2007-08-26  Bruno Haible  <bruno@clisp.org>
51382
51383         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
51384
51385 2007-08-23  Simon Josefsson  <simon@josefsson.org>
51386
51387         * lib/readline.c: Don't include getline.h, the prototype is now
51388         found in stdio.h.
51389
51390 2007-08-23  Jim Meyering  <jim@meyering.net>
51391
51392         Getdelim touchup.
51393         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
51394         around the funlockfile call, since funlockfile never sets errno.
51395         Don't set errno upon failed realloc.
51396
51397 2007-08-22  Eric Blake  <ebb9@byu.net>
51398
51399         Getline touchups.
51400         * lib/getdelim.c (getdelim): Revert regression that required *n to
51401         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
51402         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
51403         getdelim, rather than whether implementation is missing.
51404         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
51405         * lib/stdio_.h (getline): Also declare if replacement is
51406         required.
51407         * doc/functions/getdelim.texi: New file.
51408         * doc/functions/getline.texi: Likewise.
51409         * doc/gnulib.texi (Function Substitutes): Add new files.
51410         Reported by Bruno Haible.
51411
51412 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
51413
51414         * users.txt: Add Guile.
51415
51416 2007-08-22  Eric Blake  <ebb9@byu.net>
51417
51418         * tests/test-getdelim.c (main): Use remove, not unlink.
51419         * tests/test-getline.c (main): Likewise.
51420
51421         Move getline and getdelim into stdio.h, per POSIX 200x.
51422         * modules/getline (Files): Remove getline.h.
51423         (Depends-on): Add stdio.
51424         (configure.ac): Add module indicator.
51425         * modules/getdelim (Files): Remove getdelim.h.
51426         (Depends-on): Add stdio.
51427         (configure.ac): Add module indicator.
51428         * modules/stdio (Makefile.am): Work with new indicators.
51429         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
51430         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
51431         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51432         * lib/getdelim.h: Delete.
51433         * lib/getline.h: Delete.
51434         * lib/stdio_.h (getdelim, getline): Declare.
51435         * modules/getdelim-tests: New module.
51436         * modules/getline-tests: Likewise.
51437         * tests/test-getdelim.c: New file.
51438         * tests/test-getline.c: Likewise.
51439         * NEWS: Document the change.
51440         * lib/getline.c: Update choice of header.
51441         * lib/csharpcomp.c: Likewise.
51442         * lib/getpass.c: Likewise.
51443         * lib/javacomp.c: Likewise.
51444         * lib/javaversion.c: Likewise.
51445         * lib/yesno.c: Likewise.
51446         * lib/getdelim.c: Likewise.
51447         (getdelim): Set errno on failure, and avoid memory leak.
51448
51449 2007-08-19  Bruno Haible  <bruno@clisp.org>
51450
51451         * modules/closein (Depends-on): Add freadahead.
51452         * lib/closein.c: Include freadahead.h.
51453         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
51454         is zero.
51455
51456 2007-08-19  Bruno Haible  <bruno@clisp.org>
51457
51458         * modules/freadahead-tests: New file.
51459         * tests/test-freadahead.sh: New file.
51460         * tests/test-freadahead.c: New file.
51461
51462         * modules/freadahead: New file.
51463         * lib/freadahead.h: New file.
51464         * lib/freadahead.c: New file.
51465         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
51466         fbufmode, fpurge, freadable, fwritable.
51467
51468 2007-08-19  Eric Blake  <ebb9@byu.net>
51469
51470         Test yesno in combination with closein.
51471         * lib/yesno.c (yesno): Document use of stdin.
51472         * modules/yesno-tests (Files): New module.
51473         * tests/test-yesno.c (main): New file.
51474         * tests/test-yesno.sh: Likewise.
51475
51476 2007-08-19  Bruno Haible  <bruno@clisp.org>
51477
51478         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
51479         * lib/fseeko.c (rpl_fseeko): Likewise.
51480         * lib/fseterr.c (fseterr): Likewise.
51481
51482 2007-08-19  Bruno Haible  <bruno@clisp.org>
51483
51484         * tests/test-lseek.c (main): Disable a test for BeOS.
51485         * doc/functions/lseek.texi: Document the BeOS bug.
51486
51487 2007-08-19  Bruno Haible  <bruno@clisp.org>
51488             Eric Blake  <ebb9@byu.net>
51489
51490         * lib/lseek.c: Include <sys/stat.h>.
51491         (rpl_lseek): Add workaround code also for Unix platforms.
51492         Needed for BeOS.
51493         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
51494         * doc/functions/lseek.texi: Document BeOS definiency.
51495
51496 2007-08-18  Bruno Haible  <bruno@clisp.org>
51497
51498         * modules/fstrcmp-tests: New file.
51499         * tests/test-fstrcmp.c: New file.
51500
51501 2007-08-18  Bruno Haible  <bruno@clisp.org>
51502
51503         * modules/fstrcmp: New file, from GNU gettext with modifications.
51504         * lib/fstrcmp.h: New file, from GNU gettext.
51505         * lib/fstrcmp.c: New file, from GNU gettext.
51506         * MODULES.html.sh (String handling): Add fstrcmp.
51507
51508 2007-08-18  Bruno Haible  <bruno@clisp.org>
51509
51510         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
51511         'bool'.
51512         (diag, compareseq): Remove const from the ctxt argument.
51513         (USE_HEURISTIC): Undefine at the end.
51514
51515 2007-08-18  Jim Meyering  <jim@meyering.net>
51516
51517         New file: lib/idcache.h
51518         * NEWS: Mention the addition.
51519         * modules/idcache (Files): Add lib/idcache.h
51520         * lib/idcache.c: Include "idcache.h".
51521         Don't include <sys/types.h>.
51522         Add a FIXME comment.
51523         Move file-scoped "static" declarations to the top.
51524         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
51525
51526 2007-08-17  Bruno Haible  <bruno@clisp.org>
51527         and Paul Eggert  <eggert@cs.ucla.edu>
51528
51529         * MODULES.html.sh: Add diffseq.
51530         * modules/diffseq: New file.
51531         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
51532         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
51533
51534 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51535
51536         Import changes from coreutils for bootstrap script.
51537
51538         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
51539
51540         * build-aux/bootstrap (slurp): Work even in environments where
51541         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
51542         current code does not slurp files whose names start with ".", and
51543         this looks like it might be a troublesome area.
51544
51545         2007-07-11  Jim Meyering  <jim@meyering.net>
51546
51547         If there's a GPL vN copyright comment, require that N == 3.
51548
51549         2007-07-08  Jim Meyering  <jim@meyering.net>
51550
51551         Run the coreutils-specific code only if tests/Makefile.am.in exists.
51552         * build-aux/bootstrap (mam_template): Move definition out of loop.
51553
51554         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
51555
51556         * build-aux/bootstrap (symlink_to_dir): Rename function from
51557         symlink_to_gnulib.  Add a directory parameter.  Update all
51558         callers.
51559         (cp_mark_as_generated): Also check for -- and link to -- files in
51560         gl/.
51561
51562         2007-07-08  Jim Meyering  <jim@meyering.net>
51563
51564         Adapt to deeper hierarchy in gnulib.
51565         * build-aux/bootstrap (symlink_to_dir): If the destination
51566         directory doesn't exist, create it. This is required at least for
51567         "lib/uniwidth/cjk.h".
51568
51569         2007-05-15  Jim Meyering  <jim@meyering.net>
51570
51571         * build-aux/bootstrap: Now that generated Makefile.am files
51572         are no longer under version control, they must be created at
51573         bootstrap time.
51574
51575 2007-08-14  Ben Pfaff  <blp@gnu.org>
51576
51577         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
51578
51579 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51580
51581         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
51582         given the changes below.
51583         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
51584         even on hosts that have padding bits beyond the supported 64.
51585
51586 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51587
51588         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
51589         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
51590         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
51591         depends on it.
51592         (xstrtol_error): Remove.
51593         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
51594         but with a different signature.
51595         (ATTRIBUTE_NORETURN, __attribute__): New macros.
51596         * lib/xstrtol-error.c: Include exitfail.h.
51597         (xstrtol_fatal): New function, with a different signature from the
51598         old xstrtol_error, so that the caller need not worry about passing
51599         in an exit status, or about storage management of the option argument.
51600         (xstrtol_error): Now a static function.  Redo signature to
51601         implement xstrtol_fatal.  Output the correct number of hyphens in
51602         front of the option so that the caller need not worry about
51603         storage management.
51604         (N_): New macro.
51605         (_): Remove; not used now.
51606         * modules/xstrtol: Depend on getopt.
51607         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
51608         of old STRTOL_FATAL_ERROR macro.
51609         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
51610         of test program.
51611         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
51612         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
51613
51614 2007-08-08  Eric Blake  <ebb9@byu.net>
51615
51616         * lib/xstrtol-error.c: Add missing include.
51617
51618         Move xstrtol messages into gnulib domain, when --pobase is used.
51619         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
51620         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
51621         * modules/xstrtol (Files): Distribute new file.
51622         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
51623         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
51624         * tests/test-xstrtol.c: ...into new file.
51625         * tests/test-xstrtoul.c: Also test xstrtoul.
51626         * tests/test-xstrtoimax.c: Also test xstrtoimax.
51627         * tests/test-xstrtoumax.c: Also test xstrtoumax.
51628         * tests/test-xstrtol.sh: Drive the tests.
51629         * tests/test-xstrtoimax.sh: Likewise.
51630         * tests/test-xstrtoumax.sh: Likewise.
51631         * modules/xstrtol-tests: New module.
51632         * modules/xstrtoimax-tests: Likewise.
51633         * modules/xstrtoumax-tests: Likewise.
51634
51635 2007-08-08  Jim Meyering  <jim@meyering.net>
51636
51637         New function: mfile_name_concat.
51638         * lib/filenamecat.c (mfile_name_concat): New function, just like
51639         file_name_concat, but return NULL upon failure rather than exiting
51640         with a diagnostic.
51641         * lib/filenamecat.h: Declare it.
51642
51643 2007-08-07  Bruno Haible  <bruno@clisp.org>
51644
51645         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
51646         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
51647         warning from gcc.
51648         Reported by Eric Blake.
51649
51650 2007-08-07  Simon Josefsson  <simon@josefsson.org>
51651
51652         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
51653         * modules/crypto/arcfour (License): Likewise.
51654         * modules/crypto/des-tests (License): Likewise.
51655         * modules/crypto/gc-arctwo-tests (License): Likewise.
51656         * modules/crypto/gc-des-tests (License): Likewise.
51657         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
51658         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
51659         * modules/crypto/gc-md2-tests (License): Likewise.
51660         * modules/crypto/gc-md4-tests (License): Likewise.
51661         * modules/crypto/gc-md5-tests (License): Likewise.
51662         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
51663         * modules/crypto/gc-rijndael-tests (License): Likewise.
51664         * modules/crypto/gc-sha1-tests (License): Likewise.
51665         * modules/crypto/gc-tests (License): Likewise.
51666         * modules/crypto/hmac-md5 (License): Likewise.
51667         * modules/crypto/hmac-sha1 (License): Likewise.
51668         * modules/crypto/md2-tests (License): Likewise.
51669         * modules/crypto/md4-tests (License): Likewise.
51670         * modules/crypto/md5 (License): Likewise.
51671         * modules/crypto/rijndael (License): Likewise.
51672         * modules/crypto/sha1 (License): Likewise.
51673         * modules/memxor (License): Likewise.
51674
51675 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51676         and Bruno Haible  <bruno@clisp.org>
51677
51678         * NEWS: Describe interface changes to human, xstrtol.
51679         * lib/human.h: Include <xstrtol.h>.
51680         (human_options): Return enum strtol_error, not int.  Remove
51681         bool arg; take int * instead.
51682         * lib/human.c: Don't include "gettext.h".
51683         (_): Remove; no longer used.
51684         Don't include <xstrtol.h>, since human.h does it.
51685         (human_options): Adjust to abovementioned interface changes.
51686         Do not report error to stderr; that's now the caller's
51687         responsibility.
51688         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
51689         interface change.
51690         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
51691         Str, Argument_type_string.  All uses changed.  Put " argument"
51692         in diagnostics to make them clearer.  Change wording of suffix
51693         message for clarity.
51694         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
51695         Argument_type_string.
51696         (STRTOL_FATAL_WARN): Remove; no longer used.
51697         * modules/human (Depends-on): Remove gettext-h.
51698
51699 2007-08-06  Simon Josefsson  <simon@josefsson.org>
51700
51701         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
51702
51703 2007-07-31  Bruno Haible  <bruno@clisp.org>
51704
51705         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
51706         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
51707         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
51708
51709 2007-07-31  Bruno Haible  <bruno@clisp.org>
51710
51711         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
51712         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
51713
51714 2007-07-30  Bruno Haible  <bruno@clisp.org>
51715
51716         * modules/base64 (License): Use the synonymous term "LGPLv2+".
51717         * modules/c-ctype (License): Likewise.
51718         * modules/c-strcase (License): Likewise.
51719         * modules/check-version (License): Likewise.
51720         * modules/iconv (License): Likewise.
51721         * modules/iconv_open (License): Likewise.
51722         * modules/read-file (License): Likewise.
51723         * modules/striconv (License): Likewise.
51724         * modules/strverscmp (License): Likewise.
51725         * modules/vasprintf (License): Likewise.
51726         * modules/crypto/des (License): Likewise.
51727         * modules/crypto/gc (License): Likewise.
51728         * modules/crypto/gc-arcfour (License): Likewise.
51729         * modules/crypto/gc-arctwo (License): Likewise.
51730         * modules/crypto/gc-des (License): Likewise.
51731         * modules/crypto/gc-hmac-md5 (License): Likewise.
51732         * modules/crypto/gc-hmac-sha1 (License): Likewise.
51733         * modules/crypto/gc-md2 (License): Likewise.
51734         * modules/crypto/gc-md4 (License): Likewise.
51735         * modules/crypto/gc-md5 (License): Likewise.
51736         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
51737         * modules/crypto/gc-random (License): Likewise.
51738         * modules/crypto/gc-rijndael (License): Likewise.
51739         * modules/crypto/gc-sha1 (License): Likewise.
51740         * modules/crypto/md2 (License): Likewise.
51741         * modules/crypto/md4 (License): Likewise.
51742
51743 2007-07-30  Jim Meyering  <jim@meyering.net>
51744
51745         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
51746         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
51747         it has valid stat data.  This bug would cause du not to count the
51748         sizes of inaccessible directories.
51749         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
51750         in <http://bugzilla.redhat.com/250077>.
51751
51752 2007-07-25  Peter O'Gorman  <peter@pogma.com>
51753             Bruno Haible  <bruno@clisp.org>
51754
51755         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
51756         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
51757         #include_next, gives a diagnostic about it, but reports no error in
51758         the exit code.
51759         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51760
51761 2007-07-24  Ben Pfaff  <blp@gnu.org>
51762
51763         Improve name: "count-one-bits" is better than "popcount".
51764         * MODULES.html.sh: Update name.
51765         * lib/popcount.h: Renamed lib/count-one-bits.h.
51766         (popcount): Renamed count_one_bits.
51767         (popcountl): Renamed count_one_bits_l.
51768         (popcountll): Renamed count_one_bits_ll.
51769         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
51770         * modules/popcount: Renamed module/count-one-bits.
51771         * modules/popcount-tests: Renamed module/count-one-bits-tests.
51772         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
51773
51774 2007-07-23  Ben Pfaff  <blp@gnu.org>
51775
51776         * lib/popcount.h (popcount32): Reduce size of constants, to allow
51777         better code generation, and add U to large constants to avoid
51778         warnings, in non-GCC case.
51779         Suggested by Bruno Haible.
51780
51781 2007-07-23  Ben Pfaff  <blp@gnu.org>
51782
51783         * lib/popcount.h: Use verify_true instead of if...abort.
51784         * modules/popcount: Depend on verify module.
51785         Suggested by Jim Meyering.
51786
51787 2007-07-23  Bruno Haible  <bruno@clisp.org>
51788
51789         * gnulib-tool (func_import): Create a .cvsignore file also when the
51790         directory is not yet in CVS but the toplevel directory is. When
51791         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
51792         Reported by Karl Berry.
51793
51794 2007-07-22  Ben Pfaff  <blp@gnu.org>
51795
51796         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
51797         case.
51798         Suggested by Eric Blake.
51799
51800 2007-07-22  Ben Pfaff  <blp@gnu.org>
51801
51802         New module: popcount.
51803         * MODULES.html.sh: Add popcount.
51804         * modules/popcount: New file.
51805         * modules/popcount-tests: New file.
51806         * tests/test-popcount.c: New file.
51807         * lib/popcount.h: New file.
51808         * m4/popcount.m4: New file.
51809
51810 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51811
51812         * build-aux/announce-gen: Update to GPLv3.
51813
51814         * build-aux/config.guess: Update from config.
51815
51816 2007-07-21  Bruno Haible  <bruno@clisp.org>
51817
51818         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
51819         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
51820
51821 2007-07-20  Jim Meyering  <jim@meyering.net>
51822
51823         * check-module: Diagnose a self-dependency.
51824
51825 2007-07-19  Bruno Haible  <bruno@clisp.org>
51826
51827         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
51828         empty.
51829         Reported by Eric Blake.
51830
51831 2007-07-18  Bruno Haible  <bruno@clisp.org>
51832
51833         * gnulib-tool: New options --po-base, --po-domain.
51834         (func_usage): Document them.
51835         (pobase, po_domain): New variables.
51836         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
51837         DEFAULT_TEXT_DOMAIN.
51838         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
51839         (func_import): Consider pobase and po_domain. Create a po/ directory.
51840         (func_create_testdir): Set pobase and po_domain to empty.
51841         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
51842         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
51843
51844 2007-07-18  Bruno Haible  <bruno@clisp.org>
51845
51846         * gnulib-tool (func_get_automake_snippet): Synthesize also an
51847         EXTRA_DIST augmentation for files in build-aux/.
51848
51849 2007-07-16  Bruno Haible  <bruno@clisp.org>
51850
51851         * modules/lseek (License): Use the synonymous term "LGPLv2+".
51852         * modules/getdelim (License): Likewise.
51853
51854 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51855
51856         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
51857         * modules/d-type (License): Likewise.
51858         * modules/extensions (License): Likewise.
51859         * modules/fnmatch (License): Likewise.
51860         * modules/fseeko (License): Likewise.
51861         * modules/getaddrinfo (License): Likewise.
51862         * modules/getline (License): Likewise.
51863         * modules/getlogin_r (License): Likewise.
51864         * modules/getpass (License): Likewise.
51865         * modules/gettimeofday (License): Likewise.
51866         * modules/glob (License): Likewise.
51867         * modules/inet_ntop (License): Likewise.
51868         * modules/malloc (License): Likewise.
51869         * modules/malloca (License): Likewise.
51870         * modules/memmem (License): Likewise.
51871         * modules/mempcpy (License): Likewise.
51872         * modules/memset (License): Likewise.
51873         * modules/minmax (License): Likewise.
51874         * modules/mktime (License): Likewise.
51875         * modules/netinet_in (License): Likewise.
51876         * modules/pathmax (License): Likewise.
51877         * modules/poll (License): Likewise.
51878         * modules/regex (License): Likewise.
51879         * modules/snprintf (License): Likewise.
51880         * modules/stdbool (License): Likewise.
51881         * modules/stdint (License): Likewise.
51882         * modules/stdio (License): Likewise.
51883         * modules/strcase (License): Likewise.
51884         * modules/strcasestr (License): Likewise.
51885         * modules/strdup (License): Likewise.
51886         * modules/string (License): Likewise.
51887         * modules/strndup (License): Likewise.
51888         * modules/strnlen (License): Likewise.
51889         * modules/strpbrk (License): Likewise.
51890         * modules/strptime (License): Likewise.
51891         * modules/strsep (License): Likewise.
51892         * modules/sys_select (License): Likewise.
51893         * modules/sys_socket (License): Likewise.
51894         * modules/sys_stat (License): Likewise.
51895         * modules/sys_time (License): Likewise.
51896         * modules/time (License): Likewise.
51897         * modules/time_r (License): Likewise.
51898         * modules/timegm (License): Likewise.
51899         * modules/unistd (License): Likewise.
51900         * modules/vsnprintf (License): Likewise.
51901         * modules/wctype (License): Likewise.
51902
51903 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51904
51905         * modules/argz (License): LGPLv2+.
51906
51907 2007-07-15  Karl Berry  <karl@gnu.org>
51908
51909         * doc/gnulib.texi: revise node structure per new fdl.texi.
51910
51911 2007-07-14  Bruno Haible  <bruno@clisp.org>
51912
51913         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
51914         the output file.
51915         * lib/uniname/uninames.h: Regenerated.
51916
51917 2007-07-14  Karl Berry  <karl@gnu.org>
51918
51919         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
51920         omitting sectioning and index commands.
51921
51922 2007-07-13  Bruno Haible  <bruno@clisp.org>
51923
51924         New gnulib-tool option --more-symlinks.
51925         * gnulib-tool (func_usage): Document --more-symlinks.
51926         (do_copyrights): New variable.
51927         Recognize option --more-symlinks.
51928         (func_import): Don't add a copyright notice transform to
51929         sed_transform_lib_file if do_copyrights is empty.
51930
51931 2007-07-13  Bruno Haible  <bruno@clisp.org>
51932
51933         * lib/vasnprintf.c (decimal_point_char): Define also if
51934         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
51935         && !NEED_PRINTF_DIRECTIVE_A.
51936         Reported by Clemens Koller <clemens.koller@anagramm.de> via
51937         Gary V. Vaughan <gary@gnu.org>.
51938
51939 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
51940
51941         * lib/inttypes_.h: Undo previous change, since it was fixed
51942         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
51943
51944 2007-07-13  Bruno Haible  <bruno@clisp.org>
51945
51946         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
51947         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
51948
51949 2007-07-13  Jim Meyering  <jim@meyering.net>
51950
51951         df: Don't fail for Tru64's "file-on-file mount".
51952         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
51953         so we fall through and use statfs instead.  Details here:
51954         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
51955         Reported by Albert Chin.
51956
51957 2007-07-13  Bruno Haible  <bruno@clisp.org>
51958
51959         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
51960         * modules/configmake (License): Likewise.
51961         * modules/gettext (License): Likewise.
51962         * modules/gettext-h (License): Likewise.
51963         * modules/include_next (License): Likewise.
51964         * modules/link-warning (License): Likewise.
51965         * modules/localcharset (License): Likewise.
51966         * modules/localename (License): Likewise.
51967         * modules/lock (License): Likewise.
51968         * modules/relocatable-lib-lgpl (License): Likewise.
51969         * modules/size_max (License): Likewise.
51970         * modules/vasnprintf (License): Likewise.
51971         * modules/wchar (License): Likewise.
51972         * modules/xsize (License): Likewise.
51973
51974 2007-07-13  Bruno Haible  <bruno@clisp.org>
51975
51976         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
51977         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
51978
51979 2007-07-12  Bruno Haible  <bruno@clisp.org>
51980
51981         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
51982         in the modules files.
51983
51984 2007-07-11  Karl Berry  <karl@gnu.org>
51985
51986         * MODULES.html.sh (func_module): use
51987          sed -e '\|^'"${includefile}"'$|d'
51988          instead of /.../d, to avoid errors on $includefile's containing /.
51989
51990 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51991
51992         * gnulib-tool (func_import): Avoid duplication of --avoid
51993         statements
51994         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
51995         names to `_' in variable names.
51996
51997 2007-07-10  Eric Blake  <ebb9@byu.net>
51998
51999         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
52000         * NEWS: Document this change.
52001
52002 2007-07-08  Bruno Haible  <bruno@clisp.org>
52003
52004         Update to Unicode 5.0.
52005         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
52006         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
52007         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
52008         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
52009         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
52010         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
52011         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
52012         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
52013         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
52014         U+10A3F, U+1D242..U+1D244.
52015         (nonspacing_table_ind): Update.
52016         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
52017         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
52018
52019 2007-07-08  Bruno Haible  <bruno@clisp.org>
52020
52021         Update to Unicode 5.0.
52022         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
52023         code transform. Extend the name index field of unicode_name_to_code and
52024         unicode_code_to_name from 16 to 24 bits.
52025         * lib/uniname/uniname.c (unicode_character_name,
52026         unicode_name_character): Add the range 0x12xxx to the code transform.
52027         * lib/uniname/uninames.h: Regenerated.
52028         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
52029
52030 2007-07-07  Bruno Haible  <bruno@clisp.org>
52031
52032         * modules/wcwidth-tests: New file.
52033         * tests/test-wcwidth.c: New file.
52034
52035         Work around MacOS X wcwidth() bug.
52036         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
52037         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
52038         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
52039         original wcwidth in non-UTF-8 locales.
52040         * modules/wcwidth (Depends-on): Add localcharset, streq,
52041         uniwidth/width.
52042         * doc/functions/wcwidth.texi: Update.
52043
52044 2007-07-07  Bruno Haible  <bruno@clisp.org>
52045
52046         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
52047         (wcwidth): New declaration.
52048         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
52049         macros.
52050         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
52051         here. Prepare for creating <wchar.h> unconditionally.
52052         * modules/wchar (Depends-on): Add link-warning.
52053         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
52054         REPLACE_WCWIDTH, and GL_LINK_WARNING.
52055         * lib/wcwidth.h: Remove file.
52056         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
52057         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
52058         * modules/wcwidth (Files): Remove lib/wcwidth.h.
52059         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
52060         (Include): Replace wcwidth.h with <wchar.h>.
52061         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
52062         * lib/mbchar.h: Don't include wcwidth.h.
52063         * lib/mbswidth.c: Likewise.
52064         * NEWS: Mention the change.
52065
52066 2007-07-07  Bruno Haible  <bruno@clisp.org>
52067
52068         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
52069         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
52070         definition with an external declaration.
52071         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
52072         defined as a function. Remove AC_C_INLINE requirement.
52073         * modules/wcwidth (Files): Add lib/wcwidth.c.
52074         (Makefile.am): Remove redundant statement.
52075
52076 2007-07-07  Bruno Haible  <bruno@clisp.org>
52077
52078         * MODULES.html.sh (Unicode string functions): Add the new modules.
52079
52080         * tests/uniwidth/test-u32-strwidth.c: New file.
52081         * modules/uniwidth/u32-strwidth-tests: New file.
52082
52083         * lib/uniwidth/u32-strwidth.c: New file.
52084         * modules/uniwidth/u32-strwidth: New file.
52085
52086         * tests/uniwidth/test-u16-strwidth.c: New file.
52087         * modules/uniwidth/u16-strwidth-tests: New file.
52088
52089         * lib/uniwidth/u16-strwidth.c: New file.
52090         * modules/uniwidth/u16-strwidth: New file.
52091
52092         * tests/uniwidth/test-u8-strwidth.c: New file.
52093         * modules/uniwidth/u8-strwidth-tests: New file.
52094
52095         * lib/uniwidth/u8-strwidth.c: New file.
52096         * modules/uniwidth/u8-strwidth: New file.
52097
52098         * tests/uniwidth/test-u32-width.c: New file.
52099         * modules/uniwidth/u32-width-tests: New file.
52100
52101         * lib/uniwidth/u32-width.c: New file.
52102         * modules/uniwidth/u32-width: New file.
52103
52104         * tests/uniwidth/test-u16-width.c: New file.
52105         * modules/uniwidth/u16-width-tests: New file.
52106
52107         * lib/uniwidth/u16-width.c: New file.
52108         * modules/uniwidth/u16-width: New file.
52109
52110         * tests/uniwidth/test-u8-width.c: New file.
52111         * modules/uniwidth/u8-width-tests: New file.
52112
52113         * lib/uniwidth/u8-width.c: New file.
52114         * modules/uniwidth/u8-width: New file.
52115
52116         * tests/uniwidth/test-uc_width.c: New file.
52117         * modules/uniwidth/width-tests: New file.
52118
52119         * lib/uniwidth/width.c: New file, from GNU libiconv.
52120         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
52121         * modules/uniwidth/width: New file.
52122
52123         * lib/uniwidth.h: New file, from GNU libiconv.
52124         * modules/uniwidth/base: New file.
52125
52126 2007-07-07  Bruno Haible  <bruno@clisp.org>
52127
52128         * lib/uniname.h: New file, from GNU gettext.
52129         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
52130         * lib/uniname/uninames.h: New file, from GNU gettext.
52131         * lib/uniname/uniname.c: New file, from GNU gettext.
52132         * tests/uniname/test-uninames.sh: New file.
52133         * tests/uniname/test-uninames.c: New file, from GNU gettext.
52134         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
52135         * modules/uniname/base: New file.
52136         * modules/uniname/uniname: New file.
52137         * modules/uniname/uniname-tests: New file.
52138         * MODULES.html.sh (Unicode string functions): Add the new modules.
52139
52140 2007-07-06  Bruno Haible  <bruno@clisp.org>
52141
52142         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
52143
52144 2007-07-06  Bruno Haible  <bruno@clisp.org>
52145
52146         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
52147         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
52148         includes <cygwin/sys_time.h> which includes <sys/select.h> which
52149         include <sys/time.h>.
52150         Reported by Eric Blake.
52151
52152 2007-07-06  Eric Blake  <ebb9@byu.net>
52153
52154         Fix testing canonicalize on cygwin.
52155         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52156         Revert patch from 2007-06-19.
52157         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
52158         canonicalize module is also in use.
52159         * tests/test-canonicalize.c: New file.
52160         * tests/test-canonicalize.sh: Likewise.
52161         * modules/canonicalize-tests: Likewise.
52162
52163 2007-07-06  Jim Meyering  <jim@meyering.net>
52164
52165         * lib/getugroups.c (getugroups): Detect getgrent failure.
52166         Adjust comment to reflect reality: this function may return -1.
52167
52168 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52169
52170         * build-aux/bootstrap (TP_URL,get_translations): Update to use
52171         the new TP address.
52172         (usage): Fix typo
52173         (gnulib_mk): New variable.
52174
52175 2007-07-05  Jim Meyering  <jim@meyering.net>
52176
52177         Don't let endgrent clobber errno, no matter how improbable.
52178         * lib/getugroups.c (getugroups): Save and restore errno around
52179         endgrent call.
52180
52181         Close the group DB even when failing with 2^31 or more members.
52182         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
52183
52184 2007-07-04  Jim Meyering  <jim@meyering.net>
52185
52186         * lib/getugroups.h: New file.
52187         * lib/getugroups.c: Include "getugroups.h".
52188         Remove uses of "register" keyword.
52189         Move local variable, "cp", down into scope where used.
52190         Give "username" parameter the "const" attribute.
52191         * modules/getugroups (Files): Add lib/getugroups.h
52192
52193 2007-07-04  Karl Berry  <karl@gnu.org>
52194
52195         * MODULES.html.sh (func_all_modules): Complete rename of
52196         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
52197
52198 2007-07-02  Bruno Haible  <bruno@clisp.org>
52199
52200         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
52201         mode, when inttypes.h comes from gnulib.
52202         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52203
52204 2007-07-02  Simon Josefsson  <simon@josefsson.org>
52205
52206         * NEWS: Mention lgpl module name change.
52207
52208         * modules/lgpl-2.1: Renamed from lgpl.
52209
52210         * NEWS: Mention gpl module name change.
52211
52212         * modules/gpl-3.0: New file, based on gpl-2.0.
52213
52214         * modules/gpl-2.0: Renamed from gpl.
52215
52216         * modules/gpl: Fix filename, doc/gpl.texi is now found at
52217         doc/gpl-2.0.texi.
52218
52219 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52220
52221         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
52222         #define __STDC_LIMIT_MACROS temporarily while including
52223         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
52224         Problem reported by Joel E. Denny in
52225         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
52226
52227 2007-07-01  Bruno Haible  <bruno@clisp.org>
52228
52229         * lib/unistdio.h: New file.
52230         * lib/unistdio/u-asnprintf.h: New file.
52231         * lib/unistdio/u-asprintf.h: New file.
52232         * lib/unistdio/u-printf-args.c: New file.
52233         * lib/unistdio/u-printf-args.h: New file.
52234         * lib/unistdio/u-printf-parse.h: New file.
52235         * lib/unistdio/u-snprintf.h: New file.
52236         * lib/unistdio/u-sprintf.h: New file.
52237         * lib/unistdio/u-vasprintf.h: New file.
52238         * lib/unistdio/u-vsnprintf.h: New file.
52239         * lib/unistdio/u-vsprintf.h: New file.
52240         * lib/unistdio/ulc-asnprintf.c: New file.
52241         * lib/unistdio/ulc-asprintf.c: New file.
52242         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
52243         * lib/unistdio/ulc-printf-parse.c: New file.
52244         * lib/unistdio/ulc-snprintf.c: New file.
52245         * lib/unistdio/ulc-sprintf.c: New file.
52246         * lib/unistdio/ulc-vasnprintf.c: New file.
52247         * lib/unistdio/ulc-vasprintf.c: New file.
52248         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
52249         * lib/unistdio/ulc-vsnprintf.c: New file.
52250         * lib/unistdio/ulc-vsprintf.c: New file.
52251         * lib/unistdio/u8-asnprintf.c: New file.
52252         * lib/unistdio/u8-asprintf.c: New file.
52253         * lib/unistdio/u8-printf-parse.c: New file.
52254         * lib/unistdio/u8-snprintf.c: New file.
52255         * lib/unistdio/u8-sprintf.c: New file.
52256         * lib/unistdio/u8-vasnprintf.c: New file.
52257         * lib/unistdio/u8-vasprintf.c: New file.
52258         * lib/unistdio/u8-vsnprintf.c: New file.
52259         * lib/unistdio/u8-vsprintf.c: New file.
52260         * lib/unistdio/u8-u8-asnprintf.c: New file.
52261         * lib/unistdio/u8-u8-asprintf.c: New file.
52262         * lib/unistdio/u8-u8-snprintf.c: New file.
52263         * lib/unistdio/u8-u8-sprintf.c: New file.
52264         * lib/unistdio/u8-u8-vasnprintf.c: New file.
52265         * lib/unistdio/u8-u8-vasprintf.c: New file.
52266         * lib/unistdio/u8-u8-vsnprintf.c: New file.
52267         * lib/unistdio/u8-u8-vsprintf.c: New file.
52268         * lib/unistdio/u16-asnprintf.c: New file.
52269         * lib/unistdio/u16-asprintf.c: New file.
52270         * lib/unistdio/u16-printf-parse.c: New file.
52271         * lib/unistdio/u16-snprintf.c: New file.
52272         * lib/unistdio/u16-sprintf.c: New file.
52273         * lib/unistdio/u16-vasnprintf.c: New file.
52274         * lib/unistdio/u16-vasprintf.c: New file.
52275         * lib/unistdio/u16-vsnprintf.c: New file.
52276         * lib/unistdio/u16-vsprintf.c: New file.
52277         * lib/unistdio/u16-u16-asnprintf.c: New file.
52278         * lib/unistdio/u16-u16-asprintf.c: New file.
52279         * lib/unistdio/u16-u16-snprintf.c: New file.
52280         * lib/unistdio/u16-u16-sprintf.c: New file.
52281         * lib/unistdio/u16-u16-vasnprintf.c: New file.
52282         * lib/unistdio/u16-u16-vasprintf.c: New file.
52283         * lib/unistdio/u16-u16-vsnprintf.c: New file.
52284         * lib/unistdio/u16-u16-vsprintf.c: New file.
52285         * lib/unistdio/u32-asnprintf.c: New file.
52286         * lib/unistdio/u32-asprintf.c: New file.
52287         * lib/unistdio/u32-printf-parse.c: New file.
52288         * lib/unistdio/u32-snprintf.c: New file.
52289         * lib/unistdio/u32-sprintf.c: New file.
52290         * lib/unistdio/u32-vasnprintf.c: New file.
52291         * lib/unistdio/u32-vasprintf.c: New file.
52292         * lib/unistdio/u32-vsnprintf.c: New file.
52293         * lib/unistdio/u32-vsprintf.c: New file.
52294         * lib/unistdio/u32-u32-asnprintf.c: New file.
52295         * lib/unistdio/u32-u32-asprintf.c: New file.
52296         * lib/unistdio/u32-u32-snprintf.c: New file.
52297         * lib/unistdio/u32-u32-sprintf.c: New file.
52298         * lib/unistdio/u32-u32-vasnprintf.c: New file.
52299         * lib/unistdio/u32-u32-vasprintf.c: New file.
52300         * lib/unistdio/u32-u32-vsnprintf.c: New file.
52301         * lib/unistdio/u32-u32-vsprintf.c: New file.
52302         * tests/unistdio/test-ulc-asnprintf1.c: New file.
52303         * tests/unistdio/test-ulc-asnprintf1.h: New file.
52304         * tests/unistdio/test-ulc-printf1.h: New file.
52305         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
52306         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
52307         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
52308         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
52309         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
52310         * tests/unistdio/test-ulc-vasprintf1.c: New file.
52311         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
52312         * tests/unistdio/test-ulc-vsprintf1.c: New file.
52313         * tests/unistdio/test-u8-asnprintf1.c: New file.
52314         * tests/unistdio/test-u8-asnprintf1.h: New file.
52315         * tests/unistdio/test-u8-printf1.h: New file.
52316         * tests/unistdio/test-u8-vasnprintf1.c: New file.
52317         * tests/unistdio/test-u8-vasnprintf2.c: New file.
52318         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
52319         * tests/unistdio/test-u8-vasnprintf3.c: New file.
52320         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
52321         * tests/unistdio/test-u8-vasprintf1.c: New file.
52322         * tests/unistdio/test-u8-vsnprintf1.c: New file.
52323         * tests/unistdio/test-u8-vsprintf1.c: New file.
52324         * tests/unistdio/test-u16-asnprintf1.c: New file.
52325         * tests/unistdio/test-u16-asnprintf1.h: New file.
52326         * tests/unistdio/test-u16-printf1.h: New file.
52327         * tests/unistdio/test-u16-vasnprintf1.c: New file.
52328         * tests/unistdio/test-u16-vasnprintf2.c: New file.
52329         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
52330         * tests/unistdio/test-u16-vasnprintf3.c: New file.
52331         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
52332         * tests/unistdio/test-u16-vasprintf1.c: New file.
52333         * tests/unistdio/test-u16-vsnprintf1.c: New file.
52334         * tests/unistdio/test-u16-vsprintf1.c: New file.
52335         * tests/unistdio/test-u32-asnprintf1.c: New file.
52336         * tests/unistdio/test-u32-asnprintf1.h: New file.
52337         * tests/unistdio/test-u32-printf1.h: New file.
52338         * tests/unistdio/test-u32-vasnprintf1.c: New file.
52339         * tests/unistdio/test-u32-vasnprintf2.c: New file.
52340         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
52341         * tests/unistdio/test-u32-vasnprintf3.c: New file.
52342         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
52343         * tests/unistdio/test-u32-vasprintf1.c: New file.
52344         * tests/unistdio/test-u32-vsnprintf1.c: New file.
52345         * tests/unistdio/test-u32-vsprintf1.c: New file.
52346         * modules/unistdio/base: New file.
52347         * modules/unistdio/u-printf-args: New file.
52348         * modules/unistdio/ulc-asnprintf: New file.
52349         * modules/unistdio/ulc-asprintf: New file.
52350         * modules/unistdio/ulc-fprintf: New file.
52351         * modules/unistdio/ulc-printf-parse: New file.
52352         * modules/unistdio/ulc-snprintf: New file.
52353         * modules/unistdio/ulc-sprintf: New file.
52354         * modules/unistdio/ulc-vasnprintf: New file.
52355         * modules/unistdio/ulc-vasprintf: New file.
52356         * modules/unistdio/ulc-vfprintf: New file.
52357         * modules/unistdio/ulc-vsnprintf: New file.
52358         * modules/unistdio/ulc-vsprintf: New file.
52359         * modules/unistdio/u8-asnprintf: New file.
52360         * modules/unistdio/u8-asprintf: New file.
52361         * modules/unistdio/u8-printf-parse: New file.
52362         * modules/unistdio/u8-snprintf: New file.
52363         * modules/unistdio/u8-sprintf: New file.
52364         * modules/unistdio/u8-vasnprintf: New file.
52365         * modules/unistdio/u8-vasprintf: New file.
52366         * modules/unistdio/u8-vsnprintf: New file.
52367         * modules/unistdio/u8-vsprintf: New file.
52368         * modules/unistdio/u8-u8-asnprintf: New file.
52369         * modules/unistdio/u8-u8-asprintf: New file.
52370         * modules/unistdio/u8-u8-snprintf: New file.
52371         * modules/unistdio/u8-u8-sprintf: New file.
52372         * modules/unistdio/u8-u8-vasnprintf: New file.
52373         * modules/unistdio/u8-u8-vasprintf: New file.
52374         * modules/unistdio/u8-u8-vsnprintf: New file.
52375         * modules/unistdio/u8-u8-vsprintf: New file.
52376         * modules/unistdio/u16-asnprintf: New file.
52377         * modules/unistdio/u16-asprintf: New file.
52378         * modules/unistdio/u16-printf-parse: New file.
52379         * modules/unistdio/u16-snprintf: New file.
52380         * modules/unistdio/u16-sprintf: New file.
52381         * modules/unistdio/u16-vasnprintf: New file.
52382         * modules/unistdio/u16-vasprintf: New file.
52383         * modules/unistdio/u16-vsnprintf: New file.
52384         * modules/unistdio/u16-vsprintf: New file.
52385         * modules/unistdio/u16-u16-asnprintf: New file.
52386         * modules/unistdio/u16-u16-asprintf: New file.
52387         * modules/unistdio/u16-u16-snprintf: New file.
52388         * modules/unistdio/u16-u16-sprintf: New file.
52389         * modules/unistdio/u16-u16-vasnprintf: New file.
52390         * modules/unistdio/u16-u16-vasprintf: New file.
52391         * modules/unistdio/u16-u16-vsnprintf: New file.
52392         * modules/unistdio/u16-u16-vsprintf: New file.
52393         * modules/unistdio/u32-asnprintf: New file.
52394         * modules/unistdio/u32-asprintf: New file.
52395         * modules/unistdio/u32-printf-parse: New file.
52396         * modules/unistdio/u32-snprintf: New file.
52397         * modules/unistdio/u32-sprintf: New file.
52398         * modules/unistdio/u32-vasnprintf: New file.
52399         * modules/unistdio/u32-vasprintf: New file.
52400         * modules/unistdio/u32-vsnprintf: New file.
52401         * modules/unistdio/u32-vsprintf: New file.
52402         * modules/unistdio/u32-u32-asnprintf: New file.
52403         * modules/unistdio/u32-u32-asprintf: New file.
52404         * modules/unistdio/u32-u32-snprintf: New file.
52405         * modules/unistdio/u32-u32-sprintf: New file.
52406         * modules/unistdio/u32-u32-vasnprintf: New file.
52407         * modules/unistdio/u32-u32-vasprintf: New file.
52408         * modules/unistdio/u32-u32-vsnprintf: New file.
52409         * modules/unistdio/u32-u32-vsprintf: New file.
52410         * modules/unistdio/ulc-asnprintf-tests: New file.
52411         * modules/unistdio/ulc-vasnprintf-tests: New file.
52412         * modules/unistdio/ulc-vasprintf-tests: New file.
52413         * modules/unistdio/ulc-vsnprintf-tests: New file.
52414         * modules/unistdio/ulc-vsprintf-tests: New file.
52415         * modules/unistdio/u8-asnprintf-tests: New file.
52416         * modules/unistdio/u8-vasnprintf-tests: New file.
52417         * modules/unistdio/u8-vasprintf-tests: New file.
52418         * modules/unistdio/u8-vsnprintf-tests: New file.
52419         * modules/unistdio/u8-vsprintf-tests: New file.
52420         * modules/unistdio/u16-asnprintf-tests: New file.
52421         * modules/unistdio/u16-vasnprintf-tests: New file.
52422         * modules/unistdio/u16-vasprintf-tests: New file.
52423         * modules/unistdio/u16-vsnprintf-tests: New file.
52424         * modules/unistdio/u16-vsprintf-tests: New file.
52425         * modules/unistdio/u32-asnprintf-tests: New file.
52426         * modules/unistdio/u32-vasnprintf-tests: New file.
52427         * modules/unistdio/u32-vasprintf-tests: New file.
52428         * modules/unistdio/u32-vsnprintf-tests: New file.
52429         * modules/unistdio/u32-vsprintf-tests: New file.
52430         * MODULES.html.sh (Unicode string functions): Add the new modules.
52431
52432 2007-07-01  Bruno Haible  <bruno@clisp.org>
52433
52434         * lib/sprintf.c (sprintf): Limit the available length estimation,
52435         to avoid address wraparound.
52436         * lib/vsprintf.c (vsprintf): Likewise.
52437         * modules/sprintf-posix (Dependencies): Add stdint.
52438         * modules/vsprintf-posix (Dependencies): Likewise.
52439
52440 2007-07-01  Bruno Haible  <bruno@clisp.org>
52441
52442         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
52443         Windows PATH as well. Conservative double-quoting. Comments.
52444
52445 2007-07-01  Bruno Haible  <bruno@clisp.org>
52446             Eric Blake  <ebb9@byu.net>
52447             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52448
52449         * gnulib-tool (self_abspathname): Fix algorithm to cope with
52450         empty components in $PATH, denoting '.'.
52451
52452 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52453
52454         * gnulib-tool: Fix indentation.
52455         (func_create_megatestdir): Likewise.
52456         Report by Bruno Haible.
52457
52458 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52459
52460         Sync from Automake.
52461         * build-aux/gnupload: Fix shell portability issues with for loops.
52462         Report by Karl Berry.
52463
52464 2007-06-29  Simon Josefsson  <simon@josefsson.org>
52465
52466         * build-aux/maint.mk (POURL): Use translationproject.org.
52467
52468 2007-06-27  Simon Josefsson  <simon@josefsson.org>
52469             Bruno Haible  <bruno@clisp.org>
52470
52471         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
52472         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
52473         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
52474         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
52475         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
52476
52477 2007-06-27  Bruno Haible  <bruno@clisp.org>
52478
52479         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
52480         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
52481
52482 2007-06-26  Karl Berry  <karl@gnu.org>
52483
52484         * MODULES.html.sh: remove xreadlink-with-size.
52485
52486 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52487
52488         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
52489         method that I hope also handles the double-include problem noted
52490         by Bruno Haible in
52491         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
52492
52493 2007-06-23  Bruno Haible  <bruno@clisp.org>
52494
52495         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52496         Don't let the 'mostlyclean' target fail if the last subdirectory could
52497         not be removed.
52498         Reported by Karl Berry.
52499
52500 2007-06-23  Bruno Haible  <bruno@clisp.org>
52501
52502         * gnulib-tool (echo): Add a speedier workaround for ksh.
52503         * tests/test-echo.sh: Likewise.
52504
52505 2007-06-23  Bruno Haible  <bruno@clisp.org>
52506
52507         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
52508         * tests/test-echo.sh: Likewise.
52509
52510 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52511
52512         * gnulib-tool (IFS): Initialize early, so we don't set it to
52513         empty later.
52514         (self_abspathname): Rewrite algorithm to set it, reindent.
52515         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
52516         (func_create_megatestdir): Merge some sed scripts.
52517
52518 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52519
52520         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
52521         exposed by Sun Studio 11 cc on Solaris 8.
52522
52523 2007-06-22  Bruno Haible  <bruno@clisp.org>
52524
52525         * gnulib-tool (echo): Ensure the echo primitive does not interpret
52526         backslashes.
52527         * tests/test-echo.sh: New file.
52528
52529 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52530
52531         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
52532         simplify `sed_replace_build_aux' scripts, they are portable but
52533         echoing them with `echo' is not.
52534         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
52535
52536 2007-06-21  Karl Berry  <karl@gnu.org>
52537
52538         * config/srclist.txt: guess we can't handle the licenses via
52539         srclist at the moment.
52540
52541 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
52542
52543         * MODULES.html.sh: Add include_next.
52544         * modules/include_next: New file.
52545
52546 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52547
52548         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
52549         INCLUDE_NEXT.
52550         (gl_CHECK_NEXT_HEADERS): New macro.
52551         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
52552         the obsolescent gl_ABSOLUTE_HEADER.
52553         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
52554         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
52555         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
52556         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52557         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
52558         * m4/math_h.m4 (gl_MATH_H): Likewise.
52559         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52560         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52561         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
52562         * m4/stdint.m4 (gl_STDINT_H): Likewise.
52563         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
52564         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
52565         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
52566         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52567         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52568         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
52569         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
52570         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
52571         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
52572         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
52573         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
52574         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
52575         * m4/inttypes.m4 (gl_INTTYPES_H): Define
52576         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
52577         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
52578         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
52579         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
52580         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
52581         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
52582         * lib/float_.h: Likewise.
52583         * lib/inttypes_.h: Likewise.
52584         * lib/math_.h: Likewise.
52585         * lib/search_.h: Likewise.
52586         * lib/signal_.h: Likewise.
52587         * lib/stdint_.h: Likewise.
52588         * lib/stdio_.h: Likewise.
52589         * lib/stdlib_.h: Likewise.
52590         * lib/string_.h: Likewise.
52591         * lib/sys_stat_.h: Likewise.
52592         * lib/sys_time_.h: Likewise.
52593         * lib/time_.h: Likewise.
52594         * lib/unistd_.h: Likewise.
52595         * lib/wchar_.h: Likewise.
52596         * lib/wctype_.h: Likewise.
52597         * lib/dirent_.h: Likewise.
52598         * lib/iconv_.h: Likewise.
52599         * lib/locale_.h: Likewise.
52600         * lib/netinet_in_.h: Likewise.
52601         * lib/sys_select_.h: Likewise.
52602         * lib/sys_socket_.h: Likewise.
52603         * lib/sysexits_.h: Likewise.
52604         * modules/fcntl (Depends-on): Depend on include_next, not
52605         absolute_header.
52606         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
52607         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
52608         * modules/fchdir: Likewise.
52609         * modules/float: Likewise.
52610         * modules/iconv_open: Likewise.
52611         * modules/inttypes: Likewise.
52612         * modules/locale: Likewise.
52613         * modules/math: Likewise.
52614         * modules/netinet_in: Likewise.
52615         * modules/search: Likewise.
52616         * modules/signal: Likewise.
52617         * modules/stdint: Likewise.
52618         * modules/stdio: Likewise.
52619         * modules/stdlib: Likewise.
52620         * modules/string: Likewise.
52621         * modules/sys_select: Likewise.
52622         * modules/sys_socket: Likewise.
52623         * modules/sys_stat: Likewise.
52624         * modules/sys_time: Likewise.
52625         * modules/sysexits: Likewise.
52626         * modules/time: Likewise.
52627         * modules/unistd: Likewise.
52628         * modules/wchar: Likewise.
52629         * modules/wctype: Likewise.
52630         * modules/sys_stat: Change maintainer to "all".
52631         * modules/unistd: Likewise.
52632
52633 2007-06-20  Karl Berry  <karl@gnu.org>
52634
52635         * config/srclist.txt: track www changes in license files.
52636
52637 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
52638
52639         * build-aux/bootstrap: Remove stray dot.
52640         Make sure build_aux settings are honored when linking
52641         gnulib_extra_files.
52642
52643 2007-06-19  Eric Blake  <ebb9@byu.net>
52644
52645         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52646         Allow compilation on cygwin.
52647
52648 2007-06-19  Jim Meyering  <jim@meyering.net>
52649
52650         xreadlink-with-size: Remove module.  No longer used.
52651         Ex-callers now use xreadlink or mreadlink-with-size.
52652         * modules/xreadlink-with-size: Remove module.
52653         * lib/xreadlink-with-size.c: Remove file.
52654         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
52655         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
52656         just before the function definition *is* accurate.
52657
52658         Eliminate one way canonicalize_filename_mode could exit.
52659         * lib/canonicalize.c (canonicalize_filename_mode):
52660         Use mreadlink_with_size, not xreadlink_with_size.
52661
52662 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
52663
52664         Detect porting problems to FreeBSD/arm, which has time_t wider than
52665         long int.  Original problem reported for GNU diff by Xin Li in
52666         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
52667         * modules/getdate (Depends-on): Add intprops, verify.
52668         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
52669         is an integer type no wider than long int.
52670
52671 2007-06-18  Jim Meyering  <jim@meyering.net>
52672
52673         New module: mreadlink-with-size.
52674         * MODULES.html.sh: Add mreadlink-with-size.
52675         * modules/mreadlink-with-size: New module
52676         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
52677         not xreadlink-with-size.
52678         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
52679
52680 2007-06-16  Bruno Haible  <bruno@clisp.org>
52681
52682         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
52683         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
52684         Reported by Gary V. Vaughan <gary@gnu.org>.
52685
52686 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
52687
52688         Revamp lchown so that it lives in unistd.h where it belongs.
52689         * lib/lchown.h: Remove.
52690         * lib/dirchownmod.c: Don't include lib/lchown.h.
52691         * lib/fchownat.c: Likewise.
52692         * lib/openat.c: Likewise.
52693         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
52694         does not follow symlinks.
52695         (EOPNOTSUPP): Define if not defined.
52696         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
52697         is defined to 0.
52698         (lchown): New decl.
52699         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
52700         Do not check for lchown decl.
52701         Set REPLACE_LCHOWN.
52702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
52703         REPLACE_LCHOWN.
52704         * modules/chown: Make it clear it follows symlinks.
52705         * modules/lchown: Make it clear it doesn't follow symlinks.
52706         (Files): Remove lib/lchown.h
52707         (Depends-on): Add unistd.
52708         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
52709         (Include): Include <unistd.h>, not "lchown.h".
52710         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
52711         REPLACE_LCHOWN.
52712
52713 2007-06-15  Jim Meyering  <jim@meyering.net>
52714
52715         Change license (GPL to LGPL) of fsusage and dependents.
52716         * modules/fsusage (License): Change to LGPL.
52717         * modules/full-read (License): Likewise.
52718         * modules/full-write (License): Likewise.
52719         * modules/safe-read (License): Likewise.
52720         * modules/safe-write (License): Likewise.
52721
52722 2007-06-14  Ben Pfaff  <blp@gnu.org>
52723
52724         Missing part of allocsa -> malloca transition.
52725         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
52726         gl_MALLOCA.
52727
52728 2007-06-12  Bruno Haible  <bruno@clisp.org>
52729
52730         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
52731         to ia64, x86_64, i386.
52732         Reported by Eric Blake.
52733
52734 2007-06-12  Bruno Haible  <bruno@clisp.org>
52735
52736         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
52737         cross-compiling to x86_64.
52738
52739 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
52740
52741         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
52742         glitch reported by Ralf Wildenhues in
52743         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
52744
52745         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
52746         Vin Shelton.
52747
52748 2007-06-11  Bruno Haible  <bruno@clisp.org>
52749
52750         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
52751         replacement string.
52752         Reported by Eric Blake.
52753
52754 2007-06-10  Bruno Haible  <bruno@clisp.org>
52755
52756         Prepare vasnprintf code for use with Unicode strings.
52757         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
52758         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
52759         TYPE_U32_STRING.
52760         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
52761         a_u32_string variants.
52762         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
52763         * lib/printf-args.c: Don't include config.h and the specification
52764         header if PRINTF_FETCHARGS is already defined.
52765         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
52766         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
52767         TYPE_U16_STRING, TYPE_U32_STRING.
52768         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
52769         u16_directive, u16_directives, u32_directive, u32_directives): New
52770         types.
52771         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
52772         New declarations.
52773         * lib/printf-parse.c: Don't include config.h and the specification
52774         header if PRINTF_PARSE is already defined. Eliminate the set of
52775         parameters for WIDE_CHAR_VERSION; the user of this file must provide
52776         them now. Include c-ctype.h.
52777         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
52778         directive and CHAR_T_ONLY_ASCII.
52779         * lib/vasnprintf.c: Don't include config.h and the specification header
52780         if VASNPRINTF is already defined.
52781         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
52782         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
52783         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
52784         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
52785         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
52786         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
52787         code accordingly.
52788         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
52789         pad_ourselves also in this case, with the 'c' and 's' directives, and
52790         with a different notion of "width".
52791         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
52792
52793 2007-06-10  Bruno Haible  <bruno@clisp.org>
52794
52795         * modules/unistr/u32-mbsnlen: New file.
52796         * lib/unistr/u32-mbsnlen.c: New file.
52797
52798         * modules/unistr/u16-mbsnlen: New file.
52799         * lib/unistr/u16-mbsnlen.c: New file.
52800
52801         * modules/unistr/u8-mbsnlen: New file.
52802         * lib/unistr/u8-mbsnlen.c: New file.
52803
52804         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
52805         declarations.
52806
52807 2007-06-10  Bruno Haible  <bruno@clisp.org>
52808
52809         * lib/string_.h (mbsnlen): New declaration.
52810         * lib/mbsnlen.c: New file.
52811         * m4/mbsnlen.m4: New file.
52812         * modules/mbsnlen: New file.
52813         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
52814         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
52815         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
52816
52817 2007-06-10  Bruno Haible  <bruno@clisp.org>
52818
52819         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
52820
52821 2007-06-10  Bruno Haible  <bruno@clisp.org>
52822
52823         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
52824         * lib/mbuiter.h: Likewise.
52825
52826 2007-06-10  Bruno Haible  <bruno@clisp.org>
52827
52828         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
52829         declaration.
52830
52831 2007-06-10  Karl Berry  <karl@gnu.org>
52832
52833         * config/srclist.txt: remove gettext entries, Bruno prefers
52834         to update individually.
52835
52836 2007-06-10  Bruno Haible  <bruno@clisp.org>
52837
52838         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
52839         'maxlen'. Ensure only length + width bytes are allocated, not
52840         length + 1 + width.
52841
52842 2007-06-09  Bruno Haible  <bruno@clisp.org>
52843
52844         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
52845         (CHAR_T): Remove macro.
52846         (VASNPRINTF): Update.
52847
52848 2007-06-09  Bruno Haible  <bruno@clisp.org>
52849
52850         * MODULES.html.sh (Unicode string functions): Add the new modules.
52851
52852         * modules/uniconv/u32-conv-to-enc: New file.
52853         * lib/uniconv/u32-conv-to-enc.c: New file.
52854         * modules/uniconv/u32-conv-to-enc-tests: New file.
52855         * tests/uniconv/test-u32-conv-to-enc.c: New file.
52856
52857         * modules/uniconv/u16-conv-to-enc: New file.
52858         * lib/uniconv/u16-conv-to-enc.c: New file.
52859         * lib/uniconv/u-conv-to-enc.h: New file.
52860         * modules/uniconv/u16-conv-to-enc-tests: New file.
52861         * tests/uniconv/test-u16-conv-to-enc.c: New file.
52862
52863         * modules/uniconv/u8-conv-to-enc: New file.
52864         * lib/uniconv/u8-conv-to-enc.c: New file.
52865         * modules/uniconv/u8-conv-to-enc-tests: New file.
52866         * tests/uniconv/test-u8-conv-to-enc.c: New file.
52867
52868         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
52869         u32_conv_to_encoding): New declarations.
52870
52871 2007-06-09  Bruno Haible  <bruno@clisp.org>
52872
52873         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
52874
52875 2007-06-09  Bruno Haible  <bruno@clisp.org>
52876
52877         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
52878         * modules/malloca: Renamed from modules/allocsa, updated.
52879         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
52880         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
52881         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
52882         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
52883         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
52884         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
52885         * modules/xmalloca: Renamed from modules/xallocsa, updated.
52886         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
52887         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
52888         * modules/c-strcasestr (Depends-on): Update.
52889         * lib/c-strcasestr.c: Update.
52890         * modules/c-strstr (Depends-on): Update.
52891         * lib/c-strstr.c: Update.
52892         * modules/canonicalize-lgpl (Depends-on): Update.
52893         * lib/canonicalize-lgpl.c: Update.
52894         * modules/clean-temp (Depends-on): Update.
52895         * lib/clean-temp.c: Update.
52896         * modules/csharpcomp (Depends-on): Update.
52897         * lib/csharpcomp.c: Update.
52898         * modules/csharpexec (Depends-on): Update.
52899         * lib/csharpexec.c: Update.
52900         * modules/javacomp (Depends-on): Update.
52901         * lib/javacomp.c: Update.
52902         * modules/javaexec (Depends-on): Update.
52903         * lib/javaexec.c: Update.
52904         * modules/mbscasestr (Depends-on): Update.
52905         * lib/mbscasestr.c: Update.
52906         * modules/mbsstr (Depends-on): Update.
52907         * lib/mbsstr.c: Update.
52908         * modules/setenv (Depends-on): Update.
52909         * lib/setenv.c: Update.
52910         * modules/strcasestr (Depends-on): Update.
52911         * lib/strcasestr.c: Update.
52912         * modules/striconveha (Depends-on): Update.
52913         * lib/striconveha.c: Update.
52914         * modules/relocatable-prog-wrapper (Files): Update.
52915         * lib/relocwrapper.c: Update.
52916         * build-aux/install-reloc: Update.
52917         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
52918
52919 2007-06-08  Bruno Haible  <bruno@clisp.org>
52920
52921         Port to uClibc.
52922         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
52923         * lib/fpurge.c (fpurge): Likewise.
52924         * lib/freading.c (freading): Likewise.
52925         * lib/fseeko.c (rpl_fseeko): Likewise.
52926         * lib/fseterr.c (fseterr): Likewise.
52927         * lib/fwriting.c (fwriting): Likewise.
52928         * tests/test-fflush.c (main): Avoid a failure on uClibc.
52929
52930 2007-06-08  Bruno Haible  <bruno@clisp.org>
52931
52932         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
52933         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
52934         * modules/gettext (Files): Add m4/intlmacosx.m4.
52935
52936 2007-06-07  Bruno Haible  <bruno@clisp.org>
52937
52938         * modules/localename-tests: New file.
52939         * tests/test-localename.c: New file.
52940
52941         New module 'localename'.
52942         * lib/localename.h: New file.
52943         * lib/localename.c: New file, from GNU gettext.
52944         * m4/localename.m4: New file.
52945         * modules/localename: New file.
52946
52947 2007-06-07  Bruno Haible  <bruno@clisp.org>
52948
52949         Work around the lack of <wchar.h> on some builds of uClibc.
52950         * doc/headers/wchar.texi: Update.
52951         * lib/wchar_.h: Include <wchar.h> only if it exists.
52952         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
52953         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
52954         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
52955         doesn't exist.
52956         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
52957         * modules/mbfile (Depends-on): Add wchar.
52958         * modules/mbiter (Depends-on): Likewise.
52959         * modules/mbuiter (Depends-on): Likewise.
52960         Reported by Simon Josefsson.
52961
52962 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
52963
52964         Work around problem reported by Steven M. Schweda in
52965         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
52966         Tru64 5.1B with the Compaq compiler environment installed declares
52967         an 'isblank' function but does not define it in the C library.
52968         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
52969         * lib/regex_internal.h (isblank): Likewise.
52970         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
52971         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52972
52973 2007-06-05  Bruno Haible  <bruno@clisp.org>
52974
52975         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
52976         ia64.
52977         * modules/printf-safe: New file.
52978         * modules/fprintf-posix (Depends-on): Add printf-safe.
52979         * modules/printf-posix (Depends-on): Likewise.
52980         * modules/snprintf-posix (Depends-on): Likewise.
52981         * modules/sprintf-posix (Depends-on): Likewise.
52982         * modules/vasnprintf-posix (Depends-on): Likewise.
52983         * modules/vasprintf-posix (Depends-on): Likewise.
52984         * modules/vfprintf-posix (Depends-on): Likewise.
52985         * modules/vprintf-posix (Depends-on): Likewise.
52986         * modules/vsnprintf-posix (Depends-on): Likewise.
52987         * modules/vsprintf-posix (Depends-on): Likewise.
52988         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
52989         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
52990         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
52991         "no" on i386, x86_64, ia64.
52992         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
52993         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52994         on i386, x86_64, ia64.
52995         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
52996         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52997         on i386, x86_64, ia64.
52998         * tests/test-vasnprintf-posix.c: Include float.h.
52999         (LDBL80_WORDS): New macro.
53000         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53001         on i386, x86_64, ia64.
53002         * tests/test-vasprintf-posix.c: Include float.h.
53003         (LDBL80_WORDS): New macro.
53004         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53005         on i386, x86_64, ia64.
53006         * tests/test-snprintf-posix.c: Include float.h.
53007         * tests/test-sprintf-posix.c: Likewise.
53008         * tests/test-vsnprintf-posix.c: Likewise.
53009         * tests/test-vsprintf-posix.c: Likewise.
53010
53011 2007-06-05  Bruno Haible  <bruno@clisp.org>
53012
53013         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
53014         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
53015         non-IEEE numbers on i386, x86_64, ia64.
53016         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
53017         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
53018         * tests/test-isnanl.h: Include float.h.
53019         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
53020
53021 2007-06-05  Bruno Haible  <bruno@clisp.org>
53022
53023         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
53024         also the %a / %A. Handle the %a / %A code before this extra handling.
53025
53026 2007-06-05  Bruno Haible  <bruno@clisp.org>
53027
53028         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
53029         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
53030
53031 2007-06-05  Bruno Haible  <bruno@clisp.org>
53032
53033         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
53034         typo in variable name.
53035
53036 2007-06-05  Eric Blake  <ebb9@byu.net>
53037
53038         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
53039         Reported by Simon Josefsson.
53040
53041 2007-06-04  Bruno Haible  <bruno@clisp.org>
53042
53043         Avoid test failures on some PowerPC platforms.
53044         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
53045         Define differently for PowerPC.
53046         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
53047         Reported by Gary V. Vaughan <gary@gnu.org>.
53048
53049 2007-06-02  Bruno Haible  <bruno@clisp.org>
53050
53051         Fix test-stdint failure on FreeBSD/ia64.
53052         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
53053         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
53054         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
53055         * doc/headers/stdint.texi: Update.
53056
53057 2007-06-01  Bruno Haible  <bruno@clisp.org>
53058
53059         * tests/test-binary-io.c (main): Pass a third argument to open().
53060         Reported by Gary V. Vaughan <gary@gnu.org>.
53061
53062 2007-06-01  Bruno Haible  <bruno@clisp.org>
53063
53064         * doc/functions/frexpl.texi: Update for mingw.
53065
53066 2007-06-01  Bruno Haible  <bruno@clisp.org>
53067
53068         * tests/test-lseek.c (main): Disable test of errno for invalid third
53069         argument.
53070         * doc/functions/lseek.texi: Update.
53071         Reported by Gary V. Vaughan <gary@gnu.org>.
53072
53073 2007-05-28  Bruno Haible  <bruno@clisp.org>
53074
53075         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
53076
53077 2007-05-31  Eric Blake  <ebb9@byu.net>
53078
53079         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
53080         cross compiling.
53081
53082 2007-05-30  Eric Blake  <ebb9@byu.net>
53083         and Bruno Haible  <bruno@clisp.org>
53084
53085         Work around mingw test failures exposed by m4-1.4.9b.
53086         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
53087         * tests/test-unistd.c: Disable uid_t and git_t tests for the
53088         moment.
53089
53090 2007-05-30  Bruno Haible  <bruno@clisp.org>
53091
53092         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
53093         assuming that they are closed. Needed on HP-UX 11.
53094
53095 2007-05-29  Bruno Haible  <bruno@clisp.org>
53096
53097         Fix a problem with #include_next.
53098         * lib/dirent_.h: Split the double-inclusion guard.
53099         * lib/fcntl_.h: Likewise.
53100         * lib/float_.h: Likewise.
53101         * lib/iconv_.h: Likewise.
53102         * lib/inttypes_.h: Likewise.
53103         * lib/locale_.h: Likewise.
53104         * lib/math_.h: Likewise.
53105         * lib/netinet_in_.h: Likewise.
53106         * lib/search_.h: Likewise.
53107         * lib/signal_.h: Likewise.
53108         * lib/stdint_.h: Likewise.
53109         * lib/stdio_.h: Likewise.
53110         * lib/stdlib_.h: Likewise.
53111         * lib/string_.h: Likewise.
53112         * lib/sys_select_.h: Likewise.
53113         * lib/sys_socket_.h: Likewise.
53114         * lib/sys_stat_.h: Likewise.
53115         * lib/sys_time_.h: Likewise.
53116         * lib/sysexits_.h: Likewise.
53117         * lib/time_.h: Likewise.
53118         * lib/unistd_.h: Likewise.
53119         * lib/wchar_.h: Likewise.
53120         * lib/wctype_.h: Likewise.
53121
53122 2007-05-29  Bruno Haible  <bruno@clisp.org>
53123
53124         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
53125         for the moment.
53126
53127 2007-05-29  Bruno Haible  <bruno@clisp.org>
53128
53129         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
53130         invocation.
53131         Reported by Eric Blake.
53132
53133 2007-05-29  Bruno Haible  <bruno@clisp.org>
53134
53135         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
53136         compiling case.
53137
53138 2007-05-29  Eric Blake  <ebb9@byu.net>
53139             Bruno Haible  <bruno@clisp.org>
53140
53141         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
53142         cross compiles.
53143
53144 2007-05-28  Eric Blake  <ebb9@byu.net>
53145
53146         * modules/closein-tests (test_closein_LDADD): Support test on
53147         cygwin with libtool.
53148
53149 2007-05-28  Bruno Haible  <bruno@clisp.org>
53150
53151         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
53152         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53153         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53154         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53155         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53156         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53157         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53158         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53159         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53160
53161 2007-05-28  Eric Blake  <ebb9@byu.net>
53162
53163         Unconditionally include <config.h> in unit tests.
53164         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
53165         * tests/test-allocsa.c, tests/test-arcfour.c,
53166         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
53167         tests/test-array_list.c, tests/test-array_oset.c,
53168         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
53169         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
53170         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
53171         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
53172         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
53173         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
53174         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
53175         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
53176         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
53177         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
53178         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
53179         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
53180         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
53181         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
53182         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
53183         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
53184         test-md5.c, test-memmem.c, test-printf-posix.c,
53185         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
53186         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
53187         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
53188         test-strcasestr.c, test-striconv.c, test-striconveh.c,
53189         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
53190         test-vasnprintf-posix2.c, test-vasnprintf.c,
53191         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
53192         test-vfprintf-posix.c, test-vprintf-posix.c,
53193         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
53194         test-xvasprintf.c: Likewise.
53195
53196 2007-05-28  Bruno Haible  <bruno@clisp.org>
53197
53198         * gnulib-tool (func_import): Remember the --with-tests command-line
53199         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
53200         Reported by Eric Blake.
53201
53202 2007-05-28  Bruno Haible  <bruno@clisp.org>
53203
53204         * modules/ftell-tests: New file.
53205         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
53206         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
53207
53208         * lib/ftell.c: New file.
53209         * modules/ftell: New file.
53210         * m4/ftell.m4: New file.
53211         * doc/functions/ftell.texi: Update.
53212         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
53213         REPLACE_FTELL.
53214         * lib/stdio_.h (rpl_ftell): New declaration.
53215         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
53216         REPLACE_FTELL.
53217
53218 2007-05-28  Eric Blake  <ebb9@byu.net>
53219
53220         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
53221
53222 2007-05-28  Bruno Haible  <bruno@clisp.org>
53223
53224         * modules/fseek-tests: New file.
53225         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
53226         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
53227
53228         * lib/fseek.c: New file.
53229         * modules/fseek: New file.
53230         * m4/fseek.m4: New file.
53231         * doc/functions/fseek.texi: Update.
53232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
53233         REPLACE_FSEEK.
53234         * lib/stdio_.h (rpl_fseek): New declaration.
53235         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
53236         REPLACE_FSEEK.
53237
53238 2007-05-28  Bruno Haible  <bruno@clisp.org>
53239
53240         * lib/stdio_.h (fflush): More comments.
53241
53242 2007-05-28  Bruno Haible  <bruno@clisp.org>
53243
53244         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
53245         runtime test.
53246
53247 2007-05-28  Eric Blake  <ebb9@byu.net>
53248
53249         Improve lseek module.
53250         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
53251         * lib/unistd_.h (lseek): Scale back link warning message.
53252         * tests/test-lseek.c: Beef up test.
53253         * tests/test-lseek.sh: Exercise more facets of lseek.
53254         Reported by Bruno Haible.
53255
53256 2007-05-28  Bruno Haible  <bruno@clisp.org>
53257
53258         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
53259         to define.
53260
53261 2007-05-27  Bruno Haible  <bruno@clisp.org>
53262
53263         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
53264
53265 2007-05-27  Bruno Haible  <bruno@clisp.org>
53266
53267         * modules/openmp: New file.
53268         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
53269         Noah Misch.
53270
53271 2007-05-26  Bruno Haible  <bruno@clisp.org>
53272
53273         * modules/chdir-long (Depends-on): Add fchdir.
53274         * modules/chdir-safer (Depends-on): Likewise.
53275         * modules/fts (Depends-on): Likewise.
53276         * modules/fts-lgpl (Depends-on): Likewise.
53277         * modules/openat (Depends-on): Likewise.
53278         * modules/savewd (Depends-on): Likewise.
53279
53280 2007-05-24  Eric Blake  <ebb9@byu.net>
53281
53282         Fix lseek on mingw.
53283         * modules/lseek: New module.
53284         * m4/lseek.m4: New file.
53285         * lib/lseek.c: New file.
53286         * modules/lseek-tests: New file.
53287         * tests/test-lseek.c: New file.
53288         * tests/test-lseek.sh: New file.
53289         * MODULES.html.sh: Document lseek module.
53290         * modules/fflush (Depends-on): Add lseek, fseeko.
53291         * modules/fseeko (Depends-on): Likewise.
53292         * modules/ftello (Depends-on): Likewise.
53293         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
53294         broken.
53295         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
53296         broken.
53297         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
53298         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
53299         * lib/ftello.c (rpl_ftello): Likewise.
53300         * tests/test-fseeko.c (main): Test this.
53301         * tests/test-fseeko.sh: Likewise.
53302         * tests/test-ftello.c (main): Likewise.
53303         * tests/test-ftello.sh: Likewise.
53304         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
53305         implies replacing fseek.
53306         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
53307         HAVE_FTELLO.
53308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
53309         * modules/unistd (Makefile.am): Likewise.
53310         * lib/unistd_.h (lseek): Declare a replacement.
53311         * doc/functions/lseek.texi (lseek): Document this fix.
53312         * doc/functions/fseek.texi (fseek): Likewise.
53313         * doc/functions/ftell.texi (ftell): Likewise.
53314
53315 2007-05-24  Bruno Haible  <bruno@clisp.org>
53316
53317         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
53318         in the printed representation of a NaN.
53319         * tests/test-vasprintf-posix.c (test_function): Likewise.
53320         * tests/test-snprintf-posix.h (test_function): Likewise.
53321         * tests/test-sprintf-posix.h (test_function): Likewise.
53322         Reported by Eric Blake.
53323
53324 2007-05-23  Eric Blake  <ebb9@byu.net>
53325
53326         Fix fseeko/ftello on cygwin 1.5.24.
53327         * doc/functions/fseeko.texi (fseeko): Document the fix.
53328         * doc/functions/ftello.texi (ftello): Document the fix.
53329         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
53330         * doc/functions/stdout.text (stdout): New file.
53331         * doc/functions/stderr.text (stderr): New file.
53332         * doc/gnulib.texi (Function Substitutes): Use new files.
53333         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
53334         prior to 1.7.0.
53335         * tests/test-ftello.c (main): Likewise for ftello.
53336         * tests/test-fseeko.sh: New file.
53337         * tests/test-ftello.sh: New file.
53338         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
53339         with seekable stdin.
53340         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
53341         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
53342         (gl_REPLACE_FSEEKO): New macro.
53343         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
53344         * modules/fseeko (Files): Distribute fseeko.c.
53345         * modules/ftello (Files): Distribute ftello.c.
53346         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
53347         mode.
53348         * lib/ftello.c (rpl_ftello): New file.
53349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
53350         fseeko, ftello.
53351         (gl_STDIN_LARGE_OFFSET): New macro.
53352         * modules/stdio (Makefile.am): Perform the replacement.
53353         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
53354
53355 2007-05-23  Bruno Haible  <bruno@clisp.org>
53356
53357         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
53358         GNULIB_POSIXCHECK is defined.
53359
53360 2007-05-21  Bruno Haible  <bruno@clisp.org>
53361
53362         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
53363         Check also the output for NaN arguments. When cross-compiling, guess
53364         no on IRIX.
53365         * lib/vasnprintf.c: Update comments.
53366         * tests/test-vasnprintf-posix.c (strisnan): New function.
53367         (test_function): Use it.
53368         * tests/test-vasprintf-posix.c (strisnan): New function.
53369         (test_function): Use it.
53370         * tests/test-snprintf-posix.h (strisnan): New function.
53371         (test_function): Use it.
53372         * tests/test-sprintf-posix.h (strisnan): New function.
53373         (test_function): Use it.
53374         Reported by Eric Blake.
53375
53376 2007-05-20  Bruno Haible  <bruno@clisp.org>
53377
53378         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
53379         numbers that fails on BeOS.
53380         * doc/functions/frexpl.texi: Update.
53381
53382 2007-05-20  Jim Meyering  <jim@meyering.net>
53383
53384         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
53385         forced upon us by glibc-2.6.
53386
53387 2007-05-20  Bruno Haible  <bruno@clisp.org>
53388
53389         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
53390         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
53391         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
53392         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
53393         NEED_PRINTF_INFINITE.
53394         (is_infinitel): New function.
53395         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
53396         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
53397         gl_PREREQ_VASNPRINTF_INFINITE.
53398         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
53399         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53400         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
53401         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
53402         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
53403         gl_PREREQ_VASNPRINTF_INFINITE.
53404         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53405         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53406         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53407         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53408         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53409         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53410         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53411         * doc/functions/fprintf.texi: Update.
53412         * doc/functions/printf.texi: Update.
53413         * doc/functions/snprintf.texi: Update.
53414         * doc/functions/sprintf.texi: Update.
53415         * doc/functions/vfprintf.texi: Update.
53416         * doc/functions/vprintf.texi: Update.
53417         * doc/functions/vsnprintf.texi: Update.
53418         * doc/functions/vsprintf.texi: Update.
53419
53420 2007-05-20  Bruno Haible  <bruno@clisp.org>
53421
53422         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
53423         was not found in libc.
53424         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
53425
53426 2007-05-20  Bruno Haible  <bruno@clisp.org>
53427
53428         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53429         printed as "-nan" instead of "nan".
53430         * tests/test-vasprintf-posix.c (test_function): Likewise.
53431         * tests/test-snprintf-posix.h (test_function): Likewise.
53432         * tests/test-sprintf-posix.h (test_function): Likewise.
53433         Needed for HP-UX 11.
53434
53435 2007-05-20  Jim Meyering  <jim@meyering.net>
53436
53437         Fix buggy test for the fchownat-deref bug.
53438         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
53439         symlink required for the run-test.  Without it, this test would
53440         always declare that fchownat doesn't work, and client code would
53441         unnecessarily use the replacement function with fixed libc.
53442         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
53443         Reported by Greg Schafer.
53444
53445 2007-05-19  Bruno Haible  <bruno@clisp.org>
53446
53447         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
53448         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
53449         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
53450         Needed for IRIX 6.5 and Solaris 2.5.1.
53451
53452 2007-05-19  Bruno Haible  <bruno@clisp.org>
53453
53454         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
53455         (test_function): Skip tests involving -0.0 on platforms where
53456         -0.0 = 0.0.
53457         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
53458         (test_function): Skip tests involving -0.0 on platforms where
53459         -0.0 = 0.0.
53460         * tests/test-snprintf-posix.h (have_minus_zero): New function.
53461         (test_function): Skip tests involving -0.0 on platforms where
53462         -0.0 = 0.0.
53463         * tests/test-sprintf-posix.h (have_minus_zero): New function.
53464         (test_function): Skip tests involving -0.0 on platforms where
53465         -0.0 = 0.0.
53466         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
53467         tests.
53468         * tests/test-printf-posix.h (test_function): Likewise.
53469         * tests/test-printf-posix.output: Remove all -0.0 related results.
53470         Needed for IRIX 6.5.
53471
53472 2007-05-19  Bruno Haible  <bruno@clisp.org>
53473
53474         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53475         printed as "nan0x7fffffff" instead of "nan".
53476         * tests/test-vasprintf-posix.c (test_function): Likewise.
53477         * tests/test-snprintf-posix.h (test_function): Likewise.
53478         * tests/test-sprintf-posix.h (test_function): Likewise.
53479         * tests/test-fprintf-posix.h (NaN): Remove macro.
53480         (test_function): Remove all NaN related tests.
53481         * tests/test-printf-posix.h (NaN): Remove macro.
53482         (test_function): Remove all NaN related tests.
53483         * tests/test-printf-posix.output: Remove all NaN related results.
53484         Needed for IRIX 6.5.
53485
53486 2007-05-19  Bruno Haible  <bruno@clisp.org>
53487
53488         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
53489         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
53490
53491 2007-05-19  Bruno Haible  <bruno@clisp.org>
53492
53493         * lib/float_.h: New file.
53494         * m4/float_h.m4: New file.
53495         * modules/float: New file.
53496         * modules/isnanl (Dependencies): Add float.
53497         * modules/isnanl-nolibm (Dependencies): Likewise.
53498         * modules/mathl (Dependencies): Likewise.
53499         * modules/printf-frexpl (Dependencies): Likewise.
53500         * modules/signbit (Dependencies): Likewise.
53501         * modules/vasnprintf (Dependencies): Likewise.
53502         * doc/headers/float.texi: Update.
53503
53504 2007-05-19  Jim Meyering  <jim@meyering.net>
53505
53506         * lib/utimens.c (gl_futimens): Rename from futimens,
53507         now that glibc-2.6 declares futimens.
53508         * lib/utimens.h: Likewise.
53509
53510 2007-05-19  Bruno Haible  <bruno@clisp.org>
53511
53512         Avoid test failures on mingw.
53513         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
53514         * tests/test-printf-posix.sh: Likewise.
53515         * tests/test-vfprintf-posix.sh: Likewise.
53516         * tests/test-vprintf-posix.sh: Likewise.
53517
53518 2007-05-19  Bruno Haible  <bruno@clisp.org>
53519
53520         Fix *printf result for NaN, Inf, -0.0 on mingw.
53521         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
53522         * lib/vasnprintf.c: Include math.h and isnan.h.
53523         (is_infinite_or_zero): New function.
53524         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
53525         values in the %f, %F, %e, %E, %g, %G directives.
53526         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
53527         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53528         gl_PRINTF_INFINITE and test its result. Invoke
53529         gl_PREREQ_VASNPRINTF_INFINITE.
53530         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53531         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53532         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53533         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53534         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53535         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53536         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53537         * doc/functions/fprintf.texi: Update.
53538         * doc/functions/printf.texi: Update.
53539         * doc/functions/snprintf.texi: Update.
53540         * doc/functions/sprintf.texi: Update.
53541         * doc/functions/vfprintf.texi: Update.
53542         * doc/functions/vprintf.texi: Update.
53543         * doc/functions/vsnprintf.texi: Update.
53544         * doc/functions/vsprintf.texi: Update.
53545
53546 2007-05-19  Bruno Haible  <bruno@clisp.org>
53547
53548         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
53549         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
53550         Instead of multiplying with 10^k, set extra_zeroes to k.
53551         (scale10_round_long_double): Remove function.
53552
53553 2007-05-18  Bruno Haible  <bruno@clisp.org>
53554
53555         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
53556         introduced on 2007-05-06.
53557
53558 2007-05-18  Bruno Haible  <bruno@clisp.org>
53559
53560         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
53561         %g directives.
53562         * tests/test-vasprintf-posix.c (test_function): Likewise.
53563         * tests/test-snprintf-posix.h (test_function): Likewise.
53564         * tests/test-sprintf-posix.h (test_function): Likewise.
53565
53566 2007-05-18  Bruno Haible  <bruno@clisp.org>
53567
53568         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
53569         (strmatch): New function.
53570         (test_function): Test the %f directive on numbers of various exponents.
53571         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
53572         (strmatch): New function.
53573         (test_function): Test the %f directive on numbers of various exponents.
53574         * tests/test-snprintf-posix.h (strmatch): New function.
53575         (test_function): Test the %f directive on numbers of various exponents.
53576         * tests/test-sprintf-posix.h (strmatch): New function.
53577         (test_function): Test the %f directive on numbers of various exponents.
53578         * tests/test-snprintf-posix.c (SIZEOF): New macro.
53579         * tests/test-sprintf-posix.c (SIZEOF): New macro.
53580         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
53581         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
53582
53583 2007-05-18  Bruno Haible  <bruno@clisp.org>
53584
53585         Add support for 'long double' number output.
53586         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
53587         * lib/vasnprintf.c: Include math.h and float+.h.
53588         (mp_limb_t): New type.
53589         (GMP_LIMB_BITS): New macro.
53590         (mp_twolimb_t): New type.
53591         (GMP_TWOLIMB_BITS): New macro.
53592         (mpn_t): New type.
53593         (multiply, divide, convert_to_decimal, decode_long_double,
53594         scale10_round_long_double, scale10_round_decimal_long_double,
53595         floorlog10l): New functions.
53596         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
53597         for the %f, %F, %e, %E, %g, %G directives.
53598         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
53599         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53600         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
53601         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
53602         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53603         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53604         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53605         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53606         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53607         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53608         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53609         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
53610         * modules/snprintf-posix (Depends-on): Likewise.
53611         * modules/sprintf-posix (Depends-on): Likewise.
53612         * modules/vasnprintf-posix (Depends-on): Likewise.
53613         * modules/vasprintf-posix (Depends-on): Likewise.
53614         * modules/vfprintf-posix (Depends-on): Likewise.
53615         * modules/vsnprintf-posix (Depends-on): Likewise.
53616         * modules/vsprintf-posix (Depends-on): Likewise.
53617         * modules/vasnprintf (Files): Add lib/float+.h.
53618         * doc/functions/fprintf.texi: Update.
53619         * doc/functions/printf.texi: Update.
53620         * doc/functions/snprintf.texi: Update.
53621         * doc/functions/sprintf.texi: Update.
53622         * doc/functions/vfprintf.texi: Update.
53623         * doc/functions/vprintf.texi: Update.
53624         * doc/functions/vsnprintf.texi: Update.
53625         * doc/functions/vsprintf.texi: Update.
53626
53627 2007-05-18  Bruno Haible  <bruno@clisp.org>
53628
53629         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
53630
53631 2007-05-18  Bruno Haible  <bruno@clisp.org>
53632
53633         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
53634         for printing 64-bit integers. Needed for mingw.
53635
53636 2007-05-18  Bruno Haible  <bruno@clisp.org>
53637
53638         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53639         gl_FUNC_FREXPL_WORKS.
53640         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
53641
53642 2007-05-18  Bruno Haible  <bruno@clisp.org>
53643
53644         * modules/frexpl-nolibm-tests: New file.
53645
53646         * modules/frexpl-nolibm: New file.
53647         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
53648
53649 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53650
53651         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
53652         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53653         GCC 4.2, which otherwise issues a lot of warnings.
53654         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
53655         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
53656         Likewise.
53657         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
53658         * modules/iconv_open (iconv.h): Likewise.
53659         * modules/locale (locale.h): Likewise.
53660         * modules/netinet_in (netinet/in.h): Likewise.
53661         * modules/sys_select (sys_select.h): Likewise.
53662         * modules/sys_socket (sys/socket.h): Likewise.
53663         * modules/sys_stat (sys/stat.h): Likewise.
53664         * modules/sysexits (sysexits.h): Likewise.
53665         * modules/unistd (unistd.h): Likewise.
53666
53667 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53668
53669         * modules/closein-tests (Makefile.am): Distribute
53670         `test-closein.sh'.
53671
53672 2007-05-17  Bruno Haible  <bruno@clisp.org>
53673
53674         * tests/test-printf-posix.output: Renamed from
53675         tests/test-fprintf-posix.out.
53676         * modules/fprintf-posix-tests: Update.
53677         * modules/printf-posix-tests: Update.
53678         * modules/vfprintf-posix-tests: Update.
53679         * modules/vprintf-posix-tests: Update.
53680         * tests/test-fprintf-posix.sh: Update.
53681         * tests/test-printf-posix.sh: Update.
53682         * tests/test-vfprintf-posix.sh: Update.
53683         * tests/test-vprintf-posix.sh: Update.
53684         Reported by Ralf Wildenhues.
53685
53686 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53687
53688         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
53689         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53690         GCC 4.2, which otherwise issues a lot of warnings.
53691         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
53692         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
53693         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
53694         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
53695         it should no longer be needed.
53696         * lib/string_.h: Likewise.
53697         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
53698         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
53699         * modules/inttypes (inttypes.h): Likewise.
53700         * modules/math (math.h): Likewise.
53701         * modules/search (search.h): Likewise.
53702         * modules/signal (signal.h): Likewise.
53703         * modules/stdint (stdint.h): Likewise.
53704         * modules/stdio (stdio.h): Likewise.
53705         * modules/stdlib (stdlib.h): Likewise.
53706         * modules/string (string.h): Likewise.
53707         * modules/sys_time (sys/time.h): Likewise.
53708         * modules/time (time.h): Likewise.
53709         * modules/wchar (wchar.h): Likewise.
53710         * modules/wctype (wtype.h): Likewise.
53711
53712 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53713
53714         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
53715
53716 2007-05-13  Bruno Haible  <bruno@clisp.org>
53717
53718         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
53719         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53720         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
53721         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53722         (gl_PREREQ_STRTOK_R): Don't require it here.
53723
53724 2007-05-13  Bruno Haible  <bruno@clisp.org>
53725
53726         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
53727         when used in C++ mode.
53728
53729 2007-05-12  Bruno Haible  <bruno@clisp.org>
53730
53731         * lib/linebuffer.h: Tweak doc.
53732         * lib/linebuffer.c: Likewise.
53733
53734 2007-05-12  James Youngman  <jay@gnu.org>
53735
53736         * lib/linebuffer.c (readlinebuffer_delim): New function,
53737         like readlinebuffer, but use a caller-specified delimiter.
53738         (readlinebuffer): Just call readlinebuffer_delim with '\n'
53739         as the delimiter.
53740         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
53741
53742 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53743
53744         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
53745         * modules/openat (Files): Remove openat-die.c.
53746         (Depends-on): Add openat-die.
53747         * modules/openat-die: New module.
53748
53749 2007-05-06  Bruno Haible  <bruno@clisp.org>
53750
53751         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
53752         Update with info about Cygwin.
53753         * doc/functions/fprintf.texi: Update.
53754         * doc/functions/printf.texi: Update.
53755         * doc/functions/snprintf.texi: Update.
53756         * doc/functions/sprintf.texi: Update.
53757         * doc/functions/vfprintf.texi: Update.
53758         * doc/functions/vprintf.texi: Update.
53759         * doc/functions/vsnprintf.texi: Update.
53760         * doc/functions/vsprintf.texi: Update.
53761         Reported by Eric Blake.
53762
53763 2007-05-06  Bruno Haible  <bruno@clisp.org>
53764
53765         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
53766         padding ourselves for the floating-point directives.
53767         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
53768         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
53769         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53770         gl_PRINTF_FLAG_ZERO and test its result. Invoke
53771         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
53772         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53773         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
53774         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53775         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53776         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53777         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53778         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53779         * tests/test-snprintf-posix.h (test_function): Also check the width
53780         and some flags in the %f directive.
53781         * tests/test-sprintf-posix.h (test_function): Likewise.
53782         * tests/test-vasnprintf-posix.c (test_function): Likewise.
53783         * tests/test-vasprintf-posix.c (test_function): Likewise.
53784         * doc/functions/fprintf.texi: Update.
53785         * doc/functions/printf.texi: Update.
53786         * doc/functions/snprintf.texi: Update.
53787         * doc/functions/sprintf.texi: Update.
53788         * doc/functions/vfprintf.texi: Update.
53789         * doc/functions/vprintf.texi: Update.
53790         * doc/functions/vsnprintf.texi: Update.
53791         * doc/functions/vsprintf.texi: Update.
53792
53793 2007-05-06  Bruno Haible  <bruno@clisp.org>
53794
53795         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
53796         pass the ' flag character to sprintf or snprintf.
53797         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
53798         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
53799         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53800         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
53801         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
53802         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53803         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
53804         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53805         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53806         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53807         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53808         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53809         * tests/test-snprintf-posix.h (test_function): Also check the grouping
53810         flag.
53811         * tests/test-sprintf-posix.h (test_function): Likewise.
53812         * tests/test-vasnprintf-posix.c (test_function): Likewise.
53813         * tests/test-vasprintf-posix.c (test_function): Likewise.
53814         * doc/functions/fprintf.texi: Update.
53815         * doc/functions/printf.texi: Update.
53816         * doc/functions/snprintf.texi: Update.
53817         * doc/functions/sprintf.texi: Update.
53818         * doc/functions/vfprintf.texi: Update.
53819         * doc/functions/vprintf.texi: Update.
53820         * doc/functions/vsnprintf.texi: Update.
53821         * doc/functions/vsprintf.texi: Update.
53822
53823 2007-05-01  Bruno Haible  <bruno@clisp.org>
53824
53825         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
53826
53827 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
53828
53829         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
53830         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
53831
53832 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53833
53834         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
53835         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
53836         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
53837
53838 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
53839
53840         * lib/argp-help.c (struct hol_entry): New member `ord'.
53841         (HOL_ENTRY_PTRCMP): Use ord for comparison
53842         (hol_sort): Initialize ord.
53843
53844 2007-05-01  Bruno Haible  <bruno@clisp.org>
53845
53846         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
53847         Reported by Eric Blake.
53848         * doc/gnulib.texi (Function Substitutes): Update.
53849
53850 2007-05-01  Bruno Haible  <bruno@clisp.org>
53851
53852         * doc/functions.texi: Remove file, now redundant through
53853         doc/functions/*.texi.
53854
53855 2007-05-01  Bruno Haible  <bruno@clisp.org>
53856
53857         * modules/argp (Depends-on): Add sleep.
53858
53859 2007-05-01  Bruno Haible  <bruno@clisp.org>
53860
53861         * modules/sleep-tests: New file.
53862         * tests/test-sleep.c: New file.
53863
53864         * modules/sleep: New file.
53865         * lib/sleep.c: New file.
53866         * m4/sleep.m4: New file.
53867         * lib/unistd_.h (sleep): New declaration.
53868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
53869         HAVE_SLEEP.
53870         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
53871         * doc/functions/sleep.texi: Document the sleep module.
53872
53873 2007-05-01  Bruno Haible  <bruno@clisp.org>
53874
53875         * lib/sigprocmask.h: Remove file.
53876         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
53877         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
53878         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
53879         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
53880         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
53881         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
53882         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
53883         HAVE_SIGSET_T as a shell variable.
53884         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
53885         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
53886         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
53887         (Depends-on): Add signal. Remove verify.
53888         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
53889         (Include): Mention <signal.h> instead of sigprocmask.h.
53890         * NEWS: Mention the change.
53891         * lib/fatal-signal.c: Don't include sigprocmask.h.
53892
53893 2007-05-01  Bruno Haible  <bruno@clisp.org>
53894
53895         * modules/signal: New file.
53896         * lib/signal_.h: New file.
53897         * m4/signal_h.m4: New file.
53898
53899 2007-05-01  Bruno Haible  <bruno@clisp.org>
53900
53901         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
53902         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
53903         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
53904         HAVE_WCTYPE_CTMP_BUG into wctype.h.
53905
53906 2007-05-01  Bruno Haible  <bruno@clisp.org>
53907
53908         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
53909         configure time.
53910         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
53911         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
53912         * modules/sys_stat (Makefile.am): Substitute their values into
53913         sys/stat.h.
53914
53915 2007-05-01  Bruno Haible  <bruno@clisp.org>
53916
53917         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
53918         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
53919         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
53920
53921 2007-05-01  Bruno Haible  <bruno@clisp.org>
53922
53923         * doc/header/assert.texi: Undo last change: don't mention the gnulib
53924         'assert' module here.
53925
53926 2007-05-01  Bruno Haible  <bruno@clisp.org>
53927
53928         * doc/functions/*.texi: New files.
53929         * doc/functions/google-ranking.txt: New file.
53930         * doc/gnulib.texi (Function Substitutes): New chapter.
53931         (ctime, inet_ntoa): Remove sections.
53932         * doc/ctime.texi: Remove file.
53933         * doc/inet_ntoa.texi: Remove file.
53934         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
53935         dependencies.
53936         (%.info): New rule, specifying a --reference-limit.
53937
53938 2007-05-01  Bruno Haible  <bruno@clisp.org>
53939
53940         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
53941
53942 2007-05-01  Bruno Haible  <bruno@clisp.org>
53943
53944         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
53945         the portability of 'mkdir' to mingw systems.
53946
53947 2007-05-01  Bruno Haible  <bruno@clisp.org>
53948
53949         * doc/headers/google-ranking.txt: New file.
53950
53951 2007-04-30  Eric Blake  <ebb9@byu.net>
53952
53953         Prefer fseeko to fseek.
53954         * modules/getpass (Depends-on): Add fseeko.
53955         * lib/getpass.c (getpass): Use fseeko, not fseek.
53956
53957 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
53958
53959         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
53960         assumes the sorting is stable, while most qsort implementations
53961         are not.  Use argument addresses to ensure they never compare as
53962         equal.
53963
53964         * tests/test-argp-2.sh (usage-indent test): Fix output
53965         (func_compare): Restore diff options
53966         * tests/test-argp.c: Restore #include "progname.h"
53967
53968 2007-04-29  Bruno Haible  <bruno@clisp.org>
53969
53970         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
53971         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53972         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
53973         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53974         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
53975         (configure.ac): Define CHECK_SNPRINTF_POSIX.
53976         (TESTS, check_PROGRAMS): Add test-snprintf.
53977         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
53978         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
53979         (TESTS, check_PROGRAMS): Add test-vsnprintf.
53980         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
53981         assertions that fail on HP-UX, OSF/1, or IRIX.
53982         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
53983
53984 2007-04-29  Bruno Haible  <bruno@clisp.org>
53985
53986         * MODULES.html.sh (posix_functions): Remove 'contents'.
53987
53988 2007-04-29  Karl Berry  <karl@gnu.org>
53989
53990         * config/srclist.txt (gendocs_template_min): new entry.
53991
53992 2007-04-29  Bruno Haible  <bruno@clisp.org>
53993
53994         Work around fpurge bug on BSD systems.
53995         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
53996         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
53997         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
53998         fpurge to rpl_fpurge if the system already has this function.
53999         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
54000         the case where the system already has this function. Correct invariants
54001         on BSD systems.
54002         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
54003         BSD systems.
54004
54005 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54006
54007         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
54008         proposed by Sven Verdoolaege.
54009
54010         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
54011         options.
54012         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
54013         (usage and help tests): Update
54014
54015 2007-04-29  Bruno Haible  <bruno@clisp.org>
54016
54017         * tests/test-fflush.c (main): Use a file of size 17, not 10.
54018         Print more information in case of failure. Disable a test on BeOS.
54019
54020 2007-04-29  Bruno Haible  <bruno@clisp.org>
54021
54022         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
54023         This helps debugging on systems on which no gdb is available.
54024
54025 2007-04-29  Bruno Haible  <bruno@clisp.org>
54026
54027         * lib/freading.h: Improve comments.
54028         * lib/fwriting.h: Likewise.
54029         * tests/test-freading.c (main): Don't check freading immediately after
54030         repositioning. Needed for glibc.
54031
54032 2007-04-29  Bruno Haible  <bruno@clisp.org>
54033
54034         * lib/freading.c (freading): Trivial simplification.
54035
54036 2007-04-28  Bruno Haible  <bruno@clisp.org>
54037
54038         * tests/test-fwriting.c (main): Also test the interaction between
54039         fflush and fwriting.
54040         * modules/fwriting-tests (Depends-on): Add fflush.
54041
54042         * tests/test-freading.c (main): Also test the interaction between
54043         fflush and freading.
54044         * modules/freading-tests (Depends-on): Add fflush.
54045
54046 2007-04-28  Bruno Haible  <bruno@clisp.org>
54047
54048         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
54049         fseeko and ftello.
54050         Suggested by Eric Blake.
54051
54052 2007-04-28  Jim Meyering  <jim@meyering.net>
54053
54054         Avoid false-negative in gl_STDINT_H's C99 conformance test.
54055         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
54056         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
54057
54058 2007-04-27  Eric Blake  <ebb9@byu.net>
54059
54060         * doc/headers/assert.texi (assert.h): Document assert module use.
54061
54062 2007-04-27  Bruno Haible  <bruno@clisp.org>
54063
54064         * doc/headers/*.texi: New files.
54065         * doc/gnulib.texi (Header File Substitutes): New chapter.
54066         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
54067         dependencies.
54068         (standards.info ,standards.html, standards.dvi): Update dependencies.
54069         (mostlyclean, clean): New targets.
54070
54071 2007-04-27  Bruno Haible  <bruno@clisp.org>
54072
54073         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
54074         * modules/sysexits (Files, Makefile.am): Update.
54075
54076         * lib/sys_socket_.h: Renamed from lib/socket_.h.
54077         * modules/sys_socket (Files, Makefile.am): Update.
54078
54079         * lib/sys_stat_.h: Renamed from lib/stat_.h.
54080         * modules/sys_stat (Files, Makefile.am): Update.
54081
54082 2007-04-27  Eric Blake  <ebb9@byu.net>
54083
54084         * lib/freading.h: Improve comments.
54085         * lib/fwriting.h: Likewise.
54086         * lib/fflush.c: Likewise.
54087
54088         Fix closein for mingw.
54089         * modules/closein-tests: Add tests for closein.
54090         * tests/test-closein.c: New file.
54091         * tests/test-closein.sh: Likewise.
54092         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
54093         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
54094
54095 2007-04-27  Bruno Haible  <bruno@clisp.org>
54096
54097         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
54098         version is < 6.
54099         * lib/math_.h [__DECC]: Likewise.
54100         * lib/stdio_.h [__DECC]: Likewise.
54101         * lib/stdlib_.h [__DECC]: Likewise.
54102         * lib/string_.h [__DECC]: Likewise.
54103         * lib/time_.h [__DECC]: Likewise.
54104         * lib/wchar_.h [__DECC]: Likewise.
54105         * lib/wctype_.h [__DECC]: Likewise.
54106
54107 2007-04-27  Bruno Haible  <bruno@clisp.org>
54108
54109         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
54110
54111 2007-04-27  Bruno Haible  <bruno@clisp.org>
54112
54113         * lib/fflush.c: Add comments.
54114         * modules/fpurge-tests (Depends-on): Add fflush.
54115         * modules/freadable-tests (Depends-on): Likewise.
54116         * modules/fwritable-tests (Depends-on): Likewise.
54117
54118 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
54119
54120         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
54121         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
54122         Report by Bruno Haible <bruno@clisp.org>.
54123
54124 2007-04-26  Eric Blake  <ebb9@byu.net>
54125
54126         Fix fflush on mingw.
54127         * modules/fflush (Depends-on): Add freading.
54128         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
54129         but unread data.
54130
54131 2007-04-26  Eric Blake  <ebb9@byu.net>
54132         and Bruno Haible  <bruno@clisp.org>
54133
54134         Implement freading and fwriting.
54135         * lib/freading.c: New file.
54136         * lib/freading.h: Likewise.
54137         * m4/freading.m4: Likewise.
54138         * modules/freading: Likewise.
54139         * modules/freading-tests: Likewise.
54140         * tests/test-freading.c: Likewise.
54141         * lib/fwriting.c: New file.
54142         * lib/fwriting.h: Likewise.
54143         * m4/fwriting.m4: Likewise.
54144         * modules/fwriting: Likewise.
54145         * modules/fwriting-tests: Likewise.
54146         * tests/test-fwriting.c: Likewise.
54147         * MODULES.html.sh (File stream based Input/Output): Mention them.
54148
54149 2007-04-26  Bruno Haible  <bruno@clisp.org>
54150
54151         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
54152         'long' when we assume it.
54153         Suggested by Eric Blake.
54154
54155 2007-04-26  Bruno Haible  <bruno@clisp.org>
54156
54157         Ensure fseeko, ftello are declared on glibc systems.
54158         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
54159         * modules/fseeko (configure.ac-early): Likewise.
54160         * modules/ftello (configure.ac-early): Likewise.
54161         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
54162         AC_FUNC_FSEEKO for this.
54163         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
54164         (gl_CHECK_FSEEKO): Remove macro.
54165
54166 2007-04-26  Bruno Haible  <bruno@clisp.org>
54167
54168         * tests/test-fflush.c (main): Also check the ftell result after
54169         fflush and fseek/fseeko.
54170         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
54171         file descriptor position cache in the stream.
54172         * lib/fseeko.c (rpl_fseeko): Likewise.
54173
54174 2007-04-26  Bruno Haible  <bruno@clisp.org>
54175
54176         * modules/fflush-tests (Depends-on): Add fseeko.
54177
54178 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
54179             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54180
54181         * lib/argz_.h: ensure error_t definition is obtained in same
54182         mechanism system argz.h would have.
54183         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
54184         argz facilities are known bad.  Err on the side of caution if
54185         cross-compiling.
54186
54187 2007-04-25  Eric Blake  <ebb9@byu.net>
54188
54189         * lib/fpurge.c (includes): Use stdlib.h for free.
54190         * tests/test-fflush.c (main): Also test fflush-fseeko.
54191
54192 2007-04-25  Bruno Haible  <bruno@clisp.org>
54193
54194         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
54195         * lib/fseeko.c: New file.
54196         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
54197         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
54198         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
54199         gl_FUNC_FSEEKO.
54200         (gl_FUNC_FSEEKO): Invoke it.
54201         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
54202         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
54203         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
54204
54205 2007-04-25  Bruno Haible  <bruno@clisp.org>
54206
54207         * modules/fflush (Depends-on): Add ftello.
54208
54209 2007-04-25  Bruno Haible  <bruno@clisp.org>
54210
54211         * modules/ftello-tests: New file.
54212         * tests/test-ftello.c: New file.
54213
54214         * modules/ftello: New file.
54215         * m4/ftello.m4: New file.
54216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
54217         HAVE_FTELLO.
54218         * lib/stdio_.h (ftello): New declaration.
54219         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
54220         HAVE_FTELLO.
54221
54222 2007-04-25  Bruno Haible  <bruno@clisp.org>
54223
54224         * modules/fseeko-tests: New file.
54225         * tests/test-fseeko.c: New file.
54226
54227         * modules/fseeko: New file.
54228         * m4/fseeko.m4: New file.
54229         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
54230         HAVE_FSEEKO.
54231         * lib/stdio_.h (fseeko): New declaration.
54232         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
54233         HAVE_FSEEKO.
54234
54235 2007-04-25  Bruno Haible  <bruno@clisp.org>
54236
54237         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
54238
54239 2007-04-25  Bruno Haible  <bruno@clisp.org>
54240
54241         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
54242         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
54243         * tests/test-unistd.c: Likewise.
54244         * tests/test-fcntl.c: Likewise.
54245
54246 2007-04-23  Eric Blake  <ebb9@byu.net>
54247
54248         * lib/fflush.c: Fix missing include.
54249         Reported by Bruno Haible.
54250
54251 2007-04-23  Bruno Haible  <bruno@clisp.org>
54252
54253         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
54254         Reported by Eric Blake.
54255
54256 2007-04-23  Bruno Haible  <bruno@clisp.org>
54257
54258         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
54259
54260 2007-04-23  Bruno Haible  <bruno@clisp.org>
54261
54262         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
54263
54264 2007-04-23  Bruno Haible  <bruno@clisp.org>
54265
54266         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
54267         Needed on HP-UX 11.
54268
54269 2007-04-16  Eric Blake  <ebb9@byu.net>
54270
54271         Make fflush rely on fpurge.
54272         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
54273         open coding all variants.
54274         * modules/fflush (Depends-on): Add fpurge and unistd.
54275         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
54276         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
54277
54278         Fix --with-tests compilation on cygwin.
54279         * modules/argmatch-tests (Makefile.am): List gnulib library first
54280         in LDADD.
54281         * modules/argp-tests (Makefile.am): Likewise.
54282         * modules/array-list-tests (Makefile.am): Likewise.
54283         * modules/array-oset-tests (Makefile.am): Likewise.
54284         * modules/avltree-list-tests (Makefile.am): Likewise.
54285         * modules/avltree-oset-tests (Makefile.am): Likewise.
54286         * modules/avltreehash-list-tests (Makefile.am): Likewise.
54287         * modules/carray-list-tests (Makefile.am): Likewise.
54288         * modules/dirname-tests (Makefile.am): Likewise.
54289         * modules/frexp-tests (Makefile.am): Likewise.
54290         * modules/isnanl-tests (Makefile.am): Likewise.
54291         * modules/linked-list-tests (Makefile.am): Likewise.
54292         * modules/linkedhash-list-tests (Makefile.am): Likewise.
54293         * modules/lock-tests (Makefile.am): Likewise.
54294         * modules/rbtree-list-tests (Makefile.am): Likewise.
54295         * modules/rbtree-oset-tests (Makefile.am): Likewise.
54296         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
54297         * modules/tls-tests (Makefile.am): Likewise.
54298         * modules/tsearch-tests (Makefile.am): Likewise.
54299         * modules/xvasprintf-tests (Makefile.am): Likewise.
54300
54301         Fix fpurge for cygwin.
54302         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
54303         value.
54304         * modules/fpurge-tests (Depends-on): Clean up trash.
54305
54306 2007-04-16  Simon Josefsson  <simon@josefsson.org>
54307
54308         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
54309
54310         * m4/autobuild.m4: Re-indent.
54311
54312 2007-04-13  Bruno Haible  <bruno@clisp.org>
54313
54314         * modules/fpurge-tests: New file.
54315         * tests/test-fpurge.c: New file.
54316
54317         * modules/fpurge: New file.
54318         * lib/fpurge.h: New file.
54319         * lib/fpurge.c: New file.
54320         * m4/fpurge.m4: New file.
54321
54322 2007-04-13  Bruno Haible  <bruno@clisp.org>
54323
54324         * modules/fbufmode-tests: New file.
54325         * tests/test-fbufmode.c: New file.
54326
54327         * modules/fbufmode: New file.
54328         * lib/fbufmode.h: New file.
54329         * lib/fbufmode.c: New file.
54330         * m4/fbufmode.m4: New file.
54331
54332 2007-04-13  Bruno Haible  <bruno@clisp.org>
54333
54334         * modules/fwritable-tests: New file.
54335         * tests/test-fwritable.c: New file.
54336
54337         * modules/fwritable: New file.
54338         * lib/fwritable.h: New file.
54339         * lib/fwritable.c: New file.
54340         * m4/fwritable.m4: New file.
54341
54342 2007-04-13  Bruno Haible  <bruno@clisp.org>
54343
54344         * modules/freadable-tests: New file.
54345         * tests/test-freadable.c: New file.
54346
54347         * modules/freadable: New file.
54348         * lib/freadable.h: New file.
54349         * lib/freadable.c: New file.
54350         * m4/freadable.m4: New file.
54351
54352 2007-04-13  Bruno Haible  <bruno@clisp.org>
54353
54354         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
54355         MOSTLYCLEANFILES.
54356
54357 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54358
54359         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
54360         gzip bootstrap.conf to avoid dragging in i18n machinery.
54361         (gnulib_tool_option): Use it.
54362
54363 2007-04-13  Bruno Haible  <bruno@clisp.org>
54364
54365         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
54366         %F directives.
54367         * tests/test-vasprintf-posix.c (test_function): Likewise.
54368         * tests/test-snprintf-posix.h (test_function): Likewise.
54369         * tests/test-sprintf-posix.h (test_function): Likewise.
54370         * tests/test-fprintf-posix.h (test_function): Likewise.
54371         * tests/test-printf-posix.h (test_function): Likewise.
54372         * tests/test-fprintf-posix.out: Likewise.
54373
54374 2007-04-13  Bruno Haible  <bruno@clisp.org>
54375
54376         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
54377         * modules/tls-tests (configure.ac): Likewise.
54378         Reported by Arto C. Nirkko <anirkko@insel.ch>.
54379
54380 2007-04-13  Bruno Haible  <bruno@clisp.org>
54381
54382         * lib/tls.c (glthread_tls_get): Fix return type.
54383         Patch by Arto C. Nirkko <anirkko@insel.ch>.
54384
54385 2007-04-12  Eric Blake  <ebb9@byu.net>
54386
54387         * modules/gettime (Depends-on): Remove gettime.
54388         Reported by Dmitry V. Levin.
54389
54390 2007-04-12  Bruno Haible  <bruno@clisp.org>
54391
54392         * modules/fflush (Include): Mention <stdio.h>.
54393         * modules/strtoimax (Include): Mention <inttypes.h>.
54394         * modules/strtoumax (Include): Likewise.
54395
54396 2007-04-12  Eric Blake  <ebb9@byu.net>
54397
54398         * .cvsignore: New file.
54399         * .gitignore: Likewise.
54400
54401 2007-04-12  Bruno Haible  <bruno@clisp.org>
54402
54403         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
54404         not before, since $(LDADD) often contains libgnu.a.
54405         * modules/striconv-tests (test_striconv_LDADD): Likewise.
54406         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
54407         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
54408         Needed on Cygwin.
54409
54410 2007-04-12  Eric Blake  <ebb9@byu.net>
54411
54412         Work around glibc's failure to flush stdin on fclose.
54413         * lib/closein.c (close_stdin): Flush stdin before closing.
54414
54415         Work around glibc's failure to reset seekable stdin on exit.
54416         * modules/closein: New module.
54417         * lib/closein.c: New file.
54418         * lib/closein.h: Likewise.
54419         * m4/closein.m4: Likewise.
54420         * MODULES.html.sh (File stream based Input/Output): Document it.
54421
54422 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54423
54424         * gnulib-tool: Rename generated 'autobuild' script to
54425         'do-autobuild' in --create-megatestdir output.
54426
54427         * doc/gnulib.texi (Build robot for gnulib): Fix.
54428
54429 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54430
54431         * modules/sysexits (Depends-on): Add absolute-header.
54432
54433 2007-04-12  Eric Blake  <ebb9@byu.net>
54434
54435         No need to preserve errno on success.
54436         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
54437         Reported by Bruno Haible.
54438
54439 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54440
54441         * MODULES.html.sh (Support for maintaining and releasing
54442         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
54443
54444 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54445
54446         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
54447
54448 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54449
54450         * modules/autobuild: New module.
54451
54452         * m4/autobuild.m4: New file.
54453
54454 2007-04-11  Bruno Haible  <bruno@clisp.org>
54455
54456         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
54457         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
54458         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
54459         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
54460         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54461         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54462         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54463         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54464         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54465         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54466         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
54467         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54468         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54469         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
54470         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54471         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54472         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
54473         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54474         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54475         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
54476         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54477         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54478         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
54479         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54480         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54481         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
54482         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54483         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54484         Reported by Eric Blake.
54485
54486 2007-04-11  Bruno Haible  <bruno@clisp.org>
54487
54488         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
54489
54490 2007-04-10  Bruno Haible  <bruno@clisp.org>
54491
54492         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
54493         for NaN and Infinity. Needed on FreeBSD 6.1.
54494         * tests/test-vasnprintf-posix.c (test_function): Undo last change
54495         regarding results for "%010a" of Infinity and NaN.
54496         * tests/test-vasprintf-posix.c (test_function): Likewise.
54497         * tests/test-snprintf-posix.h (test_function): Likewise.
54498         * tests/test-sprintf-posix.h (test_function): Likewise.
54499         * tests/test-fprintf-posix.h (test_function): Likewise.
54500         * tests/test-printf-posix.h (test_function): Likewise.
54501         * tests/test-fprintf-posix.out: Likewise.
54502
54503 2007-04-10  Bruno Haible  <bruno@clisp.org>
54504
54505         * modules/locale-tests: New file.
54506         * tests/test-locale.c: New file.
54507
54508         * modules/locale: New file.
54509         * lib/locale_.h: New file.
54510         * m4/locale_h.m4: New file.
54511
54512 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
54513             Bruno Haible  <bruno@clisp.org>
54514
54515         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
54516         be determined, test for availability of the copysignf, copysign,
54517         copysignl functions.
54518         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
54519         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
54520         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
54521
54522 2007-04-09  Eric Blake  <ebb9@byu.net>
54523
54524         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
54525         * modules/stdio (Makefile.am): Support fflush.
54526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54527         * modules/fflush: New file.
54528         * lib/fflush.c: Likewise.
54529         * m4/fflush.m4: Likewise.
54530         * modules/fflush-tests: New test.
54531         * tests/test-fflush.c: Likewise.
54532         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
54533
54534 2007-04-06  Bruno Haible  <bruno@clisp.org>
54535
54536         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
54537         (VASNPRINTF): Use signbit for faster determination whether to print a
54538         minus sign.
54539         * modules/vasnprintf (Files): Remove lib/float+.h.
54540         * modules/fprintf-posix (Depends-on): Add signbit.
54541         * modules/snprintf-posix (Depends-on): Likewise.
54542         * modules/sprintf-posix (Depends-on): Likewise.
54543         * modules/vasnprintf-posix (Depends-on): Likewise.
54544         * modules/vasprintf-posix (Depends-on): Likewise.
54545         * modules/vfprintf-posix (Depends-on): Likewise.
54546         * modules/vsnprintf-posix (Depends-on): Likewise.
54547         * modules/vsprintf-posix (Depends-on): Likewise.
54548
54549 2007-04-06  Bruno Haible  <bruno@clisp.org>
54550
54551         * tests/test-frexp.c (main): Test also the sign bit of zero results.
54552         * tests/test-frexpl.c (main): Likewise.
54553         * tests/test-ldexpl.c (main): Likewise.
54554         * modules/frexp-tests (Depends-on): Add signbit.
54555         * modules/frexpl-tests (Depdends-on): Likewise.
54556         * modules/ldexpl-tests (Depdends-on): Likewise.
54557
54558 2007-04-06  Bruno Haible  <bruno@clisp.org>
54559
54560         * modules/signbit-tests: New file.
54561         * tests/test-signbit.c: New file.
54562
54563         * modules/signbit: New file.
54564         * lib/signbitf.c: New file.
54565         * lib/signbitd.c: New file.
54566         * lib/signbitl.c: New file.
54567         * m4/signbit.m4: New file.
54568         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
54569         (signbit): New macro.
54570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
54571         REPLACE_SIGNBIT.
54572         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
54573         REPLACE_FREXPL into math.h.
54574
54575 2007-04-06  Bruno Haible  <bruno@clisp.org>
54576
54577         * modules/isnanf-nolibm-tests: New file.
54578         * tests/test-isnanf.c: New file.
54579
54580         * modules/isnanf-nolibm: New file.
54581         * lib/isnanf.h: New file.
54582         * lib/isnanf.c: New file.
54583         * lib/isnan.c: Consider the USE_FLOAT macro.
54584         * m4/isnanf.m4: New file.
54585
54586 2007-04-06  Bruno Haible  <bruno@clisp.org>
54587
54588         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
54589         (Link): New section.
54590
54591         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
54592
54593 2007-04-06  Bruno Haible  <bruno@clisp.org>
54594
54595         Assume the 'long double' type.
54596         * m4/longdouble.m4: Remove file.
54597         * config/srclist.txt: Don't mention longdouble.m4.
54598         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
54599         * lib/float+.h: Likewise.
54600         * lib/frexp.c: Likewise.
54601         * lib/printf-args.h: Likewise.
54602         * lib/printf-args.c: Likewise.
54603         * lib/printf-frexp.c: Likewise.
54604         * lib/printf-parse.c: Likewise.
54605         * lib/vasnprintf.c: Likewise.
54606         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
54607         * m4/intl.m4: Likewise.
54608         * m4/isnanl.m4: Likewise.
54609         * m4/printf.m4: Likewise.
54610         * m4/printf-frexpl.m4: Likewise.
54611         * m4/vasnprintf.m4: Likewise.
54612         * modules/allocsa (Files): Remove m4/longdouble.m4.
54613         * modules/gettext (Files): Likewise.
54614         * modules/relocatable-prog-wrapper (Files): Likewise.
54615         * modules/vasnprintf (Files): Likewise.
54616         * modules/isnanl (Files): Likewise.
54617         (Include): Simplify.
54618         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
54619         (Include): Simplify.
54620         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
54621         (Include): Simplify.
54622         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
54623         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54624         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
54625         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54626         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54627         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54628         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
54629         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54630         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54631         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54632         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
54633         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54634         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
54635         * tests/test-isnanl.c: Likewise.
54636         * tests/test-snprintf-posix.h: Likewise.
54637         * tests/test-sprintf-posix.h: Likewise.
54638         * tests/test-vasnprintf-posix.c: Likewise.
54639         * tests/test-vasnprintf-posix2.c: Likewise.
54640         * tests/test-vasprintf-posix.c: Likewise.
54641
54642 2007-04-06  Bruno Haible  <bruno@clisp.org>
54643
54644         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
54645         * lib/math_.h [__DECC]: Include the overridden include file through
54646         #include_next, outside the double-inclusion guard.
54647         * lib/stdio_.h [__DECC]: Likewise.
54648         * lib/stdlib_.h [__DECC]: Likewise.
54649         * lib/string_.h [__DECC]: Likewise.
54650         * lib/time_.h [__DECC]: Likewise.
54651         * lib/wchar_.h [__DECC]: Likewise.
54652         * lib/wctype_.h [__DECC]: Likewise.
54653         * lib/inttypes_.h [__DECC]: Likewise.
54654         Reported by Albert Chin <china@thewrittenword.com> in
54655         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
54656
54657 2007-04-04  Eric Blake  <ebb9@byu.net>
54658
54659         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
54660         1.5.x.
54661
54662 2007-04-04  Bruno Haible  <bruno@clisp.org>
54663
54664         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
54665         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
54666
54667 2007-04-04  Bruno Haible  <bruno@clisp.org>
54668
54669         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
54670         results for "%010a" of Infinity and NaN.
54671         * tests/test-vasprintf-posix.c (test_function): Likewise.
54672         * tests/test-snprintf-posix.h (test_function): Likewise.
54673         * tests/test-sprintf-posix.h (test_function): Likewise.
54674         * tests/test-fprintf-posix.h (test_function): Remove these tests.
54675         * tests/test-printf-posix.h (test_function): Likewise.
54676         * tests/test-fprintf-posix.out: Update.
54677         Needed for FreeBSD 6.1.
54678
54679 2007-04-04  Bruno Haible  <bruno@clisp.org>
54680
54681         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
54682         directly used by the gnulib modules nor by gnulib-tool.
54683
54684 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
54685
54686         * DEPENDENCIES: Give overall description of version dependency
54687         desirability.  Use more-typical names for apps.
54688         Add shell, coreutils, diffutils, grep, tar, gzip.
54689
54690 2007-04-04  Simon Josefsson  <simon@josefsson.org>
54691
54692         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
54693
54694 2007-04-04  Karl Berry  <karl@gnu.org>
54695
54696         * MODULES.html.sh (func_module): missing '.
54697
54698 2007-04-03  Bruno Haible  <bruno@clisp.org>
54699
54700         * modules/argmatch-tests (Makefile.am): New variable
54701         test_argmatch_LDADD.
54702         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
54703         * modules/array-list-tests (Makefile.am): New variable
54704         test_array_list_LDADD.
54705         * modules/array-oset-tests (Makefile.am): New variable
54706         test_array_oset_LDADD.
54707         * modules/avltree-list-tests (Makefile.am): New variable
54708         test_avltree_list_LDADD.
54709         * modules/avltree-oset-tests (Makefile.am): New variable
54710         test_avltree_oset_LDADD.
54711         * modules/avltreehash-list-tests (Makefile.am): New variable
54712         test_avltreehash_list_LDADD.
54713         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
54714         test_canonicalize_lgpl_LDADD.
54715         * modules/carray-list-tests (Makefile.am): New variable
54716         test_carray_list_LDADD.
54717         * modules/dirname-tests (Makefile.am): New variable
54718         test_dirname_LDADD.
54719         * modules/linked-list-tests (Makefile.am): New variable
54720         test_linked_list_LDADD.
54721         * modules/linkedhash-list-tests (Makefile.am): New variable
54722         test_linkedhash_list_LDADD.
54723         * modules/rbtree-list-tests (Makefile.am): New variable
54724         test_rbtree_list_LDADD.
54725         * modules/rbtree-oset-tests (Makefile.am): New variable
54726         test_rbtree_oset_LDADD.
54727         * modules/rbtreehash-list-tests (Makefile.am): New variable
54728         test_rbtreehash_list_LDADD.
54729         * modules/xvasprintf-tests (Makefile.am): New variable
54730         test_xvasprintf_LDADD.
54731         Reported by Eric Blake.
54732
54733 2007-04-03  Eric Blake  <ebb9@byu.net>
54734
54735         * DEPENDENCIES: Weaken m4 requirements.
54736
54737 2007-04-03  Bruno Haible  <bruno@clisp.org>
54738
54739         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
54740         * modules/isnanl-tests (configure.ac): Likewise.
54741
54742 2007-04-03  Ben Pfaff  <blp@gnu.org>
54743
54744         * modules/iconv_open: Add $(srcdir)/ to source directory
54745         references in Makefile fragments that call gperf, to fix VPATH
54746         builds.
54747
54748 2007-04-03  Bruno Haible  <bruno@clisp.org>
54749
54750         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
54751         * lib/ldexpl.c: Undo last change.
54752
54753 2007-04-03  Bruno Haible  <bruno@clisp.org>
54754
54755         * modules/printf-frexpl (Depends-on): Undo last change.
54756         (Files): Add m4/ldexpl.m4.
54757
54758 2007-04-03  Bruno Haible  <bruno@clisp.org>
54759
54760         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
54761         * modules/isnanl (Link): New section.
54762
54763         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
54764         * modules/frexp (Link): New section.
54765
54766         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
54767         * modules/frexpl (Link): New section.
54768
54769         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
54770         * modules/ldexpl (Link): New section.
54771
54772 2007-04-03  Bruno Haible  <bruno@clisp.org>
54773
54774         * modules/TEMPLATE-EXTENDED: New file.
54775         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
54776
54777 2007-04-03  Bruno Haible  <bruno@clisp.org>
54778
54779         * DEPENDENCIES: New file.
54780         Suggested by Simon Josefsson.
54781
54782 2007-04-03  Bruno Haible  <bruno@clisp.org>
54783
54784         * doc/gnulib.texi: Escape @.
54785
54786 2007-04-03  James Youngman  <jay@gnu.org>
54787         and Paul Eggert  <eggert@cs.ucla.edu>
54788
54789         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
54790         birthtime on all systems that have birthtime, not just those which
54791         use st_birthtimensec rather than st_birthtim.  Putting zero in
54792         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
54793         that the birth time is not available for files on an NFS mount.
54794
54795 2007-04-03  Simon Josefsson  <simon@josefsson.org>
54796
54797         * modules/memxor: Move back from crypto/, suggested by Bruno.
54798         * modules/crypto/hmac-sha1: Fix memxor dependency.
54799
54800         * modules/crypto/gc: Moved from ../.
54801
54802 2007-04-02  Eric Blake  <ebb9@byu.net>
54803
54804         * lib/ldexpl.c (includes): Avoid libm.
54805
54806         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
54807
54808 2007-04-02  Bruno Haible  <bruno@clisp.org>
54809
54810         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
54811         on IRIX.
54812
54813 2007-04-02  Bruno Haible  <bruno@clisp.org>
54814
54815         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
54816         x86 or x86_64 platforms running MacOS X.
54817         Reported by Ryan Schmidt <@ryandesign.com>.
54818
54819 2007-04-02  Bruno Haible  <bruno@clisp.org>
54820
54821         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
54822         i386.
54823
54824 2007-04-01  Simon Josefsson  <simon@josefsson.org>
54825
54826         * modules/crypto/arcfour: Moved from ../.
54827         * modules/crypto/arcfour-tests: Moved from ../.
54828         * modules/crypto/arctwo: Moved from ../.
54829         * modules/crypto/arctwo-tests: Moved from ../.
54830         * modules/crypto/des: Moved from ../.
54831         * modules/crypto/des-tests: Moved from ../.
54832         * modules/crypto/gc-arcfour: Moved from ../.
54833         * modules/crypto/gc-arcfour-tests: Moved from ../.
54834         * modules/crypto/gc-arctwo: Moved from ../.
54835         * modules/crypto/gc-arctwo-tests: Moved from ../.
54836         * modules/crypto/gc-des: Moved from ../.
54837         * modules/crypto/gc-des-tests: Moved from ../.
54838         * modules/crypto/gc-hmac-md5: Moved from ../.
54839         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
54840         * modules/crypto/gc-hmac-sha1: Moved from ../.
54841         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
54842         * modules/crypto/gc-md2: Moved from ../.
54843         * modules/crypto/gc-md2-tests: Moved from ../.
54844         * modules/crypto/gc-md4: Moved from ../.
54845         * modules/crypto/gc-md4-tests: Moved from ../.
54846         * modules/crypto/gc-md5: Moved from ../.
54847         * modules/crypto/gc-md5-tests: Moved from ../.
54848         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
54849         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
54850         * modules/crypto/gc-random: Moved from ../.
54851         * modules/crypto/gc-rijndael: Moved from ../.
54852         * modules/crypto/gc-rijndael-tests: Moved from ../.
54853         * modules/crypto/gc-sha1: Moved from ../.
54854         * modules/crypto/gc-sha1-tests: Moved from ../.
54855         * modules/crypto/gc-tests: Moved from ../.
54856         * modules/crypto/hmac-md5: Moved from ../.
54857         * modules/crypto/hmac-md5-tests: Moved from ../.
54858         * modules/crypto/hmac-sha1: Moved from ../.
54859         * modules/crypto/hmac-sha1-tests: Moved from ../.
54860         * modules/crypto/md2: Moved from ../.
54861         * modules/crypto/md2-tests: Moved from ../.
54862         * modules/crypto/md4: Moved from ../.
54863         * modules/crypto/md4-tests: Moved from ../.
54864         * modules/crypto/md5: Moved from ../.
54865         * modules/crypto/md5-tests: Moved from ../.
54866         * modules/crypto/memxor: Moved from ../.
54867         * modules/crypto/rijndael: Moved from ../.
54868         * modules/crypto/rijndael-tests: Moved from ../.
54869         * modules/crypto/sha1: Moved from ../.
54870
54871 2007-03-30  James Youngman  <jay@gnu.org>
54872
54873         * tests/test-stat-time.c (prepare_test): use chmod() rather than
54874         rename() to change the ctime of a file (because ctime is unaffected
54875         by rename on jfs2 on AIX 5.1).
54876         (main): Start by doing cleanup, in case a previous run failed leaving
54877         test files behind.
54878
54879 2007-03-31  Bruno Haible  <bruno@clisp.org>
54880
54881         Support old proprietary implementations of iconv.
54882         * modules/iconv_open: New file.
54883         * lib/iconv_.h: New file.
54884         * m4/iconv_h.m4: New file.
54885         * lib/iconv_open.c: New file.
54886         * lib/iconv_open-aix.gperf: New file.
54887         * lib/iconv_open-hpux.gperf: New file.
54888         * lib/iconv_open-irix.gperf: New file.
54889         * lib/iconv_open-osf.gperf: New file.
54890         * m4/iconv_open.m4: New file.
54891         * modules/linebreak (Depends-on): Add iconv_open.
54892         * modules/striconv (Depends-on): Likewise.
54893         * modules/striconveh (Depends-on): Likewise.
54894         * modules/unicodeio (Depends-on): Likewise.
54895         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
54896         (iconv_t)(-1).
54897         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
54898         conversion if cd is (iconv_t)(-1).
54899         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
54900         is not possible.
54901
54902 2007-03-31  Bruno Haible  <bruno@clisp.org>
54903
54904         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
54905         work on Solaris either. Protect also second use of "autodetect_jp".
54906
54907 2007-03-31  Bruno Haible  <bruno@clisp.org>
54908
54909         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
54910         the function is not present.
54911
54912 2007-03-31  Bruno Haible  <bruno@clisp.org>
54913
54914         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
54915         the function is not present.
54916
54917 2007-03-31  Bruno Haible  <bruno@clisp.org>
54918
54919         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
54920         a bug in HP-UX iconv_open().
54921
54922 2007-03-31  Bruno Haible  <bruno@clisp.org>
54923
54924         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
54925         (Mathematics <math.h>): New section, add fpieee.
54926         (Input/output <stdio.h>): Add fseterr.
54927         (Mathematics <math.h>): New section, add printf-frexp.
54928         (Container data structures): Add sublist.
54929         (Core language properties): Add fpucw, inline.
54930         (Functions for greatest-width integer types <inttypes.h>): Add
54931         imaxabs, imaxdiv, inttypes.
54932         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
54933         isnanl-nolibm, ldexp.
54934         (Mathematics <math.h>): New section, add printf-frexpl.
54935         (Support for systems lacking POSIX:2001): Add fprintf-posix,
54936         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
54937         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
54938         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
54939         (Unicode string functions): Add unistr/u*-mbtoucr.
54940         (Java): Add javacomp-script, javaexec-script.
54941         (C#): Add csharpcomp-script, csharpexec-script.
54942         (Support for building libraries and executables): Add havelib,
54943         relocatable-*.
54944         (Support for maintaining and releasing projects): Renamed from
54945         'Support for maintaining and release projects'. Add announce-gen.
54946
54947 2007-03-31  Bruno Haible  <bruno@clisp.org>
54948
54949         * README: Talk primarily about git.
54950         (git and CVS): Renamed from CVS.
54951         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
54952         gnulib is available through git.
54953         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
54954
54955 2007-03-30  Bruno Haible  <bruno@clisp.org>
54956
54957         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
54958         * lib/poll_.h: Likewise.
54959         * lib/stat_.h: Likewise.
54960         * lib/sys_time_.h: Likewise.
54961         * lib/sysexit_.h: Likewise.
54962         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
54963         * lib/stdbool_.h: Likewise.
54964         * lib/byteswap_.h: Add double-inclusion guard.
54965
54966 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
54967
54968         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
54969
54970 2007-03-30  Karl Berry  <karl@gnu.org>
54971
54972         * config/srclist-update: double space after USA in the license
54973         substitution, since that's how it's usually (?) written.
54974
54975 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
54976
54977         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
54978         reported by Bruno Haible.
54979
54980 2007-03-29  Bruno Haible  <bruno@clisp.org>
54981
54982         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
54983         a bug in AIX iconv().
54984
54985 2007-03-29  Bruno Haible  <bruno@clisp.org>
54986
54987         * modules/ldexpl-tests: New file.
54988         * tests/test-ldexpl.c: New file.
54989
54990 2007-03-29  Bruno Haible  <bruno@clisp.org>
54991
54992         * lib/ldexpl.c: Include fpucw.h.
54993         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
54994         multiplication.
54995         * modules/ldexpl (Depends-on): Add fpucw.
54996
54997 2007-03-29  Bruno Haible  <bruno@clisp.org>
54998
54999         * modules/ldexpl: New file.
55000         * m4/ldexpl.m4: New file.
55001         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
55002         set.
55003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
55004         REPLACE_LDEXPL.
55005         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
55006         REPLACE_LDEXPL.
55007         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55008         gl_FUNC_LDEXPL_WORKS.
55009         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
55010         * modules/mathl (Files): Remove lib/ldexpl.c.
55011         (Depends-on): Add ldexpl.
55012
55013 2007-03-29  Bruno Haible  <bruno@clisp.org>
55014
55015         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
55016
55017 2007-03-29  Bruno Haible  <bruno@clisp.org>
55018
55019         * tests/test-striconveh.c (main): Don't assume that a direct conversion
55020         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
55021         and possibly also HP-UX.
55022         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55023         work on AIX, IRIX, HP-UX, OSF/1.
55024         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
55025         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
55026         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
55027         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
55028         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
55029         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
55030
55031 2007-03-29  Bruno Haible  <bruno@clisp.org>
55032
55033         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
55034
55035 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55036
55037         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
55038         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
55039
55040 2007-03-29  Eric Blake  <ebb9@byu.net>
55041
55042         * lib/acl-internal.h: Remove redundant include.
55043         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
55044         Cygwin when a file is locked.
55045
55046 2007-03-29  Bruno Haible  <bruno@clisp.org>
55047
55048         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
55049         file.
55050         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
55051
55052 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55053
55054         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
55055         try to remove a parent directory if the child couldn't be removed
55056         (except for the first rmdir, which could fail because the child
55057         doesn't exist).  Problem reported by Jeff Blaine in
55058         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
55059
55060 2007-03-28  Bruno Haible  <bruno@clisp.org>
55061
55062         * lib/striconveh.c (utf8conv_carefully): New function.
55063         (mem_cd_iconveh_internal): Invoke it.
55064
55065 2007-03-28  Bruno Haible  <bruno@clisp.org>
55066
55067         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
55068         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
55069         input.
55070         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
55071         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
55072         unistr/u8-uctomb.
55073
55074 2007-03-28  Bruno Haible  <bruno@clisp.org>
55075
55076         * modules/unistr/u8-mbtoucr: New file.
55077         * lib/unistr/u8-mbtoucr.c: New file.
55078         * modules/unistr/u16-mbtoucr: New file.
55079         * lib/unistr/u16-mbtoucr.c: New file.
55080         * modules/unistr/u16-mbtoucr: New file.
55081         * lib/unistr/u16-mbtoucr.c: New file.
55082         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
55083
55084 2007-03-27  Simon Josefsson  <simon@josefsson.org>
55085             Bruno Haible  <bruno@clisp.org>
55086
55087         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
55088         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
55089         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
55090
55091         * m4/stdio_h.m4: Add stubs for vasprintf too.
55092
55093         * modules/stdio: Support vasprintf in sed command.
55094
55095         * modules/vasprintf: Depend on stdio for prototypes.  Remove
55096         vasprintf.h.  Add stdio module indicator.
55097
55098         * lib/stdio_.h: Declare asprintf and vasprintf, based on
55099         vasprintf.h.
55100
55101         * lib/vasprintf.h: File removed.
55102
55103         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
55104         * lib/vasprintf.c: Ditto.
55105         * lib/xvasprintf.c: Ditto.
55106         * tests/test-vasprintf-posix.c: Ditto.
55107         * tests/test-vasprintf.c: Ditto.
55108
55109 2007-03-27  Bruno Haible  <bruno@clisp.org>
55110
55111         Make vasnprintf multithread-safe.
55112         * lib/vasnprintf.c (decimal_point_char): New function.
55113         (VASNPRINTF): Use it.
55114         Suggested by Simon Josefsson.
55115
55116 2007-03-27  Eric Blake  <ebb9@byu.net>
55117
55118         Support sub-second birthtime on cygwin.
55119         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
55120         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
55121         (get_stat_birthtime): Also work with st_birthtim.
55122
55123 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
55124
55125         * lib/stat-time.h (USE_BIRTHTIME): Remove.
55126         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
55127         (get_stat_birthtime_ns): Do not try to use "spare" fields.
55128         (get_stat_birthtime_ns): Simplify compile-time tests.
55129         (get_stat_birthtime): Change the API to look like
55130         get_stat_mtime etc., except return a negative tv_nsec on error.
55131         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
55132         Don't check for "spare" fields.
55133         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
55134         or for struct stat.st_birthtime, as these tests aren't used.
55135         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
55136
55137 2007-03-27  Bruno Haible  <bruno@clisp.org>
55138
55139         * lib/stat-time.h: Include <sys/stat.h>.
55140
55141 2007-03-27  James Youngman  <jay@gnu.org>
55142
55143         * lib/stat-time.h (get_stat_birthtime): New function for
55144           retrieving st_birthtime as provided by UFS2 (hence *BSD).
55145         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
55146           and its variants.
55147         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
55148         * modules/stat-time-test: New file.
55149         * tests/test-stat-time.c: New test, devised by Bruno Haible.
55150
55151 2007-03-26  Bruno Haible  <bruno@clisp.org>
55152
55153         Better support of signalling NaNs.
55154         * lib/atanl.c: Include isnanl.h.
55155         (atanl): Perform test for NaN at the beginning of the function and
55156         through a call to isnanl.
55157         * lib/cosl.c: Include isnanl.h.
55158         (cosl): Perform test for NaN at the beginning of the function and
55159         through a call to isnanl.
55160         * lib/ldexpl.c: Include isnanl.h.
55161         (ldexpl): Perform test for NaN through a call to isnanl.
55162         * lib/logl.c: Include isnanl.h.
55163         (logl): Perform test for NaN at the beginning of the function and
55164         through a call to isnanl.
55165         * lib/sinl.c: Include isnanl.h.
55166         (sinl): Perform test for NaN at the beginning of the function and
55167         through a call to isnanl.
55168         * lib/sqrtl.c: Include isnanl.h.
55169         (sqrtl): Perform test for NaN at the beginning of the function and
55170         through a call to isnanl.
55171         * lib/tanl.c: Include isnanl.h.
55172         (tanl): Perform test for NaN at the beginning of the function and
55173         through a call to isnanl.
55174         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
55175         * modules/mathl (Depends-on): Add isnanl.
55176
55177 2007-03-26  Eric Blake  <ebb9@byu.net>
55178
55179         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
55180         regression in logic sense of previous patch.
55181
55182 2007-03-26  Bruno Haible  <bruno@clisp.org>
55183
55184         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
55185         unportable shell command "if ! ...".
55186         Reported by Ralf Wildenhues.
55187
55188 2007-03-25  Bruno Haible  <bruno@clisp.org>
55189
55190         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
55191         <sysexits.h> file, and only add EX_CONFIG.
55192         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
55193         absolute file name and whether it is sufficient. Substitute also
55194         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
55195         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
55196         ABSOLUTE_SYSEXITS_H into sysexits.h.
55197
55198 2007-03-25  Bruno Haible  <bruno@clisp.org>
55199
55200         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
55201         hints is NULL.
55202
55203 2007-03-25  Bruno Haible  <bruno@clisp.org>
55204
55205         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
55206         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
55207
55208 2007-03-25  Bruno Haible  <bruno@clisp.org>
55209
55210         * lib/vasnprintf.c: Include langinfo.h.
55211         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
55212         multithread-safe.
55213         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
55214         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
55215         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55216         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55217         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55218         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55219         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55220         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
55221         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55222         Reported by Simon Josefsson.
55223
55224 2007-03-25  Bruno Haible  <bruno@clisp.org>
55225
55226         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
55227         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
55228         * modules/vasnprintf (Depends-on): Add stdint.
55229
55230 2007-03-25  Bruno Haible  <bruno@clisp.org>
55231
55232         * modules/fpieee: New file.
55233         * m4/fpieee.m4: New file.
55234         * modules/isnan-nolibm (Depends-on): Add fpieee.
55235         * modules/isnanl-nolibm (Depends-on): Add fpieee.
55236         * modules/isnanl (Depends-on): Add fpieee.
55237
55238 2007-03-25  Bruno Haible  <bruno@clisp.org>
55239
55240         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
55241
55242 2007-03-25  Bruno Haible  <bruno@clisp.org>
55243
55244         Avoid test failures on IRIX 6.5.
55245         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
55246         (main): Use it.
55247         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
55248         macros.
55249         (main): Use them.
55250
55251 2007-03-25  Bruno Haible  <bruno@clisp.org>
55252
55253         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
55254         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
55255         exists but doesn't work.
55256         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
55257         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
55258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
55259         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
55260         math.h.
55261
55262 2007-03-25  Bruno Haible  <bruno@clisp.org>
55263
55264         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
55265         returns inf. Needed on IRIX 6.5.
55266
55267 2007-03-25  Bruno Haible  <bruno@clisp.org>
55268
55269         * tests/test-frexpl.c: Include isnanl-nolibm.h.
55270         (main): Use isnanl instead of x != x idiom.
55271         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
55272
55273         * tests/test-frexp.c: Include isnan.h.
55274         (main): Use isnan instead of x != x idiom.
55275         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
55276
55277 2007-03-25  Bruno Haible  <bruno@clisp.org>
55278
55279         * tests/test-frexp.c (NaN): New function/macro.
55280         (main): Use it instead of 0.0 / 0.0.
55281         * tests/test-isnan.c (NaN): New function/macro.
55282         (main): Use it instead of 0.0 / 0.0.
55283         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
55284         (test_function): Use it instead of 0.0 / 0.0.
55285         * tests/test-vasprintf-posix.c (NaN): New function/macro.
55286         (test_function): Use it instead of 0.0 / 0.0.
55287         * tests/test-snprintf-posix.h (NaN): New function/macro.
55288         (test_function): Use it instead of 0.0 / 0.0.
55289         * tests/test-sprintf-posix.h (NaN): New function/macro.
55290         (test_function): Use it instead of 0.0 / 0.0.
55291         * tests/test-fprintf-posix.h (NaN): New function/macro.
55292         (test_function): Use it instead of 0.0 / 0.0.
55293         * tests/test-printf-posix.h (NaN): New function/macro.
55294         (test_function): Use it instead of 0.0 / 0.0.
55295
55296         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
55297
55298 2007-03-25  Bruno Haible  <bruno@clisp.org>
55299
55300         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
55301
55302 2007-03-25  Bruno Haible  <bruno@clisp.org>
55303
55304         * lib/regexec.c (merge_state_with_log): Make static.
55305
55306 2007-03-25  Bruno Haible  <bruno@clisp.org>
55307
55308         * lib/trigl.c (kernel_rem_pio2): Make static.
55309
55310 2007-03-25  Bruno Haible  <bruno@clisp.org>
55311
55312         * lib/sincosl.c (sincosl_table): Make static.
55313
55314 2007-03-25  Bruno Haible  <bruno@clisp.org>
55315
55316         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
55317         if the compiler does not support C99.
55318
55319 2007-03-25  Bruno Haible  <bruno@clisp.org>
55320
55321         * modules/time (Makefile.am): Ensure all rule action lines start with a
55322         tab.
55323
55324 2007-03-24  Bruno Haible  <bruno@clisp.org>
55325
55326         * modules/tsearch-tests: New file.
55327         * tests/test-tsearch.sh: New file.
55328         * tests/test-tsearch.c: New file, mostly copied from glibc.
55329
55330         * modules/search-tests: New file.
55331         * tests/test-search.c: New file.
55332
55333         * modules/search: New file.
55334         * lib/search_.h: New file, incorporating lib/tsearch.h.
55335         * m4/search_h.m4: New file.
55336         * lib/tsearch.h: Remove file.
55337         * lib/tsearch.c: Include search.h instead of tsearch.h.
55338         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
55339         HAVE_TSEARCH.
55340         * modules/tsearch (Files): Remove lib/tsearch.h.
55341         (Depends-on): Add search.
55342         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
55343         (Include): Change tsearch.h into search.h.
55344
55345 2007-03-24  Bruno Haible  <bruno@clisp.org>
55346
55347         * modules/fpucw: New file.
55348         * lib/fpucw.h: New file.
55349         * lib/frexp.c: Include fpucw.h.
55350         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55351         (FUNC): Use them.
55352         * lib/printf-frexp.c: Include fpucw.h.
55353         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55354         (FUNC): Use them.
55355         * lib/vasnprintf.c: Include fpucw.h.
55356         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
55357         'long double' calculations.
55358         * tests/test-frexpl.c: Include fpucw.h.
55359         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55360         * tests/test-printf-frexpl.c: Include fpucw.h.
55361         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55362         * modules/frexpl (Depends-on): Add fpucw.
55363         * modules/printf-frexpl (Depends-on): Likewise.
55364         * modules/fprintf-posix (Depends-on): Likewise.
55365         * modules/snprintf-posix (Depends-on): Likewise.
55366         * modules/sprintf-posix (Depends-on): Likewise.
55367         * modules/vasnprintf-posix (Depends-on): Likewise.
55368         * modules/vasprintf-posix (Depends-on): Likewise.
55369         * modules/vfprintf-posix (Depends-on): Likewise.
55370         * modules/vsnprintf-posix (Depends-on): Likewise.
55371         * modules/vsprintf-posix (Depends-on): Likewise.
55372         * modules/frexpl-tests (Depends-on): Likewise.
55373         * modules/printf-frexpl-tests (Depends-on): Likewise.
55374
55375 2007-03-24  Bruno Haible  <bruno@clisp.org>
55376
55377         * lib/float+.h: New file.
55378         * lib/isnan.c: Include float+.h.
55379         (SIZE): New macro.
55380         (FUNC): Compare only SIZE bytes of the value.
55381         * lib/vasnprintf.c: Include float+.h.
55382         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
55383         SIZEOF_LDBL or SIZEOF_DBL bytes.
55384         * modules/isnan-nolibm (Files): Add lib/float+.h.
55385         * modules/isnanl-nolibm (Files): Add lib/float+.h.
55386         * modules/isnanl (Files): Add lib/float+.h.
55387         * modules/vasnprintf (Files): Add lib/float+.h.
55388
55389 2007-03-24  Bruno Haible  <bruno@clisp.org>
55390
55391         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
55392         include isnanl-nolibm.h.
55393
55394 2007-03-24  Bruno Haible  <bruno@clisp.org>
55395
55396         * tests/test-read-file.c (main): Don't produce spurious output for
55397         expected situations. Make the test fail if it encountered unexpected
55398         results.
55399
55400 2007-03-24  Bruno Haible  <bruno@clisp.org>
55401
55402         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
55403         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
55404
55405 2007-03-24  Bruno Haible  <bruno@clisp.org>
55406
55407         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
55408
55409 2007-03-24  Bruno Haible  <bruno@clisp.org>
55410
55411         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
55412         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
55413
55414         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
55415         * modules/utf8-ucs4: Turn into a symbolic link to module
55416         unistr/u8-mbtouc.
55417
55418         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
55419         utf8-ucs4-unsafe.
55420         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
55421         unistr/u8-mbtouc-unsafe.
55422
55423         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
55424         * modules/utf16-ucs4: Turn into a symbolic link to module
55425         unistr/u16-mbtouc.
55426
55427         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
55428         utf16-ucs4-unsafe.
55429         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
55430         unistr/u16-mbtouc-unsafe.
55431
55432         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
55433         * modules/ucs4-utf8: Turn into a symbolic link to module
55434         unistr/u8-ubtomb.
55435
55436         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
55437         * modules/ucs4-utf16: Turn into a symbolic link to module
55438         unistr/u16-ubtomb.
55439
55440 2007-03-24  Bruno Haible  <bruno@clisp.org>
55441
55442         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
55443         Enable the function only if HAVE_INLINE.
55444         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
55445         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55446         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
55447         Enable the function only if HAVE_INLINE.
55448         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
55449         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55450         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
55451         Enable the function only if HAVE_INLINE.
55452         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
55453         Enable the function only if HAVE_INLINE.
55454         * modules/utf8-ucs4: Update.
55455         * modules/utf8-ucs4-unsafe: Update.
55456         * modules/utf16-ucs4: Update.
55457         * modules/utf16-ucs4-unsafe: Update.
55458         * modules/ucs4-utf8: Update.
55459         * modules/ucs4-utf16: Update.
55460
55461 2007-03-24  Bruno Haible  <bruno@clisp.org>
55462
55463         * lib/utf8-ucs4.h: Remove file.
55464         * lib/utf8-ucs4-unsafe.h: Remove file.
55465         * lib/utf16-ucs4.h: Remove file.
55466         * lib/utf16-ucs4-unsafe.h: Remove file.
55467         * lib/ucs4-utf8.h: Remove file.
55468         * lib/ucs4-utf16.h: Remove file.
55469         * lib/unistr.h: Include their previous contents.
55470         * m4/utf-ucs4.m4: Remove file.
55471         * m4/ucs4-utf.m4: Remove file.
55472         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
55473         (Depends-on): Add unistr/base.
55474         (configure.ac): Remove gl_UTF_UCS4.
55475         (Makefile.am): Update.
55476         (Include): Change to unistr.h.
55477         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
55478         (Depends-on): Add unistr/base.
55479         (configure.ac): Remove gl_UTF_UCS4.
55480         (Makefile.am): Update.
55481         (Include): Change to unistr.h.
55482         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
55483         (Depends-on): Add unistr/base.
55484         (configure.ac): Remove gl_UTF_UCS4.
55485         (Makefile.am): Update.
55486         (Include): Change to unistr.h.
55487         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
55488         (Depends-on): Add unistr/base.
55489         (configure.ac): Remove gl_UTF_UCS4.
55490         (Makefile.am): Update.
55491         (Include): Change to unistr.h.
55492         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
55493         (Depends-on): Add unistr/base.
55494         (configure.ac): Remove gl_UCS4_UTF.
55495         (Makefile.am): Update.
55496         (Include): Change to unistr.h.
55497         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
55498         (Depends-on): Add unistr/base.
55499         (configure.ac): Remove gl_UCS4_UTF.
55500         (Makefile.am): Update.
55501         (Include): Change to unistr.h.
55502         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
55503         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
55504         utf8-ucs4-unsafe.h.
55505         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
55506         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
55507         utf16-ucs4-unsafe.h.
55508         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
55509         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
55510         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
55511         * lib/unistr/u8-strchr.c: Likewise.
55512         * lib/unistr/u8-strrchr.c: Likewise.
55513         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
55514         * lib/unistr/u16-strchr.c: Likewise.
55515         * lib/unistr/u16-strrchr.c: Likewise.
55516         * lib/striconveh.c: Update.
55517         * lib/linebreak.c: Update.
55518
55519 2007-03-24  Bruno Haible  <bruno@clisp.org>
55520
55521         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
55522         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
55523
55524 2007-03-22  Bruno Haible  <bruno@clisp.org>
55525
55526         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
55527
55528 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
55529
55530         * MODULES.html.sh (File system functions): New module write-any-file.
55531         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
55532         * m4/write-any-file.m4: New files.
55533
55534 2007-03-23  Eric Blake  <ebb9@byu.net>
55535
55536         * gnulib-tool: Rearrange space-tab sequences, since some editors
55537         like to eat them.
55538
55539 2007-03-23  Eric Blake  <ebb9@byu.net>
55540
55541         * lib/version-etc.c (version_etc_va): Update license wording to
55542         be more concise.  Recommended by Richard Stallman.
55543
55544 2007-03-22  Bruno Haible  <bruno@clisp.org>
55545
55546         * lib/poll.c (MSG_PEEK): New fallback definition.
55547
55548 2007-03-22  Bruno Haible  <bruno@clisp.org>
55549
55550         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
55551         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
55552         (main): Update.
55553         Fixes a compilation error on BeOS.
55554
55555 2007-03-22  Bruno Haible  <bruno@clisp.org>
55556
55557         * modules/frexpl-tests: New file.
55558         * tests/test-frexpl.c: New file.
55559
55560         * modules/frexpl: New file.
55561         * m4/frexpl.m4: New file.
55562         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
55563         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
55564         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
55565         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
55566         (Depends-on): Add frexpl. Remove isnanl-nolibm.
55567         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
55568
55569 2007-03-22  Bruno Haible  <bruno@clisp.org>
55570
55571         * lib/frexpl.c: Share code with lib/frexp.c.
55572         * modules/mathl (Files): Add lib/frexp.c.
55573         (Depends-on): Add isnanl-nolibm.
55574
55575 2007-03-22  Bruno Haible  <bruno@clisp.org>
55576
55577         * modules/printf-frexp (Files): Add m4/frexp.m4.
55578         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
55579         only if the found frexp function actually works.
55580
55581 2007-03-22  Bruno Haible  <bruno@clisp.org>
55582
55583         * lib/frexp.c: Remove older implementation that uses divisions.
55584
55585 2007-03-21  Bruno Haible  <bruno@clisp.org>
55586
55587         * modules/frexp-tests: New file.
55588         * tests/test-frexp.c: New file.
55589
55590         * modules/frexp: New file.
55591         * lib/frexp.c: New file.
55592         * m4/frexp.m4: New file.
55593         * lib/math_.h (frexp): New declaration.
55594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
55595         REPLACE_FREXP.
55596         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
55597
55598 2007-03-21  Bruno Haible  <bruno@clisp.org>
55599
55600         * modules/isnanl-tests: New file.
55601         * tests/test-isnanl.c: New file.
55602
55603         * modules/isnanl: New file.
55604         * lib/isnanl.h: New file.
55605         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
55606         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
55607         gl_FUNC_ISNANL_WORKS.
55608         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
55609         New macros.
55610
55611 2007-03-21  Bruno Haible  <bruno@clisp.org>
55612
55613         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
55614         lib/isnanl.h.
55615         (Include): Update.
55616         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
55617         * lib/vasnprintf.c: Update.
55618         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
55619         tests/test-isnanl.h, remove tests/test-isnanl.c.
55620         (Makefile.am): Update.
55621         * tests/test-isnanl-nolibm.c: New file.
55622         * tests/test-isnanl.h: New file.
55623         * tests/test-isnanl.c: Remove file.
55624
55625 2007-03-21  Jim Meyering  <jim@meyering.net>
55626
55627         When trying to open ".", treat ESTALE like EACCES.
55628         * lib/savewd.c (savewd_save): Resort to forking not just upon
55629         failure with EACCES, but also when errno is ESTALE.
55630
55631 2007-03-20  Bruno Haible  <bruno@clisp.org>
55632
55633         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
55634         Needed on AIX 5.1. Reported by Matthew Woehlke.
55635
55636 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55637
55638         Suggestions by Bruno Haible:
55639         * lib/acl-internal.h: Include "gettext.h" rather than rolling
55640         our own.
55641         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
55642         * modules/acl (Depends-on): Add gettext.
55643
55644 2007-03-19  Bruno Haible  <bruno@clisp.org>
55645
55646         * modules/iconvme: Remove file.
55647         * lib/iconvme.h: Remove file.
55648         * lib/iconvme.c: Remove file.
55649         * m4/iconvme.m4: Remove file.
55650
55651 2007-03-19  Bruno Haible  <bruno@clisp.org>
55652
55653         * doc/relocatable-maint.texi: Break long shell script line.
55654         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55655
55656 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55657
55658         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
55659         handle file_has_acl.
55660         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
55661         * lib/acl.c: Move header inclusions and related macro defns into
55662         lib/acl-internal.h.
55663         (S_ISLNK): Remove defn, since that's now done for us.
55664         (file_has_acl): Move to lib/file-has-acl.c.
55665         Call acl_trivial if available.  This is the crucial part of the fix.
55666         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
55667         shared within the library.  Rewrite a bit, partly to make it compatible
55668         with the GNU coding style.
55669         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
55670         Remove unnecessary double-quotes.
55671         Don't test for acl_to_text; the build will catch that.
55672         Replace acl_entries if it doesn't exist and it is needed.
55673         Check for -lsec and acl_trivial (as used on Solaris 10).
55674         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
55675         lib/file-has-acl.c.
55676         (Depends-on): Add sys_stat, for S_ISLNK.
55677
55678 2007-03-19  Ben Pfaff  <blp@gnu.org>
55679
55680         * doc/gnulib.texi: Fix typos.
55681         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55682
55683 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55684
55685         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
55686         If size is zero here, buf must be zero.
55687
55688 2007-03-19  Simon Josefsson  <simon@josefsson.org>
55689
55690         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
55691         <bruno@clisp.org>.
55692
55693 2007-03-18  Bruno Haible  <bruno@clisp.org>
55694
55695         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
55696         Suggested by Eric Blake.
55697
55698 2007-03-18  Ben Pfaff  <blp@gnu.org>
55699
55700         * doc/relocatable.texi: Recommend using as prefix a directory
55701         that does not exist and will never be created.  Based on
55702         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
55703         and others.
55704
55705 2007-03-17  Bruno Haible  <bruno@clisp.org>
55706
55707         * lib/fchownat.c: Include lchown.h.
55708
55709 2007-03-17  Bruno Haible  <bruno@clisp.org>
55710
55711         Fix endless loop when the given allocated size was > INT_MAX.
55712         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
55713         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
55714         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
55715         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
55716         * lib/sprintf.c (sprintf): Likewise.
55717
55718 2007-03-17  Bruno Haible  <bruno@clisp.org>
55719
55720         * tests/test-argp-2.sh (func_compare): Output a context diff.
55721
55722 2007-03-17  Bruno Haible  <bruno@clisp.org>
55723
55724         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
55725         locale's decimal-point character.
55726
55727 2007-03-17  Bruno Haible  <bruno@clisp.org>
55728
55729         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
55730         before comparing it. Needed because on some platforms (e.g. x86) a
55731         'long double' occupies less bytes than sizeof (long double).
55732
55733 2007-03-17  Bruno Haible  <bruno@clisp.org>
55734
55735         * tests/test-crc.c (main): Make printf statements 64-bit clean.
55736         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
55737         * tests/test-getaddrinfo.c (simple): Likewise.
55738         * tests/test-read-file.c (main): Likewise.
55739
55740 2007-03-17  Bruno Haible  <bruno@clisp.org>
55741
55742         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
55743
55744 2007-03-17  Bruno Haible  <bruno@clisp.org>
55745
55746         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
55747         unused variable.
55748
55749 2007-03-17  Bruno Haible  <bruno@clisp.org>
55750
55751         * tests/test-c-strcasecmp.c: Include c-strcase.h.
55752         * tests/test-c-strncasecmp.c: Likewise.
55753
55754 2007-03-17  Bruno Haible  <bruno@clisp.org>
55755
55756         * modules/stdlib (Depends-on): Add unistd.
55757         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
55758         Needed for MacOS X 10.3.
55759
55760 2007-03-17  Bruno Haible  <bruno@clisp.org>
55761
55762         * lib/unistr/u-strdup.h: Include <stdlib.h>.
55763
55764 2007-03-17  Bruno Haible  <bruno@clisp.org>
55765
55766         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
55767
55768 2007-03-17  Bruno Haible  <bruno@clisp.org>
55769
55770         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
55771         to reflect files copied from gnulib (with or without modifications).
55772         Suggested by Jim Meyering.
55773
55774 2007-03-17  Eric Blake  <ebb9@byu.net>
55775
55776         * NEWS: Document stdlib change from 2007-02-18.
55777
55778 2007-03-17  Jim Meyering  <jim@meyering.net>
55779
55780         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
55781         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
55782         someone uses a name containing shell meta-characters.
55783         Reported by Alfred M. Szmidt.
55784
55785         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
55786
55787 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
55788
55789         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
55790         and copy gettext configuration files only if configure.ac contains
55791         a use of AM_GNU_GETTEXT_VERSION.
55792
55793 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
55794
55795         * build-aux/bootstrap (gnulib_name): New variable.
55796         (gnulib_tool_options): Use it.
55797
55798 2007-03-13  Simon Josefsson  <simon@josefsson.org>
55799
55800         * tests/test-des.c: Use new namespace.
55801
55802 2007-03-15  Bruno Haible  <bruno@clisp.org>
55803
55804         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
55805         Reported by James Youngman <jay@gnu.org>.
55806
55807 2007-03-15  Bruno Haible  <bruno@clisp.org>
55808
55809         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
55810         declared prototype. Needed with cc on OSF/1 5.1.
55811
55812 2007-03-15  Bruno Haible  <bruno@clisp.org>
55813
55814         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
55815         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
55816         (struct gl_list_implementation): Add dispose_fn argument to the
55817         'create_empty', 'create' methods.
55818         (struct gl_list_impl_base): Add field 'dispose_fn'.
55819         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
55820         argument.
55821         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
55822         dispose_fn argument.
55823         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
55824         dispose_fn on the dropped values.
55825         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
55826         dispose_fn argument.
55827         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
55828         dropped values.
55829         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
55830         (gl_tree_remove_node): Call dispose_fn on the dropped value.
55831         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
55832         (gl_tree_remove_node): Call dispose_fn on the dropped value.
55833         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
55834         argument.
55835         (gl_tree_list_free): Call dispose_fn on the dropped values.
55836         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
55837         the dropped values.
55838         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55839         Add dispose_fn argument.
55840         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
55841         Call dispose_fn on the dropped values.
55842         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
55843         Add dispose_fn argument.
55844         (gl_sublist_create): Initialize the 'dispose_fn' field.
55845         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
55846         * tests/test-array_list.c (main): Update.
55847         * tests/test-carray_list.c (main): Update.
55848         * tests/test-avltree_list.c (main): Update.
55849         * tests/test-rbtree_list.c (main): Update.
55850         * tests/test-avltreehash_list.c (main): Update.
55851         * tests/test-rbtreehash_list.c (main): Update.
55852         * tests/test-linked_list.c (main): Update.
55853         * tests/test-linkedhash_list.c (main): Update.
55854         * tests/test-array_oset.c (main): Update.
55855
55856 2007-03-15  Bruno Haible  <bruno@clisp.org>
55857
55858         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
55859         (gl_oset_create_empty): Add dispose_fn argument.
55860         (struct gl_oset_implementation): Add dispose_fn argument to
55861         'create_empty' method.
55862         (struct gl_oset_impl_base): Add dispose_fn field.
55863         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
55864         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
55865         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
55866         values.
55867         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
55868         (gl_tree_oset_free): Call dispose_fn on the dropped values.
55869         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
55870         dropped value.
55871         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
55872         dropped value.
55873         * tests/test-array_oset.c (main): Update.
55874         * tests/test-avltree_oset.c (main): Update.
55875         * tests/test-rbtree_oset.c (main): Update.
55876         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
55877
55878 2007-03-13  Bruno Haible  <bruno@clisp.org>
55879
55880         * tests/test-stdbool.c (i): Update after last patch.
55881
55882 2007-03-12  Bruno Haible  <bruno@clisp.org>
55883
55884         * lib/quotearg.c: Include <wctype.h> early, before the definition of
55885         the iswprint macro. Needed on Solaris 2.5.1.
55886
55887 2007-03-12  Bruno Haible  <bruno@clisp.org>
55888
55889         * tests/test-printf-frexp.c (main): Declare x as volatile.
55890
55891 2007-03-12  Simon Josefsson  <simon@josefsson.org>
55892
55893         * doc/gnulib.texi (Build robot for gnulib): New section.
55894
55895 2007-03-12  Jim Meyering  <jim@meyering.net>
55896
55897         * build-aux/bootstrap: New file.
55898         * build-aux/bootstrap.conf: New file, from coreutils.
55899
55900 2007-03-11  Bruno Haible  <bruno@clisp.org>
55901
55902         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
55903
55904 2007-03-12  Simon Josefsson  <simon@josefsson.org>
55905
55906         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
55907         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
55908         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
55909
55910 2007-03-11  Bruno Haible  <bruno@clisp.org>
55911
55912         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
55913         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
55914
55915 2007-03-11  Bruno Haible  <bruno@clisp.org>
55916
55917         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
55918         formula. Needed for SunPRO C 5.0.
55919
55920 2007-03-11  Bruno Haible  <bruno@clisp.org>
55921
55922         * modules/long-options (Depends-on): Add getopt.
55923
55924 2007-03-11  Bruno Haible  <bruno@clisp.org>
55925
55926         * modules/modechange (Depends-on): Add stdbool.
55927
55928 2007-03-11  Bruno Haible  <bruno@clisp.org>
55929
55930         * modules/i-ring (Depends-on): Add stdbool.
55931
55932 2007-03-11  Bruno Haible  <bruno@clisp.org>
55933
55934         * modules/gc-des (Depends-on): Add stdbool.
55935
55936 2007-03-11  Bruno Haible  <bruno@clisp.org>
55937
55938         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
55939
55940 2007-03-11  Bruno Haible  <bruno@clisp.org>
55941
55942         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
55943
55944 2007-03-11  Bruno Haible  <bruno@clisp.org>
55945
55946         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
55947
55948 2007-03-11  Bruno Haible  <bruno@clisp.org>
55949
55950         * lib/vasnprintf.c (sprintf): Undefine.
55951
55952 2007-03-11  Bruno Haible  <bruno@clisp.org>
55953
55954         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
55955         initializers in SunPRO C and Compaq C compilers.
55956
55957 2007-03-11  Bruno Haible  <bruno@clisp.org>
55958
55959         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
55960         decrementing code ANSI C compliant.
55961
55962 2007-03-11  Bruno Haible  <bruno@clisp.org>
55963
55964         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
55965         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
55966
55967 2007-03-11  Bruno Haible  <bruno@clisp.org>
55968
55969         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
55970         <stdbool.h> substitute doesn't pass.
55971
55972 2007-03-11  Bruno Haible  <bruno@clisp.org>
55973
55974         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
55975
55976 2007-03-11  Bruno Haible  <bruno@clisp.org>
55977
55978         * gnulib-tool (func_create_megatestdir): Create also an autobuild
55979         script, for submission to autobuild.josefsson.org.
55980
55981 2007-03-10  Bruno Haible  <bruno@clisp.org>
55982
55983         * modules/canonicalize-lgpl-tests: New file.
55984         * tests/test-canonicalize-lgpl.sh: New file.
55985         * tests/test-canonicalize-lgpl.c: New file.
55986
55987         * modules/c-strcase-tests: New file.
55988         * tests/test-c-strcase.sh: New file.
55989         * tests/test-c-strcasecmp.c: New file.
55990         * tests/test-c-strncasecmp.c: New file.
55991
55992         * modules/atexit-tests: New file.
55993         * tests/test-atexit.sh: New file.
55994         * tests/test-atexit.c: New file.
55995
55996 2007-03-10  Bruno Haible  <bruno@clisp.org>
55997
55998         * tests/test-binary-io.sh: Use temporary filenames that are not so
55999         likely to clash with those of other tests (in a parallel make).
56000         * tests/test-binary-io.c: Likewise.
56001
56002 2007-03-10  Bruno Haible  <bruno@clisp.org>
56003
56004         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
56005         fallback; use #error instead.
56006         Suggested by Simon Josefsson.
56007
56008 2007-03-10  Bruno Haible  <bruno@clisp.org>
56009
56010         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
56011         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
56012         first and the last.
56013
56014 2007-03-10  Bruno Haible  <bruno@clisp.org>
56015
56016         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
56017
56018 2007-03-10  Bruno Haible  <bruno@clisp.org>
56019
56020         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
56021         "make distcheck".
56022         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
56023         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
56024         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
56025
56026 2007-03-10  Bruno Haible  <bruno@clisp.org>
56027
56028         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
56029         variable.
56030         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
56031         variable.
56032
56033 2007-03-09  Eric Blake  <ebb9@byu.net>
56034         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
56035
56036         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
56037         types are not being provided by gnulib.
56038         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
56039         types are supported.
56040
56041 2007-03-10  Bruno Haible  <bruno@clisp.org>
56042
56043         * lib/stdio_.h (__attribute__): New macro.
56044         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
56045         vsprintf): Specify __attribute__ __format__ for GCC.
56046         Suggested by Eric Blake.
56047
56048 2007-03-09  Bruno Haible  <bruno@clisp.org>
56049
56050         * modules/printf-posix-tests: New file.
56051         * tests/test-printf-posix.sh: New file.
56052         * tests/test-printf-posix.c: New file.
56053
56054         * modules/printf-posix: New file.
56055         * lib/printf.c: New file.
56056         * m4/printf-posix-rpl.m4: New file.
56057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
56058         REPLACE_PRINTF.
56059         * lib/stdio_.h (printf): New declaration.
56060         (format, __format__, ____printf____, ____scanf____, ____strftime____,
56061         ____strfmon____): New macros.
56062         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
56063         REPLACE_PRINTF.
56064
56065 2007-03-09  Bruno Haible  <bruno@clisp.org>
56066
56067         * tests/test-vasnprintf-posix2.sh: New file.
56068         * tests/test-vasnprintf-posix2.c: New file.
56069         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
56070         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
56071         (Makefile.am): Activate test-vasnprintf-posix2.sh.
56072
56073         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
56074         a locale dependent decimal point, rather than always '.'.
56075
56076 2007-03-09  Eric Blake  <ebb9@byu.net>
56077
56078         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
56079         spite of platforms like Tandem/NSK that define it to -1.
56080
56081 2007-03-08  Bruno Haible  <bruno@clisp.org>
56082
56083         * modules/vprintf-posix-tests: New file.
56084         * tests/test-vprintf-posix.sh: New file.
56085         * tests/test-vprintf-posix.c: New file.
56086         * tests/test-printf-posix.h: New file.
56087
56088         * modules/vprintf-posix: New file.
56089         * lib/vprintf.c: New file.
56090         * m4/vprintf-posix.m4: New file.
56091         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
56092         REPLACE_VPRINTF.
56093         * lib/stdio_.h (vprintf): New declaration.
56094         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
56095         REPLACE_VPRINTF.
56096
56097 2007-03-08  Bruno Haible  <bruno@clisp.org>
56098
56099         * modules/fprintf-posix-tests: New file.
56100         * tests/test-fprintf-posix.sh: New file.
56101         * tests/test-fprintf-posix.c: New file.
56102
56103         * modules/fprintf-posix: New file.
56104         * lib/fprintf.c: New file.
56105         * m4/fprintf-posix.m4: New file.
56106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
56107         REPLACE_FPRINTF.
56108         * lib/stdio_.h (fprintf): New declaration.
56109         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
56110         REPLACE_FPRINTF.
56111
56112 2007-03-08  Bruno Haible  <bruno@clisp.org>
56113
56114         * modules/vfprintf-posix-tests: New file.
56115         * tests/test-vfprintf-posix.sh: New file.
56116         * tests/test-vfprintf-posix.c: New file.
56117         * tests/test-fprintf-posix.h: New file.
56118         * tests/test-fprintf-posix.out: New file.
56119
56120         * modules/vfprintf-posix: New file.
56121         * lib/vfprintf.c: New file.
56122         * m4/vfprintf-posix.m4: New file.
56123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
56124         REPLACE_VFPRINTF.
56125         * lib/stdio_.h (vfprintf): New declaration.
56126         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
56127         REPLACE_VFPRINTF.
56128
56129 2007-03-08  Bruno Haible  <bruno@clisp.org>
56130
56131         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
56132
56133 2007-03-08  Bruno Haible  <bruno@clisp.org>
56134
56135         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
56136         instead of 'expr' invocations.
56137         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56138         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56139         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56140         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56141         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56142         Suggested by Paul Eggert.
56143
56144 2007-03-08  Bruno Haible  <bruno@clisp.org>
56145
56146         * modules/fseterr-tests: New file.
56147         * tests/test-fseterr.c: New file.
56148
56149         * modules/fseterr: New file.
56150         * lib/fseterr.h: New file.
56151         * lib/fseterr.c: New file.
56152
56153 2007-03-08  Bruno Haible  <bruno@clisp.org>
56154
56155         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
56156         * lib/getopt_.h: Likewise.
56157         * lib/mbswidth.h: Likewise.
56158         * lib/setenv.h: Likewise.
56159         * lib/vasnprintf.h: Likewise.
56160         * lib/vasprintf.h: Likewise.
56161         * lib/verror.h: Likewise.
56162         * lib/xsetenv.h: Likewise.
56163         * lib/xvasprintf.h: Likewise.
56164
56165 2007-03-08  Jim Meyering  <jim@meyering.net>
56166
56167         * users.txt: Add parted.
56168
56169         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
56170
56171 2007-03-07  Bruno Haible  <bruno@clisp.org>
56172
56173         * m4/printf.m4: Make the shell script snippets copy&pastable.
56174
56175 2007-03-02  Bruno Haible  <bruno@clisp.org>
56176
56177         * lib/netinet_in_.h: New file.
56178         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
56179         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
56180         * modules/netinet_in (Files): Add lib/netinet_in_.h.
56181         (Depends-on): Add absolute-header.
56182         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
56183         into netinet/in.h.
56184
56185 2007-03-03  Bruno Haible  <bruno@clisp.org>
56186
56187         * lib/sys_select_.h: New file.
56188         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
56189         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
56190         * modules/sys_select (Files): Add lib/sys_select_.h.
56191         (Depends-on): Add absolute-header.
56192         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
56193         into sys/select.h.
56194
56195 2007-03-02  Bruno Haible  <bruno@clisp.org>
56196
56197         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
56198         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
56199         values.
56200         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
56201         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
56202         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
56203         * modules/sys_socket (Depends-on): Add absolute-header.
56204         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
56205         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
56206         (Include): Remove requirement of inclusion of <sys/types.h>.
56207
56208 2007-03-02  Bruno Haible  <bruno@clisp.org>
56209
56210         * lib/byteswap_.h (bswap_32): Fix formula.
56211
56212 2007-03-06  Bruno Haible  <bruno@clisp.org>
56213
56214         * modules/sprintf-posix-tests: New file.
56215         * tests/test-sprintf-posix.c: New file.
56216
56217         * modules/sprintf-posix: New file.
56218         * lib/sprintf.c: New file.
56219         * m4/sprintf-posix.m4: New file.
56220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
56221         REPLACE_SPRINTF.
56222         * lib/stdio_.h (sprintf): New declaration.
56223         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
56224         REPLACE_SPRINTF.
56225
56226 2007-03-06  Bruno Haible  <bruno@clisp.org>
56227
56228         * modules/vsprintf-posix-tests: New file.
56229         * tests/test-vsprintf-posix.c: New file.
56230         * tests/test-sprintf-posix.h: New file.
56231
56232         * modules/vsprintf-posix: New file.
56233         * lib/vsprintf.c: New file.
56234         * m4/vsprintf-posix.m4: New file.
56235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
56236         REPLACE_VSPRINTF.
56237         * lib/stdio_.h (vsprintf): New declaration.
56238         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
56239         REPLACE_VSPRINTF.
56240
56241 2007-03-06  Bruno Haible  <bruno@clisp.org>
56242
56243         * modules/vsnprintf (Depend-on): Remove minmax.
56244
56245 2007-03-06  Bruno Haible  <bruno@clisp.org>
56246
56247         * modules/snprintf-posix-tests: New file.
56248         * tests/test-snprintf-posix.c: New file.
56249
56250         * modules/snprintf-posix: New file.
56251         * m4/snprintf-posix.m4: New file.
56252         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
56253         gl_FUNC_SNPRINTF.
56254         (gl_FUNC_SNPRINTF): Invoke it.
56255         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
56256         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
56257         is set.
56258         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
56259
56260 2007-03-06  Bruno Haible  <bruno@clisp.org>
56261
56262         * modules/vsnprintf-posix-tests: New file.
56263         * tests/test-vsnprintf-posix.c: New file.
56264         * tests/test-snprintf-posix.h: New file.
56265
56266         * modules/vsnprintf-posix: New file.
56267         * m4/vsnprintf-posix.m4: New file.
56268         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
56269         gl_FUNC_VSNPRINTF.
56270         (gl_FUNC_VSNPRINTF): Invoke it.
56271         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
56272         * lib/stdio_.h (vsnprintf): Define as a replacement if
56273         REPLACE_VSNPRINTF is set.
56274         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
56275
56276 2007-03-06  Bruno Haible  <bruno@clisp.org>
56277
56278         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
56279         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
56280
56281 2007-03-06  Bruno Haible  <bruno@clisp.org>
56282
56283         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
56284         (asinl): Declare also if HAVE_DECL_ASINL is set.
56285         (atanl): Declare also if HAVE_DECL_ATANL is set.
56286         (ceill): Declare also if HAVE_DECL_CEILL is set.
56287         (cosl): Declare also if HAVE_DECL_COSL is set.
56288         (expl): Declare also if HAVE_DECL_EXPL is set.
56289         (floorl): Declare also if HAVE_DECL_FLOORL is set.
56290         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
56291         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
56292         (logl): Declare also if HAVE_DECL_LOGL is set.
56293         (sinl): Declare also if HAVE_DECL_SINL is set.
56294         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
56295         (tanl): Declare also if HAVE_DECL_TANL is set.
56296         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
56297         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
56298         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
56299         declaration of frexpl, ldexpl.
56300         * modules/printf-frexpl (Depends-on): Add math.
56301         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
56302
56303 2007-03-05  Bruno Haible  <bruno@clisp.org>
56304
56305         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
56306         frexpl and ldexpl are declared.
56307         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
56308
56309 2007-03-05  Bruno Haible  <bruno@clisp.org>
56310
56311         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
56312         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
56313
56314 2007-03-05  Bruno Haible  <bruno@clisp.org>
56315
56316         * lib/stdio_.h: Include <stddef.h>.
56317
56318 2007-03-05  Bruno Haible  <bruno@clisp.org>
56319
56320         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
56321
56322 2007-03-05  Bruno Haible  <bruno@clisp.org>
56323
56324         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
56325         NetBSD 4, from Ralf Wildenhues.
56326
56327 2007-03-04  Bruno Haible  <bruno@clisp.org>
56328
56329         * lib/vasprintf.h: Update #if logic for the case when the functions
56330         exist but are overridden.
56331
56332 2007-03-04  Bruno Haible  <bruno@clisp.org>
56333
56334         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
56335         implementations: glibc-2.4 and MacOS X 10.3.
56336         * tests/test-vasnprintf-posix.c (test_function): Test also the case
56337         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
56338         * tests/test-vasprintf-posix.c (test_function): Likewise.
56339
56340 2007-03-04  Bruno Haible  <bruno@clisp.org>
56341
56342         * modules/vasprintf-posix-tests: New file.
56343         * tests/test-vasprintf-posix.c: New file.
56344
56345         * modules/vasprintf-posix: New file.
56346         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
56347         defined.
56348         * m4/vasprintf-posix.m4: New file.
56349         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
56350         gl_FUNC_VASPRINTF.
56351         (gl_FUNC_VASPRINTF): Invoke it.
56352         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
56353         here.
56354         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
56355
56356 2007-03-04  Bruno Haible  <bruno@clisp.org>
56357
56358         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
56359         REPLACE_GETTIMEOFDAY.
56360         * modules/sys_time (Makefile.am): Likewise.
56361         * m4/sys_time_h.m4: Likewise.
56362         * m4/gettimeofday.m4: Likewise.
56363
56364 2007-03-04  Bruno Haible  <bruno@clisp.org>
56365
56366         * modules/vasnprintf-posix-tests: New file.
56367         * tests/test-vasnprintf-posix.c: New file.
56368
56369         * modules/vasnprintf-posix: New file.
56370         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
56371         printf-frexpl.h.
56372         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
56373         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
56374         REPLACE_VASNPRINTF is defined.
56375         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
56376         gl_FUNC_VASNPRINTF.
56377         (gl_FUNC_VASNPRINTF): Invoke it.
56378         * m4/vasnprintf-posix.m4: New file.
56379         * m4/printf.m4: New file.
56380
56381 2007-03-04  Bruno Haible  <bruno@clisp.org>
56382
56383         Compile progreloc.c only if --enable-relocatable is specified.
56384         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
56385         if --enable-relocatable was specified.
56386         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
56387         lib_SOURCES.
56388
56389 2007-03-04  Jim Meyering  <jim@meyering.net>
56390
56391         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
56392         Use it consistently, rather than enumerating errno constants.
56393
56394 2007-03-04  Bruno Haible  <bruno@clisp.org>
56395
56396         * modules/xvasprintf-tests: New file.
56397         * tests/test-xvasprintf.c: New file.
56398
56399         * modules/vasprintf-tests: New file.
56400         * tests/test-vasprintf.c: New file.
56401
56402         * modules/vasnprintf-tests: New file.
56403         * tests/test-vasnprintf.c: New file.
56404
56405         * modules/vsnprintf-tests: New file.
56406         * tests/test-vsnprintf.c: New file.
56407
56408         * modules/snprintf-tests: New file.
56409         * tests/test-snprintf.c: New file.
56410
56411 2007-03-04  Bruno Haible  <bruno@clisp.org>
56412
56413         Compile relocatable.c only if --enable-relocatable is specified.
56414         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
56415         gl_RELOCATABLE_LIBRARY.
56416         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
56417         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
56418         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
56419         gl_RELOCATABLE_LIBRARY.
56420         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
56421         (Makefile.am): Remove lib_SOURCES.
56422         * modules/relocatable-lib-lgpl (configure.ac): Invoke
56423         gl_RELOCATABLE_LIBRARY.
56424         (Makefile.am): Remove lib_SOURCES.
56425         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
56426         always.
56427         * modules/relocatable-prog-wrapper (configure.ac): Invoke
56428         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
56429
56430 2007-03-04  Bruno Haible  <bruno@clisp.org>
56431
56432         * modules/argmatch-tests: New file.
56433         * tests/test-argmatch.c: New file.
56434
56435         * tests/test-allocsa.c (main): Halve the number of loop runs.
56436
56437         * modules/alloca-opt-tests: New file.
56438         * tests/test-alloca-opt.c: New file.
56439
56440 2007-03-04  Jim Meyering  <jim@meyering.net>
56441
56442         Work around difference between Linux ACLs and Solaris 10 ZFS.
56443         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
56444         for EINVAL.
56445
56446 2007-03-03  Bruno Haible  <bruno@clisp.org>
56447
56448         * modules/relocatable-prog (Depends-on): Add back progreloc's
56449         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
56450
56451 2007-03-03  Bruno Haible  <bruno@clisp.org>
56452
56453         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
56454         * modules/relocatable-lib: New file.
56455
56456 2007-03-03  Bruno Haible  <bruno@clisp.org>
56457
56458         * modules/relocatable-prog: Renamed from modules/relocatable.
56459         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
56460
56461 2007-03-03  Bruno Haible  <bruno@clisp.org>
56462
56463         * modules/relocatable-script (Files): Add doc/relocatable.texi,
56464         m4/relocatable-lib.m4.
56465         (Depends-on): Remove 'relocatable'.
56466         (configure.ac): Add gl_RELOCATABLE_NOP.
56467
56468 2007-03-03  Bruno Haible  <bruno@clisp.org>
56469
56470         * modules/relocatable-prog-wrapper: New file.
56471         * modules/relocatable (Depends-on): Add it. Remove all other
56472         dependencies except progname.
56473         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
56474
56475         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
56476         (gl_FUNC_STRERROR): Nop.
56477         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
56478
56479         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
56480         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
56481
56482         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
56483         (gl_FUNC_READLINK): Update.
56484
56485         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
56486
56487 2007-03-03  Bruno Haible  <bruno@clisp.org>
56488
56489         * lib/xreadlink.c: Include <unistd.h> unconditionally.
56490         * modules/xreadlink (Depends-on): Add unistd.
56491         * modules/xreadlink-with-size (Depends-on): Likewise.
56492
56493 2007-03-03  Bruno Haible  <bruno@clisp.org>
56494
56495         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
56496         extracted from gt_FUNC_SETENV.
56497         (gt_FUNC_SETENV): Remove macro.
56498         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
56499         remove gt_FUNC_SETENV.
56500
56501 2007-03-03  Bruno Haible  <bruno@clisp.org>
56502
56503         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
56504         ENABLE_RELOCATABLE here.
56505         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
56506
56507 2007-03-03  Bruno Haible  <bruno@clisp.org>
56508
56509         * modules/rbtreehash-list-tests (Depends-on): Add progname.
56510         * tests/test-rbtreehash_list.c: Include progname.h.
56511         (main): Call set_program_name.
56512
56513         * modules/rbtree-oset-tests (Depends-on): Add progname.
56514         * tests/test-rbtree_oset.c: Include progname.h.
56515         (main): Call set_program_name.
56516
56517         * modules/rbtree-list-tests (Depends-on): Add progname.
56518         * tests/test-rbtree_list.c: Include progname.h.
56519         (main): Call set_program_name.
56520
56521         * modules/linked-list-tests (Depends-on): Add progname.
56522         * tests/test-linked_list.c: Include progname.h.
56523         (main): Call set_program_name.
56524
56525 2007-03-03  Bruno Haible  <bruno@clisp.org>
56526
56527         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
56528         All uses of __restrict changed to _Restrict_.
56529         * lib/glob_.h (__restrict): Remove macro.
56530
56531 2007-03-02  Bruno Haible  <bruno@clisp.org>
56532
56533         * modules/gettext (configure.ac): Require gettext infrastructure
56534         from version 0.16.1.
56535
56536 2007-03-02  Bruno Haible  <bruno@clisp.org>
56537
56538         * modules/linkedhash-list-tests (Depends-on): Add progname.
56539         * tests/test-linkedhash_list.c: Include progname.h.
56540         (main): Call set_program_name.
56541
56542         * modules/carray-list-tests (Depends-on): Add progname.
56543         * tests/test-carray_list.c: Include progname.h.
56544         (main): Call set_program_name.
56545
56546         * modules/avltreehash-list-tests (Depends-on): Add progname.
56547         * tests/test-avltreehash_list.c: Include progname.h.
56548         (main): Call set_program_name.
56549
56550         * modules/avltree-oset-tests (Depends-on): Add progname.
56551         * tests/test-avltree_oset.c: Include progname.h.
56552         (main): Call set_program_name.
56553
56554         * modules/avltree-list-tests (Depends-on): Add progname.
56555         * tests/test-avltree_list.c: Include progname.h.
56556         (main): Call set_program_name.
56557
56558         * modules/array-oset-tests (Depends-on): Add progname.
56559         * tests/test-array_oset.c: Include progname.h.
56560         (main): Call set_program_name.
56561
56562         * modules/array-list-tests (Depends-on): Add progname.
56563         * tests/test-array_list.c: Include progname.h.
56564         (main): Call set_program_name.
56565
56566         * modules/argp-tests (Depends-on): Add progname.
56567         * tests/test-argp.c: Include argp.h first. Include progname.h.
56568         (main): Call set_program_name.
56569
56570 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
56571
56572         * doc/gnulib-tool.texi (Initial import): Reword description of
56573         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
56574         limited effect even if defined after the first system include.
56575
56576 2007-03-01  Bruno Haible  <bruno@clisp.org>
56577
56578         * build-aux/config.libpath: Update to libtool-1.5.22.
56579         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56580
56581 2007-03-01  Bruno Haible  <bruno@clisp.org>
56582
56583         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
56584         foo_CFLAGS.
56585         Reported by Ralf Wildenhues.
56586
56587 2007-03-01  Bruno Haible  <bruno@clisp.org>
56588
56589         * build-aux/install-reloc: Remove object files left over by some
56590         compilers.
56591         Reported by Ralf Wildenhues.
56592
56593 2007-03-01  Bruno Haible  <bruno@clisp.org>
56594
56595         * build-aux/install-reloc: Break long lines.
56596
56597 2007-03-01  Bruno Haible  <bruno@clisp.org>
56598
56599         * doc/relocatable.texi: Document that it may not work on OpenBSD.
56600         Reported by Ralf Wildenhues.
56601
56602 2007-03-01  Bruno Haible  <bruno@clisp.org>
56603
56604         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
56605         include ordering constraints.
56606
56607 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56608
56609         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
56610         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
56611         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
56612         as another example.
56613         * lib/time_.h: Fix misspelling.
56614         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56615         Require gl_HEADER_TIME_H_DEFAULTS.
56616         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
56617         * m4/time_r.m4 (gl_TIME_R): Likewise.
56618         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
56619
56620 2007-03-01  Bruno Haible  <bruno@clisp.org>
56621
56622         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
56623         * m4/utimens.m4 (gl_UTIMENS): Likewise.
56624
56625 2007-03-01  Jim Meyering  <jim@meyering.net>
56626
56627         * modules/xreadlink (Maintainer): Add my name.
56628         * modules/xreadlink-with-size (Depends-on): Alphabetize.
56629
56630 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
56631             Bruno Haible  <bruno@clisp.org>
56632
56633         * build-aux/install-reloc: Compile also c-ctype.c.
56634         * build-aux/relocatable.sh.in: New file.
56635         * doc/relocatable.texi: New file.
56636         * doc/relocatable-maint.texi: New file.
56637         * doc/gnulib.texi: Include relocatable-maint.texi.
56638         * lib/progreloc.c: Include unistd.h unconditionally.
56639         * lib/relocwrapper.c: Include unistd.h unconditionally.
56640         Include c-ctype.h.
56641         (add_dotbin): Use c_tolower.
56642         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
56643         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
56644         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
56645         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
56646         to m4/relocatable-lib.m4.
56647         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
56648         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
56649         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
56650         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
56651         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
56652         * modules/relocatable: New file.
56653         * modules/relocatable-lib: New file.
56654         * modules/relocatable-script: New file.
56655
56656 2007-02-28  Bruno Haible  <bruno@clisp.org>
56657
56658         Import --enable-relocatable infrastructure.
56659         * build-aux/config.libpath: New file, from GNU gettext.
56660         * build-aux/install-reloc: New file, from GNU gettext.
56661         * build-aux/reloc-ldflags: New file, from GNU gettext.
56662         * lib/relocatable.h: New file, from GNU gettext.
56663         * lib/relocatable.c: New file, from GNU gettext.
56664         * lib/relocwrapper.c: New file, from GNU gettext.
56665         * m4/relocatable.m4: New file, from GNU gettext.
56666
56667 2007-02-28  Bruno Haible  <bruno@clisp.org>
56668
56669         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
56670
56671         * modules/xreadlink: New file, from GNU gettext with modifications.
56672         * lib/xreadlink.c: New file, from GNU gettext.
56673         * lib/xreadlink.h: Add comments.
56674         (xreadlink): New declaration.
56675
56676         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
56677         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
56678         lib/xreadlink-with-size.c.
56679         (configure.ac): Remove gl_XREADLINK invocation.
56680         (Makefile.am): Augment lib_SOURCES.
56681         * m4/xreadlink.m4: Remove file.
56682         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
56683         (xreadlink_with_size): Renamed from xreadink.
56684         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
56685         * modules/canonicalize (Depends-on): Replace xreadlink with
56686         xreadlink-with-size.
56687         * lib/canonicalize.c (canonicalize_filename_mode): Update.
56688
56689 2007-02-25  Jim Meyering  <jim@meyering.net>
56690
56691         * build-aux/announce-gen: When complaining about excess arguments,
56692         list them.
56693
56694 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56695
56696         * README: Document signed integer overflow situation more
56697         accurately.
56698
56699 2007-02-25  Bruno Haible  <bruno@clisp.org>
56700
56701         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
56702         'a' or 'A' conversion.
56703
56704 2007-02-25  Bruno Haible  <bruno@clisp.org>
56705
56706         * modules/filename: Renamed from modules/pathname.
56707         (Files): Replace lib/pathname.h with lib/filename.h. Replace
56708         lib/concatpath.c with lib/concat-filename.c.
56709         (Makefile.am): Update.
56710         (Include): Replace pathname.h with filename.h.
56711         * lib/filename.h: Renamed from lib/pathname.h.
56712         (concatenated_filename): Renamed from concatenated_pathname.
56713         * lib/concat-filename.c: Renamed from lib/concatpath.c.
56714         (concatenated_filename): Renamed from concatenated_pathname.
56715         * lib/findprog.c: Include filename.h instead of pathname.h.
56716         (find_in_path): Update.
56717         * lib/javacomp.c: Include filename.h instead of pathname.h.
56718         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56719         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56720         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56721         is_oldgcj_14_13_usable, is_javac_usable): Update.
56722         * lib/javaexec.c: Include filename.h instead of pathname.h.
56723         (execute_java_class): Update.
56724         * modules/findprog: Update.
56725         * modules/javacomp: Update.
56726         * modules/javaexec: Update.
56727         * MODULES.html.sh (File system functions): Add 'filename', remove
56728         'pathname'.
56729
56730 2007-02-25  Bruno Haible  <bruno@clisp.org>
56731
56732         * modules/printf-frexpl-tests: New file.
56733         * tests/test-printf-frexpl.c: New file.
56734
56735         * modules/printf-frexpl: New file.
56736         * lib/printf-frexpl.h: New file.
56737         * lib/printf-frexpl.c: New file.
56738         * m4/printf-frexpl.m4: New file.
56739
56740 2007-02-25  Bruno Haible  <bruno@clisp.org>
56741
56742         * modules/printf-frexp-tests: New file.
56743         * tests/test-printf-frexp.c: New file.
56744
56745         * modules/printf-frexp: New file.
56746         * lib/printf-frexp.h: New file.
56747         * lib/printf-frexp.c: New file.
56748         * m4/printf-frexp.m4: New file.
56749
56750 2007-02-25  Bruno Haible  <bruno@clisp.org>
56751
56752         Assume automake >= 1.10 for the tests.
56753         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
56754         * modules/arctwo-tests: Likewise.
56755         * modules/argp-tests: Likewise.
56756         * modules/avltree-list-tests: Likewise.
56757         * modules/avltree-oset-tests: Likewise.
56758         * modules/avltreehash-list-tests: Likewise.
56759         * modules/carray-list-tests: Likewise.
56760         * modules/crc-tests: Likewise.
56761         * modules/des-tests: Likewise.
56762         * modules/gc-arcfour-tests: Likewise.
56763         * modules/gc-arctwo-tests: Likewise.
56764         * modules/gc-des-tests: Likewise.
56765         * modules/gc-hmac-md5-tests: Likewise.
56766         * modules/gc-hmac-sha1-tests: Likewise.
56767         * modules/gc-md2-tests: Likewise.
56768         * modules/gc-md4-tests: Likewise.
56769         * modules/gc-md5-tests: Likewise.
56770         * modules/gc-pbkdf2-sha1-tests: Likewise.
56771         * modules/gc-rijndael-tests: Likewise.
56772         * modules/gc-sha1-tests: Likewise.
56773         * modules/gc-tests: Likewise.
56774         * modules/getaddrinfo-tests: Likewise.
56775         * modules/hmac-md5-tests: Likewise.
56776         * modules/hmac-sha1-tests: Likewise.
56777         * modules/linked-list-tests: Likewise.
56778         * modules/linkedhash-list-tests: Likewise.
56779         * modules/lock-tests: Likewise.
56780         * modules/md2-tests: Likewise.
56781         * modules/md4-tests: Likewise.
56782         * modules/md5-tests: Likewise.
56783         * modules/rbtree-list-tests: Likewise.
56784         * modules/rbtree-oset-tests: Likewise.
56785         * modules/rbtreehash-list-tests: Likewise.
56786         * modules/read-file-tests: Likewise.
56787         * modules/rijndael-tests: Likewise.
56788         * modules/stdint-tests: Likewise.
56789         * modules/tls-tests: Likewise.
56790
56791 2007-02-24  Bruno Haible  <bruno@clisp.org>
56792
56793         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
56794         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
56795         function; instead check whether isnan with a double argument links.
56796         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
56797         function; instead check whether isnan with a 'long double' argument
56798         links.
56799         Reported by Eric Blake <ebb9@byu.net>.
56800
56801 2007-02-24  Bruno Haible  <bruno@clisp.org>
56802
56803         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
56804         defined.
56805         * lib/isnanl.c: Remove all code. Just include isnan.c.
56806         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
56807
56808 2007-02-25  Jim Meyering  <jim@meyering.net>
56809
56810         Avoid conflicting types for 'unsetenv' on FreeBSD.
56811         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
56812         conflicting with FreeBSD's (5.0 and 6.1) function declaration
56813         in stdlib.h.
56814
56815 2007-02-24  Bruno Haible  <bruno@clisp.org>
56816
56817         * modules/isnanl-nolibm-tests: New file.
56818         * tests/test-isnanl.c: New file.
56819
56820         * modules/isnanl-nolibm: New file.
56821         * lib/isnanl.h: New file.
56822         * lib/isnanl.c: New file.
56823         * m4/isnanl.m4: New file.
56824
56825 2007-02-24  Bruno Haible  <bruno@clisp.org>
56826
56827         * modules/isnan-nolibm-tests: New file.
56828         * tests/test-isnan.c: New file.
56829
56830         * modules/isnan-nolibm: New file.
56831         * lib/isnan.h: New file.
56832         * lib/isnan.c: New file.
56833         * m4/isnan.m4: New file.
56834
56835 2007-02-24  Bruno Haible  <bruno@clisp.org>
56836
56837         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
56838         assume that an exponent fits in 20 bits.
56839
56840 2007-02-24  Jim Meyering  <jim@meyering.net>
56841
56842         * m4/regex.m4: Update the description of the configure-time option,
56843         --without-included-regex, to state accurately what the defaults are,
56844         and perhaps to give people an idea why using this option is risky.
56845
56846 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
56847
56848         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
56849         loops on small arguments.  This attempts to avoid the problem
56850         Bruno Haible reported for AIX 4.3.2 in
56851         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
56852
56853 2007-02-23  Bruno Haible  <bruno@clisp.org>
56854
56855         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
56856         Needed for help2man.
56857
56858 2007-02-23  Karl Berry  <karl@gnu.org>
56859
56860         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
56861         exists, foo.h should be cvs-ignored, not committed.
56862
56863 2007-02-23  Eric Blake  <ebb9@byu.net>
56864
56865         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
56866         * lib/stat-time.h (includes): Likewise.
56867         * lib/utimecmp.c (includes): Likewise.
56868         * lib/utimens.h (includes): Likewise.
56869         * lib/getdate.y (includes): Also include "timespec.h" for use
56870         internal to the module.
56871         * modules/utimens (Depends-on): Revert yesterday's patch.
56872         * modules/nanosleep (Depends-on): Add missing dependency.
56873
56874 2007-02-22  Bruno Haible  <bruno@clisp.org>
56875
56876         * lib/glob.c: Don't include getlogin_r.h.
56877
56878 2007-02-22  Jim Meyering  <jim@meyering.net>
56879
56880         * modules/utimens (Depends-on): Add timespec, required for
56881         utimens.h's inclusion of timespec.h.
56882
56883 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
56884
56885         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
56886         long unreadable paths in GNU/Linux.  Problem reported by Andreas
56887         Schwab in
56888         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
56889         I'll try to think of a better way to fix the Solaris problem.
56890
56891         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
56892         like glibc; on Solaris 10, it fails with errno == EINVAL.
56893         POSIX says the behavior is unspecified if the first argument is NULL,
56894         so play it safe and never pass NULL to the system getcwd.
56895
56896 2007-02-21  Jim Meyering  <jim@meyering.net>
56897
56898         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
56899         of gettimeofday.  It would conflict with the one now always
56900         provided via sys_time_.h.  Reported by Matthew Woehlke, as
56901         an IRIX 6.5 build failure.
56902
56903 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
56904
56905         Minor fixups to port to Solaris 10 with Sun C 5.8.
56906         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
56907         * modules/getcwd (Depends-on): Add dirfd.
56908         * lib/putenv.c (putenv): #undef it.
56909         (rpl_putenv): New decl.
56910         (malloc, free): Include <stdlib.h> rather than prototyping separately.
56911
56912 2007-02-20  Bruno Haible  <bruno@clisp.org>
56913
56914         * modules/stdio-tests: New file.
56915         * tests/test-stdio.c: New file.
56916
56917         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
56918         (Depends-on): Add stdio.
56919         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
56920         (Include): Use <stdio.h> instead of vsnprintf.h.
56921         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
56922         HAVE_DECL_VSNPRINTF.
56923         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
56924
56925         * modules/snprintf (Files): Remove lib/snprintf.h.
56926         (Depends-on): Add stdio.
56927         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
56928         (Include): Use <stdio.h> instead of snprintf.h.
56929         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
56930         HAVE_DECL_SNPRINTF.
56931         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
56932         * lib/getaddrinfo.c: Likewise.
56933
56934         * modules/stdio: New file.
56935         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
56936         * lib/snprintf.h: Remove file.
56937         * lib/vsnprintf.h: Remove file.
56938         * lib/.cppi-disable: Remove snprintf.h.
56939         * m4/stdio_h.m4: New file.
56940         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
56941
56942 2007-02-20  Jim Meyering  <jim@meyering.net>
56943
56944         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
56945         used by e.g., mingw.  From Bruno Haible.
56946
56947 2007-02-19  Bruno Haible  <bruno@clisp.org>
56948
56949         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
56950         warnings.
56951         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56952
56953 2007-02-19  Bruno Haible  <bruno@clisp.org>
56954
56955         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
56956         from mingw users.
56957
56958 2007-02-19  Bruno Haible  <bruno@clisp.org>
56959
56960         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
56961         warnings.
56962         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
56963
56964 2007-02-19  Jim Meyering  <jim@meyering.net>
56965
56966         Don't use FD after a successful "fdopendir (fd)".
56967         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
56968         Reset it by calling dirfd on the just-obtained DIR*.
56969
56970         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
56971         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
56972
56973 2007-02-18  Bruno Haible  <bruno@clisp.org>
56974
56975         * lib/readlink.c: Include <unistd.h>.
56976         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
56977         HAVE_READLINK.
56978         * modules/readlink (Depends-on): Add unistd.
56979         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56980         (Include): Add <unistd.h>.
56981
56982         * lib/getlogin_r.h: Remove file.
56983         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
56984         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
56985         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
56986         HAVE_DECL_GETLOGIN_R.
56987         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
56988         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56989         (Include): Use <unistd.h> instead of getlogin_r.h.
56990
56991         * lib/getcwd.h: Remove file.
56992         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
56993         * lib/xgetcwd.c: Likewise.
56994         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
56995         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
56996         * modules/getcwd (Files): Remove lib/getcwd.h.
56997         (Depends-on): Add unistd.
56998         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56999         (Include): Use <unistd.h> instad of getcwd.h.
57000
57001         * lib/ftruncate.c: Include <unistd.h> first.
57002         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
57003         Set HAVE_FTRUNCATE.
57004         * modules/ftruncate (Depends-on): Add unistd.
57005         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57006
57007         * lib/fchdir.c: Include <unistd.h> first.
57008         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
57009         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
57010         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
57011         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57012         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
57013
57014         * lib/dup2.c: Include <unistd.h> first.
57015         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
57016         HAVE_DUP2.
57017         * modules/dup2 (Depends-on): Add unistd.
57018         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57019
57020         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
57021         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
57022         REPLACE_CHOWN. Don't define chown as a macro here.
57023         * modules/chown (Depends-on): Add unistd.
57024         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57025
57026         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
57027         Add definition for GL_LINK_WARNING.
57028         (chown, dup2): New declarations.
57029         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
57030         link warning.
57031         (ftruncate): New declaration.
57032         (getcwd): New declaration, taken from old getcwd.h.
57033         (getlogin_r): New declaration, taken from old getlogin_r.h.
57034         (readlink): New declaration.
57035         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
57036         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
57037         (gl_PREREQ_UNISTD): Remove macro.
57038         (gl_UNISTD_MODULE_INDICATOR): New macro.
57039         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
57040         many new variables. Don't set UNISTD_H.
57041         * modules/unistd (Description): Change.
57042         (Depends-on): Add link-warning.
57043         (configure.ac): Update.
57044         (Makefile.am): Create unistd.h always. Substitute many new variables
57045         into it.
57046
57047 2007-02-18  Bruno Haible  <bruno@clisp.org>
57048
57049         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
57050         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
57051         HAVE_GETSUBOPT.
57052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
57053         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
57054         * lib/getsubopt.h: Remove file.
57055         * modules/getsubopt (Files): Remove lib/getsubopt.h.
57056         (Depends-on): Add stdlib.
57057         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57058         (Includes): Use <stdlib.h> instead of getsubopt.h.
57059         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
57060         Set HAVE_GETSUBOPT.
57061         * lib/getsubopt.c: Don't include getsubopt.h.
57062
57063 2007-02-18  Bruno Haible  <bruno@clisp.org>
57064
57065         * modules/fchdir (Depends-on): Add dup2.
57066
57067 2007-02-18  Bruno Haible  <bruno@clisp.org>
57068
57069         * lib/stdlib_.h: Handle glibc's special invocation convention
57070         specially.
57071
57072 2007-02-18  Bruno Haible  <bruno@clisp.org>
57073
57074         * modules/stdlib-tests: New file.
57075         * tests/test-stdlib.c: New file.
57076
57077         * modules/mkstemp (Files): Remove lib/mkstemp.h.
57078         (Depends-on): Add stdlib.
57079         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57080         (Includes): Use <stdlib.h> instead of mkstemp.h.
57081         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57082         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
57083         * lib/mkstemp.c: Don't include mkstemp.h.
57084         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
57085         * lib/stdlib--.h: Don't include mkstemp.h.
57086
57087         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
57088         (Depends-on): Add stdlib.
57089         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57090         (Includes): Use <stdlib.h> instead of mkdtemp.h.
57091         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57092         HAVE_MKDTEMP.
57093         * lib/mkdtemp.c: Don't include mkdtemp.h.
57094         * lib/clean-temp.c: Don't include mkdtemp.h.
57095
57096         * modules/exit (Files): Remove lib/exit.h.
57097         (Depends-on): Add stdlib.
57098         (Makefile.am): Remove lib_SOURCES.
57099         (Include): Use <stdlib.h> instead of exit.h.
57100         * lib/argmatch.c: Don't include exit.h.
57101         * lib/execute.c: Likewise.
57102         * lib/pagealign_alloc.c: Likewise.
57103         * lib/pipe.c: Likewise.
57104         * lib/wait-process.c: Likewise.
57105         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
57106         * lib/exitfail.c: Likewise.
57107         * lib/savewd.c: Likewise.
57108         * lib/xsetenv.c: Likewise.
57109
57110         * modules/stdlib: New file.
57111         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
57112         and extra comments about mkstemp().
57113         * lib/exit.h: Remove file.
57114         * lib/mkdtemp.h: Remove file.
57115         * lib/mkstemp.h: Remove file.
57116         * m4/stdlib_h.m4: New file.
57117         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
57118
57119 2007-02-18  Bruno Haible  <bruno@clisp.org>
57120
57121         * modules/math-tests: New file.
57122         * tests/test-math.c: New file.
57123
57124         * modules/math: New file.
57125         * modules/mathl (Files): Remove lib/mathl.h.
57126         (Depends-on): Add math.
57127         (Makefile.am): Don't mention mathl.h.
57128         (Include): Use <math.h> instead of mathl.h.
57129         * lib/math_.h: New file.
57130         * lib/mathl.h: Remove file.
57131         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
57132         mathl.h.
57133         * lib/asinl.c: Likewise.
57134         * lib/atanl.c: Likewise.
57135         * lib/ceill.c: Likewise.
57136         * lib/cosl.c: Likewise.
57137         * lib/expl.c: Likewise.
57138         * lib/floorl.c: Likewise.
57139         * lib/frexpl.c: Likewise.
57140         * lib/ldexpl.c: Likewise.
57141         * lib/logl.c: Likewise.
57142         * lib/sincosl.c: Likewise.
57143         * lib/sinl.c: Likewise.
57144         * lib/sqrtl.c: Likewise.
57145         * lib/tanl.c: Likewise.
57146         * lib/trigl.c: Likewise.
57147         * m4/math_h.m4: New file.
57148         * MODULES.html.sh (Mathematics): Add math.
57149
57150 2007-02-17  Bruno Haible  <bruno@clisp.org>
57151
57152         * modules/wctype-tests: New file.
57153         * tests/test-wctype.c: New file.
57154
57155         * modules/wchar-tests: New file.
57156         * tests/test-wchar.c: New file.
57157
57158         * modules/unistd-tests: New file.
57159         * tests/test-unistd.c: New file.
57160
57161         * modules/time-tests: New file.
57162         * tests/test-time.c: New file.
57163
57164         * modules/sysexits-tests: New file.
57165         * tests/test-sysexits.c: New file.
57166
57167         * modules/sys_time-tests: New file.
57168         * tests/test-sys_time.c: New file.
57169
57170         * modules/sys_stat-tests: New file.
57171         * tests/test-sys_stat.c: New file.
57172
57173         * modules/sys_socket-tests: New file.
57174         * tests/test-sys_socket.c: New file.
57175
57176         * modules/sys_select-tests: New file.
57177         * tests/test-sys_select.c: New file.
57178
57179         * modules/string-tests: New file.
57180         * tests/test-string.c: New file.
57181
57182         * modules/stdbool-tests: New file.
57183         * tests/test-stdbool.c: New file.
57184
57185         * modules/netinet_in-tests: New file.
57186         * tests/test-netinet_in.c: New file.
57187
57188         * modules/inttypes-tests: New file.
57189         * tests/test-inttypes.c: New file.
57190
57191         * modules/fcntl-tests: New file.
57192         * tests/test-fcntl.c: New file.
57193
57194         * modules/byteswap-tests: New file.
57195         * tests/test-byteswap.c: New file.
57196
57197         * modules/arpa_inet-tests: New file.
57198         * tests/test-arpa_inet.c: New file.
57199
57200 2007-02-17  Bruno Haible  <bruno@clisp.org>
57201
57202         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
57203         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
57204         if the corresponding module is not enabled. Emit link warnings if
57205         the function is used nevertheless.
57206         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
57207         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
57208         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
57209         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
57210         * modules/inttypes (Depends-on): Add link-warning.
57211         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57212         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
57213         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
57214         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
57215         * modules/imaxdiv (configure.ac): Likewise.
57216         * modules/strtoimax (configure.ac): Likewise.
57217         * modules/strtoumax (configure.ac): Likewise.
57218
57219 2007-02-17  Bruno Haible  <bruno@clisp.org>
57220
57221         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
57222         gl_STRING_MODULE_INDICATOR_DEFAULTS.
57223         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
57224         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
57225
57226 2007-02-17  Bruno Haible  <bruno@clisp.org>
57227
57228         * modules/link-warning: New file.
57229         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
57230         * lib/string_.h (GL_LINK_WARNING): Remove definition.
57231         * modules/string (Depends-on): Add link-warning.
57232         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57233         string.h.
57234         * MODULES.html.sh (Support for building libraries and executables): Add
57235         link-warning.
57236
57237 2007-02-17  Bruno Haible  <bruno@clisp.org>
57238
57239         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
57240         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
57241         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
57242         long lines.
57243
57244 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
57245             Bruno Haible  <bruno@clisp.org>
57246
57247         * modules/tmpfile: New file.
57248         * lib/tmpfile.c: New file.
57249         * m4/tmpfile.m4: New file.
57250         * MODULES.html.sh (func_all_modules): New section "Input/output".
57251
57252 2007-02-15  Bruno Haible  <bruno@clisp.org>
57253
57254         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
57255         (supports_delete_on_close): New function.
57256         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
57257
57258 2007-02-14  Bruno Haible  <bruno@clisp.org>
57259
57260         * modules/mbspcasecmp-tests: New file.
57261         * tests/test-mbspcasecmp.sh: New file.
57262         * tests/test-mbspcasecmp.c: New file.
57263
57264         New module mbspcasecmp.
57265         * modules/mbspcasecmp: New file.
57266         * lib/mbspcasecmp.c: New file.
57267         * lib/string_.h (strncasecmp): Change warning message.
57268         (mbspcasecmp): New declaration.
57269         * m4/mbspcasecmp.m4: New file.
57270         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57271         GNULIB_MBSPCASECMP.
57272         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
57273         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
57274
57275 2007-02-14  Bruno Haible  <bruno@clisp.org>
57276
57277         * modules/mbsncasecmp-tests: New file.
57278         * tests/test-mbsncasecmp.sh: New file.
57279         * tests/test-mbsncasecmp.c: New file.
57280
57281         New module mbsncasecmp.
57282         * modules/mbsncasecmp: New file.
57283         * lib/mbsncasecmp.c: New file.
57284         * lib/string_.h (mbsncasecmp): New declaration.
57285         * m4/mbsncasecmp.m4: New file.
57286         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57287         GNULIB_MBSNCASECMP.
57288         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
57289         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
57290
57291 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57292
57293         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
57294         Verify that it doesn't overlap with our flags.
57295         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
57296         do not have the desired effect in multibyte locales; instead, use
57297         mbscasecmp.
57298         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
57299         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
57300         we don't require GNU fnmatch ourselves (if our users require it, they
57301         should do so explicitly).
57302
57303         Fix regex code so it doesn't rely on strcasecmp.
57304         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
57305         Otherwise, include gnulib's langinfo.h.
57306         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
57307         undesirable behavior in non-C locales.  Instead, rely on localecharset.
57308         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
57309         * modules/regex (FILES): Remove m4/codeset.m4.
57310         (Depends-on): Add localcharset.  Remove strcase.
57311
57312 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57313
57314         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
57315         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
57316
57317 2007-02-13  Bruno Haible  <bruno@clisp.org>
57318
57319         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
57320         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57321
57322 2007-02-12  Bruno Haible  <bruno@clisp.org>
57323
57324         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57325         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
57326         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
57327         time warning rather than a link error.
57328
57329 2007-02-12  Bruno Haible  <bruno@clisp.org>
57330
57331         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
57332         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57333         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57334
57335 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57336
57337         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
57338         args, not 2.
57339
57340 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57341
57342         New module 'time', so that apps can include <time.h> as per
57343         POSIX and GNU instead of separate include files like time_r.h
57344         and timegm.h.  This implementation tries out a simpler approach
57345         for replacing decls in standard include files (as compared to
57346         the string module), somewhat as an experiment.
57347
57348         * config/srclist.txt: Comment out mktime.c for now.
57349         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
57350         since it doesn't apply any more.  Use generic wording instead.
57351         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
57352         'time'.
57353         * lib/time_.h, m4/time_h.m4, modules/time: New files.
57354         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
57355         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
57356         Don't include <sys/types.h>; no longer needed since we assume C89.
57357         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
57358         * lib/strftime.c: Likewise.
57359         * lib/time_r.c: Likewise.
57360         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
57361         * lib/nanosleep.c: Include <time.h> first, to check interface.
57362         * lib/strptime.c: Likewise.
57363         * lib/time_r.c: Likewise.
57364         * lib/timegm.c: Likewise.
57365         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
57366         needed.
57367         * lib/timegm.c: Don't include timegm.h; no longer needed.
57368         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
57369         time.h now handles any problems in that area.
57370         (struct timespec, nanosleep): Remove; time.h now arranges for these.
57371         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
57372         that time.h defines struct timespec.
57373         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
57374         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
57375         handles that.
57376         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
57377         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
57378         needed.  Set REPLACE_LOCALTIME.
57379         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
57380         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
57381         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
57382         nanosleep; time_h.m4 now does that.  Don't require
57383         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
57384         module handles this now.
57385         * modules/getdate (Depends-on): Remove timespec.  Add time.
57386         * modules/nanosleep (Depends-on): Likewise.
57387         * modules/stat-time (Depends-on): Likewise.
57388         * modules/nanosleep (Include): Include time.h, not timespec.h.
57389         * modules/strptime (Files): Remove lib/strptime.h.
57390         (Depends-on): Add extensions, time.
57391         (Include): Include time.h, not strptime.h.
57392         * modules/time_r (Files): Remove lib/time_r.h.
57393         (Depends-on): Add time.
57394         (Include): Include time.h, not time_r.h.
57395         * modules/timegm: Likewise.
57396         * modules/timespec (Description): Now does timespec-related decls
57397         of our own, instead of struct timespec itself.
57398         (Depends-on): Add time; remove extensions.
57399         (Maintainer): Add self.
57400         * modules/utimecmp (Depends-on): Add time; remove timespec.
57401         * modules/utimens (Depends-on): Likewise.
57402         * modules/xnanosleep (Depends-on): Likewise.
57403
57404 2007-02-11  Bruno Haible  <bruno@clisp.org>
57405
57406         * lib/c-strstr.c: Include allocsa.h.
57407         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57408         * lib/c-strcasestr.c: Include allocsa.h.
57409         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57410         * lib/strcasestr.c: Include allocsa.h.
57411         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57412         * lib/mbsstr.c: Include allocsa.h.
57413         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57414         allocsa/freesa instead of malloc/free.
57415         * lib/mbscasestr.c: Include allocsa.h.
57416         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57417         allocsa/freesa instead of malloc/free.
57418         * modules/c-strstr (Depends-on): Add allocsa.
57419         * modules/c-strcasestr (Depends-on): Likewise.
57420         * modules/strcasestr (Depends-on): Likewise.
57421         * modules/mbsstr (Depends-on): Likewise.
57422         * modules/mbscasestr (Depends-on): Likewise.
57423
57424 2007-02-11  Bruno Haible  <bruno@clisp.org>
57425
57426         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
57427
57428         * modules/mbsspn-tests: New file.
57429         * tests/test-mbsspn.sh: New file.
57430         * tests/test-mbsspn.c: New file.
57431
57432 2007-02-11  Bruno Haible  <bruno@clisp.org>
57433
57434         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
57435
57436         * modules/mbspbrk-tests: New file.
57437         * tests/test-mbspbrk.sh: New file.
57438         * tests/test-mbspbrk.c: New file.
57439
57440 2007-02-11  Bruno Haible  <bruno@clisp.org>
57441
57442         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
57443         unneeded cast.
57444
57445         * modules/mbscspn-tests: New file.
57446         * tests/test-mbscspn.sh: New file.
57447         * tests/test-mbscspn.c: New file.
57448
57449 2007-02-11  Bruno Haible  <bruno@clisp.org>
57450
57451         * modules/mbscasecmp-tests: New file.
57452         * tests/test-mbscasecmp.sh: New file.
57453         * tests/test-mbscasecmp.c: New file.
57454
57455 2007-02-11  Bruno Haible  <bruno@clisp.org>
57456
57457         Ensure O(n) worst-case complexity of mbscasestr.
57458         * lib/mbscasestr.c: Include stdbool.h.
57459         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57460         functions.
57461         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
57462         the bookkeeping indicates that it's worth it.
57463         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
57464
57465         * modules/mbscasestr-tests: New file.
57466         * tests/test-mbscasestr1.c: New file.
57467         * tests/test-mbscasestr2.sh: New file.
57468         * tests/test-mbscasestr2.c: New file.
57469         * tests/test-mbscasestr3.sh: New file.
57470         * tests/test-mbscasestr3.c: New file.
57471         * tests/test-mbscasestr4.sh: New file.
57472         * tests/test-mbscasestr4.c: New file.
57473         * m4/locale-tr.m4: New file.
57474
57475 2007-02-11  Bruno Haible  <bruno@clisp.org>
57476
57477         Ensure O(n) worst-case complexity of mbsstr.
57478         * lib/mbsstr.c: Include stdbool.h.
57479         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57480         functions.
57481         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
57482         bookkeeping indicates that it's worth it.
57483         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
57484
57485         * modules/mbsstr-tests: New file.
57486         * tests/test-mbsstr1.c: New file.
57487         * tests/test-mbsstr2.sh: New file.
57488         * tests/test-mbsstr2.c: New file.
57489         * tests/test-mbsstr3.sh: New file.
57490         * tests/test-mbsstr3.c: New file.
57491         * m4/locale-fr.m4: New file.
57492
57493 2007-02-11  Bruno Haible  <bruno@clisp.org>
57494
57495         * lib/mbsrchr.c (mbsrchr): Fix bug.
57496
57497         * modules/mbsrchr-tests: New file.
57498         * tests/test-mbsrchr.sh: New file.
57499         * tests/test-mbsrchr.c: New file.
57500
57501 2007-02-11  Bruno Haible  <bruno@clisp.org>
57502
57503         * lib/mbschr.c (mbschr): Fix bug.
57504
57505         * modules/mbschr-tests: New file.
57506         * tests/test-mbschr.sh: New file.
57507         * tests/test-mbschr.c: New file.
57508         * m4/locale-zh.m4: New file.
57509
57510 2007-02-11  Bruno Haible  <bruno@clisp.org>
57511
57512         Support for copying multibyte string iterators.
57513         * lib/mbiter.h: Include <string.h>.
57514         (mbiter_multi_copy): New function.
57515         (mbi_copy): New macro.
57516         * lib/mbuiter.h: Include <string.h>.
57517         (mbuiter_multi_copy): New function.
57518         (mbui_copy): New macro.
57519
57520 2007-02-11  Bruno Haible  <bruno@clisp.org>
57521
57522         New module mbslen.
57523         * modules/mbslen: New file.
57524         * lib/mbslen.c: New file.
57525         * lib/string_.h (mbslen): New declaration.
57526         * m4/mbslen.m4: New file.
57527         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57528         GNULIB_MBSLEN.
57529         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
57530         * MODULES.html.sh (Internationalization functions): Add mbslen.
57531
57532 2007-02-11  Bruno Haible  <bruno@clisp.org>
57533
57534         Ensure O(n) worst-case complexity of strcasestr substitute.
57535         * lib/strcasestr.c: Include stdbool.h.
57536         (knuth_morris_pratt): New function.
57537         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57538         bookkeeping indicates that it's worth it.
57539         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
57540
57541         * modules/strcasestr-tests: New file.
57542         * tests/test-strcasestr.c: New file.
57543
57544 2007-02-11  Bruno Haible  <bruno@clisp.org>
57545
57546         Ensure O(n) worst-case complexity of c_strcasestr.
57547         * lib/c-strcasestr.c: Include stdbool.h, string.h.
57548         (knuth_morris_pratt): New function.
57549         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
57550         the bookkeeping indicates that it's worth it.
57551         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
57552
57553         * modules/c-strcasestr-tests: New file.
57554         * tests/test-c-strcasestr.c: New file.
57555
57556 2007-02-11  Bruno Haible  <bruno@clisp.org>
57557
57558         Ensure O(n) worst-case complexity of c_strstr.
57559         * lib/c-strstr.c: Include stdbool.h, string.h.
57560         (knuth_morris_pratt): New function.
57561         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57562         bookkeeping indicates that it's worth it.
57563         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
57564
57565         * lib/c-strstr.c: Complete rewrite for maintainability.
57566
57567         * modules/c-strstr-tests: New file.
57568         * tests/test-c-strstr.c: New file.
57569
57570 2007-02-11  Bruno Haible  <bruno@clisp.org>
57571
57572         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
57573         5.2.1 and earlier, whereby \055 was treated just like the range
57574         delimiter '-'.
57575         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57576
57577 2007-02-08  Bruno Haible  <bruno@clisp.org>
57578
57579         * modules/regex (Depends-on): Add stdbool.
57580         Reported by Dalibor Topic <robilad@kaffe.org>.
57581
57582 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57583
57584         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
57585         Prefer returning from main to exiting from it.
57586         Remove unnecessary parens after sizeof.
57587
57588 2007-02-05  Bruno Haible  <bruno@clisp.org>
57589
57590         New module mbssep.
57591         * modules/mbssep: New file.
57592         * lib/mbssep.c: New file.
57593         * lib/string_.h (strsep): Add a conditional link warning.
57594         (mbssep): New declaration.
57595         * m4/mbssep.m4: New file.
57596         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57597         GNULIB_MBSSEP.
57598         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
57599         * MODULES.html.sh (Internationalization functions): Add mbssep.
57600
57601 2007-02-05  Bruno Haible  <bruno@clisp.org>
57602
57603         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
57604         Optimize search in case of 1 delimiter.
57605
57606 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57607
57608         * lib/acl.h: Include sys/types.h before sys/acl.h.
57609
57610 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57611
57612         Merge upstream fix for glibc bugzilla #3957:
57613
57614         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
57615
57616         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
57617         bit for RE_HAT_LISTS_NOT_NEWLINE.
57618         (build_charclass_op): Remove bogus comment.
57619
57620 2007-02-05  Simon Josefsson  <simon@josefsson.org>
57621
57622         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
57623
57624 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57625
57626         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
57627         * lib/memmem.c [!defined _LIBC]: Include config.h.
57628
57629 2007-02-04  Bruno Haible  <bruno@clisp.org>
57630
57631         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
57632         warning message.
57633
57634 2007-02-04  Bruno Haible  <bruno@clisp.org>
57635
57636         New module mbstok_r.
57637         * modules/mbstok_r: New file.
57638         * lib/mbstok_r.c: New file.
57639         * lib/string_.h (strtok_r): Change argument names to match the
57640         comments. Add a conditional link warning.
57641         (mbstok_r): New declaration.
57642         * m4/mbstok_r.m4: New file.
57643         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57644         GNULIB_MBSTOK_R.
57645         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
57646         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
57647
57648 2007-02-04  Bruno Haible  <bruno@clisp.org>
57649
57650         New module mbsspn.
57651         * modules/mbsspn: New file.
57652         * lib/mbsspn.c: New file.
57653         * lib/string_.h (strspn): Add a conditional link warning.
57654         (mbsspn): New declaration.
57655         * m4/mbsspn.m4: New file.
57656         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57657         GNULIB_MBSSPN.
57658         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
57659         * MODULES.html.sh (Internationalization functions): Add mbsspn.
57660
57661 2007-02-04  Bruno Haible  <bruno@clisp.org>
57662
57663         New module mbspbrk.
57664         * modules/mbspbrk: New file.
57665         * lib/mbspbrk.c: New file.
57666         * lib/string_.h (strpbrk): Add a conditional link warning.
57667         (mbspbrk): New declaration.
57668         * m4/mbspbrk.m4: New file.
57669         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57670         GNULIB_MBSPBRK.
57671         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
57672         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
57673
57674 2007-02-04  Bruno Haible  <bruno@clisp.org>
57675
57676         New module mbscspn.
57677         * modules/mbscspn: New file.
57678         * lib/mbscspn.c: New file.
57679         * lib/string_.h (strcspn): Add a conditional link warning.
57680         (mbscspn): New declaration.
57681         * m4/mbscspn.m4: New file.
57682         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57683         GNULIB_MBSCSPN.
57684         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
57685         * MODULES.html.sh (Internationalization functions): Add mbscspn.
57686
57687 2007-02-04  Bruno Haible  <bruno@clisp.org>
57688
57689         New module mbscasestr, reduced goal of strcasestr.
57690         * modules/mbscasestr: New file.
57691         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
57692         (mbscasestr): Renamed from strcasestr.
57693         * lib/strcasestr.c: Don't include mbuiter.h.
57694         (strcasestr): Remove support for multibyte locales.
57695         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
57696         Change the conditional link warning.
57697         (mbscasestr): New declaration.
57698         * m4/mbscasestr.m4: New file.
57699         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
57700         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
57701         REPLACE_STRCASESTR.
57702         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
57703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57704         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57705         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
57706         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
57707         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57708         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
57709         (Depends-on): Remove mbuiter.
57710         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
57711
57712 2007-02-04  Bruno Haible  <bruno@clisp.org>
57713
57714         Simplify handling of strncasecmp.
57715         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
57716         the conditional link warning.
57717         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57718         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
57719         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
57720         * modules/strcase (configure.ac): Don't invoke
57721         gl_STRING_MODULE_INDICATOR.
57722         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
57723
57724 2007-02-04  Bruno Haible  <bruno@clisp.org>
57725
57726         New module mbscasecmp, reduced goal of strcasecmp.
57727         * modules/mbscasecmp: New file.
57728         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
57729         (mbscasecmp): Renamed from strcasecmp.
57730         * lib/strcasecmp.c: Don't include mbuiter.h.
57731         (strcasecmp): Remove support for multibyte locales.
57732         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
57733         Change the conditional link warning.
57734         (mbscasecmp): New declaration.
57735         * m4/mbscasecmp.m4: New file.
57736         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
57737         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
57738         REPLACE_STRCASECMP.
57739         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
57740         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57741         GNULIB_MBSCASECMP.
57742         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
57743         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
57744         * modules/strcase (Files): Remove m4/mbrtowc.m4.
57745         (Depends-on): Remove mbuiter.
57746         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
57747
57748 2007-02-04  Bruno Haible  <bruno@clisp.org>
57749
57750         New module mbsstr. Remove module strstr.
57751         * modules/mbsstr: New file.
57752         * modules/strstr: Remove file.
57753         * lib/mbsstr.c: Renamed from lib/strstr.c.
57754         (mbsstr): Renamed from strstr.
57755         * lib/string_.h (strstr): Remove declaration. Change the conditional
57756         link warning.
57757         (mbsstr): New declaration.
57758         * m4/mbsstr.m4: New file.
57759         * m4/strstr.m4: Remove file.
57760         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
57761         REPLACE_STRSTR.
57762         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
57763         Don't initialize GNULIB_STRSTR.
57764         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
57765         substitute GNULIB_STRSTR and REPLACE_STRSTR.
57766         * MODULES.html.sh (Internationalization functions): Add mbsstr.
57767         (Support for systems lacking ANSI C 89): Remove strstr.
57768
57769 2007-02-04  Bruno Haible  <bruno@clisp.org>
57770
57771         New module mbsrchr.
57772         * modules/mbsrchr: New file.
57773         * lib/mbsrchr.c: New file.
57774         * lib/string_.h (strrchr): Add a conditional link warning.
57775         (mbsrchr): New declaration.
57776         * m4/mbsrchr.m4: New file.
57777         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57778         GNULIB_MBSRCHR.
57779         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
57780         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
57781
57782 2007-02-04  Bruno Haible  <bruno@clisp.org>
57783
57784         New module mbschr.
57785         * modules/mbschr: New file.
57786         * lib/mbschr.c: New file.
57787         * lib/string_.h (strchr): Add a conditional link warning.
57788         (mbschr): New declaration.
57789         * m4/mbschr.m4: New file.
57790         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57791         GNULIB_MBSCHR.
57792         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
57793         * MODULES.html.sh (Internationalization functions): Add mbschr.
57794
57795 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57796
57797         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
57798
57799         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
57800
57801 2007-02-04  Bruno Haible  <bruno@clisp.org>
57802
57803         New module description section 'configure.ac-early'.
57804         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
57805         (func_get_autoconf_early_snippet): New function.
57806         (func_import, func_create_testdir): Use it. Remove special cases for
57807         modules 'extensions' and 'lock'.
57808         * modules/extensions (configure.ac-early): Require
57809         gl_USE_SYSTEM_EXTENSIONS.
57810         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
57811
57812 2007-02-04  Bruno Haible  <bruno@clisp.org>
57813
57814         Make use of gcj-4.3's -fsource and -ftarget option.
57815         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
57816         and if so try the options -fsource and -ftarget.
57817         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
57818         source_version, ftarget_option, target_version arguments.
57819         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
57820         (is_envjavac_oldgcj_14_14_usable): Renamed from
57821         is_envjavac_gcj_14_14_usable.
57822         (is_envjavac_oldgcj_14_13_usable): Renamed from
57823         is_envjavac_gcj_14_13_usable.
57824         (is_gcj_present): Update.
57825         (is_gcj_43, is_gcj43_usable): New functions.
57826         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
57827         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
57828         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
57829         try the options -fsource and -ftarget.
57830
57831 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
57832
57833         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
57834         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
57835         larger value.
57836
57837 2007-02-03  Jim Meyering  <jim@meyering.net>
57838
57839         Give tools a better chance to allocate space for very large buffers.
57840         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
57841
57842         Make pwd and readlink work also when run with an unreadable parent dir
57843         on systems with openat support.
57844         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
57845         provided getcwd function, even when we have openat support.
57846         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
57847
57848 2007-02-02  Bruno Haible  <bruno@clisp.org>
57849
57850         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57851         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
57852         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
57853         portability problems if one of these functions is only used on specific
57854         platforms.
57855         Reported by Paul Eggert.
57856
57857 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
57858
57859         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
57860         is causing more trouble than it's curing.
57861         * lib/regex_internal.h (__mempcpy): Remove.
57862         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
57863         (and make the code a tad smaller to boot).
57864         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
57865
57866 2007-02-02  Jim Meyering  <jim@meyering.net>
57867
57868         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
57869         section, not in the Makefile.am: one.
57870
57871 2007-02-02  Eric Blake  <ebb9@byu.net>
57872
57873         * lib/strchrnul.c: Always include config.h first.
57874
57875         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
57876         gnulib strstr is not necessary here.
57877
57878 2007-02-02  Simon Josefsson  <simon@josefsson.org>
57879
57880         * m4/socklen.m4: Fix typo.
57881
57882 2007-02-02  Eric Blake  <ebb9@byu.net>
57883
57884         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
57885         * modules/netinet_in (Makefile.am): Likewise.
57886
57887 2007-02-01  Bruno Haible  <bruno@clisp.org>
57888
57889         * lib/string_.h (GL_LINK_WARNING): New macro.
57890         (strcasecmp, strstr, strcasestr): If provided by the system,
57891         conditionally define as a macro that leads to a warning instead of to
57892         an error.
57893         (strncasecmp): Conditionally define as a macro that leads to a warning.
57894
57895 2007-02-01  Karl Berry  <karl@gnu.org>
57896
57897         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
57898
57899 2007-02-01  Bruno Haible  <bruno@clisp.org>
57900
57901         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
57902         renamings.
57903
57904 2007-02-01  Eric Blake  <ebb9@byu.net>
57905
57906         * modules/regex (Depends-on): Revert dependence on mempcpy.
57907         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
57908         module's definition of mempcpy.
57909         Reported by Paul Eggert.
57910
57911 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
57912
57913         * lib/string_.h: If the gnulib module XYZ is not present, undefine
57914         the symbol XYZ before redefining it.  This fixes a problem with
57915         programs that don't use XYZ, when compiled on systems that define
57916         XYZ to something else.
57917
57918 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
57919
57920         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
57921         occurs when "mkdir -m foo" creates a setgid directory that is (1)
57922         writeable to group or other and (2) is intended to have a special
57923         mode bit that is set or cleared.  In such a case, the directory
57924         should be neither group- nor other-writeable until the special
57925         mode bits are right.
57926
57927 2007-01-31  Eric Blake  <ebb9@byu.net>
57928
57929         * modules/mountlist (Depends-on): Add strstr.
57930
57931         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
57932         bug.
57933         * modules/string (Makefile.am): Remove redundant replacement.
57934         * modules/regex (Depends-on): Add mempcpy.
57935
57936 2007-01-31  Bruno Haible  <bruno@clisp.org>
57937
57938         New module description field 'Link'.
57939         * gnulib-tool (func_usage): Document --extract-link-directive.
57940         (sed_extract_prog): Recognize 'Link' directive.
57941         (func_get_link_directive): New function.
57942         (func_import): Show summary of link directives.
57943         Handle --extract-link-directive option.
57944         * modules/acl (Link): New section.
57945         * modules/clock-time (Link): New section.
57946         * modules/euidaccess (Link): New section.
57947         * modules/gettext (Link): New section.
57948         * modules/iconv (Link): New section.
57949         * modules/lock (Link): New section.
57950         * modules/nanosleep (Link): New section.
57951         * modules/readline (Link): New section.
57952
57953 2007-01-27  Bruno Haible  <bruno@clisp.org>
57954
57955         Enforce the use of gnulib modules for unportable <string.h> functions.
57956         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
57957         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
57958         (gl_HEADER_STRING_H_BODY): Require it.
57959         * lib/string_.h: If the gnulib module XYZ is not present, redefine
57960         the symbol XYZ to one that gives a link error.
57961         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
57962         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
57963         * modules/mempcpy (configure.ac): Likewise.
57964         * modules/memrchr (configure.ac): Likewise.
57965         * modules/stpcpy (configure.ac): Likewise.
57966         * modules/stpncpy (configure.ac): Likewise.
57967         * modules/strcase (configure.ac): Likewise.
57968         * modules/strcasestr (configure.ac): Likewise.
57969         * modules/strchrnul (configure.ac): Likewise.
57970         * modules/strdup (configure.ac): Likewise.
57971         * modules/strndup (configure.ac): Likewise.
57972         * modules/strnlen (configure.ac): Likewise.
57973         * modules/strpbrk (configure.ac): Likewise.
57974         * modules/strsep (configure.ac): Likewise.
57975         * modules/strstr (configure.ac): Likewise.
57976         * modules/strtok_r (configure.ac): Likewise.
57977
57978 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
57979
57980         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
57981
57982 2007-01-30  Jim Meyering  <jim@meyering.net>
57983
57984         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
57985
57986 2007-01-29  Bruno Haible  <bruno@clisp.org>
57987
57988         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
57989         * lib/execute.c: Likewise.
57990         * lib/pipe.c: Likewise.
57991         * lib/printf-args.h: Likewise.
57992         * lib/printf-args.c: Likewise.
57993         * lib/printf-parse.c: Likewise.
57994         * lib/vasnprintf.c: Likewise.
57995
57996 2007-01-29  Eric Blake  <ebb9@byu.net>
57997
57998         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
57999         declaration.
58000
58001 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58002
58003         * lib/strptime.h (strptime): Use 'restrict' for args where
58004         POSIX requires this.
58005         * lib/strptime.c (strptime): Likewise.
58006         Change license notice from LGPL to GPL, since gnulib-tool will
58007         change this as needed.
58008         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
58009         defined.
58010         Include "strptime.h" first, to check interface.
58011         Do not #undef _LIBC and _NL_CURRENT.
58012         Do not include <stdlib.h>; no longer needed.
58013         Include "time_r.h" and declare ptime_locale_status
58014         only if _LIBC is not defined.
58015         (__P): Remove unused macro.
58016         (match_string): Bring back glibc version, but use it only if _LIBC
58017         is defined.
58018         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
58019         Remove unnecessary assertion and abort() call.
58020         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
58021         * m4/strptime.m4: Fix serial number comment.
58022         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
58023         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
58024         (Depends-on): Add time_r.
58025
58026 2007-01-29  Bruno Haible  <bruno@clisp.org>
58027
58028         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58029         strptime.
58030         * modules/strptime (Depends-on): Add stdbool.
58031         * lib/strptime.h: Include <time.h> always. Add comments.
58032
58033 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58034
58035         * modules/strptime: New file.
58036         * lib/strptime.h: New file.
58037         * lib/strptime.c: New file.
58038         * m4/strptime.m4: New file.
58039
58040 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58041
58042         * MODULES.html.sh: New module mpsort.
58043         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
58044
58045         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
58046         a circularity problem with HP-UX ia64 reported by Bob Proulx in
58047         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
58048         All uses changed.
58049         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
58050         All uses changed.
58051         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
58052         to _Restrict_.
58053         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
58054         the parameter matches the prototype.
58055
58056 2007-01-28  Jim Meyering  <jim@meyering.net>
58057
58058         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
58059         sys/time.h here, reverting that part of the previous patch:
58060         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
58061
58062 2007-01-28  Bruno Haible  <bruno@clisp.org>
58063
58064         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
58065         value of $(SYS_TIME_H).
58066         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
58067         remove it conditionally, too. [added by Jim Meyering]
58068         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
58069         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58070         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
58071         GETTIMEOFDAY_REPLACEMENT to 1.
58072
58073 2007-01-28  Bruno Haible  <bruno@clisp.org>
58074
58075         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
58076         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
58077         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
58078         Set UNISTD_H instead of UNISTD_H2.
58079         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
58080
58081 2007-01-28  Bruno Haible  <bruno@clisp.org>
58082
58083         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
58084         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
58085
58086 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58087
58088         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
58089         (func_create_testdir): Ensure C locale for `grep' and `tr'
58090         character ranges.
58091         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
58092         ACLOCAL_AMFLAGS parsing state machine.
58093
58094 2007-01-27  Bruno Haible  <bruno@clisp.org>
58095
58096         * modules/unistr/base: Update.
58097
58098 2007-01-27  Bruno Haible  <bruno@clisp.org>
58099
58100         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
58101         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
58102         * modules/unistr/u32-mbtouc-unsafe: Renamed from
58103         modules/unistr/u32-mbtouc.
58104         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
58105         * lib/unistr.h: Update.
58106         * lib/linebreak.c: Update.
58107         * modules/unistr/u32-mbtouc: Renamed from
58108         modules/unistr/u32-mbtouc-safe.
58109         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
58110         * lib/unistr.h: Update.
58111         * lib/unistr/u32-to-u8.c: Update.
58112         * lib/unistr/u32-to-u16.c: Update.
58113
58114 2007-01-27  Bruno Haible  <bruno@clisp.org>
58115
58116         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
58117         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
58118         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
58119         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
58120         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
58121         * modules/unistr/u16-mbtouc-unsafe: Renamed from
58122         modules/unistr/u16-mbtouc.
58123         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
58124         * lib/unistr.h: Update.
58125         * lib/linebreak.c: Update.
58126         * modules/linebreak: Update.
58127         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
58128         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
58129         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
58130         * modules/unistr/u16-mbtouc: Renamed from
58131         modules/unistr/u16-mbtouc-safe.
58132         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
58133         * lib/unistr.h: Update.
58134         * lib/unistr/u16-to-u8.c: Update.
58135         * modules/unistr/u16-to-u8: Update.
58136         * lib/unistr/u16-to-u32.c: Update.
58137         * modules/unistr/u16-to-u32: Update.
58138
58139 2007-01-27  Bruno Haible  <bruno@clisp.org>
58140
58141         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
58142         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
58143         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
58144         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
58145         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
58146         * modules/unistr/u8-mbtouc-unsafe: Renamed from
58147         modules/unistr/u8-mbtouc.
58148         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
58149         * lib/unistr.h: Update.
58150         * lib/striconveh.c: Update.
58151         * modules/striconveh: Update.
58152         * lib/linebreak.c: Update.
58153         * modules/linebreak: Update.
58154         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
58155         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
58156         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
58157         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
58158         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
58159         * lib/unistr.h: Update.
58160         * lib/striconveh.c: Update.
58161         * modules/striconveh: Update.
58162         * lib/unistr/u8-to-u16.c: Update.
58163         * modules/unistr/u8-to-u16: Update.
58164         * lib/unistr/u8-to-u32.c: Update.
58165         * modules/unistr/u8-to-u32: Update.
58166
58167 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58168
58169         Sync from Libtool.
58170         * lib/argz.c: Do not include strings.h nor memory.h, include
58171         string.h unconditionally.  Patch by Simon Josefsson.
58172
58173 2007-01-27  Bruno Haible  <bruno@clisp.org>
58174
58175         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
58176         from gl_HEADER_STRING_H_BODY.
58177         (gl_HEADER_STRING_H_BODY): Require it.
58178         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
58179         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58180         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58181         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58182         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58183         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
58184         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58185         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58186         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
58187         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58188         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58189         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
58190         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58191         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58192         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58193
58194 2007-01-27  Bruno Haible  <bruno@clisp.org>
58195
58196         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
58197         check_PROGRAMS into noinst_PROGRAMS.
58198         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
58199         check_PROGRAMS in this case.
58200         (func_import): Set for_test to false.
58201         (func_create_testdir): Set for_test to true.
58202
58203 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58204             Bruno Haible  <bruno@clisp.org>
58205
58206         * modules/strcasestr (Files): Remove lib/strcasestr.h.
58207         (Depends-on): Add string.
58208         (Includes): Use <string.h> instead of strcasestr.h.
58209         * modules/string (Makefile.am): Also substitute the value of
58210         REPLACE_STRCASESTR.
58211         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
58212         assume strcasestr is declared in <string.h> not <strings.h>. Also
58213         set REPLACE_STRCASESTR.
58214         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
58215         REPLACE_STRCASESTR.
58216         * lib/strcasestr.h: Remove file.
58217         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
58218         * lib/string_.h (strcasestr): New declaration.
58219
58220 2007-01-27  Bruno Haible  <bruno@clisp.org>
58221
58222         * lib/string_.h: Use 'extern'.
58223
58224 2007-01-27  Jim Meyering  <jim@meyering.net>
58225
58226         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
58227         of set-but-not-used local, "q".
58228
58229         * lib/mempcpy.c: Include <config.h> before <string.h>.
58230         This fixes a compilation error on HP-UX, due to the system's
58231         "restrict"-using mempcpy prototype.
58232
58233 2007-01-26  Bruno Haible  <bruno@clisp.org>
58234
58235         Small optimization.
58236         * lib/javacomp.c: Include c-strstr.h.
58237          (is_envjavac_gcj): Use c_strstr instead of strstr.
58238         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
58239
58240 2007-01-26  Bruno Haible  <bruno@clisp.org>
58241
58242         * MODULES.html.sh (Unicode string functions): Add the new modules.
58243
58244         * modules/uniconv/u32-strconv-to-locale: New file.
58245         * lib/uniconv/u32-strconv-to-locale.c: New file.
58246
58247         * modules/uniconv/u16-strconv-to-locale: New file.
58248         * lib/uniconv/u16-strconv-to-locale.c: New file.
58249
58250         * modules/uniconv/u8-strconv-to-locale: New file.
58251         * lib/uniconv/u8-strconv-to-locale.c: New file.
58252
58253         * modules/uniconv/u32-strconv-from-locale: New file.
58254         * lib/uniconv/u32-strconv-from-locale.c: New file.
58255
58256         * modules/uniconv/u16-strconv-from-locale: New file.
58257         * lib/uniconv/u16-strconv-from-locale.c: New file.
58258
58259         * modules/uniconv/u8-strconv-from-locale: New file.
58260         * lib/uniconv/u8-strconv-from-locale.c: New file.
58261
58262         * modules/uniconv/u32-strconv-to-enc: New file.
58263         * lib/uniconv/u32-strconv-to-enc.c: New file.
58264         * modules/uniconv/u32-strconv-to-enc-tests: New file.
58265         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
58266
58267         * modules/uniconv/u16-strconv-to-enc: New file.
58268         * lib/uniconv/u16-strconv-to-enc.c: New file.
58269         * lib/uniconv/u-strconv-to-enc.h: New file.
58270         * modules/uniconv/u16-strconv-to-enc-tests: New file.
58271         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
58272
58273         * modules/uniconv/u8-strconv-to-enc: New file.
58274         * lib/uniconv/u8-strconv-to-enc.c: New file.
58275         * modules/uniconv/u8-strconv-to-enc-tests: New file.
58276         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
58277
58278         * modules/uniconv/u32-strconv-from-enc: New file.
58279         * lib/uniconv/u32-strconv-from-enc.c: New file.
58280         * modules/uniconv/u32-strconv-from-enc-tests: New file.
58281         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
58282
58283         * modules/uniconv/u16-strconv-from-enc: New file.
58284         * lib/uniconv/u16-strconv-from-enc.c: New file.
58285         * modules/uniconv/u16-strconv-from-enc-tests: New file.
58286         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
58287
58288         * modules/uniconv/u8-strconv-from-enc: New file.
58289         * lib/uniconv/u8-strconv-from-enc.c: New file.
58290         * lib/uniconv/u-strconv-from-enc.h: New file.
58291         * modules/uniconv/u8-strconv-from-enc-tests: New file.
58292         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
58293
58294         * modules/uniconv/u32-conv-from-enc: New file.
58295         * lib/uniconv/u32-conv-from-enc.c: New file.
58296         * modules/uniconv/u32-conv-from-enc-tests: New file.
58297         * tests/uniconv/test-u32-conv-from-enc.c: New file.
58298
58299         * modules/uniconv/u16-conv-from-enc: New file.
58300         * lib/uniconv/u16-conv-from-enc.c: New file.
58301         * lib/uniconv/u-conv-from-enc.h: New file.
58302         * modules/uniconv/u16-conv-from-enc-tests: New file.
58303         * tests/uniconv/test-u16-conv-from-enc.c: New file.
58304
58305         * modules/uniconv/u8-conv-from-enc: New file.
58306         * lib/uniconv/u8-conv-from-enc.c: New file.
58307         * modules/uniconv/u8-conv-from-enc-tests: New file.
58308         * tests/uniconv/test-u8-conv-from-enc.c: New file.
58309
58310         * modules/uniconv/base: New file.
58311         * lib/uniconv.h: New file.
58312
58313 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58314
58315         * doc/gnulib-tool.texi (Initial import): Update to match current
58316         behavior with strdup module.
58317         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
58318         * lib/memmem.h: Remove; all uses removed.  This is now done
58319         by <string.h>.
58320         * lib/mempcpy.h: Likewise.
58321         * lib/memrchr.h: Likewise.
58322         * lib/stpcpy.h: Likewise.
58323         * lib/stpncpy.h: Likewise.
58324         * lib/strcase.h: Likewise.
58325         * lib/strchrnul.h: Likewise.
58326         * lib/strdup.h: Likewise.
58327         * lib/strndup.h: Likewise.
58328         * lib/strnlen.h: Likewise.
58329         * lib/strpbrk.h: Likewise.
58330         * lib/strsep.h: Likewise.
58331         * lib/strstr.h: Likewise.
58332         * lib/strtok_r.h: Likewise.
58333         * lib/string_.h: New file.
58334         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
58335         Rely on <string.h> instead.
58336         * lib/canon-host.c: Likewise.
58337         * lib/chdir-long.c: Likewise.
58338         * lib/concatpath.c: Likewise.
58339         * lib/exclude.c: Likewise.
58340         * lib/fchdir.c: Likewise.
58341         * lib/getaddrinfo.c: Likewise.
58342         * lib/getcwd.c: Likewise.
58343         * lib/getsubopt.c: Likewise.
58344         * lib/glob.c: Likewise.
58345         * lib/hard-locale.c: Likewise.
58346         * lib/iconvme.c: Likewise.
58347         * lib/javacomp.c: Likewise.
58348         * lib/mempcpy.c: Likewise.
58349         * lib/memrchr.c: Likewise.
58350         * lib/regex_internal.h: Likewise.
58351         * lib/stpncpy.c: Likewise.
58352         * lib/strcasecmp.c: Likewise.
58353         * lib/strchrnul.c: Likewise.
58354         * lib/strdup.c: Likewise.
58355         * lib/striconv.c: Likewise.
58356         * lib/striconveh.c: Likewise.
58357         * lib/striconveha.c: Likewise.
58358         * lib/strncasecmp.c: Likewise.
58359         * lib/strndup.c: Likewise.
58360         * lib/strnlen.c: Likewise.
58361         * lib/strsep.c: Likewise.
58362         * lib/strstr.c: Likewise.
58363         * lib/strtok_r.c: Likewise.
58364         * lib/userspec.c: Likewise.
58365         * lib/w32spawn.h: Likewise.
58366         * lib/xstrndup.c: Likewise.
58367         * lib/mountlist.c (strstr): Remove decl.
58368         * m4/string_h.m4: New file.
58369         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
58370         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
58371         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
58372         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
58373         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
58374         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
58375         Set REPLACE_STRCASECMP if necessary.
58376         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
58377         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
58378         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
58379         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
58380         HAVE_DECL_STRDUP if necessary.
58381         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
58382         since gl_FUNC_STRNDUP does that now.
58383         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
58384         Check for decl here...
58385         (gl_PREREQ_STRNLEN): ... not here.
58386         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
58387         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
58388         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
58389         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
58390         necessary.
58391         * modules/string: New file.
58392         * modules/memmem (Files): Remove special-purpose include file.
58393         (Depends-on): Add string.
58394         (Include): Include <string.h>, not the removed file.
58395         * modules/mempcpy: Likewise.
58396         * modules/memrchr: Likewise.
58397         * modules/stpcpy: Likewise.
58398         * modules/stpncpy: Likewise.
58399         * modules/strcase: Likewise.
58400         * modules/strchrnul: Likewise.
58401         * modules/strdup: Likewise.
58402         * modules/strndup: Likewise.
58403         * modules/strnlen: Likewise.
58404         * modules/strpbrk: Likewise.
58405         * modules/strsep: Likewise.
58406         * modules/strstr: Likewise.
58407         * modules/strtok_r: Likewise.
58408         * tests/test-dirname.c: Don't include "strdup.h", since
58409         <string.h> now suffices.
58410         * tests/test-memmem.c: Don't include "memmem.h", since
58411         <string.h> now suffices.
58412
58413 2007-01-25  Bruno Haible  <bruno@clisp.org>
58414
58415         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
58416         *resultp is 0.
58417
58418         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
58419         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
58420         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
58421         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
58422
58423         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
58424         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
58425         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
58426         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
58427         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
58428         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
58429
58430 2007-01-24  Bruno Haible  <bruno@clisp.org>
58431
58432         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
58433         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
58434         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
58435         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
58436         gl_FUNC_FTS_CORE.
58437         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
58438         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
58439         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58440         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
58441         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
58442         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
58443         gl_FUNC_FCHOWNAT.
58444         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
58445         gl_FUNC_STRFTIME.
58446         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
58447         Reported by Ralf Wildenhues.
58448
58449 2007-01-24  Bruno Haible  <bruno@clisp.org>
58450
58451         Drop AC_REQUIRE calls that are redundant with the module dependencies.
58452         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
58453         gl_GETADDRINFO.
58454         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
58455         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
58456         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
58457
58458 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
58459
58460         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
58461         Don't use 'exit'; just return from 'main'.
58462         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
58463
58464         * lib/fnmatch_.h: Readjust white space and comments to match
58465         glibc, to avoid spurious diffs.
58466
58467 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58468
58469         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
58470         2004-12-01 change by Jakub Jelinek, since this code won't compile
58471         if !LIBC.  Problem reported by Bob Proulx.
58472
58473 2007-01-23  Bruno Haible  <bruno@clisp.org>
58474
58475         * lib/striconveh.c: Include c-strcaseeq.h.
58476         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
58477         * modules/striconveh (Depends-on): Add c-strcaseeq.
58478
58479 2007-01-23  Bruno Haible  <bruno@clisp.org>
58480
58481         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
58482
58483         * modules/c-strcaseeq: New file.
58484         * lib/c-strcaseeq.h: New file.
58485
58486         * modules/streq: New file.
58487         * lib/streq.h: New file.
58488
58489 2007-01-23  Bruno Haible  <bruno@clisp.org>
58490
58491         * modules/striconveha-tests: New file.
58492         * tests/test-striconveha.c: New file.
58493
58494         * lib/striconveha.h: Include <stdbool.h>.
58495         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
58496         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
58497         (mem_iconveha_notranslit): Renamed from mem_iconveha.
58498         (mem_iconveha): New function.
58499         (str_iconveha_notranslit): Renamed from str_iconveha.
58500         (str_iconveha): New function.
58501         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
58502         c-strcase.
58503
58504 2007-01-23  Bruno Haible  <bruno@clisp.org>
58505
58506         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
58507         encodings without forgiving before trying any encoding with handler.
58508         (str_iconveha): Try all encodings without forgiving before trying any
58509         encoding with handler.
58510
58511 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58512
58513         Import the following changes from libc.
58514
58515         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
58516
58517         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
58518
58519         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58520
58521         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
58522         normal_bracket label.
58523
58524         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
58525
58526         [BZ #361]
58527         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
58528         to normal_bracket after fetching the next character.
58529
58530 2007-01-22  Bruno Haible  <bruno@clisp.org>
58531
58532         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
58533         argument.
58534         * lib/striconveh.c (iconv_carefully_1): New function.
58535         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
58536         argument.
58537         (str_cd_iconveh): Update.
58538         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
58539         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
58540         * tests/test-striconveh.c (MAGIC): New macro.
58541         (new_offsets): New function.
58542         (main): Test call with and without offsets.
58543
58544 2007-01-22  Bruno Haible  <bruno@clisp.org>
58545
58546         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
58547         * modules/sys_select (Makefile.am): Likewise.
58548         * modules/sys_socket (Makefile.am): Likewise.
58549         * modules/sys_time (Makefile.am): Likewise.
58550
58551 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
58552
58553         * modules/gettimeofday (License): Change from GPL to LGPL, since
58554         gettimeofday is a library function.
58555
58556 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58557
58558         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
58559
58560 2007-01-21  Bruno Haible  <bruno@clisp.org>
58561
58562         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
58563
58564 2007-01-21  Bruno Haible  <bruno@clisp.org>
58565
58566         * modules/striconveha: New file.
58567         * lib/striconveha.h: New file.
58568         * lib/striconveha.c: New file.
58569         * MODULES.html.sh (Internationalization functions): Add striconveha.
58570         * lib/striconv.c (str_iconv): Optimize the case of an empty input
58571         string.
58572         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
58573
58574 2007-01-21  Bruno Haible  <bruno@clisp.org>
58575
58576         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
58577         * lib/striconveh.c (str_iconveh): Likewise.
58578
58579 2007-01-21  Bruno Haible  <bruno@clisp.org>
58580
58581         * lib/striconveh.h (mem_iconveh): New declaration.
58582         * lib/striconveh.c (mem_iconveh): New function.
58583         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
58584
58585 2007-01-21  Bruno Haible  <bruno@clisp.org>
58586
58587         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
58588
58589         * lib/striconveh.h (mem_cd_iconveh): Change specification.
58590         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
58591         original result buffer.
58592         (str_cd_iconveh): Update.
58593         * tests/test-striconveh.c (main): Update.
58594
58595         * lib/striconv.h (mem_cd_iconv): Change specification.
58596         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
58597         result buffer.
58598         (str_cd_iconv): Update.
58599         * tests/test-striconv.c (main): Update.
58600
58601 2007-01-21  Bruno Haible  <bruno@clisp.org>
58602
58603         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
58604
58605 2007-01-20  Jim Meyering  <jim@meyering.net>
58606
58607         * lib/userspec.c (parse_with_separator): If a user or group string
58608         starts with "+", skip the corresponding name-to-ID look-up, since
58609         such a look-up must fail: user and group names may not include "+".
58610
58611 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58612
58613         * lib/poll.c: Include sys/time.h and time.h unconditionally,
58614         since we now assume the sys_time module.
58615         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
58616         check for sys/time.h; no longer needed.
58617         * modules/poll (Depends-on): Depend on sys_time.
58618
58619 2007-01-18  Bruno Haible  <bruno@clisp.org>
58620
58621         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
58622         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58623
58624         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
58625         gettimeofday.
58626
58627         * tests/test-gettimeofday.c: Include <time.h>.
58628         (dummy): Remove variable.
58629
58630         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
58631         gl_HEADER_SYS_TIME_H.
58632         (gl_HEADER_SYS_TIME_H): New macro.
58633
58634         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
58635         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58636         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
58637         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
58638         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58639         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
58640         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
58641         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58642         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
58643         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
58644         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58645
58646         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
58647         last change; it caused a compilation error when cross-compiling to
58648         Cygwin.
58649
58650 2007-01-18  Jim Meyering  <jim@meyering.net>
58651
58652         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
58653         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
58654         than the race-prone "test -d sys || mkdir sys".
58655         (configure.ac): Use AC_PROG_MKDIR_P.
58656         * modules/sys_select: Likewise.
58657         * modules/sys_socket: Likewise.
58658         * modules/sys_time: Likewise.
58659
58660 2007-01-18  Eric Blake  <ebb9@byu.net>
58661
58662         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
58663         replace gettimeofday.
58664         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
58665         name, to avoid infinite recursion.
58666
58667 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
58668
58669         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
58670         module sys_time.
58671         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
58672         assume timespec.h defines struct timeval.
58673         * lib/settime.c: Likewise.
58674         * lib/utimens.c: Likewise.
58675         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
58676         since we now assume the gettimeofday module.
58677         * lib/tempname.c (__gen_tempname): Likewise.
58678         * lib/gettimeofday.h: Remove.
58679         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
58680         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
58681         Include <time.h>, for 'time()'.
58682         (localtime_buffer_addr): Also use this workaround if
58683         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
58684         to simplify the uses.  All uses changed.
58685         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
58686         that #undef is inside {}, and 'const' follows type name consistently.
58687         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
58688         (gettimeofday): Do not use the maximum possible value for
58689         tv->tv_usec, since that might break usages other than ls.c.
58690         Instead, we'll leave ls.c alone.  This undoes today's patch
58691         by Bruno.  Add a compile-time warning for 1s-clock resolution;
58692         we've never observed the problem but might as well keep the
58693         canary.
58694         * lib/nanosleep.c: Include timespec.h first, for interface check.
58695         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
58696         now assume the sys_time module.
58697         * lib/tempname.c: Likewise.
58698         * lib/timespec.h: Likewise.
58699         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
58700         needed.
58701         * lib/strftime.c: Likewise.
58702         * lib/timespec.h: Likewise.
58703         * lib/posixtm.c: Include posixtm.h first, for interface check.
58704         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
58705         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
58706         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
58707         * lib/sys_time_.h: New file.
58708         * lib/timespec.h (struct timespec): Use long int, not long.
58709         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58710         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
58711         Remove obsolescent call to AC_HEADER_TIME.
58712         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
58713         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58714         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58715         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
58716         Likewise.
58717         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
58718         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
58719         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
58720         into the sys_time module.  Check for gettimeofday just once.
58721         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
58722         for gettimeofday signature to just check the signature.  Merely
58723         compile it, since linking doesn't test signature.  Improve test for
58724         whether gettimeofday.o is actually needed.
58725         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
58726         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
58727         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
58728         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58729         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
58730         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
58731         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
58732         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
58733         than worrying about sys/time.h.
58734         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58735         Don't bother worrying about TIME_WITH_SYS_TIME.
58736         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
58737         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
58738         * m4/sys_time_h.m4: New file.
58739         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
58740         Don't include sys/time.h.  Return from main rather than exiting.
58741         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
58742         all uses changed.
58743         * modules/gethrxtime (Depends-on): Add sys_time.
58744         * modules/gettime (Depends-on): Likewise.
58745         * modules/gettimeofday (Depends-on): Likewise.
58746         * modules/nanosleep (Depends-on): Likewise.
58747         * modules/settime (Depends-on): Likewise.
58748         * modules/tempname (Depends-on): Likewise.
58749         * modules/utimens (Depends-on): Likewise.
58750         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
58751         (Include): Change back to <sys/time.h>.
58752         (Maintainer): Add self.
58753         * modules/sys_time: New file.
58754         * modules/tempname (Depends-on): Add gettimeofday.
58755         * tests/test-gettimeofday.c: Include <sys/time.h>
58756         rather than gettimeofday.h.
58757
58758 2007-01-17  Bruno Haible  <bruno@clisp.org>
58759
58760         * gnulib-tool (func_get_license): Revert last patch. Instead, let
58761         the license default to GPL.
58762         (func_create_testdir): Don't complain if a module is LGPL and its
58763         tests module depends on GPLed modules.
58764
58765 2007-01-17  Bruno Haible  <bruno@clisp.org>
58766
58767         * lib/gettimeofday.c (gettimeofday): Add code for the case
58768         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
58769         maximum possible value for tv->tv_usec, rather than the minimum one.
58770
58771 2005-10-08  Martin Lambers  <marlam@marlam.de>
58772 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58773 2007-01-16  Bruno Haible  <bruno@clisp.org>
58774
58775         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
58776         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
58777         gl_FUNC_GETTIMEOFDAY.
58778         (Include): Add gettimeofday.h.
58779         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
58780         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
58781         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
58782         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
58783         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
58784         * lib/gettimeofday.h: New file.
58785         * lib/gettimeofday.c: Include <sys/timeb.h>.
58786         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
58787         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58788         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
58789         fall back on time().
58790
58791         * tests/test-gettimeofday.c: New file.
58792         * modules/gettimeofday-tests: New file.
58793
58794 2007-01-16  Eric Blake  <ebb9@byu.net>
58795
58796         * modules/fnmatch (Depends-on): Depend on wchar.
58797         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
58798         * m4/fnmatch.m4: Likewise.
58799         * modules/mbchar (Makefile.am): Assume <wchar.h>.
58800         * m4/mbchar.m4: Likewise.
58801         * modules/mbswidth (Depends-on): Depend on wchar.
58802         * lib/mbswidth.c: Assume <wchar.h>.
58803         * m4/mbswidth.m4: Likewise.
58804         * modules/quotearg (Depends-on): Depend on wchar.
58805         * lib/quotearg.c: Assume <wchar.h>.
58806         * m4/quotearg.m4: Likewise.
58807         * modules/regex (Depends-on): Depend on wchar.
58808         * lib/regex_internal.h: Assume <wchar.h>.
58809         * m4/regex.m4: Likewise.
58810         * modules/stdint (Depends-on): Depend on wchar.
58811         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
58812         * m4/stdint.m4: Likewise.
58813         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
58814         * modules/strftime (Depends-on): Depend on wchar.
58815         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
58816         * modules/strtol (Depends-on): Depend on wchar.
58817         * lib/strtol.c: Assume <wchar.h>.
58818         * modules/wcwidth (Depends-on): Depend on wchar.
58819         * lib/wcwidth.h: Assume <wchar.h>.
58820         * m4/wcwidth.m4: Likewise.
58821
58822 2007-01-16  Bruno Haible  <bruno@clisp.org>
58823
58824         * modules/csharpexec-script: New, created from...
58825         * modules/csharpexec: ... this.
58826
58827 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58828
58829         * modules/javaexec-script: New, created from...
58830         * modules/javaexec: ... this.
58831
58832 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58833
58834         * modules/poll (Dependencies): Add sys_select.
58835
58836 2007-01-15  Jim Meyering  <jim@meyering.net>
58837
58838         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
58839         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
58840         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
58841         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
58842
58843 2007-01-15  Bruno Haible  <bruno@clisp.org>
58844
58845         * modules/striconveh: New file.
58846         * lib/striconveh.h: New file.
58847         * lib/striconveh.c: New file.
58848         * MODULES.html.sh (Internationalization functions): Add striconveh.
58849
58850         * modules/striconveh-tests: New file.
58851         * tests/test-striconveh.c: New file.
58852
58853 2007-01-15  Bruno Haible  <bruno@clisp.org>
58854
58855         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
58856         not from GNU libiconv or GNU libc.
58857
58858 2007-01-15  Bruno Haible  <bruno@clisp.org>
58859
58860         * doc/gnulib-intro.texi (Copyright): Explain the different license
58861         terms for module descriptions, autoconf macros, tests, documentation.
58862
58863 2007-01-14  Bruno Haible  <bruno@clisp.org>
58864
58865         * modules/striconv-tests: New file.
58866         * tests/test-striconv.c: New file.
58867
58868 2007-01-14  Bruno Haible  <bruno@clisp.org>
58869
58870         * modules/iconv-tests: New file.
58871         * tests/test-iconv.c: New file.
58872
58873 2007-01-14  Bruno Haible  <bruno@clisp.org>
58874
58875         * gnulib-tool (func_get_license): For test modules, use the license of
58876         the main module.
58877
58878 2007-01-14  Bruno Haible  <bruno@clisp.org>
58879
58880         * modules/iconv (Include): Clarify that <iconv.h> can only be included
58881         if iconv is found to exist.
58882
58883 2007-01-14  Bruno Haible  <bruno@clisp.org>
58884
58885         * modules/c-ctype-tests: New file.
58886         * tests/test-c-ctype.c: New file.
58887
58888 2007-01-14  Bruno Haible  <bruno@clisp.org>
58889
58890         * modules/binary-io-tests: New file.
58891         * tests/test-binary-io.sh: New file.
58892         * tests/test-binary-io.c: New file.
58893
58894 2007-01-14  Bruno Haible  <bruno@clisp.org>
58895
58896         * modules/array-oset-tests: New file.
58897         * tests/test-array_oset.c: New file.
58898
58899 2007-01-14  Bruno Haible  <bruno@clisp.org>
58900
58901         * modules/array-list-tests: New file.
58902         * tests/test-array_list.c: New file.
58903
58904 2007-01-14  Bruno Haible  <bruno@clisp.org>
58905
58906         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
58907         and make.
58908         Reported by Simon Josefsson in
58909         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
58910
58911 2007-01-14  Bruno Haible  <bruno@clisp.org>
58912
58913         * modules/allocsa-tests: New file.
58914         * tests/test-allocsa.c: New file.
58915
58916 2007-01-14  Bruno Haible  <bruno@clisp.org>
58917
58918         * modules/fchdir (Depends-on): Add absolute-header.
58919         * modules/unistd (Depends-on): Likewise.
58920
58921 2006-12-30  Bruno Haible  <bruno@clisp.org>
58922
58923         * modules/fchdir: New file.
58924         * modules/unistd (Files): Add lib/unistd_.h.
58925         (Makefile.am): Generate unistd.h from unistd_.h.
58926         * lib/fchdir.c: New file.
58927         * lib/dirent_.h: New file.
58928         * lib/unistd_.h: New file.
58929         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
58930         * m4/fchdir.m4: New file.
58931         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
58932         (gl_HEADER_UNISTD): Invoke it.
58933         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
58934         function.
58935         * lib/backupfile.c (opendir, closedir): Undefine.
58936         * lib/chown.c (open, close): Undefine.
58937         * lib/clean-temp.c (open, close): Undefine.
58938         * lib/copy-file.c (open, close): Undefine.
58939         * lib/execute.c (open, close): Undefine.
58940         * lib/fsusage.c (open, close): Undefine.
58941         * lib/gc-gnulib.c (open, close): Undefine.
58942         * lib/getcwd.c (opendir, closedir): Undefine.
58943         * lib/glob.c (opendir, closedir): Undefine.
58944         * lib/javacomp.c (open, close): Undefine.
58945         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
58946         * lib/openat-proc.c (open, close): Undefine.
58947         * lib/pagealign_alloc.c (open, close): Undefine.
58948         * lib/pipe.c (open, close): Undefine.
58949         * lib/progreloc.c (open, close): Undefine.
58950         * lib/savedir.c (opendir, closedir): Undefine.
58951         * lib/utime.c (open, close): Undefine.
58952         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
58953
58954 2007-01-10  Bruno Haible  <bruno@clisp.org>
58955
58956         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
58957
58958 2007-01-12  Eric Blake  <ebb9@byu.net>
58959
58960         Provide a robust <wchar.h>.  Further simplifications are now
58961         possible in other modules, but not included here.
58962         * modules/wchar: New module.
58963         * m4/wchar.m4: New file.
58964         * lib/wchar_.h: Likewise.
58965         * modules/mbchar (Depends-on): Depend on wchar, as the first use
58966         of the new module.
58967         * MODULES.html.sh (Extended multibyte and wide character utilities):
58968         New section.
58969
58970 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
58971
58972         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
58973         to a reasonable default for memory allocation.
58974         (xreadlink): Don't allocate a huge buffer, to work around a buggy
58975         file system that reports garbage st_size values for symlinks.
58976         Problem reported by Liyang Hu.
58977
58978 2007-01-11  Simon Josefsson  <simon@josefsson.org>
58979
58980         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
58981         Emacs .#* auto-save files).
58982
58983 2007-01-11  Bruno Haible  <bruno@clisp.org>
58984
58985         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
58986         directory.
58987
58988 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58989
58990         Use @...@ consistently in lib/wctype_.h.
58991         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
58992         on it being set to 1 or 0.
58993         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
58994         go back to AC_SUBSTing it.
58995         * modules/wctype (Makefile.am): Undo previous change.
58996
58997 2007-01-10  Eric Blake  <ebb9@byu.net>
58998
58999         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
59000         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
59001         * modules/wctype (Makefile.am): Likewise.
59002         Reported by Chris McGuire.
59003
59004 2007-01-10  Jim Meyering  <jim@meyering.net>
59005
59006         fts.c: a small readability/maintainability improvement
59007         * lib/fts.c (fts_read): Make this code slightly more readable and
59008         maintainable by hoisting the "sp->fts_cur = p" assignments to
59009         immediately follow the statements that set P.  Derived from
59010         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
59011
59012 2007-01-10  Eric Blake  <ebb9@byu.net>
59013
59014         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
59015         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
59016         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59017         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
59018         Reported by Chris McGuire.
59019
59020 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59021
59022         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
59023         in sed script.
59024
59025 2007-01-09  Bruno Haible  <bruno@clisp.org>
59026
59027         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
59028         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
59029         variables.
59030         (func_module): Use them.
59031
59032 2007-01-09  Bruno Haible  <bruno@clisp.org>
59033
59034         * modules/unistr/base: New file.
59035         * lib/unistr.h: New file.
59036
59037         * modules/unistr/u8-to-u16: New file.
59038         * lib/unistr/u8-to-u16.c: New file.
59039
59040         * modules/unistr/u8-to-u32: New file.
59041         * lib/unistr/u8-to-u32.c: New file.
59042
59043         * modules/unistr/u16-to-u8: New file.
59044         * lib/unistr/u16-to-u8.c: New file.
59045
59046         * modules/unistr/u16-to-u32: New file.
59047         * lib/unistr/u16-to-u32.c: New file.
59048
59049         * modules/unistr/u32-to-u8: New file.
59050         * lib/unistr/u32-to-u8.c: New file.
59051
59052         * modules/unistr/u32-to-u16: New file.
59053         * lib/unistr/u32-to-u16.c: New file.
59054
59055         * modules/unistr/u8-check: New file.
59056         * modules/unistr/u16-check: New file.
59057         * modules/unistr/u32-check: New file.
59058         * lib/unistr/u8-check.c: New file.
59059         * lib/unistr/u16-check.c: New file.
59060         * lib/unistr/u32-check.c: New file.
59061
59062         * modules/unistr/u8-chr: New file.
59063         * modules/unistr/u16-chr: New file.
59064         * modules/unistr/u32-chr: New file.
59065         * lib/unistr/u8-chr.c: New file.
59066         * lib/unistr/u16-chr.c: New file.
59067         * lib/unistr/u32-chr.c: New file.
59068
59069         * modules/unistr/u8-cmp: New file.
59070         * modules/unistr/u16-cmp: New file.
59071         * modules/unistr/u32-cmp: New file.
59072         * lib/unistr/u8-cmp.c: New file.
59073         * lib/unistr/u16-cmp.c: New file.
59074         * lib/unistr/u32-cmp.c: New file.
59075
59076         * modules/unistr/u8-cpy: New file.
59077         * modules/unistr/u16-cpy: New file.
59078         * modules/unistr/u32-cpy: New file.
59079         * lib/unistr/u8-cpy.c: New file.
59080         * lib/unistr/u16-cpy.c: New file.
59081         * lib/unistr/u32-cpy.c: New file.
59082         * lib/unistr/u-cpy.h: New file.
59083
59084         * modules/unistr/u8-cpy-alloc: New file.
59085         * modules/unistr/u16-cpy-alloc: New file.
59086         * modules/unistr/u32-cpy-alloc: New file.
59087         * lib/unistr/u8-cpy-alloc.c: New file.
59088         * lib/unistr/u16-cpy-alloc.c: New file.
59089         * lib/unistr/u32-cpy-alloc.c: New file.
59090         * lib/unistr/u-cpy-alloc.h: New file.
59091
59092         * modules/unistr/u8-endswith: New file.
59093         * modules/unistr/u16-endswith: New file.
59094         * modules/unistr/u32-endswith: New file.
59095         * lib/unistr/u8-endswith.c: New file.
59096         * lib/unistr/u16-endswith.c: New file.
59097         * lib/unistr/u32-endswith.c: New file.
59098         * lib/unistr/u-endswith.h: New file.
59099
59100         * modules/unistr/u8-mblen: New file.
59101         * modules/unistr/u16-mblen: New file.
59102         * modules/unistr/u32-mblen: New file.
59103         * lib/unistr/u8-mblen.c: New file.
59104         * lib/unistr/u16-mblen.c: New file.
59105         * lib/unistr/u32-mblen.c: New file.
59106
59107         * modules/unistr/u8-mbtouc: New file.
59108         * modules/unistr/u16-mbtouc: New file.
59109         * modules/unistr/u32-mbtouc: New file.
59110         * lib/unistr/u8-mbtouc.c: New file.
59111         * lib/unistr/u16-mbtouc.c: New file.
59112         * lib/unistr/u32-mbtouc.c: New file.
59113
59114         * modules/unistr/u8-mbtouc-safe: New file.
59115         * modules/unistr/u16-mbtouc-safe: New file.
59116         * modules/unistr/u32-mbtouc-safe: New file.
59117         * lib/unistr/u8-mbtouc-safe.c: New file.
59118         * lib/unistr/u16-mbtouc-safe.c: New file.
59119         * lib/unistr/u32-mbtouc-safe.c: New file.
59120
59121         * modules/unistr/u8-move: New file.
59122         * modules/unistr/u16-move: New file.
59123         * modules/unistr/u32-move: New file.
59124         * lib/unistr/u8-move.c: New file.
59125         * lib/unistr/u16-move.c: New file.
59126         * lib/unistr/u32-move.c: New file.
59127         * lib/unistr/u-move.h: New file.
59128
59129         * modules/unistr/u8-next: New file.
59130         * modules/unistr/u16-next: New file.
59131         * modules/unistr/u32-next: New file.
59132         * lib/unistr/u8-next.c: New file.
59133         * lib/unistr/u16-next.c: New file.
59134         * lib/unistr/u32-next.c: New file.
59135
59136         * modules/unistr/u8-prev: New file.
59137         * modules/unistr/u16-prev: New file.
59138         * modules/unistr/u32-prev: New file.
59139         * lib/unistr/u8-prev.c: New file.
59140         * lib/unistr/u16-prev.c: New file.
59141         * lib/unistr/u32-prev.c: New file.
59142
59143         * modules/unistr/u8-set: New file.
59144         * modules/unistr/u16-set: New file.
59145         * modules/unistr/u32-set: New file.
59146         * lib/unistr/u8-set.c: New file.
59147         * lib/unistr/u16-set.c: New file.
59148         * lib/unistr/u32-set.c: New file.
59149         * lib/unistr/u-set.h: New file.
59150
59151         * modules/unistr/u8-startswith: New file.
59152         * modules/unistr/u16-startswith: New file.
59153         * modules/unistr/u32-startswith: New file.
59154         * lib/unistr/u8-startswith.c: New file.
59155         * lib/unistr/u16-startswith.c: New file.
59156         * lib/unistr/u32-startswith.c: New file.
59157         * lib/unistr/u-startswith.h: New file.
59158
59159         * modules/unistr/u8-stpcpy: New file.
59160         * modules/unistr/u16-stpcpy: New file.
59161         * modules/unistr/u32-stpcpy: New file.
59162         * lib/unistr/u8-stpcpy.c: New file.
59163         * lib/unistr/u16-stpcpy.c: New file.
59164         * lib/unistr/u32-stpcpy.c: New file.
59165         * lib/unistr/u-stpcpy.h: New file.
59166
59167         * modules/unistr/u8-stpncpy: New file.
59168         * modules/unistr/u16-stpncpy: New file.
59169         * modules/unistr/u32-stpncpy: New file.
59170         * lib/unistr/u8-stpncpy.c: New file.
59171         * lib/unistr/u16-stpncpy.c: New file.
59172         * lib/unistr/u32-stpncpy.c: New file.
59173         * lib/unistr/u-stpncpy.h: New file.
59174
59175         * modules/unistr/u8-strcat: New file.
59176         * modules/unistr/u16-strcat: New file.
59177         * modules/unistr/u32-strcat: New file.
59178         * lib/unistr/u8-strcat.c: New file.
59179         * lib/unistr/u16-strcat.c: New file.
59180         * lib/unistr/u32-strcat.c: New file.
59181         * lib/unistr/u-strcat.h: New file.
59182
59183         * modules/unistr/u8-strchr: New file.
59184         * modules/unistr/u16-strchr: New file.
59185         * modules/unistr/u32-strchr: New file.
59186         * lib/unistr/u8-strchr.c: New file.
59187         * lib/unistr/u16-strchr.c: New file.
59188         * lib/unistr/u32-strchr.c: New file.
59189
59190         * modules/unistr/u8-strcmp: New file.
59191         * modules/unistr/u16-strcmp: New file.
59192         * modules/unistr/u32-strcmp: New file.
59193         * lib/unistr/u8-strcmp.c: New file.
59194         * lib/unistr/u16-strcmp.c: New file.
59195         * lib/unistr/u32-strcmp.c: New file.
59196
59197         * modules/unistr/u8-strcpy: New file.
59198         * modules/unistr/u16-strcpy: New file.
59199         * modules/unistr/u32-strcpy: New file.
59200         * lib/unistr/u8-strcpy.c: New file.
59201         * lib/unistr/u16-strcpy.c: New file.
59202         * lib/unistr/u32-strcpy.c: New file.
59203         * lib/unistr/u-strcpy.h: New file.
59204
59205         * modules/unistr/u8-strcspn: New file.
59206         * modules/unistr/u16-strcspn: New file.
59207         * modules/unistr/u32-strcspn: New file.
59208         * lib/unistr/u8-strcspn.c: New file.
59209         * lib/unistr/u16-strcspn.c: New file.
59210         * lib/unistr/u32-strcspn.c: New file.
59211         * lib/unistr/u-strcspn.h: New file.
59212
59213         * modules/unistr/u8-strdup: New file.
59214         * modules/unistr/u16-strdup: New file.
59215         * modules/unistr/u32-strdup: New file.
59216         * lib/unistr/u8-strdup.c: New file.
59217         * lib/unistr/u16-strdup.c: New file.
59218         * lib/unistr/u32-strdup.c: New file.
59219         * lib/unistr/u-strdup.h: New file.
59220
59221         * modules/unistr/u8-strlen: New file.
59222         * modules/unistr/u16-strlen: New file.
59223         * modules/unistr/u32-strlen: New file.
59224         * lib/unistr/u8-strlen.c: New file.
59225         * lib/unistr/u16-strlen.c: New file.
59226         * lib/unistr/u32-strlen.c: New file.
59227         * lib/unistr/u-strlen.h: New file.
59228
59229         * modules/unistr/u8-strmblen: New file.
59230         * modules/unistr/u16-strmblen: New file.
59231         * modules/unistr/u32-strmblen: New file.
59232         * lib/unistr/u8-strmblen.c: New file.
59233         * lib/unistr/u16-strmblen.c: New file.
59234         * lib/unistr/u32-strmblen.c: New file.
59235
59236         * modules/unistr/u8-strmbtouc: New file.
59237         * modules/unistr/u16-strmbtouc: New file.
59238         * modules/unistr/u32-strmbtouc: New file.
59239         * lib/unistr/u8-strmbtouc.c: New file.
59240         * lib/unistr/u16-strmbtouc.c: New file.
59241         * lib/unistr/u32-strmbtouc.c: New file.
59242
59243         * modules/unistr/u8-strncat: New file.
59244         * modules/unistr/u16-strncat: New file.
59245         * modules/unistr/u32-strncat: New file.
59246         * lib/unistr/u8-strncat.c: New file.
59247         * lib/unistr/u16-strncat.c: New file.
59248         * lib/unistr/u32-strncat.c: New file.
59249         * lib/unistr/u-strncat.h: New file.
59250
59251         * modules/unistr/u8-strncmp: New file.
59252         * modules/unistr/u16-strncmp: New file.
59253         * modules/unistr/u32-strncmp: New file.
59254         * lib/unistr/u8-strncmp.c: New file.
59255         * lib/unistr/u16-strncmp.c: New file.
59256         * lib/unistr/u32-strncmp.c: New file.
59257
59258         * modules/unistr/u8-strncpy: New file.
59259         * modules/unistr/u16-strncpy: New file.
59260         * modules/unistr/u32-strncpy: New file.
59261         * lib/unistr/u8-strncpy.c: New file.
59262         * lib/unistr/u16-strncpy.c: New file.
59263         * lib/unistr/u32-strncpy.c: New file.
59264         * lib/unistr/u-strncpy.h: New file.
59265
59266         * modules/unistr/u8-strnlen: New file.
59267         * modules/unistr/u16-strnlen: New file.
59268         * modules/unistr/u32-strnlen: New file.
59269         * lib/unistr/u8-strnlen.c: New file.
59270         * lib/unistr/u16-strnlen.c: New file.
59271         * lib/unistr/u32-strnlen.c: New file.
59272         * lib/unistr/u-strnlen.h: New file.
59273
59274         * modules/unistr/u8-strpbrk: New file.
59275         * modules/unistr/u16-strpbrk: New file.
59276         * modules/unistr/u32-strpbrk: New file.
59277         * lib/unistr/u8-strpbrk.c: New file.
59278         * lib/unistr/u16-strpbrk.c: New file.
59279         * lib/unistr/u32-strpbrk.c: New file.
59280         * lib/unistr/u-strpbrk.h: New file.
59281
59282         * modules/unistr/u8-strrchr: New file.
59283         * modules/unistr/u16-strrchr: New file.
59284         * modules/unistr/u32-strrchr: New file.
59285         * lib/unistr/u8-strrchr.c: New file.
59286         * lib/unistr/u16-strrchr.c: New file.
59287         * lib/unistr/u32-strrchr.c: New file.
59288
59289         * modules/unistr/u8-strspn: New file.
59290         * modules/unistr/u16-strspn: New file.
59291         * modules/unistr/u32-strspn: New file.
59292         * lib/unistr/u8-strspn.c: New file.
59293         * lib/unistr/u16-strspn.c: New file.
59294         * lib/unistr/u32-strspn.c: New file.
59295         * lib/unistr/u-strspn.h: New file.
59296
59297         * modules/unistr/u8-strstr: New file.
59298         * modules/unistr/u16-strstr: New file.
59299         * modules/unistr/u32-strstr: New file.
59300         * lib/unistr/u8-strstr.c: New file.
59301         * lib/unistr/u16-strstr.c: New file.
59302         * lib/unistr/u32-strstr.c: New file.
59303         * lib/unistr/u-strstr.h: New file.
59304
59305         * modules/unistr/u8-strtok: New file.
59306         * modules/unistr/u16-strtok: New file.
59307         * modules/unistr/u32-strtok: New file.
59308         * lib/unistr/u8-strtok.c: New file.
59309         * lib/unistr/u16-strtok.c: New file.
59310         * lib/unistr/u32-strtok.c: New file.
59311         * lib/unistr/u-strtok.h: New file.
59312
59313         * modules/unistr/u8-uctomb: New file.
59314         * modules/unistr/u16-uctomb: New file.
59315         * modules/unistr/u32-uctomb: New file.
59316         * lib/unistr/u8-uctomb.c: New file.
59317         * lib/unistr/u16-uctomb.c: New file.
59318         * lib/unistr/u32-uctomb.c: New file.
59319
59320         * MODULES.html.sh (Unicode string functions): Add the new modules.
59321
59322 2007-01-08  Bruno Haible  <bruno@clisp.org>
59323
59324         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
59325         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
59326         subdirectories.
59327
59328 2007-01-08  Karl Berry  <karl@gnu.org>
59329
59330         * doc/error.texi: mention that main() fns must set program_name
59331         when progname is used.
59332
59333 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
59334
59335         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
59336         WCTYPE_H is empty, for the benefit of builds from non-distclean
59337         directories.  Problem reported by Eric Blake in
59338         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
59339
59340 2007-01-08  Bruno Haible  <bruno@clisp.org>
59341
59342         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
59343         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
59344         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
59345         PROVIDE_CANONICALIZE_FILENAME_MODE.
59346         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
59347
59348 2007-01-08  Bruno Haible  <bruno@clisp.org>
59349
59350         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
59351         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
59352         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
59353         * lib/fts.c: Likewise.
59354         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
59355
59356 2006-12-25  Bruno Haible  <bruno@clisp.org>
59357
59358         * modules/utf8-ucs4-safe: New file.
59359         * lib/utf8-ucs4-safe.h: New file.
59360         * lib/unistr/utf8-ucs4-safe.c: New file.
59361
59362         * modules/utf16-ucs4-safe: New file.
59363         * lib/utf16-ucs4-safe.h: New file.
59364         * lib/unistr/utf16-ucs4-safe.c: New file.
59365
59366         * MODULES.html.sh (Unicode string functions): Add the new modules.
59367
59368 2007-01-08  Bruno Haible  <bruno@clisp.org>
59369
59370         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
59371         (Depends-on): Add unitypes.
59372         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59373         (u8_mbtouc_aux): Move out to separate file.
59374         (u8_mbtouc): Use ucs4_t, uint8_t types.
59375         * lib/unistr/utf8-ucs4.c: New file.
59376
59377         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
59378         (Depends-on): Add unitypes.
59379         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59380         (u16_mbtouc_aux): Move out to separate file.
59381         (u16_mbtouc): Use ucs4_t, uint16_t types.
59382         * lib/unistr/utf16-ucs4.c: New file.
59383
59384         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
59385         (Depends-on): Add unitypes.
59386         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
59387         (u8_uctomb_aux): Move out to separate file.
59388         (u8_uctomb): Use ucs4_t, uint8_t types.
59389         * lib/unistr/ucs4-utf8.c: New file.
59390
59391         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
59392         (Depends-on): Add unitypes.
59393         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
59394         (u16_uctomb_aux): Move out to separate file.
59395         (u16_uctomb): Use ucs4_t, uint16_t types.
59396         * lib/unistr/ucs4-utf16.c: New file.
59397
59398 2006-12-25  Bruno Haible  <bruno@clisp.org>
59399
59400         * modules/unitypes: New file.
59401         * lib/unitypes.h: New file.
59402         * MODULES.html.sh (func_all_modules): New section "Unicode string
59403         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
59404         this section. Add unitypes.
59405
59406 2007-01-08  Bruno Haible  <bruno@clisp.org>
59407
59408         Avoid variable names that conflict with those from libtool.
59409         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
59410         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
59411         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
59412         library_names_spec to acl_library_names_spec, hardcode_* to
59413         acl_hardcode_*.
59414         Reported by Ralf Wildenhues.
59415
59416 2007-01-08  Bruno Haible  <bruno@clisp.org>
59417
59418         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
59419         definition.
59420         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
59421         definition.
59422         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
59423         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
59424         definition.
59425         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
59426         definition.
59427         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
59428         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
59429         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
59430         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
59431         definition.
59432         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
59433         definition.
59434         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
59435         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
59436         GC_USE_<algorithm>.
59437         * lib/gc-libgcrypt.c: Likewise.
59438         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
59439         * modules/gc-arctwo (configure.ac): Likewise.
59440         * modules/gc-des (configure.ac): Likewise.
59441         * modules/gc-hmac-md5 (configure.ac): Likewise.
59442         * modules/gc-hmac-sha1 (configure.ac): Likewise.
59443         * modules/gc-md2 (configure.ac): Likewise.
59444         * modules/gc-md4 (configure.ac): Likewise.
59445         * modules/gc-md5 (configure.ac): Likewise.
59446         * modules/gc-random (configure.ac): Likewise.
59447         * modules/gc-rijndael (configure.ac): Likewise.
59448         * modules/gc-sha1 (configure.ac): Likewise.
59449
59450 2007-01-08  Bruno Haible  <bruno@clisp.org>
59451
59452         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
59453         macro definition.
59454         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
59455         definition.
59456         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
59457         definition.
59458         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
59459         * modules/fcntl-safer (configure.ac): Likewise.
59460         * modules/fopen-safer (configure.ac): Likewise.
59461         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
59462         GNULIB_FWRITEERROR macro definition.
59463
59464 2007-01-08  Bruno Haible  <bruno@clisp.org>
59465
59466         * m4/gnulib-common.m4: New file.
59467         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
59468         (func_get_filelist): Add m4/gnulib-common.m4.
59469
59470 2007-01-08  Bruno Haible  <bruno@clisp.org>
59471
59472         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
59473         command.
59474
59475 2007-01-08  Jim Meyering  <jim@meyering.net>
59476
59477         Use a more robust test for a "can't happen" condition.
59478         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
59479         narrowed the st_size value.  Presuming the "can't happen" condition
59480         is true, that narrowing could conceivably convert an invalid st_size
59481         value into a valid one.  Instead, use a change based on Matthew
59482         Woehlke's original patch.
59483
59484         Slight readability improvement: use an assert-like macro
59485         in place of literal "abort ()" uses.
59486         * lib/fts.c (fts_assert): Define.
59487         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
59488         Use this macro instead of a bare 'abort'.
59489
59490 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
59491
59492         Don't worry about using IRIX 5.3's wctype.h broken definitions;
59493         simply work around them.
59494         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
59495         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
59496         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
59497         declaring.
59498         Don't bother to define as macros, since the standard doesn't require it.
59499         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
59500         longer worry about IRIX 5.3.
59501         (HAVE_WCTYPE_CTMP_BUG): Remove.
59502
59503 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59504
59505         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
59506         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
59507         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59508         Problems reported by Georg Schwarz for IRIX 5.3.
59509
59510         * gnulib-tool (autoconf_minversion): Take the maximum version number
59511         found, not the minimum.  Problem reported by James Youngman.
59512
59513 2007-01-03  Karl Berry  <karl@gnu.org>
59514
59515         * doc/error.texi: new file, explaining interaction with progname.
59516         * doc/gnulib.texi: include it.  Update copyright.
59517
59518 2007-01-03  Simon Josefsson  <simon@josefsson.org>
59519
59520         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
59521         AC_CANONICAL_HOST, to improve autobuild outputs.
59522
59523 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
59524             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59525
59526         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
59527         sockets, server sockets, and other file descriptors.  Count errors
59528         to compute the return value.  Reorder the code a bit to be easier
59529         to follow.  Don't set event bits that were not requested (except
59530         POLLERR and POLLHUP).
59531
59532 2007-01-01  Bruno Haible  <bruno@clisp.org>
59533
59534         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
59535
59536 2007-01-03  Jim Meyering  <jim@meyering.net>
59537
59538         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
59539
59540 2007-01-02  Bruno Haible  <bruno@clisp.org>
59541
59542         * modules/settime (Include): Require timespec.h.
59543         * modules/nanosleep (Include): Likewise.
59544
59545 2007-01-01  Bruno Haible  <bruno@clisp.org>
59546
59547         * gnulib-tool (func_emit_copyright_notice): Bump year.
59548         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
59549
59550 2007-01-01  Bruno Haible  <bruno@clisp.org>
59551
59552         Improve support for OpenBSD.
59553         * build-aux/config.rpath (libname_spec): Export.
59554         (library_names_spec): New variable. Export.
59555         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
59556         library_names_spec from the config.rpath output. Locate shared library
59557         through the name pattern in library_names_spec.
59558
59559 2007-01-01  Eric Blake  <ebb9@byu.net>
59560
59561         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
59562
59563 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
59564
59565         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
59566         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
59567         assume the C locale, and avoid an "eval" that could cause trouble.
59568         Problem with SORT reported by Bob Proulx.
59569
59570         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
59571         Define.  Trivial patch from Henning Nielsen Lund, originally
59572         sent to bug-grep@gnu.org today.
59573
59574 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59575
59576         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
59577         struct stat.  Problem reported by Henning Nielsen Lund.
59578         * lib/acl.c: Include acl.h first, to check interface.  Don't
59579         bother to include sys/types.h and sys/stat.h again.
59580
59581 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59582
59583         Import the following change from libc; problem reported by
59584         Sven Verdoolaege.
59585
59586         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
59587
59588         [BZ #1373]
59589         * lib/argp.h: Remove __NTH for __argp_usage inline function.
59590
59591 2006-12-28  Jim Meyering  <jim@meyering.net>
59592
59593         * build-aux/announce-gen: Do not assume that the package
59594         builds any of tar.gz, tar.bz2, and .xdelta files.
59595         Suggestion from Simon Josefsson.
59596
59597 2006-12-28  Simon Josefsson  <simon@josefsson.org>
59598
59599         * modules/announce-gen: New file.
59600
59601 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
59602
59603         * lib/mbchar.h: Just include <wctype.h>; the wctype module
59604         handles its gotchas now.
59605         * lib/mbswidth.c: Likewise.
59606         * lib/wcwidth.h: Likewise.
59607         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
59608         and iswcntrl; the wctype module does this stuff now.
59609         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59610         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59611         * modules/mbchar (Depends-on): Add wctype.
59612         * modules/mbswidth (Depends-on): Likewise.
59613         * modules/wcwidth (Depends-on): Likewise.
59614
59615 2006-12-27  Eric Blake  <ebb9@byu.net>
59616
59617         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
59618         module uses more than what <wctype.h> is required to provide.
59619
59620 2006-12-26  Eric Blake  <ebb9@byu.net>
59621
59622         * gnulib-tool (sed_extract_prog): Avoid space-tab.
59623
59624 2006-12-26  Eric Blake  <ebb9@byu.net>
59625
59626         * modules/absolute-header: New module.
59627         * modules/fcntl (Depends-on): Depend on it.
59628         * modules/inttypes (Depends-on): Likewise.
59629         * modules/stdint (Depends-on): Likewise.
59630         * modules/sys_stat (Depends-on): Likewise.
59631         * modules/wctype (Depends-on): Likewise.
59632         * MODULES.html.sh (Support for building libraries and
59633         executables): Document it.
59634
59635 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59636
59637         * gnulib-tool (SED): Remove, undoing previous change.
59638         The problem was that it broke coreutils on Solaris, because
59639         "sed --posix" leaked into a makefile.
59640         (sed): New alias, if 'alias' and GNU sed.
59641
59642 2006-12-24  Jim Meyering  <jim@meyering.net>
59643
59644         Work around an fchownat bug in glibc-2.4:
59645         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
59646         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
59647         in spite of the -P option.
59648         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
59649         New macros.
59650         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
59651         * modules/openat (Files): Add lib/fchownat.c.
59652         * lib/openat.c (fchownat): Don't define here.  Move to...
59653         * lib/fchownat.c: ...this new file.
59654
59655 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59656
59657         Fix bug reported by Bruno Haible in
59658         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
59659         where quotearg.c didn't compile on Mac OS X 10.2 because it
59660         lacks <wchar.h> and wint_t.
59661         * lib/wctype_.h (__wctype_wint_t): New type.
59662         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
59663         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
59664         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
59665         Arg is now of type __wctype_wint_t, not wint_t.
59666         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
59667         substitute HAVE_WINT_T.
59668         * modules/wctype (Files): Add m4/wint_t.m4.
59669         (wctype.h): Substitute HAVE_WINT_T.
59670
59671 2006-12-23  Bruno Haible  <bruno@clisp.org>
59672
59673         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
59674
59675 2006-12-23  Bruno Haible  <bruno@clisp.org>
59676
59677         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
59678         S_ISLNK.
59679         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
59680         mingw.
59681
59682 2006-12-22  Bruno Haible  <bruno@clisp.org>
59683
59684         * lib/copy-file.c: Include acl.h.
59685         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
59686         Close the file descriptors only after being done with copy_acl.
59687         * modules/copy-file (Depends-on): Add acl.
59688
59689 2006-12-22  Bruno Haible  <bruno@clisp.org>
59690
59691         * gnulib-tool (SED): New variable.
59692         Use $SED instead of sed everywhere.
59693
59694 2006-12-22  Bruno Haible  <bruno@clisp.org>
59695
59696         * modules/no-c++: New file.
59697         * m4/no-c++.m4: New file.
59698         * MODULES.html.sh (Support for building libraries and executables):
59699         Add no-c++.
59700
59701 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
59702
59703         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59704         Include <limits.h>, and use its INT_MAX to rewrite the
59705         j loop so that it does not overflow 'int'.  Problem reported by
59706         Ralf Wildenhues in
59707         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
59708         Play it safe by shifting left by 1 rather than multiplying by 2,
59709         as GCC is less likely to optimize this away when the value
59710         is signed (when it assumes overflow leads to undefined behavior).
59711         Also, don't assume time_t uses two's complement.
59712
59713 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
59714
59715         * MODULES.html.sh: New module wctype.
59716         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
59717         * lib/fnmatch.c: Don't bother to include <wchar.h> before
59718         <wctype.h>, since the new wctype module should fix this.
59719         * lib/quotearg.c: Include <wctype.h> unconditionally, since
59720         the wctype module should arrange for it.
59721         * lib/regex_internal.h: Likewise.
59722         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
59723         since the wctype module should handle this now.
59724         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
59725         * modules/fnmatch (Depends-on): Add wctype.
59726         * modules/quotearg (Depends-on): Likewise.
59727         * modules/regex (Depends-on): Likewise.
59728
59729 2006-12-19  Bruno Haible  <bruno@clisp.org>
59730
59731         * lib/strdup.h [C++]: Wrap definitions in extern "C".
59732         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
59733
59734 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59735
59736         * modules/savewd (Depends-on): Fix dependency on fcntl.
59737
59738 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59739
59740         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
59741         conforms to C99, rather than relying on the user's environment
59742         setting of STDINT_H.
59743
59744 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59745         and Eric Blake  <ebb9@byu.net>
59746
59747         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
59748         This is more consistent with the other defines here.
59749         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
59750         Port to z/OS.  Problem reported by Paul Gilmartin.
59751         Change local vars to use gl_ prefix rather than ac_.
59752         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
59753         with other defines.
59754         * modules/double-slash-root: New module.
59755         * modules/dirname (Files): Remove m4/double-slash-root.m4.
59756         (Depends-on): Add double-slash-root.
59757         * MODULES.html.sh (File system functions): Mention new module.
59758
59759 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
59760
59761         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
59762         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
59763         This is for the benefit of gzip, which doesn't do i18n.
59764
59765 2006-12-12  Jim Meyering  <jim@meyering.net>
59766
59767         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
59768         Reported by Andreas Schwab <schwab@suse.de>.
59769
59770 2006-12-12  Bruno Haible  <bruno@clisp.org>
59771
59772         Merge these changes.
59773         2006-09-05  Bruno Haible  <bruno@clisp.org>
59774         * lib/iconvme.c (iconv_string): No need to save and restore errno when
59775         iconv_alloc succeeded.
59776         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
59777         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
59778         test for " && dest " at the end - dest is always != NULL there. Call
59779         iconv with 4xNULL arguments initially, to reset the state. Call iconv
59780         with 2xNULL arguments, also to flush the state storage. Handle the
59781         IRIX iconv behaviour. Realloc the final result, to throw away unused
59782         memory.
59783
59784 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
59785
59786         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
59787         and fchmodat unconditionally, since glibc 2.4 has them.
59788         Problem reported by Arkadiusz Miskiewicz.
59789
59790 2006-12-10  Bruno Haible  <bruno@clisp.org>
59791
59792         * gnulib-tool (func_import): Show the include files only for those
59793         modules that are copied and specified.
59794         Reported by Karl Berry.
59795
59796 2006-12-08  Jim Meyering  <jim@meyering.net>
59797
59798         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
59799         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
59800
59801         * build-aux/announce-gen: Add two new options, both optional:
59802         --bootstrap-tools=TOOL_LIST
59803               a comma-separated list of tools, e.g.,
59804               autoconf,automake,bison,gnulib
59805         --gnulib-snapshot-date=DATE
59806               if gnulib is in the bootstrap tool list,
59807               then report this as the snapshot date.
59808               If not specified, use the current date/time.
59809               If you specify a date here, be sure it's UTC.
59810
59811 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59812
59813         * tests/test-argp-2.sh: Fix test to match actual output.
59814         (func_compare): Fix sed script to be portable.
59815
59816 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
59817
59818         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
59819         workaround for this case.  It is not autoconfigured now; offhand
59820         it's hard to see how to autoconfigure it.
59821
59822 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59823
59824         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
59825         a directory that is about to be chowned.  Such a directory's
59826         initial file permissions should permit the owner only and this
59827         should not be changed until after the chown, since the group and
59828         other bits would be incorrect if they granted permission before
59829         the chown.
59830
59831         Fix porting problem for iswctype reported by Georg Schwarz in:
59832         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
59833         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
59834         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
59835         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
59836         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59837
59838 2006-12-03  Jim Meyering  <jim@meyering.net>
59839
59840         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
59841         p->fts_statp may not yet be defined.
59842         (fts_read): Instead, set it in the caller, once p->fts_statp is
59843         sure to be defined, and corresponds to a top-level directory.
59844         This bug made du -x fail.  Here's the coreutils test case:
59845         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
59846         Reported by Mike Frysinger.
59847
59848 2006-12-01  Jim Meyering  <jim@meyering.net>
59849
59850         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
59851         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
59852         Reported by Simon Josefsson.
59853
59854 2006-11-30  Jim Meyering  <jim@meyering.net>
59855
59856         * m4/warning.m4: Use the all-permissive copyright notice
59857         recommended by RMS (rather than LGPL).
59858         * m4/vararrays.m4: Likewise.
59859         * m4/flexmember.m4: Likewise.
59860
59861 2006-11-29  Bruno Haible  <bruno@clisp.org>
59862
59863         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59864         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
59865         using +=.
59866         Reported by Simon Josefsson <simon@josefsson.org>.
59867
59868 2006-11-28  James Youngman <jay@gnu.org>
59869
59870         * README: Advise users that they might find the bug-gnulib@gnu.org
59871         and autotools-announce@gnu.org mailing lists useful.
59872
59873 2006-11-28  Bruno Haible  <bruno@clisp.org>
59874
59875         * m4/ptrdiff_max.m4: Remove file.
59876
59877 2006-11-21  Bruno Haible  <bruno@clisp.org>
59878
59879         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
59880         _AC_COMPUTE_INT.
59881         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59882         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
59883         _AC_COMPUTE_INT.
59884         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59885         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
59886         _AC_COMPUTE_INT.
59887         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59888
59889 2006-11-28  Jim Meyering  <jim@meyering.net>
59890
59891         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
59892         warning from "gcc -Wshadow" about shadowing the builtin.
59893
59894 2006-11-27  Bruno Haible  <bruno@clisp.org>
59895
59896         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
59897         _AC_COMPUTE_INT.
59898         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59899
59900 2006-11-27  Bruno Haible  <bruno@clisp.org>
59901             Paul Eggert  <eggert@cs.ucla.edu>
59902
59903         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
59904
59905 2006-11-26  Bruno Haible  <bruno@clisp.org>
59906
59907         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59908         noinst_LTLIBRARIES.
59909
59910 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
59911             Bruno Haible  <bruno@clisp.org>
59912
59913         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
59914         if compiling with "gcc -ansi".
59915
59916 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
59917
59918         Fix some incompatibilities with gcc -ansi -pedantic.
59919         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
59920         if compiling pedantically with GCC, unless it's C99 or later.
59921         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
59922         it mishandles gcc -ansi -pedantic as well.
59923         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
59924         if gcc -pedantic.
59925         * lib/regexec.c (check_node_accept_bytes): Don't use auto
59926         initializers for struct if -pedantic, unless it's C99 or later.
59927
59928 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
59929
59930         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
59931         Don't close an fd more than once. Identical atimes indicate
59932         success, not failure.
59933
59934 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
59935
59936         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
59937
59938 2006-11-23  Jim Meyering  <jim@meyering.net>
59939
59940         * build-aux/announce-gen: New file.  From coreutils.
59941
59942 2006-11-22  Jim Meyering  <jim@meyering.net>
59943
59944         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
59945         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
59946         (fts_read): Use a temporary to narrow the overused st_size member
59947         before using it in a switch statement.  Reported by Matthew Woehlke.
59948
59949         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
59950         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
59951
59952 2006-11-20  Bruno Haible  <bruno@clisp.org>
59953
59954         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
59955         changequote instead of pairs of brackets.
59956         Reported by Andreas Schwab <schwab@suse.de>.
59957
59958 2006-11-21  Jim Meyering  <jim@meyering.net>
59959
59960         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
59961         so as to remain compatible with older compilers.
59962         Patch from Michael Deutschmann.
59963
59964 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59965
59966         * MODULES.html.sh (File system functions): Add openat.
59967
59968         * lib/openat.h (rpl_fstatat): New macro, if
59969         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
59970         (fstatat): Define to rpl_fstatat under the same conditions,
59971         unless COMPILING_FSTATAT.
59972         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
59973         seems to have the bug.
59974         * lib/fstatat.c: New file.
59975         * modules/openat (Files): Add it.
59976
59977 2006-11-20  Bruno Haible  <bruno@clisp.org>
59978
59979         * Makefile: New file.
59980
59981 2006-11-20  Jim Meyering  <jim@meyering.net>
59982
59983         The beginnings of syntax-related checks for gnulib.
59984         * lib/Makefile: New file.
59985         * lib/t-idcache: New script.  Ensure that the two halves of
59986         idcache.c stay in sync.
59987
59988         * lib/idcache.c: Adjust comments in user- and group- portions to
59989         be more accurate, and to be consistent with one another.
59990
59991 2006-11-20  Jim Meyering  <jim@meyering.net>
59992
59993         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
59994         continue using the flexible array member (thus, this module performs
59995         half as many malloc calls), with the addition that...
59996         (getgroup, getuser): Consistently record a non-match via an empty
59997         "name" string, and map an empty string match to a NULL return value.
59998         * modules/idcache (Depends-on): Re-add flexmember.
59999
60000         * lib/idcache.c (getuser): Remove all uses of the register keyword.
60001         (getuidbyname, getgroup, getgidbyname): Likewise.
60002
60003         Use cleaner syntax: NULL rather than 0.
60004         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
60005
60006 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60007
60008         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
60009         It mishandled the case where the group was missing.
60010         Problem reported by Greg Schafer.
60011         * modules/idcache: Likewise.
60012
60013 2006-11-18  Jim Meyering  <jim@meyering.net>
60014
60015         * check-module (%exempt_header): Add exception for some
60016         conditionally-included headers.
60017
60018         * modules/i-ring (Depends-on): Add verify.
60019         (License): Change to LGPL.
60020
60021 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60022
60023         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
60024         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
60025         and inttostr.h.  Use snprintf rather than uinttostr, so that
60026         LGPLed code doesn't depend on GPLed.
60027
60028 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60029
60030         * modules/inline (License): Change from GPL to LGPL.
60031
60032 2006-11-17  Jim Meyering  <jim@meyering.net>
60033
60034         * modules/d-type (License): Switch to LGPL.
60035
60036 2006-11-15  Bruno Haible  <bruno@clisp.org>
60037
60038         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
60039
60040 2006-11-15  Eric Blake  <ebb9@byu.net>
60041
60042         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
60043         the module dependency.
60044
60045 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60046             Bruno Haible  <bruno@clisp.org>
60047
60048         * gnulib-tool (func_create_testdir): Add license consistency check.
60049
60050 2006-11-15  Eric Blake  <ebb9@byu.net>
60051
60052         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
60053         random "(cached)" in configure output.
60054
60055 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60056
60057         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
60058         test for conforming inttypes.h is both announced and cached.
60059
60060         * MODULES.html.sh (seen_modules, seen_files): New variables.
60061         (func_module): Rewrite to use a few less gnulib-tool and sed
60062         invocations.  Avoid a couple of quadratic algorithms for ...
60063         (missed_modules, missed_files): ... these, with ...
60064         (func_append, func_tmpdir): ... these new functions, from
60065         gnulib-tool.  Analogously, install traps for cleanup.
60066
60067         * tests/test-gc.c (main): Remove unused variables.
60068         * tests/test-read-file.c: Include stdlib.h, for 'free'.
60069
60070 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
60071
60072         * modules/inttostr (License): Change to LGPL.
60073
60074 2006-11-14  Eric Blake  <ebb9@byu.net>
60075
60076         * modules/tempname (License): Change to LGPL.
60077
60078 2006-11-14  Eric Blake  <ebb9@byu.net>
60079
60080         * doc/functions.texi (Function Portability): *printf functions on
60081         Cygwin now understand all POSIX size specifiers.
60082
60083 2006-11-14  Bruno Haible  <bruno@clisp.org>
60084
60085         * modules/c-ctype (License): Change to LGPL.
60086
60087 2006-11-12  Bruno Haible  <bruno@clisp.org>
60088
60089         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60090         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
60091         for GNOME libraries, for which the include files are installed in
60092         subdirectories of $prefix/include.
60093
60094 2006-11-12  Bruno Haible  <bruno@clisp.org>
60095
60096         * m4/lib-link.m4: Require at least autoconf-2.54.
60097         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
60098         name to underscores for the --with option.
60099
60100 2006-11-13  Bruno Haible  <bruno@clisp.org>
60101
60102         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
60103         the tests directory.
60104         Reported by Ralf Wildenhues.
60105
60106 2006-11-13  Bruno Haible  <bruno@clisp.org>
60107
60108         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
60109         (func_emit_initmacro_end): Undo the override here.
60110         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
60111         Works around the famous automake error in coreutils.
60112
60113 2006-11-13  Eric Blake  <ebb9@byu.net>
60114
60115         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
60116         element, not its node.
60117
60118 2006-11-12  Bruno Haible  <bruno@clisp.org>
60119
60120         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
60121         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
60122
60123 2006-11-12  Bruno Haible  <bruno@clisp.org>
60124
60125         * gnulib-tool: New option --local-symlink.
60126         (func_usage): Document it.
60127         (lsymbolic): New variable.
60128         (func_import, func_create_testdir): If --symlink was not specified,
60129         test whether --local-symlink was specified and the file comes from
60130         the local_gnulib_dir.
60131
60132 2006-11-12  Bruno Haible  <bruno@clisp.org>
60133
60134         * gnulib-tool (func_ln): New function.
60135         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
60136
60137 2006-11-12  Bruno Haible  <bruno@clisp.org>
60138
60139         Finish support for source files in subdirectories.
60140         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
60141         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
60142         AUTOMAKE_OPTIONS.
60143         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
60144
60145 2006-11-12  Bruno Haible  <bruno@clisp.org>
60146
60147         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60148         EXTRA_lib_SOURCES augmentation.
60149         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
60150
60151 2006-11-12  Jim Meyering  <jim@meyering.net>
60152
60153         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
60154         file descriptors.  This also averts a failure on systems with
60155         native openat support when a traversed directory lacks "x" access.
60156         * lib/fts_.h: Include "i-ring.h"
60157         (struct FTS) [fts_fd_ring]: New member.
60158         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
60159         (FCHDIR): Add parentheses.
60160         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
60161         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
60162         When descending, rather than simply closing the previous
60163         fts_cwd_fd value, push that file descriptor onto the ring.
60164         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
60165         (fts_open): Initialize the new fd_ring member.
60166         (fts_close): Clear the ring.
60167         (fts_safe_changedir): When possible, use our new fd_ring to skip
60168         the diropen and fstat and dev/ino comparison that would normally
60169         accompany a virtual `chdir ("..")'.
60170
60171         * modules/fts (Depends-on): Add i-ring.
60172         * modules/i-ring: New module.
60173         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
60174         * m4/i-ring.m4: New file.
60175
60176 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60177
60178         * gnulib-tool (func_create_testdir): Fix replacement of
60179         `build-aux' in configure.ac.  Run autotools in gltests
60180         subdirectory.
60181         (func_create_testdir, func_create_megatestdir, test): There is
60182         no need for '--force' in most autotool invocations in a new
60183         tree.  Actually fail the whole test if any of the tools, or the
60184         configure or make stages fail.
60185
60186         Sync from Automake.
60187         * build-aux/gnupload: Revert last change.  Add pointer to upload
60188         instructions of the GNU Maintenance Instructions.
60189         Suggestion by Karl Berry.
60190
60191 2006-11-10  Jim Meyering  <jim@meyering.net>
60192
60193         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
60194
60195 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60196
60197         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
60198         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
60199         (bind_textdomain_codeset) [! ENABLE_NLS]:
60200         Evaluate all the arguments.  That way, callers get compatible behavior
60201         if the arguments have side effects.  Also, it avoids some GCC
60202         diagnostics in some cases; Joel E. Denny reported problems when Bison
60203         was configured with --enable-gcc-warnigs.
60204
60205 2006-11-10  Jim Meyering  <jim@meyering.net>
60206
60207         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
60208         relevant options in CFLAGS (like -O, -fno-inline) are taken into
60209         account.
60210
60211 2006-11-10  Jim Meyering  <jim@meyering.net>
60212
60213         * modules/inline: New file/module.
60214         * modules/xalloc (Files): Remove m4/inline.m4.
60215         (Depends-on): Add inline, instead.
60216         * modules/oset: Likewise.
60217         * modules/list: Likewise.
60218
60219 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60220
60221         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
60222         Problem reported by Matthew Woehlke.
60223
60224 2006-11-09  Bruno Haible  <bruno@clisp.org>
60225
60226         * lib/tempname.c (gen_tempname): Remove variant that invokes
60227         __gen_tempname.
60228         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
60229         __gen_tempname.
60230
60231 2006-11-08  Bruno Haible  <bruno@clisp.org>
60232
60233         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
60234         to 'yes' instead of 'cross-compiling'.
60235
60236 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
60237
60238         * lib/quotearg.h (quotearg_free): New decl.
60239         * lib/quotearg.c (quotearg_free): New function.
60240         (slot0, nslots, slotvec0, slotvec):
60241         Now file-scope so that quotearg_free can get at them.
60242
60243 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60244
60245         Sync from Automake.
60246         * build-aux/gnupload: Add missing 'gnu' to example URL.
60247         Report by Karl Berry.
60248
60249 2006-11-08  Bruno Haible  <bruno@clisp.org>
60250
60251         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
60252         Suggested by Paul Eggert.
60253
60254 2006-11-08  Jim Meyering  <jim@meyering.net>
60255
60256         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
60257         It's already included if !_LIBC.
60258         (fts_safe_changedir): Add a comment.
60259
60260 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60261
60262         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
60263         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
60264         Matthew Woehlke.
60265
60266         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
60267         definitions up, to avoid colliding with change below.
60268         (static_inline) [HAVE_INLINE]: New macro.
60269         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
60270         Provide extern decls when !HAVE_INLINE.  Do not define unless
60271         static_inline is defined, either by us or by xmalloc.c.  Use
60272         static_inline rather than static inline.
60273         (XCALLOC): Optimize sizeof(T) = 1 case.
60274         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
60275
60276 2006-11-07  Bruno Haible  <bruno@clisp.org>
60277
60278         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
60279         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
60280         AC_C_INLINE.
60281         * modules/xalloc (Files): Add m4/inline.m4.
60282
60283 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60284
60285         * README: Fix typo.
60286         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
60287         (Miscellanous Notes): ...from this.
60288
60289 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60290
60291         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
60292         Mention that offsetof should be used instead of sizeof.
60293         From Bruno Haible.
60294
60295 2006-11-07  Bruno Haible  <bruno@clisp.org>
60296
60297         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
60298
60299 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60300
60301         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60302         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
60303         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60304         (gl_tree_add_before, gl_tree_add_after):
60305         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
60306         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
60307         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60308         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
60309         (gl_linked_add_after, gl_linked_add_at): Likewise.
60310         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
60311         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60312         (gl_tree_add_before, gl_tree_add_after): Likewise.
60313         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
60314         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
60315         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60316
60317 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60318
60319         * lib/gl_oset.h: Use C comment style, not C++ comment style.
60320
60321 2006-11-06  Bruno Haible  <bruno@clisp.org>
60322
60323         * m4/inline.m4: New file.
60324         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
60325         * modules/list (Files): Add m4/inline.m4.
60326         * modules/oset (Files): Likewise.
60327
60328 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60329
60330         * lib/idcache.c: Include <stddef.h>, for offsetof.
60331         (struct userid.name): Change from char * to a flexible array member.
60332         All uses changed.
60333         * modules/idcache (Depends-on): Add flexmember.
60334
60335         * MODULES.html.sh (Core language properties): New module flexmember.
60336         * modules/flexmember, m4/flexmember.m4: New files.
60337
60338         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
60339         inline functions that are identical with the old xnmalloc_inline,
60340         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
60341         that we can avoid some unnecessary integer multiplications and
60342         divisions in the common case where the element size is known at
60343         compile time.
60344         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
60345         needed.
60346         (xnboundedmalloc): Remove.
60347         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
60348         arguments, for consistency with rest of this header.
60349         (xcharalloc): Rewrite using XNMALLOC.
60350         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
60351         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
60352         versions have been moved to lib/xalloc.h and renamed to be the
60353         non-*_inline versions.
60354         (xmalloc, xrealloc): Implement without reference to the xnmalloc
60355         and xnrealloc functions, since those functions are now inline and
60356         now call us.
60357         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
60358         renaming described above.
60359         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
60360         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
60361         captures the dependency in AC_C_INLINE.
60362
60363         New module canonicalize-lgpl, proposed by Charles Wilson in
60364         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
60365         with a few small changes afterwards.
60366         * MODULES.html.sh (File system functions): New module
60367         canonicalize-lgpl.
60368         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
60369         and canonicalize_file_name.
60370         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
60371         * modules/canonicalize-lgpl: New files.
60372
60373 2006-11-05  Bruno Haible  <bruno@clisp.org>
60374
60375         * gnulib-tool (func_import, func_create_testdir): Create directories
60376         also for files in subdirectories of lib/.
60377
60378 2006-11-05  Bruno Haible  <bruno@clisp.org>
60379
60380         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
60381         ANSI C compliant.
60382
60383 2006-11-03  Bruno Haible  <bruno@clisp.org>
60384
60385         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60386         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
60387         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
60388         (xnboundedmalloc): New inline function.
60389         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
60390         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
60391         xmalloc.
60392         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
60393         xmalloc.
60394         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
60395         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
60396         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
60397         xmalloc.
60398         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60399         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
60400         xmalloc.
60401         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
60402         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60403         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
60404         xmalloc.
60405         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60406         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
60407         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60408         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
60409         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
60410         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
60411         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
60412
60413 2006-11-03  Bruno Haible  <bruno@clisp.org>
60414
60415         * lib/c-ctype.h [C++]: Define functions without name mangling.
60416         * lib/fwriteerror.h [C++]: Likewise.
60417         * lib/gcd.h [C++]: Likewise.
60418         * lib/linebreak.h [C++]: Likewise.
60419
60420 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60421
60422         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
60423         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
60424         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
60425         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60426         Check for functions and headers just once.
60427         Check for declaration of canonicalize_file_name.
60428         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
60429
60430 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60431
60432         * gnulib-tool (func_import): Fix typo in actioncmd.
60433
60434 2006-11-02  Bruno Haible  <bruno@clisp.org>
60435
60436         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
60437         newline sequence in the Makefile.am snippet as a space, like "make"
60438         does.
60439         Reported by Roger Persson <perrog@gmail.com>.
60440
60441 2006-11-01  Bruno Haible  <bruno@clisp.org>
60442
60443         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
60444         already declared in <string.h>.
60445         * lib/strcase.h (strncasecmp): Don't declare it if yes.
60446
60447 2006-11-01  Bruno Haible  <bruno@clisp.org>
60448
60449         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
60450         * lib/strcase.h: Include <string.h>.
60451         (strcasecmp): Define to rpl_strcasecmp here.
60452
60453 2006-11-01  Bruno Haible  <bruno@clisp.org>
60454
60455         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
60456
60457 2006-11-01  Eric Blake  <ebb9@byu.net>
60458
60459         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
60460
60461         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
60462
60463 2006-10-29  Bruno Haible  <bruno@clisp.org>
60464
60465         Make it compile in C++ mode.
60466         * lib/full-write.c (full_rw): Add a cast.
60467
60468 2006-11-01  Bruno Haible  <bruno@clisp.org>
60469
60470         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
60471         be POSIX compliant.
60472         Reported by Roger Persson <perrog@gmail.com>.
60473
60474 2006-11-01  Eric Blake  <ebb9@byu.net>
60475
60476         * lib/getopt_.h: Fix comments.
60477
60478 2006-10-31  Eric Blake  <ebb9@byu.net>
60479
60480         * modules/tmpdir (Depends-on): Add sys_stat.
60481         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
60482         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
60483         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
60484         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
60485         tempname.
60486
60487 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
60488
60489         Avoid some C++ diagnostics reported by Bruno Haible.
60490         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
60491         xmalloc.
60492         (quotearg_alloc): Use xcharalloc rather than xmalloc.
60493         (struct slotvec): Move to top level.
60494         (quotearg_n_options): Rewrite to avoid xmalloc.
60495         * lib/xalloc.h (xcharalloc): New function.
60496         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
60497         [defined __cplusplus]: Add function template that provides result
60498         type propagation.  This part of the change is from Bruno Haible.
60499
60500 2006-10-29  Bruno Haible  <bruno@clisp.org>
60501
60502         Make it compile in C++ mode.
60503         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
60504         * lib/strnlen1.c (strnlen1): Cast memchr result.
60505         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
60506         * lib/clean-temp.c (string_equals, string_hash): Add casts.
60507         (create_temp_dir): Rename local variable 'template'.
60508         (compile_csharp_using_sscli): Add cast.
60509         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
60510         * lib/findprog.c (find_in_path): Likewise.
60511         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
60512         * lib/wait-process.c (register_slave_subprocess): Likewise.
60513
60514 2006-10-22  Bruno Haible  <bruno@clisp.org>
60515
60516         * modules/tsearch: New file.
60517         * lib/tsearch.h: New file.
60518         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
60519         * m4/tsearch.m4: New file.
60520         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
60521
60522 2006-10-29  Eric Blake  <ebb9@byu.net>
60523
60524         * lib/arcfour.c: Assume config.h.
60525         * lib/arctwo.c: Likewise.
60526         * lib/base64.c: Likewise.
60527         * lib/check-version.c: Likewise.
60528         * lib/crc.c: Likewise.
60529         * lib/des.c: Likewise.
60530         * lib/gc-gnulib.c: Likewise.
60531         * lib/gc-libgcrypt.c: Likewise.
60532         * lib/gc-pbkdf2-sha1.c: Likewise.
60533         * lib/getaddrinfo.c: Likewise.
60534         * lib/getdelim.c: Likewise.
60535         * lib/getline.c: Likewise.
60536         * lib/hmac-md5.c: Likewise.
60537         * lib/hmac-sha1.c: Likewise.
60538         * lib/iconvme.c: Likewise.
60539         * lib/md2.c: Likewise.
60540         * lib/md4.c: Likewise.
60541         * lib/memxor.c: Likewise.
60542         * lib/read-file.c: Likewise.
60543         * lib/readline.c: Likewise.
60544         * lib/rijndael-alg-fst.c: Likewise.
60545         * lib/rijndael-api-fst.c: Likewise.
60546         * lib/xgetdomainname.c: Likewise.
60547
60548 2006-10-28  Eric Blake  <ebb9@byu.net>
60549
60550         * lib/xstrndup.c: Assume config.h.
60551
60552 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
60553
60554         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
60555         stat-macros.h is now for our own macros, whereas stat_h is for
60556         macros in the <sys/stat.h> name space.
60557         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
60558         (STAT_MACROS_H): Remove.
60559         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
60560         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
60561         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
60562         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
60563         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
60564         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
60565         Move these macros to ...
60566         * lib/stat_.h: here.  Don't include stat-macros.h.
60567         * lib/canonicalize.c: Don't include stat-macros.h.
60568         * lib/chown.c: Likewise.
60569         * lib/euidaccess.c: Likewise.
60570         * lib/file-type.c: Likewise.
60571         * lib/filemode.c: Likewise.
60572         * lib/glob.c: Likewise.
60573         * lib/isapipe.c: Likewise.
60574         * lib/lchown.c: Likewise.
60575         * lib/lstat.c: Likewise.
60576         * lib/mkdir-p.c: Likewise.
60577         * lib/rmdir.c: Likewise.
60578         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
60579         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
60580         unless mkdir isn't declared, to speed up 'configure'.
60581         Always create sys/stat.h, since it's unlikely any real sys/stat.h
60582         would define all the S_* symbols.
60583         * modules/canonicalize (Depends-on):
60584         Depend on sys_stat, not stat-macros.
60585         * modules/chown: Likewise.
60586         * modules/euidaccess: Likewise.
60587         * modules/filemode: Likewise.
60588         * modules/file-type: Likewise.
60589         * modules/glob: Likewise.
60590         * modules/isapipe: Likewise.
60591         * modules/lchown: Likewise.
60592         * modules/lstat: Likewise.
60593         * modules/mkancesdirs: Likewise.
60594         * modules/rmdir: Likewise.
60595         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
60596         * modules/modechange: Likewise.
60597         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
60598         (configure.ac): Remove gl_STAT_MACROS.
60599         * modules/sys_stat (Depends-on): Remove stat-macros.
60600
60601 2006-10-27  Bruno Haible  <bruno@clisp.org>
60602
60603         * m4/signed.m4: Remove file.
60604         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
60605         invocation.
60606         * modules/vasnprintf (Files): Remove m4/signed.m4.
60607
60608 2006-10-27  Bruno Haible  <bruno@clisp.org>
60609
60610         Update to GNU gettext 0.16.
60611         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
60612         m4/inttypes-h.m4, m4/signed.m4.
60613         * m4/gettext.m4: Update to GNU gettext 0.16.
60614         * m4/intl.m4: New file, from GNU gettext.
60615         * m4/intldir.m4: New file, from GNU gettext.
60616         * config/srclist.txt: Update
60617
60618 2006-10-27  Eric Blake  <ebb9@byu.net>
60619
60620         * MODULES.html.sh: Document tempname.
60621         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
60622         dependencies.
60623         (Files): Move lib/tempname.c...
60624         * modules/tempname: ...to this new module.
60625         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
60626         (gl_PREREQ_TEMPNAME): Move...
60627         * m4/tempname.m4: ...to this new file.
60628         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
60629         * modules/sys_stat (Depends-on): Add stat-macros.
60630         * lib/stat_.h (includes): Pick up stat macros.
60631         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
60632         if stat macros are broken.
60633         * lib/tempname.c (includes): No need to include "stat-macros.h".
60634         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
60635         (direxists, __path_search) [!_LIBC]: Don't compile these in
60636         gnulib; the tmpdir module covers that.
60637         * lib/tempname.h: New file.
60638
60639 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
60640
60641         * COPYING: Explain how gnulib-tool converts licence headers.
60642         Almost all wording by Eric Blake.
60643
60644 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
60645
60646         * lib/mbchar.h (is_basic_table): Make read-only.
60647         * lib/mbchar.c (is_basic_table): Likewise.
60648         Reported by John Darrington.
60649
60650 2006-10-25  Bruno Haible  <bruno@clisp.org>
60651
60652         * lib/progname.h (set_program_name): Undefine before defining.
60653
60654 2006-10-25  Bruno Haible  <bruno@clisp.org>
60655
60656         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
60657         false for non-gcc C++ compilers.
60658         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60659
60660 2006-10-24  Bruno Haible  <bruno@clisp.org>
60661
60662         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
60663         iconv implementations like Irix iconv.
60664
60665 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60666
60667         * modules/vararrays: New file.
60668         * m4/vararrays.m4: New file, taken from diffutils.
60669         * MODULES.html.sh: New module vararrays.
60670
60671 2006-10-24  Karl Berry  <karl@gnu.org>
60672
60673         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
60674         Don't call GNU Unix.
60675
60676 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60677
60678         * users.txt: Add Libtool.
60679
60680         Sync from Libtool:
60681
60682         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60683
60684         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
60685         to gnulib's policy of including config.h unconditionally.
60686
60687 2006-10-24  Bruno Haible  <bruno@clisp.org>
60688
60689         * modules/wcwidth (Files): Add m4/wint_t.m4.
60690         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
60691         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
60692
60693 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60694
60695         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
60696         to pacify GCC with some -W flags enabled.  Problem reported by
60697         Bruno Haible.
60698
60699 2006-10-24  Jim Meyering  <jim@meyering.net>
60700
60701         * MODULES.html.sh: Remove uinttostr.  It's not a module.
60702         Reported by Karl Berry.
60703
60704 2006-10-23  Bruno Haible  <bruno@clisp.org>
60705
60706         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
60707
60708 2006-10-24  Bruno Haible  <bruno@clisp.org>
60709
60710         * lib/gl_list.h: Use C comment style, not C++ comment style.
60711
60712 2006-10-23  Eric Blake  <ebb9@byu.net>
60713
60714         * lib/getaddrinfo.c (includes): Add missing include.
60715
60716 2006-10-23  Bruno Haible  <bruno@clisp.org>
60717             Paul Eggert  <eggert@cs.ucla.edu>
60718
60719         Ability to rename obstack_free.
60720         * lib/obstack.h (__obstack_free): New macro. Declare instead of
60721         obstack_free.
60722         (obstack_free): Invoke the __obstack_free macro.
60723         * lib/obstack.c (obstack_free): Use __obstack_free macro.
60724
60725 2006-10-23  Bruno Haible  <bruno@clisp.org>
60726             Paul Eggert  <eggert@cs.ucla.edu>
60727
60728         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
60729         __argc, __argv from the declaration. (They are defined as macros on
60730         mingw.)
60731
60732 2006-10-22  Bruno Haible  <bruno@clisp.org>
60733
60734         * doc/gnulib-intro.texi: New file.
60735         * doc/gnulib.texi: Include it.
60736
60737 2006-10-21  Bruno Haible  <bruno@clisp.org>
60738
60739         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
60740         "Introduction", "Miscellanous Notes", "Particular Modules".
60741
60742 2006-10-21  Bruno Haible  <bruno@clisp.org>
60743
60744         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60745         Change mostlyclean-local rule to avoid sh syntax error from bash
60746         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
60747
60748 2006-10-23  Jim Meyering  <jim@meyering.net>
60749
60750         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
60751         in place of snprintf.
60752
60753         * modules/inttostr (Files): Add lib/uinttostr.c.
60754         * lib/uinttostr.c (inttostr): New file/function.
60755         * lib/inttostr.h (uinttostr): Declare.
60756         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
60757         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
60758         Add uinttostr.
60759         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
60760
60761 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
60762
60763         * lib/canonicalize.c (ELOOP): Define if not already defined.
60764         Problem reported by Bruno Haible in
60765         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
60766
60767 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
60768
60769         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
60770         Problem reported by Perry Smith and Ville Laurikari.
60771
60772         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
60773         uses.
60774
60775 2006-10-19  Bruno Haible  <bruno@clisp.org>
60776
60777         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
60778         for mingw.
60779
60780 2006-10-19  Bruno Haible  <bruno@clisp.org>
60781
60782         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
60783         Needed for mingw.
60784
60785 2006-10-19  Bruno Haible  <bruno@clisp.org>
60786
60787         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
60788
60789 2006-10-19  Bruno Haible  <bruno@clisp.org>
60790
60791         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
60792         it.
60793
60794 2006-10-19  Bruno Haible  <bruno@clisp.org>
60795
60796         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
60797         invocation.
60798
60799 2006-10-19  Bruno Haible  <bruno@clisp.org>
60800
60801         * gnulib-tool (func_create_testdir): Don't include ftruncate and
60802         mountlist by default.
60803
60804 2006-10-16  Bruno Haible  <bruno@clisp.org>
60805
60806         * lib/c-strstr.c: Include c-strstr.h.
60807
60808 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60809
60810         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
60811         in a slash.
60812
60813 2006-10-18  Bruno Haible  <bruno@clisp.org>
60814
60815         * lib/lock.h [C++]: Wrap definitions in extern "C".
60816
60817 2006-10-18  Bruno Haible  <bruno@clisp.org>
60818
60819         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
60820         gl_LIBOBJS list.
60821
60822 2006-10-18  Bruno Haible  <bruno@clisp.org>
60823
60824         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
60825
60826 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
60827
60828         * lib/xstrtol.h: Include gettext.h.
60829         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
60830         Problem reported by Eric Blake.
60831         * modules/xstrtol (Depends-on): Add gettext-h.
60832
60833 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
60834
60835         * lib/strftime.c (advance): New macro.
60836         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
60837         incomplete type, so you can't add 0 to it.  Problem and patch
60838         reported by Eelco Dolstra for dietlibc.
60839
60840 2006-10-18  Jim Meyering  <jim@meyering.net>
60841
60842         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
60843         type for a local, and rename it: s/up/user_proc/.
60844
60845 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
60846
60847         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
60848         READ_UTMP_USER_PROCESS.
60849         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
60850
60851 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60852
60853         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
60854         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
60855
60856 2006-10-17  Eric Blake  <ebb9@byu.net>
60857
60858         * lib/sigprocmask.c (sigprocmask): Fix typo.
60859
60860         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
60861
60862         * modules/clean-temp (Makefile.am): Don't add to make output...
60863         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
60864         config.h.
60865
60866 2006-10-17  Bruno Haible  <bruno@clisp.org>
60867
60868         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
60869         differently if DEFAULT_TEXT_DOMAIN is set.
60870
60871 2006-10-16  Bruno Haible  <bruno@clisp.org>
60872
60873         * lib/clean-temp.c: Include fwriteerror.h.
60874
60875 2006-10-16  Bruno Haible  <bruno@clisp.org>
60876
60877         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
60878
60879 2006-10-16  Bruno Haible  <bruno@clisp.org>
60880
60881         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
60882         * lib/sigprocmask.h: Include <sys/types.h>.
60883         (sigset_t): Use the system's definition if present.
60884
60885 2006-10-17  Eric Blake  <ebb9@byu.net>
60886
60887         * lib/xvasprintf.c (includes): Assume config.h.
60888         * lib/xasprintf.c (includes): Likewise.
60889
60890 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60891
60892         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
60893         at least as wide as intmax_t.
60894
60895 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
60896
60897         (Imported from Automake.)
60898         * build-aux/gnupload: Update to version 1.1 of directive file.
60899
60900 2006-10-16  Eric Blake  <ebb9@byu.net>
60901
60902         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
60903         match Automake 1.10a.
60904
60905 2006-10-14  Bruno Haible  <bruno@clisp.org>
60906
60907         * modules/sigprocmask: New file.
60908         * lib/sigprocmask.h: New file.
60909         * lib/sigprocmask.c: New file.
60910         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
60911         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
60912         request sigprocmask.o.
60913         (gl_PREREQ_SIGPROCMASK): New macro.
60914         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
60915         (Depends-on): Add sigprocmask.
60916         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
60917         gt_SIGNALBLOCKING. Test for 'raise' only once.
60918         * lib/fatal-signal.c: Include sigprocmask.h.
60919         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
60920         unblock_fatal_signals): Define always.
60921         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60922         sigprocmask.
60923
60924 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
60925
60926         Sync from Automake.
60927         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
60928         which incorrectly sets the mode of an existing destination
60929         directory.  In some cases the unpatched install-sh could do the
60930         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
60931         system.  We hope this is rare in practice, but it's clearly worth
60932         fixing.  Problem reported by Alex Unleashed in
60933         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
60934         Also, don't bother to check for -m bugs unless we're using -m;
60935         suggested by Stepan Kasal.
60936
60937 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60938
60939         Sync from Automake.
60940         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
60941         `-c' flag, so they appear at the same position as in %FASTDEP%
60942         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
60943         which ignores unknown options only after the first non-option.
60944         Bug report against M4 by Nelson H. F. Beebe.
60945
60946 2006-10-13  Jim Meyering  <jim@meyering.net>
60947
60948         Fix a bug in yesterday's change.
60949         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
60950         p->fts_statp->st_dev would be used uninitialized.
60951         Ensures that we always call fts_stat on the very first entry.
60952         Miklos Szeredi reported that find -xdev stopped working.
60953
60954 2006-10-12  Bruno Haible  <bruno@clisp.org>
60955
60956         * gnulib-tool (func_get_automake_snippet): Append an automatically
60957         computed EXTRA_DIST augmentation.
60958         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
60959         * modules/alloca-opt (Makefile.am): Likewise.
60960         * modules/allocsa (Makefile.am): Likewise.
60961         * modules/arcfour (Makefile.am): Likewise.
60962         * modules/arctwo (Makefile.am): Likewise.
60963         * modules/argmatch (Makefile.am): Likewise.
60964         * modules/argz (Makefile.am): Likewise.
60965         * modules/atexit (Makefile.am): Likewise.
60966         * modules/backupfile (Makefile.am): Likewise.
60967         * modules/byteswap (Makefile.am): Likewise.
60968         * modules/c-strtod (Makefile.am): Likewise.
60969         * modules/c-strtold (Makefile.am): Likewise.
60970         * modules/calloc (Makefile.am): Likewise.
60971         * modules/canon-host (Makefile.am): Likewise.
60972         * modules/canonicalize (Makefile.am): Likewise.
60973         * modules/chdir-long (Makefile.am): Likewise.
60974         * modules/chdir-safer (Makefile.am): Likewise.
60975         * modules/check-version (Makefile.am): Likewise.
60976         * modules/chown (Makefile.am): Likewise.
60977         * modules/cloexec (Makefile.am): Likewise.
60978         * modules/close-stream (Makefile.am): Likewise.
60979         * modules/closeout (Makefile.am): Likewise.
60980         * modules/crc (Makefile.am): Likewise.
60981         * modules/csharpexec (Makefile.am): Likewise.
60982         * modules/cycle-check (Makefile.am): Likewise.
60983         * modules/des (Makefile.am): Likewise.
60984         * modules/dev-ino (Makefile.am): Likewise.
60985         * modules/dirfd (Makefile.am): Likewise.
60986         * modules/dirname (Makefile.am): Likewise.
60987         * modules/dup2 (Makefile.am): Likewise.
60988         * modules/eealloc (Makefile.am): Likewise.
60989         * modules/error (Makefile.am): Likewise.
60990         * modules/euidaccess (Makefile.am): Likewise.
60991         * modules/exclude (Makefile.am): Likewise.
60992         * modules/exitfail (Makefile.am): Likewise.
60993         * modules/fcntl-safer (Makefile.am): Likewise.
60994         * modules/fcntl (Makefile.am): Likewise.
60995         * modules/file-type (Makefile.am): Likewise.
60996         * modules/fileblocks (Makefile.am): Likewise.
60997         * modules/filemode (Makefile.am): Likewise.
60998         * modules/filenamecat (Makefile.am): Likewise.
60999         * modules/fnmatch (Makefile.am): Likewise.
61000         * modules/fopen-safer (Makefile.am): Likewise.
61001         * modules/fpending (Makefile.am): Likewise.
61002         * modules/fprintftime (Makefile.am): Likewise.
61003         * modules/free (Makefile.am): Likewise.
61004         * modules/fsusage (Makefile.am): Likewise.
61005         * modules/ftruncate (Makefile.am): Likewise.
61006         * modules/fts (Makefile.am): Likewise.
61007         * modules/gc-arcfour (Makefile.am): Likewise.
61008         * modules/gc-des (Makefile.am): Likewise.
61009         * modules/gc-hmac-md5 (Makefile.am): Likewise.
61010         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
61011         * modules/gc-md4 (Makefile.am): Likewise.
61012         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61013         * modules/gc-sha1 (Makefile.am): Likewise.
61014         * modules/gc (Makefile.am): Likewise.
61015         * modules/getaddrinfo (Makefile.am): Likewise.
61016         * modules/getcwd (Makefile.am): Likewise.
61017         * modules/getdelim (Makefile.am): Likewise.
61018         * modules/getdomainname (Makefile.am): Likewise.
61019         * modules/getgroups (Makefile.am): Likewise.
61020         * modules/gethostname (Makefile.am): Likewise.
61021         * modules/gethrxtime (Makefile.am): Likewise.
61022         * modules/getline (Makefile.am): Likewise.
61023         * modules/getloadavg (Makefile.am): Likewise.
61024         * modules/getlogin_r (Makefile.am): Likewise.
61025         * modules/getndelim2 (Makefile.am): Likewise.
61026         * modules/getopt (Makefile.am): Likewise.
61027         * modules/getpagesize (Makefile.am): Likewise.
61028         * modules/getpass-gnu (Makefile.am): Likewise.
61029         * modules/getpass (Makefile.am): Likewise.
61030         * modules/getsubopt (Makefile.am): Likewise.
61031         * modules/gettime (Makefile.am): Likewise.
61032         * modules/gettimeofday (Makefile.am): Likewise.
61033         * modules/getugroups (Makefile.am): Likewise.
61034         * modules/getusershell (Makefile.am): Likewise.
61035         * modules/glob (Makefile.am): Likewise.
61036         * modules/group-member (Makefile.am): Likewise.
61037         * modules/hard-locale (Makefile.am): Likewise.
61038         * modules/hash (Makefile.am): Likewise.
61039         * modules/hmac-md5 (Makefile.am): Likewise.
61040         * modules/hmac-sha1 (Makefile.am): Likewise.
61041         * modules/human (Makefile.am): Likewise.
61042         * modules/idcache (Makefile.am): Likewise.
61043         * modules/imaxabs (Makefile.am): Likewise.
61044         * modules/imaxdiv (Makefile.am): Likewise.
61045         * modules/inet_ntop (Makefile.am): Likewise.
61046         * modules/inet_pton (Makefile.am): Likewise.
61047         * modules/intprops (Makefile.am): Likewise.
61048         * modules/inttostr (Makefile.am): Likewise.
61049         * modules/inttypes (Makefile.am): Likewise.
61050         * modules/isapipe (Makefile.am): Likewise.
61051         * modules/javaversion (Makefile.am): Likewise.
61052         * modules/lchmod (Makefile.am): Likewise.
61053         * modules/lchown (Makefile.am): Likewise.
61054         * modules/localcharset (Makefile.am): Likewise.
61055         * modules/long-options (Makefile.am): Likewise.
61056         * modules/lstat (Makefile.am): Likewise.
61057         * modules/malloc (Makefile.am): Likewise.
61058         * modules/mathl (Makefile.am): Likewise.
61059         * modules/mbchar (Makefile.am): Likewise.
61060         * modules/md2 (Makefile.am): Likewise.
61061         * modules/md4 (Makefile.am): Likewise.
61062         * modules/md5 (Makefile.am): Likewise.
61063         * modules/memcasecmp (Makefile.am): Likewise.
61064         * modules/memchr (Makefile.am): Likewise.
61065         * modules/memcmp (Makefile.am): Likewise.
61066         * modules/memcoll (Makefile.am): Likewise.
61067         * modules/memcpy (Makefile.am): Likewise.
61068         * modules/memmem (Makefile.am): Likewise.
61069         * modules/memmove (Makefile.am): Likewise.
61070         * modules/mempcpy (Makefile.am): Likewise.
61071         * modules/memrchr (Makefile.am): Likewise.
61072         * modules/memset (Makefile.am): Likewise.
61073         * modules/memxor (Makefile.am): Likewise.
61074         * modules/mkancesdirs (Makefile.am): Likewise.
61075         * modules/mkdir-p (Makefile.am): Likewise.
61076         * modules/mkdir (Makefile.am): Likewise.
61077         * modules/mkdtemp (Makefile.am): Likewise.
61078         * modules/mkstemp (Makefile.am): Likewise.
61079         * modules/mktime (Makefile.am): Likewise.
61080         * modules/modechange (Makefile.am): Likewise.
61081         * modules/mountlist (Makefile.am): Likewise.
61082         * modules/nanosleep (Makefile.am): Likewise.
61083         * modules/obstack (Makefile.am): Likewise.
61084         * modules/openat (Makefile.am): Likewise.
61085         * modules/pagealign_alloc (Makefile.am): Likewise.
61086         * modules/pathmax (Makefile.am): Likewise.
61087         * modules/physmem (Makefile.am): Likewise.
61088         * modules/poll (Makefile.am): Likewise.
61089         * modules/posixtm (Makefile.am): Likewise.
61090         * modules/posixver (Makefile.am): Likewise.
61091         * modules/putenv (Makefile.am): Likewise.
61092         * modules/quote (Makefile.am): Likewise.
61093         * modules/quotearg (Makefile.am): Likewise.
61094         * modules/raise (Makefile.am): Likewise.
61095         * modules/read-file (Makefile.am): Likewise.
61096         * modules/readline (Makefile.am): Likewise.
61097         * modules/readlink (Makefile.am): Likewise.
61098         * modules/readtokens (Makefile.am): Likewise.
61099         * modules/readutmp (Makefile.am): Likewise.
61100         * modules/realloc (Makefile.am): Likewise.
61101         * modules/regex (Makefile.am): Likewise.
61102         * modules/rename-dest-slash (Makefile.am): Likewise.
61103         * modules/rename (Makefile.am): Likewise.
61104         * modules/rijndael (Makefile.am): Likewise.
61105         * modules/rmdir (Makefile.am): Likewise.
61106         * modules/rpmatch (Makefile.am): Likewise.
61107         * modules/safe-read (Makefile.am): Likewise.
61108         * modules/safe-write (Makefile.am): Likewise.
61109         * modules/same-inode (Makefile.am): Likewise.
61110         * modules/same (Makefile.am): Likewise.
61111         * modules/save-cwd (Makefile.am): Likewise.
61112         * modules/savedir (Makefile.am): Likewise.
61113         * modules/setenv (Makefile.am): Likewise.
61114         * modules/settime (Makefile.am): Likewise.
61115         * modules/sha1 (Makefile.am): Likewise.
61116         * modules/sig2str (Makefile.am): Likewise.
61117         * modules/snprintf (Makefile.am): Likewise.
61118         * modules/stat-macros (Makefile.am): Likewise.
61119         * modules/stat-time (Makefile.am): Likewise.
61120         * modules/stdbool (Makefile.am): Likewise.
61121         * modules/stdint (Makefile.am): Likewise.
61122         * modules/stdlib-safer (Makefile.am): Likewise.
61123         * modules/stpcpy (Makefile.am): Likewise.
61124         * modules/stpncpy (Makefile.am): Likewise.
61125         * modules/strcase (Makefile.am): Likewise.
61126         * modules/strcasestr (Makefile.am): Likewise.
61127         * modules/strchrnul (Makefile.am): Likewise.
61128         * modules/strcspn (Makefile.am): Likewise.
61129         * modules/strdup (Makefile.am): Likewise.
61130         * modules/strerror (Makefile.am): Likewise.
61131         * modules/strftime (Makefile.am): Likewise.
61132         * modules/strndup (Makefile.am): Likewise.
61133         * modules/strnlen (Makefile.am): Likewise.
61134         * modules/strpbrk (Makefile.am): Likewise.
61135         * modules/strsep (Makefile.am): Likewise.
61136         * modules/strstr (Makefile.am): Likewise.
61137         * modules/strtod (Makefile.am): Likewise.
61138         * modules/strtoimax (Makefile.am): Likewise.
61139         * modules/strtok_r (Makefile.am): Likewise.
61140         * modules/strtol (Makefile.am): Likewise.
61141         * modules/strtoll (Makefile.am): Likewise.
61142         * modules/strtoul (Makefile.am): Likewise.
61143         * modules/strtoull (Makefile.am): Likewise.
61144         * modules/strtoumax (Makefile.am): Likewise.
61145         * modules/strverscmp (Makefile.am): Likewise.
61146         * modules/sys_socket (Makefile.am): Likewise.
61147         * modules/sys_stat (Makefile.am): Likewise.
61148         * modules/sysexits (Makefile.am): Likewise.
61149         * modules/time_r (Makefile.am): Likewise.
61150         * modules/timegm (Makefile.am): Likewise.
61151         * modules/timespec (Makefile.am): Likewise.
61152         * modules/tmpfile-safer (Makefile.am): Likewise.
61153         * modules/trim (Makefile.am): Likewise.
61154         * modules/unistd-safer (Makefile.am): Likewise.
61155         * modules/unlinkdir (Makefile.am): Likewise.
61156         * modules/unlocked-io (Makefile.am): Likewise.
61157         * modules/userspec (Makefile.am): Likewise.
61158         * modules/utime (Makefile.am): Likewise.
61159         * modules/utimecmp (Makefile.am): Likewise.
61160         * modules/utimens (Makefile.am): Likewise.
61161         * modules/vasnprintf (Makefile.am): Likewise.
61162         * modules/vasprintf (Makefile.am): Likewise.
61163         * modules/vsnprintf (Makefile.am): Likewise.
61164         * modules/xalloc (Makefile.am): Likewise.
61165         * modules/xgetcwd (Makefile.am): Likewise.
61166         * modules/xnanosleep (Makefile.am): Likewise.
61167         * modules/xreadlink (Makefile.am): Likewise.
61168         * modules/xstrtod (Makefile.am): Likewise.
61169         * modules/xstrtol (Makefile.am): Likewise.
61170         * modules/xstrtold (Makefile.am): Likewise.
61171         * modules/yesno (Makefile.am): Likewise.
61172         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
61173
61174 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61175
61176         * modules/error (Makefile.am): Distribute files through
61177         EXTRA_DIST, not lib_SOURCES.
61178
61179 2006-10-12  Eric Blake  <ebb9@byu.net>
61180
61181         * modules/error (Makefile.am): Distribute files in /lib.
61182         * modules/obstack (Makefile.am): Likewise.
61183
61184 2006-10-12  Bruno Haible  <bruno@clisp.org>
61185
61186         * modules/acl (Makefile.am): Distribute all files in lib/ through
61187         EXTRA_DIST.
61188         * modules/arcfour (Makefile.am): Likewise.
61189         * modules/arctwo (Makefile.am): Likewise.
61190         * modules/argmatch (Makefile.am): Likewise.
61191         * modules/argz (Makefile.am): Likewise.
61192         * modules/atexit (Makefile.am): Likewise.
61193         * modules/backupfile (Makefile.am): Likewise.
61194         * modules/c-strtod (Makefile.am): Likewise.
61195         * modules/c-strtold (Makefile.am): Likewise.
61196         * modules/calloc (Makefile.am): Likewise.
61197         * modules/canon-host (Makefile.am): Likewise.
61198         * modules/canonicalize (Makefile.am): Likewise.
61199         * modules/chdir-long (Makefile.am): Likewise.
61200         * modules/chdir-safer (Makefile.am): Likewise.
61201         * modules/check-version (Makefile.am): Likewise.
61202         * modules/chown (Makefile.am): Likewise.
61203         * modules/cloexec (Makefile.am): Likewise.
61204         * modules/close-stream (Makefile.am): Likewise.
61205         * modules/closeout (Makefile.am): Likewise.
61206         * modules/crc (Makefile.am): Likewise.
61207         * modules/cycle-check (Makefile.am): Likewise.
61208         * modules/des (Makefile.am): Likewise.
61209         * modules/dirfd (Makefile.am): Likewise.
61210         * modules/dirname (Makefile.am): Likewise.
61211         * modules/dup2 (Makefile.am): Likewise.
61212         * modules/euidaccess (Makefile.am): Likewise.
61213         * modules/exclude (Makefile.am): Likewise.
61214         * modules/exitfail (Makefile.am): Likewise.
61215         * modules/fcntl-safer (Makefile.am): Likewise.
61216         * modules/file-type (Makefile.am): Likewise.
61217         * modules/fileblocks (Makefile.am): Likewise.
61218         * modules/filemode (Makefile.am): Likewise.
61219         * modules/filenamecat (Makefile.am): Likewise.
61220         * modules/fnmatch (Makefile.am): Likewise.
61221         * modules/fopen-safer (Makefile.am): Likewise.
61222         * modules/fpending (Makefile.am): Likewise.
61223         * modules/fprintftime (Makefile.am): Likewise.
61224         * modules/free (Makefile.am): Likewise.
61225         * modules/fsusage (Makefile.am): Likewise.
61226         * modules/ftruncate (Makefile.am): Likewise.
61227         * modules/fts (Makefile.am): Likewise.
61228         * modules/gc (Makefile.am): Likewise.
61229         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61230         * modules/getaddrinfo (Makefile.am): Likewise.
61231         * modules/getcwd (Makefile.am): Likewise.
61232         * modules/getdelim (Makefile.am): Likewise.
61233         * modules/getdomainname (Makefile.am): Likewise.
61234         * modules/getgroups (Makefile.am): Likewise.
61235         * modules/gethostname (Makefile.am): Likewise.
61236         * modules/gethrxtime (Makefile.am): Likewise.
61237         * modules/getline (Makefile.am): Likewise.
61238         * modules/getloadavg (Makefile.am): Likewise.
61239         * modules/getlogin_r (Makefile.am): Likewise.
61240         * modules/getopt (Makefile.am): Likewise.
61241         * modules/getpass (Makefile.am): Likewise.
61242         * modules/getpass-gnu (Makefile.am): Likewise.
61243         * modules/getsubopt (Makefile.am): Likewise.
61244         * modules/gettime (Makefile.am): Likewise.
61245         * modules/gettimeofday (Makefile.am): Likewise.
61246         * modules/getugroups (Makefile.am): Likewise.
61247         * modules/getusershell (Makefile.am): Likewise.
61248         * modules/glob (Makefile.am): Likewise.
61249         * modules/group-member (Makefile.am): Likewise.
61250         * modules/hard-locale (Makefile.am): Likewise.
61251         * modules/hash (Makefile.am): Likewise.
61252         * modules/hmac-md5 (Makefile.am): Likewise.
61253         * modules/hmac-sha1 (Makefile.am): Likewise.
61254         * modules/human (Makefile.am): Likewise.
61255         * modules/idcache (Makefile.am): Likewise.
61256         * modules/imaxabs (Makefile.am): Likewise.
61257         * modules/imaxdiv (Makefile.am): Likewise.
61258         * modules/inet_ntop (Makefile.am): Likewise.
61259         * modules/inet_pton (Makefile.am): Likewise.
61260         * modules/inttostr (Makefile.am): Likewise.
61261         * modules/isapipe (Makefile.am): Likewise.
61262         * modules/lchown (Makefile.am): Likewise.
61263         * modules/long-options (Makefile.am): Likewise.
61264         * modules/lstat (Makefile.am): Likewise.
61265         * modules/malloc (Makefile.am): Likewise.
61266         * modules/mathl (Makefile.am): Likewise.
61267         * modules/mbchar (Makefile.am): Likewise.
61268         * modules/md2 (Makefile.am): Likewise.
61269         * modules/md4 (Makefile.am): Likewise.
61270         * modules/md5 (Makefile.am): Likewise.
61271         * modules/memcasecmp (Makefile.am): Likewise.
61272         * modules/memchr (Makefile.am): Likewise.
61273         * modules/memcmp (Makefile.am): Likewise.
61274         * modules/memcoll (Makefile.am): Likewise.
61275         * modules/memcpy (Makefile.am): Likewise.
61276         * modules/memmem (Makefile.am): Likewise.
61277         * modules/memmove (Makefile.am): Likewise.
61278         * modules/mempcpy (Makefile.am): Likewise.
61279         * modules/memrchr (Makefile.am): Likewise.
61280         * modules/memset (Makefile.am): Likewise.
61281         * modules/memxor (Makefile.am): Likewise.
61282         * modules/mkancesdirs (Makefile.am): Likewise.
61283         * modules/mkdir (Makefile.am): Likewise.
61284         * modules/mkdir-p (Makefile.am): Likewise.
61285         * modules/mkdtemp (Makefile.am): Likewise.
61286         * modules/mkstemp (Makefile.am): Likewise.
61287         * modules/mktime (Makefile.am): Likewise.
61288         * modules/modechange (Makefile.am): Likewise.
61289         * modules/mountlist (Makefile.am): Likewise.
61290         * modules/nanosleep (Makefile.am): Likewise.
61291         * modules/openat (Makefile.am): Likewise.
61292         * modules/pagealign_alloc (Makefile.am): Likewise.
61293         * modules/physmem (Makefile.am): Likewise.
61294         * modules/poll (Makefile.am): Likewise.
61295         * modules/posixtm (Makefile.am): Likewise.
61296         * modules/posixver (Makefile.am): Likewise.
61297         * modules/putenv (Makefile.am): Likewise.
61298         * modules/quote (Makefile.am): Likewise.
61299         * modules/quotearg (Makefile.am): Likewise.
61300         * modules/raise (Makefile.am): Likewise.
61301         * modules/read-file (Makefile.am): Likewise.
61302         * modules/readline (Makefile.am): Likewise.
61303         * modules/readlink (Makefile.am): Likewise.
61304         * modules/readtokens (Makefile.am): Likewise.
61305         * modules/readutmp (Makefile.am): Likewise.
61306         * modules/realloc (Makefile.am): Likewise.
61307         * modules/regex (Makefile.am): Likewise.
61308         * modules/rename (Makefile.am): Likewise.
61309         * modules/rename-dest-slash (Makefile.am): Likewise.
61310         * modules/rijndael (Makefile.am): Likewise.
61311         * modules/rmdir (Makefile.am): Likewise.
61312         * modules/rpmatch (Makefile.am): Likewise.
61313         * modules/safe-read (Makefile.am): Likewise.
61314         * modules/safe-write (Makefile.am): Likewise.
61315         * modules/same (Makefile.am): Likewise.
61316         * modules/save-cwd (Makefile.am): Likewise.
61317         * modules/savedir (Makefile.am): Likewise.
61318         * modules/setenv (Makefile.am): Likewise.
61319         * modules/settime (Makefile.am): Likewise.
61320         * modules/sha1 (Makefile.am): Likewise.
61321         * modules/sig2str (Makefile.am): Likewise.
61322         * modules/snprintf (Makefile.am): Likewise.
61323         * modules/stdlib-safer (Makefile.am): Likewise.
61324         * modules/stpcpy (Makefile.am): Likewise.
61325         * modules/stpncpy (Makefile.am): Likewise.
61326         * modules/strcase (Makefile.am): Likewise.
61327         * modules/strcasestr (Makefile.am): Likewise.
61328         * modules/strchrnul (Makefile.am): Likewise.
61329         * modules/strcspn (Makefile.am): Likewise.
61330         * modules/strdup (Makefile.am): Likewise.
61331         * modules/strerror (Makefile.am): Likewise.
61332         * modules/strftime (Makefile.am): Likewise.
61333         * modules/strndup (Makefile.am): Likewise.
61334         * modules/strnlen (Makefile.am): Likewise.
61335         * modules/strpbrk (Makefile.am): Likewise.
61336         * modules/strsep (Makefile.am): Likewise.
61337         * modules/strstr (Makefile.am): Likewise.
61338         * modules/strtod (Makefile.am): Likewise.
61339         * modules/strtoimax (Makefile.am): Likewise.
61340         * modules/strtok_r (Makefile.am): Likewise.
61341         * modules/strtol (Makefile.am): Likewise.
61342         * modules/strtoll (Makefile.am): Likewise.
61343         * modules/strtoul (Makefile.am): Likewise.
61344         * modules/strtoull (Makefile.am): Likewise.
61345         * modules/strtoumax (Makefile.am): Likewise.
61346         * modules/strverscmp (Makefile.am): Likewise.
61347         * modules/time_r (Makefile.am): Likewise.
61348         * modules/timegm (Makefile.am): Likewise.
61349         * modules/tmpfile-safer (Makefile.am): Likewise.
61350         * modules/unistd-safer (Makefile.am): Likewise.
61351         * modules/unlinkdir (Makefile.am): Likewise.
61352         * modules/userspec (Makefile.am): Likewise.
61353         * modules/utime (Makefile.am): Likewise.
61354         * modules/utimecmp (Makefile.am): Likewise.
61355         * modules/utimens (Makefile.am): Likewise.
61356         * modules/vasnprintf (Makefile.am): Likewise.
61357         * modules/vasprintf (Makefile.am): Likewise.
61358         * modules/vsnprintf (Makefile.am): Likewise.
61359         * modules/xalloc (Makefile.am): Likewise.
61360         * modules/xgetcwd (Makefile.am): Likewise.
61361         * modules/xnanosleep (Makefile.am): Likewise.
61362         * modules/xreadlink (Makefile.am): Likewise.
61363         * modules/xstrtod (Makefile.am): Likewise.
61364         * modules/xstrtol (Makefile.am): Likewise.
61365         * modules/xstrtold (Makefile.am): Likewise.
61366         * modules/yesno (Makefile.am): Likewise.
61367
61368 2006-10-12  Jim Meyering  <jim@meyering.net>
61369
61370         * m4/getloadavg.m4: Revert the change below.
61371
61372         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
61373         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
61374         fail with a symlink, which is what coreutils' ./bootstrap now
61375         creates by default.
61376
61377 2006-10-12  Bruno Haible  <bruno@clisp.org>
61378
61379         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
61380         mingw.
61381         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
61382         MSVC and mingw explicitly.
61383
61384 2006-10-11  Simon Josefsson  <jas@extundo.com>
61385             Bruno Haible  <bruno@clisp.org>
61386
61387         Add support for multiple gnulib-tool invocations in the scope of a
61388         single configure.ac file.
61389         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
61390         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
61391         with the same contents as the _LIBADD variable.
61392         (func_emit_initmacro_start, func_emit_initmacro_end,
61393         func_emit_initmacro_done): New functions.
61394         (func_import, func_create_testdir): Invoke them. Allow the identifiers
61395         gl_LIBOBJS and gl_LTLIBOBJS.
61396
61397 2006-10-11  Bruno Haible  <bruno@clisp.org>
61398
61399         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
61400         (func_create_testdir): Don't create po/Makefile.am, don't invoke
61401         autoreconf. Instead, invoke autopoint explicitly but move back the
61402         *.m4 files from gnulib.
61403
61404 2006-10-11  Bruno Haible  <bruno@clisp.org>
61405
61406         * gnulib-tool (func_usage): Make module names after --create-testdir
61407         optional.
61408         (func_create_testdir): If no module was specified, use nearly all
61409         modules.
61410
61411 2006-10-12  Jim Meyering  <jim@meyering.net>
61412
61413         Big performance improvement for fts-based tools that use FTS_NOSTAT.
61414         Avoid spurious inode-mismatch problems on non-POSIX file systems.
61415         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
61416         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
61417         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
61418         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
61419         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
61420         (fts_set_stat_required): New function.
61421         (fts_open): Defer the calls to fts_stat, if possible or requested.
61422         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
61423         into fts_stat itself.
61424         (fts_read): Perform any required (deferred) fts_stat call.
61425         (fts_build): Likewise, for the directory we're about to open and read.
61426         In the readdir loop, carefully decide whether each entry will require
61427         an eventual call to fts_stat, using dirent.d_type info if available.
61428         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
61429         a command line argument into this function.  Update all callers.
61430         Map a return value of FTS_DOT to FTS_D for a command line argument.
61431         * modules/fts (Depends-on): Add d-type.  Alphabetize.
61432         Thanks to Miklos Szeredi for his tenacity and for the initial
61433         bug report about "find" failing on a FUSE-based file system.
61434
61435         * lib/fts.c (fts_open): Use consistent indentation.
61436
61437 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61438
61439         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
61440         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
61441         reported by Jim Meyering.  All uses of cache variables renamed
61442         to match Autoconf's.
61443         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
61444         the other one.
61445
61446         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
61447         Fix misspelling in diagnostic.
61448
61449 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61450
61451         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
61452         defined.  Problem reported by Matthew Woehlke.
61453
61454         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
61455         Add support for Tandem NonStop R series.
61456         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
61457         Use new macro.
61458
61459         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
61460         (has_trailing_slash): Omit size arg; all callers changed.
61461         Omit 'inline', since it doesn't help performance and we'd
61462         need to configure it.
61463         Don't count //, ///, etc. as having a trailing slash.
61464         As a side effect, this removes a C99ism reported by Matthew Woehlke.
61465         (rpl_rename_dest_slash): On failure, use rename's errno rather
61466         than (in some cases) an incorrect or junk errno.
61467         Simplify code by removing need to compute length; this does
61468         cause it to make two passes instead of one over the file name,
61469         but it's worth it.
61470
61471         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
61472         change, since Autoconf's version may no longer be appropriate now
61473         that we are using CVS Autoconf's version.  Add support for Tandem.
61474
61475 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61476             Bruno Haible  <bruno@clisp.org>
61477
61478         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
61479         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
61480         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
61481         gl_AC_TYPE_LONG_LONG.
61482
61483         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
61484         instead of HAVE_LONG_LONG.
61485         * lib/printf-args.c (printf_fetchargs): Likewise.
61486         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
61487         * lib/vasnprintf.c (VASNPRINTF): Likewise.
61488         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
61489         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
61490         gl_AC_TYPE_LONG_LONG.
61491
61492 2006-10-11  Bruno Haible  <bruno@clisp.org>
61493
61494         * m4/longlong.m4: Add comments.
61495         * m4/ulonglong.m4: Likewise.
61496
61497 2006-10-10  Bruno Haible  <bruno@clisp.org>
61498
61499         Make it possible to #define stpcpy, strdup to aliases.
61500         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
61501         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
61502
61503 2006-10-10  Bruno Haible  <bruno@clisp.org>
61504
61505         Make it possible to #define gcd to an alias.
61506         * lib/gcd.c: Include config.h.
61507
61508 2006-10-10  Bruno Haible  <bruno@clisp.org>
61509
61510         Make it possible to #define c_isascii to an alias.
61511         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
61512         defined. Undefine the macros before defining them, to avoid gcc
61513         warnings.
61514         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
61515         define NO_C_CTYPE_MACROS early.
61516
61517 2006-10-10  Bruno Haible  <bruno@clisp.org>
61518
61519         Make it possible to #define set_program_name to an alias.
61520         * lib/progname.c: Don't undefine set_program_name; instead, undefine
61521         ENABLE_RELOCATABLE early.
61522
61523 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61524
61525         Port to Tandem NSK OSS, which has 64-bit signed int but at most
61526         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
61527         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
61528         More generally, don't assume that 64-bit signed int is available
61529         if unsigned int is, and vice versa.
61530         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
61531         unsigned symbols, not on their signed counterparts.
61532         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
61533         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
61534         (UINT64_C, UINTMAX_C):
61535         Likewise.
61536         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
61537         unsigned counterparts.
61538         (Have_long_long, Unsigned): New macros.
61539         (Int): Renamed from INT.
61540         (strtoimax): Use the new macros.
61541         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
61542         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
61543         * modules/inttypes (inttypes.h): Substitute
61544         HAVE_UNSIGNED_LONG_LONG_INT.
61545         * modules/stdint (stdint.h): Likewise.
61546         (Files): Add m4/ulonglong.m4.
61547
61548 2006-10-10  Bruno Haible  <bruno@clisp.org>
61549
61550         Fix a gcc -Wshadow warning.
61551         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
61552         to 'bucket'.
61553         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
61554         gl_linked_indexof_from_to): Likewise.
61555         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
61556         Likewise.
61557         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
61558         Likewise.
61559         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
61560         Reported by Eric Blake.
61561
61562 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
61563
61564         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
61565         for NetBSD.  Problem reported by Bruno Haible.
61566
61567 2006-10-09  Jim Meyering  <jim@meyering.net>
61568
61569         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
61570         Patch from Bruno Haible.
61571
61572 2006-10-09  Jim Meyering  <jim@meyering.net>
61573
61574         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
61575         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
61576         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
61577
61578 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61579
61580         Don't include <config.h> twice; this doesn't work in some cases,
61581         e.g., when config.h has "#define intmax_t long long int" and
61582         we include <config.h>, <inttypes.h>, <config.h> in that order.
61583         Problem reported by Matthew Woehlke in:
61584         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
61585         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
61586         * lib/fts-cycle.c: Don't include config.h.
61587         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
61588         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
61589         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
61590         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
61591         inttypes.h.
61592         * lib/xstrtoumax.c: Likewise.
61593         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
61594         __strtol and the like, so that this module is more like its siblings.
61595         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
61596         Remove; no longer needed now that we assume gnulib inttypes.h.
61597
61598 2006-10-08  Bruno Haible  <bruno@clisp.org>
61599
61600         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
61601         option.
61602
61603 2006-10-07  Jim Meyering  <jim@meyering.net>
61604
61605         * modules/inttypes (inttypes.h): Revert what seems to have been
61606         an inadvertent part of today's change: use "|", not "/" in the
61607         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
61608
61609 2006-10-07  Bruno Haible  <bruno@clisp.org>
61610
61611         * modules/sublist: New file.
61612
61613 2006-10-07  Bruno Haible  <bruno@clisp.org>
61614
61615         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
61616         * modules/argz (argz.h): Likewise.
61617         * modules/arpa_inet (arpa/inet.h): Likewise.
61618         * modules/byteswap (byteswap.h): Likewise.
61619         * modules/configmake (configmake.h): Likewise.
61620         * modules/fcntl (fcntl.h): Likewise.
61621         * modules/fnmatch (fnmatch.h): Likewise.
61622         * modules/getopt (getopt.h): Likewise.
61623         * modules/glob (glob.h): Likewise.
61624         * modules/inttypes (inttypes.h): Likewise.
61625         * modules/netinet_in (netinet/in.h): Likewise.
61626         * modules/poll (poll.h): Likewise.
61627         * modules/stdbool (stdbool.h): Likewise.
61628         * modules/stdint (stdint.h): Likewise.
61629         * modules/sys_select (sys/select.h): Likewise.
61630         * modules/sys_socket (sys/socket.h): Likewise.
61631         * modules/sys_stat (sys/stat.h): Likewise.
61632         * modules/sysexits (sysexits.h): Likewise.
61633         * modules/unistd (unistd.h): Likewise.
61634         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61635         Add a "DO NOT EDIT" comment to the generated file.
61636         (func_import): Likewise for gnulib-comp.m4.
61637
61638 2006-10-07  Bruno Haible  <bruno@clisp.org>
61639
61640         * lib/gl_sublist.h: New file.
61641         * lib/gl_sublist.c: New file.
61642
61643 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61644
61645         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
61646         name (relative to the original working directory) and the file
61647         name component (relative to the temporary working directory).  All
61648         callers changed.
61649         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
61650         * lib/mkdir-p.c (make_dir_parents): Likewise.
61651         * lib/mkdir-p.h (make_dir_parents): Likewise.
61652
61653 2006-10-06  Eric Blake  <ebb9@byu.net>
61654
61655         Define several macros for use by the clean-temp module.
61656         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
61657         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
61658         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
61659
61660         * lib/clean-temp.h (close_stream_temp): New declaration.
61661         * lib/clean-temp.c (includes): Pull in headers according to what
61662         other modules are in use.
61663         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
61664
61665 2006-10-06  Bruno Haible  <bruno@clisp.org>
61666
61667         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
61668         instead of fopen, fwriteerror.
61669
61670 2006-10-06  Bruno Haible  <bruno@clisp.org>
61671
61672         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
61673         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
61674         int.
61675         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
61676         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
61677         Return an error indicator.
61678         Suggested by Eric Blake.
61679
61680 2006-10-06  Bruno Haible  <bruno@clisp.org>
61681
61682         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
61683         Reported by Eric Blake.
61684
61685 2006-10-06  Bruno Haible  <bruno@clisp.org>
61686
61687         * modules/closeout (Description): Mention stderr too.
61688
61689 2006-10-06  Bruno Haible  <bruno@clisp.org>
61690         and Paul Eggert  <eggert@cs.ucla.edu>
61691
61692         * lib/closeout.c (close_stdout): Also close stderr.
61693         * lib/closeout.h: Update comment.
61694
61695 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61696
61697         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
61698         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
61699         * lib/dirchownmod.c: Include lchown.h.
61700         * lib/lchown.c: Don't include files that lchown.h now includes.
61701         Don't declare chown, since lchown.h now does that.
61702         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
61703         (lchown): Define to rpl_chown if lchown is declared but
61704         does not exist.  Declare using a prototype if lchown is not
61705         declared.  Add a copyright notice.
61706         * lib/mkstemp.h: Include <unistd.h>.
61707         * lib/openat.c: Include lchown.h.
61708
61709         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
61710         we now test for that separately.
61711         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
61712         rather than O_NOFOLLOW, when testing whether it's possible to
61713         avoid a race condition reliably.
61714         * lib/savewd.c (savewd_chdir): Likewise.
61715
61716         Remove macros that are no longer needed now that stdint.h is
61717         reliable.
61718         * lib/fsusage.c (UINTMAX_MAX): Remove.
61719         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
61720         * lib/utimecmp.c (SIZE_MAX): Remove.
61721
61722         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
61723
61724         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
61725         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
61726         O_NOATIME works.
61727
61728 2006-10-05  Bruno Haible  <bruno@clisp.org>
61729
61730         * lib/gl_list.h (gl_sortedlist_search_from_to,
61731         gl_sortedlist_indexof_from_to): New declarations.
61732         (gl_list_implementation): New fields sortedlist_search_from_to,
61733         sortedlist_indexof_from_to.
61734         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
61735         inline functions.
61736         * lib/gl_list.c (gl_sortedlist_search_from_to,
61737         gl_sortedlist_indexof_from_to): New functions.
61738         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
61739         function.
61740         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
61741         (gl_array_sortedlist_search_from_to): New function.
61742         (gl_array_list_implementation): Update.
61743         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
61744         function.
61745         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
61746         (gl_carray_sortedlist_search_from_to): New function.
61747         (gl_carray_list_implementation): Update.
61748         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
61749         gl_linked_sortedlist_indexof_from_to): New functions.
61750         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61751         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61752         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
61753         gl_tree_sortedlist_indexof_from_to): New functions.
61754         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61755         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61756         Update.
61757         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61758         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
61759         Update.
61760
61761 2006-10-05  Bruno Haible  <bruno@clisp.org>
61762
61763         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
61764         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
61765         (struct gl_list_implementation): Add fields search_from_to,
61766         indexof_from_to. Remove fields search, indexof.
61767         (gl_list_search): Use the search_from_to method.
61768         (gl_list_search_from, gl_list_search_from_to): New functions.
61769         (gl_list_indexof): Use the indexof_from_to method.
61770         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
61771         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
61772         (gl_list_search_from, gl_list_search_from_to): New functions.
61773         (gl_list_indexof): Use the indexof_from_to method.
61774         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
61775         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
61776         gl_array_indexof. Add start_index, end_index arguments.
61777         (gl_array_search_from_to): Renamed from gl_array_search. Add
61778         start_index, end_index arguments.
61779         (gl_array_remove, gl_array_list_implementation): Update.
61780         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
61781         gl_carray_indexof. Add start_index, end_index arguments.
61782         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
61783         start_index, end_index arguments.
61784         (gl_carray_remove, gl_carray_list_implementation): Update.
61785         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
61786         gl_linked_search. Add start_index, end_index arguments.
61787         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
61788         start_index, end_index arguments.
61789         (gl_linked_remove): Update.
61790         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61791         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61792         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
61793         field to 'size_t'.
61794         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
61795         gl_tree_search. Add start_index, end_index arguments.
61796         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
61797         start_index, end_index arguments.
61798         (gl_tree_remove): Update.
61799         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61800         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61801         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
61802         function.
61803         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
61804         gl_tree_search. Add start_index, end_index arguments.
61805         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
61806         start_index, end_index arguments.
61807         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61808         Update.
61809         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61810
61811 2006-10-05  Bruno Haible  <bruno@clisp.org>
61812
61813         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
61814
61815         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
61816         fwriteerror_temp): New declarations.
61817         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
61818         (descriptors): New variable.
61819         (cleanup): First, close the descriptors.
61820         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
61821         fclose_temp, fwriteerror_temp): New functions.
61822
61823 2006-10-04  Jim Meyering  <jim@meyering.net>
61824
61825         * lib/fts.c (fts_open): Tiny comment change.
61826
61827 2006-10-04  Bruno Haible  <bruno@clisp.org>
61828
61829         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
61830         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
61831         gl_LOCK_BODY.
61832         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
61833         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
61834         gl_LOCK_EARLY_BODY.
61835         (gl_LOCK): Require gl_LOCK_BODY.
61836
61837 2006-10-04  Bruno Haible  <bruno@clisp.org>
61838
61839         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
61840         (gl_oset_search_atleast): New declaration.
61841         (struct gl_oset_implementation): Add field 'search_atleast'.
61842         (gl_oset_search_atleast): New inline function.
61843         * lib/gl_oset.c (gl_oset_search_atleast): New function.
61844         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
61845         (gl_array_oset_implementation): Update.
61846         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
61847         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
61848         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
61849
61850 2006-10-04  Bruno Haible  <bruno@clisp.org>
61851
61852         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
61853
61854 2006-10-03  Bruno Haible  <bruno@clisp.org>
61855
61856         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
61857         from gl_avltreehash_list_implementation.
61858
61859 2006-10-03  Bruno Haible  <bruno@clisp.org>
61860
61861         * lib/gl_oset.c (gl_oset_add): Fix return type.
61862
61863 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
61864
61865         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
61866
61867 2006-10-02  Eric Blake  <ebb9@byu.net>
61868
61869         * modules/strnlen (Depends-on): Add extensions.
61870
61871 2006-10-02  Eric Blake  <ebb9@byu.net>
61872
61873         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
61874         definition in 2.60+.
61875
61876 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
61877
61878         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
61879         checks.
61880
61881 2006-10-02  Bruno Haible  <bruno@clisp.org>
61882
61883         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
61884         to the AUTOMAKE_OPTIONS.
61885         Reported by Jim Meyering.
61886
61887 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
61888
61889         Work around bug in Solaris 10 /proc file system:
61890         /proc/self/fd/NNN/.. isn't the parent directory of
61891         the directory whose file descriptor is NNN.  This needs to
61892         be worked around at run time, not compile time, since a
61893         program might be built on Solaris 8, where things work, and
61894         run on Solaris 10.
61895         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
61896         to use the following interface instead:
61897         (OPENAT_BUFFER_SIZE): New macro.
61898         (openat_proc_name): New function.
61899         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
61900         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
61901         Likewise.
61902         * lib/openat-proc.c: New file.
61903         * modules/openat (Files): Add lib/openat-proc.c.
61904         (Depends-on): Add same-inode, stdbool.
61905         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
61906
61907 2006-09-29  Bruno Haible  <bruno@clisp.org>
61908
61909         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
61910         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
61911         argument. Set stdout_closed before testing for ferror, not after.
61912         (fwriteerror, fwriteerror_no_ebadf): New functions.
61913
61914 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61915
61916         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
61917
61918 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
61919
61920         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
61921         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
61922
61923 2006-09-28  Jim Meyering  <jim@meyering.net>
61924
61925         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
61926         Include <unistd.h>.
61927
61928 2006-09-28  Bruno Haible  <bruno@clisp.org>
61929
61930         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
61931         * modules/linkedhash-list (Depends-on): Likewise.
61932         * modules/rbtreehash-list (Depends-on): Likewise.
61933
61934 2006-09-28  Bruno Haible  <bruno@clisp.org>
61935
61936         * lib/strndup.h: Simplify the redefinition of strndup.
61937         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
61938         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
61939
61940 2006-09-28  Bruno Haible  <bruno@clisp.org>
61941
61942         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
61943         * lib/gl_linkedhash_list.c: Likewise.
61944         * lib/gl_rbtreehash_list.c: Likewise.
61945
61946 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
61947
61948         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
61949         getaddrinfo.
61950
61951         * lib/__fpending.h: Don't include <stdio_ext.h> unless
61952         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
61953         it causes <stdio_ext.h> to cause a compile-time error.
61954         Problem reported by Nelson H. F. Beebe.
61955         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
61956         of HAVE_DECL___PENDING.
61957
61958         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
61959         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
61960         declaration.
61961
61962 2006-09-27  Jim Meyering  <jim@meyering.net>
61963
61964         This file could end up with a definition for a function
61965         named __strndup, rather than rpl_strndup on a system with
61966         incomplete weak_alias support.
61967         * lib/strndup.c (strndup): Rename from __strndup.
61968         Remove #defines that used to map __strndup to strndup.
61969         Don't use K&R prototypes.
61970         Remove LIBC-related code, since this file is not sync'd with glibc.
61971         * lib/strndup.h: Revamp, accordingly.
61972         * m4/strndup.m4: Modernize.
61973
61974 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
61975
61976         * modules/savewd (Depends-on): Add 'raise'.
61977         * lib/savewd.c: Include <signal.h>, for 'raise'.
61978
61979 2006-09-26  Jim Meyering  <jim@meyering.net>
61980
61981         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
61982         when we detect Darwin 8.7.0's acl_get_file bug.
61983         Rearrange to perform the new (below) run-test while $LIBS
61984         contains any acl-related library.  Set USE_ACL at the end.
61985         (gl_ACL_GET_FILE): New function.
61986
61987 2006-09-26  Eric Blake  <ebb9@byu.net>
61988
61989         * lib/verror.c: Include <config.h> unconditionally.
61990
61991 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
61992
61993         * modules/clock-time (Maintainer): Add self.
61994         * modules/getlogin_r (Depends-on): Add extensions.
61995
61996 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61997
61998         * modules/clock-time: New module.
61999         * modules/nanosleep (Depends-on): Add clock-time.
62000         * modules/gethrxtime (Depends-on): Likewise.
62001         * modules/gettime (Depends-on): Likewise.
62002         * modules/settime (Depends-on): Likewise.
62003
62004         * modules/fts-lgpl: Depend on openat.
62005         * modules/mkancesdirs: Depend on savewd.
62006         * modules/mkdir-p: Likewise.
62007
62008 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62009
62010         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
62011
62012         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
62013         `gl_have_arbitrary_file_name_length_limit' to
62014         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
62015         actually works between configure runs.
62016
62017 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62018             Bruno Haible  <bruno@clisp.org>
62019
62020         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
62021
62022 2006-09-25  Jim Meyering  <jim@meyering.net>
62023
62024         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
62025         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
62026
62027 2006-09-25  Eric Blake  <ebb9@byu.net>
62028
62029         * gnulib-tool (func_import, func_create_testdir): Fix typos in
62030         exec's in 2006-09-18 patch when shuffling fds.
62031
62032 2006-09-25  Bruno Haible  <bruno@clisp.org>
62033
62034         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
62035         Reported by Jim Meyering.
62036
62037 2006-09-24  Jim Meyering  <jim@meyering.net>
62038
62039         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
62040         compare a pointer against a literal "0".  That caused failures with
62041         at least HP-UX's hpcc.
62042
62043 2006-09-22  Simon Josefsson  <jas@extundo.com>
62044
62045         * modules/gc-sha1:
62046         * modules/gc-md4:
62047         * modules/gc-hmac-sha1:
62048         * modules/gc-hmac-md5:
62049         * modules/gc-des:
62050         * modules/gc-arcfour: Distribute more files.
62051
62052 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62053
62054         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
62055         (gl_linked_iterator_from_to): Initialize struct completely.
62056         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
62057         (gl_tree_iterator_from_to): Likewise
62058         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
62059         * lib/gl_array_list.c [lint] (gl_array_iterator)
62060         (gl_array_iterator_from_to): Likewise.
62061         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
62062         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
62063         (gl_carray_iterator_from_to): Likewise.
62064
62065         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
62066         * lib/md4.c (md4_process_block): Remove unused variable.
62067         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
62068         parentheses for clarity.
62069
62070 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62071
62072         * modules/bison-i18n (Depends-on): Add gettext.
62073
62074 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62075
62076         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
62077         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
62078         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
62079         also add missing comma that caused broken test.
62080         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
62081         stdlib.h, for `abort'.
62082         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
62083         variables.
62084         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
62085         include unistd.h if present, for `rmdir'.
62086         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
62087         variables.
62088         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
62089         in the process include standard headers for prototypes.
62090         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
62091         gets declared on GNU/Linux.
62092         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
62093         unistd.h, for `rmdir'.
62094         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
62095
62096         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
62097         always true.
62098         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
62099
62100         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
62101
62102 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62103
62104         * gnulib-tool (func_version): Create output all at once.  This
62105         may help avoid triggering unnecessary SIGPIPEs, and at any
62106         rate it doesn't hurt.
62107
62108 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62109             Bruno Haible  <bruno@clisp.org>
62110
62111         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
62112         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62113         * m4/signed.m4 (bh_C_SIGNED): Likewise.
62114
62115         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
62116         (gl_FUNC_VASPRINTF): Invoke it.
62117
62118 2006-09-22  Bruno Haible  <bruno@clisp.org>
62119
62120         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
62121         getloadavg.c as first argument.
62122
62123 2006-09-22  Bruno Haible  <bruno@clisp.org>
62124
62125         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
62126         at the beginning of the gl_INIT macro.
62127         * modules/getloadavg (configure.ac): Pass $gl_source_base to
62128         gl_GETLOADAVG.
62129
62130 2006-09-22  Bruno Haible  <bruno@clisp.org>
62131
62132         * gnulib-tool (func_create_megatestdir): Don't include the config-h
62133         module.
62134         Suggested by Ralf Wildenhues.
62135
62136 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62137
62138         Import this patch from libc:
62139
62140         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
62141
62142         * lib/regex_internal.c (re_string_reconstruct): Handle
62143         offset < pstr->valid_raw_len && pstr->offsets_needed case.
62144         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
62145         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
62146         re_string_context_at.
62147
62148         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
62149         now requires it.
62150         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
62151         gl_REGEX now does it for us.
62152         (gl_REGEX): Add test taken from
62153         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
62154
62155         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
62156         Check that large offsets work.  Modernize Autoconf usages.
62157         Prefer "yes" to mean a good thing rather than a bad.
62158         Don't put "#define mkstemp" in config.h, as this might interfere
62159         with standard system headers that "#define mkstemp mkstemp64".
62160
62161         * modules/mkstemp (Depends-on): Add extensions, so that
62162         mkstemp is visible on some platforms.
62163         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
62164         (Include): Change to "mkstemp.h" from <stdlib.h>.
62165         (Files): Add mkstemp.h.
62166
62167         * lib/mkstemp.h: New file, since some standard headers
62168         #define mkstemp.
62169         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
62170         Include "mkstemp.h".
62171         Make the _LIBC code resemble glibc original more,
62172         e.g., use K&R style.
62173         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
62174         (mkstemp): Remove, since mkstemp.h does this for us.
62175         * lib/stdlib--.h: Include mkstemp.h.
62176
62177         Import this patch from libc:
62178
62179         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62180
62181         * lib/tempname.c (__gen_tempname): Change attempts_min
62182         into a macro.  Use preprocessor to decide how to initialize
62183         attempts [Coverity CID 67].
62184
62185 2006-09-20  Bruno Haible  <bruno@clisp.org>
62186
62187         * lib/mkdtemp.c: Import from libc.
62188         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62189                 * sysdeps/posix/tempname.c (__gen_tempname): Change
62190                 attempts_min into a macro.  Use preprocessor to decide how to
62191                 initialize attempts [Coverity CID 67].
62192         2001-11-27  Paul Eggert  <eggert@twinsun.com>
62193                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
62194                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
62195
62196 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62197
62198         * gnulib-tool (func_exit): New function, to allow to pass the
62199         exit status portably through the trap.  Use everywhere.
62200         (--help, --version): Signal a write error.
62201         (trap): catch SIGPIPE, for write errors.
62202         Exit at the end of the trap, with the correct exit status.
62203
62204 2006-09-19  Karl Berry  <karl@gnu.org>
62205
62206         * doc/gnulib.texi: note about the license texinfo files.
62207
62208 2006-09-19  Eric Blake  <ebb9@byu.net>
62209
62210         * gnulib-tool: Avoid space-tab.
62211
62212 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62213
62214         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
62215         that prevented coreutils 6.1 from building.  Problem reported
62216         by Petter Reinholdtsen.
62217
62218 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62219
62220         * gnulib-tool (avoidlist): Fix typo that broke options like
62221         --avoid=lock that are used by coreutils bootstrap.
62222
62223 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
62224
62225         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
62226         more systematically.
62227
62228 2006-09-18  Jim Meyering  <jim@meyering.net>
62229
62230         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
62231
62232 2006-09-18  Bruno Haible  <bruno@clisp.org>
62233
62234         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
62235
62236 2006-09-18  Bruno Haible  <bruno@clisp.org>
62237
62238         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
62239         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
62240         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
62241         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
62242         * m4/gettext.m4: Require autoconf >= 2.52.
62243         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
62244         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
62245         of gl_cv_header_inttypes_h.
62246
62247 2006-09-18  Bruno Haible  <bruno@clisp.org>
62248
62249         * lib/javaversion.c: Include configmake.h.
62250
62251 2006-09-18  Bruno Haible  <bruno@clisp.org>
62252
62253         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
62254         avoid that the while loops be executed in a subshell.
62255
62256 2006-09-18  Bruno Haible  <bruno@clisp.org>
62257
62258         * MODULES.html.sh (func_module): Break long lines.
62259         Suggested by Bruce Korb <bkorb@gnu.org>.
62260
62261 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62262
62263         Speed up by a factor of 1.12.
62264         * gnulib-tool (nl): New variable.
62265         (func_import): Rewrite include directive extraction to only read each
62266         directive once.
62267
62268 2006-09-17  Bruno Haible  <bruno@clisp.org>
62269
62270         * modules/javaversion (Makefile.am): Remove DEFS setting.
62271         (Depends-on): Add configmake, for PKGDATADIR definition.
62272
62273 2006-09-17  Bruno Haible  <bruno@clisp.org>
62274
62275         * gnulib-tool (func_create_testdir): Rewrite all files at once.
62276
62277 2006-09-17  Bruno Haible  <bruno@clisp.org>
62278
62279         * gnulib-tool (func_append): New function, stolen from libtool.m4.
62280         (func_modules_transitive_closure, func_modules_add_dummy,
62281         func_modules_to_filelist, func_import, func_create_testdir,
62282         func_create_megatestdir, ...): Use it wherever possible.
62283         Suggested by Ralf Wildenhues.
62284
62285 2006-09-16  Karl Berry  <karl@gnu.org>
62286
62287         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
62288         to avoid sectioning errors.
62289         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
62290         [ifinfo]: blank line after @center-ed titles.
62291         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
62292         Spell FSF address consistently with others.
62293         (These changes approved by rms.)
62294
62295 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62296
62297         Speed up by a factor of 1.61.
62298         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
62299         already checked module names again.
62300
62301 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62302
62303         Speed up by a factor of 1.13.
62304         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
62305         for new_files, and the input to func_add_or_update.
62306
62307 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62308
62309         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
62310         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
62311
62312 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62313
62314         * modules/mkancesdirs (Depends-on): Add fcntl.
62315         * modules/savewd: New file.
62316         * MODULES.html.sh (File system functions): Add savewd.
62317
62318         * modules/configmake (Makefile.am): Add support for the
62319         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
62320
62321 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62322
62323         * m4/savewd.m4: New file.
62324
62325 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62326
62327         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
62328         (dirchownmod): New arg FD.  All callers changed.
62329         Use FD rather than opening the directory ourself, as opening is
62330         now the caller's responsibility.
62331         * lib/dirchownmod.h: Likewise.
62332         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
62333         hosts that require <sys/types.h> before <sys/stat.h>.  Include
62334         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
62335         (test_dir): Remove.
62336         (mkancesdirs): Return length of prefix of FILE that has already
62337         been made, or -2 if there is a child doing the work.  Redo
62338         algorithm so that it is O(N) rather than O(N**2).  Optimize away
62339         ".", and treat ".." specially since it might stray back into
62340         already-created areas.  Use a subprocess if necessary.  New arg
62341         WD; all users changed.  MAKE_DIR function should now return 1
62342         if it creates a directory that is not readable.  Return -2 if
62343         a child process is spun off.
62344         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
62345         Adjust signature to match code.
62346         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
62347         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
62348         all users changed.
62349         * lib/savewd.c, lib/savewd.h: New files.
62350
62351 2006-09-15  Jim Meyering  <jim@meyering.net>
62352
62353         * modules/rename-dest-slash: New module.
62354         * MODULES.html.sh (posix_compat): Add it here.
62355
62356         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
62357
62358 2006-09-15  Jim Meyering  <jim@meyering.net>
62359
62360         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
62361         file.
62362
62363         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
62364
62365 2006-09-15  Jim Meyering  <jim@meyering.net>
62366
62367         * lib/rename-dest-slash.c (has_trailing_slash): Use
62368         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
62369         (rpl_rename_dest_slash): Perform the cheaper trailing slash
62370         test before testing whether SRC is a directory.
62371         Suggestions from Bruno Haible.
62372
62373         Avoid a warning about an unused variable.
62374         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
62375         into the #ifdef block where it's used.
62376
62377         * lib/rename-dest-slash.c: New file.
62378
62379 2006-09-14  Bruno Haible  <bruno@clisp.org>
62380
62381         * lib/allocsa.c: Include <config.h> unconditionally.
62382         * lib/asnprintf.c: Likewise.
62383         * lib/asprintf.c: Likewise.
62384         * lib/c-strcasecmp.c: Likewise.
62385         * lib/c-strcasestr.c: Likewise.
62386         * lib/c-strncasecmp.c: Likewise.
62387         * lib/c-strstr.c: Likewise.
62388         * lib/classpath.c: Likewise.
62389         * lib/clean-temp.c: Likewise.
62390         * lib/concatpath.c: Likewise.
62391         * lib/copy-file.c: Likewise.
62392         * lib/csharpcomp.c: Likewise.
62393         * lib/csharpexec.c: Likewise.
62394         * lib/execute.c: Likewise.
62395         * lib/fatal-signal.c: Likewise.
62396         * lib/findprog.c: Likewise.
62397         * lib/fwriteerror.c: Likewise.
62398         * lib/gl_array_list.c: Likewise.
62399         * lib/gl_array_oset.c: Likewise.
62400         * lib/gl_avltree_list.c: Likewise.
62401         * lib/gl_avltree_oset.c: Likewise.
62402         * lib/gl_avltreehash_list.c: Likewise.
62403         * lib/gl_carray_list.c: Likewise.
62404         * lib/gl_linked_list.c: Likewise.
62405         * lib/gl_linkedhash_list.c: Likewise.
62406         * lib/gl_list.c: Likewise.
62407         * lib/gl_oset.c: Likewise.
62408         * lib/gl_rbtree_list.c: Likewise.
62409         * lib/gl_rbtree_oset.c: Likewise.
62410         * lib/gl_rbtreehash_list.c: Likewise.
62411         * lib/imaxabs.c: Likewise.
62412         * lib/imaxdiv.c: Likewise.
62413         * lib/javacomp.c: Likewise.
62414         * lib/javaexec.c: Likewise.
62415         * lib/javaversion.c: Likewise.
62416         * lib/linebreak.c: Likewise.
62417         * lib/localcharset.c: Likewise.
62418         * lib/lock.c: Likewise.
62419         * lib/mbchar.c: Likewise.
62420         * lib/mbswidth.c: Likewise.
62421         * lib/mkdtemp.c: Likewise.
62422         * lib/pipe.c: Likewise.
62423         * lib/printf-args.c: Likewise.
62424         * lib/printf-parse.c: Likewise.
62425         * lib/progname.c: Likewise.
62426         * lib/progreloc.c: Likewise.
62427         * lib/readlink.c: Likewise.
62428         * lib/sh-quote.c: Likewise.
62429         * lib/stpcpy.c: Likewise.
62430         * lib/stpncpy.c: Likewise.
62431         * lib/strcasecmp.c: Likewise.
62432         * lib/strcasestr.c: Likewise.
62433         * lib/strcspn.c: Likewise.
62434         * lib/striconv.c: Likewise.
62435         * lib/strncasecmp.c: Likewise.
62436         * lib/strnlen1.c: Likewise.
62437         * lib/strstr.c: Likewise.
62438         * lib/strtok_r.c: Likewise.
62439         * lib/tls.c: Likewise.
62440         * lib/tmpdir.c: Likewise.
62441         * lib/unicodeio.c: Likewise.
62442         * lib/unsetenv.c: Likewise.
62443         * lib/vasnprintf.c: Likewise.
62444         * lib/vasprintf.c: Likewise.
62445         * lib/wait-process.c: Likewise.
62446         * lib/xallocsa.c: Likewise.
62447         * lib/xsetenv.c: Likewise.
62448         * lib/xstriconv.c: Likewise.
62449
62450 2006-09-13  Simon Josefsson  <jas@extundo.com>
62451
62452         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
62453         that internally, suggested by Ralf Wildenhues
62454         <Ralf.Wildenhues@gmx.de>.
62455
62456 2006-09-13  Simon Josefsson  <jas@extundo.com>
62457
62458         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
62459         @LIBOBJS@.
62460         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62461
62462 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62463
62464         * lib/_fpending.c: Include <config.h> unconditionally, since we no
62465         longer worry about uses that don't define HAVE_CONFIG_H.
62466         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
62467         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
62468         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
62469         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
62470         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
62471         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
62472         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
62473         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
62474         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
62475         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
62476         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
62477         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
62478         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
62479         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
62480         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
62481         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
62482         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
62483         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
62484         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
62485         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
62486         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
62487         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
62488         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
62489         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
62490         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
62491         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
62492         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
62493         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
62494         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
62495         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
62496         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
62497         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
62498         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
62499         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
62500         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
62501         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
62502         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
62503         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
62504         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
62505         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
62506         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
62507         Likewise.
62508
62509 2006-09-13  Eric Blake  <ebb9@byu.net>
62510
62511         * lib/getopt.c: Fix typo in last commit.
62512
62513 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62514
62515         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
62516         dgettext.
62517
62518 2006-09-12  Jim Meyering  <jim@meyering.net>
62519
62520         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
62521         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
62522         Reported by Nelson H. F. Beebe.
62523
62524 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62525
62526         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
62527         program_invocation_name and program_invocation_short_name are
62528         initialized.
62529         * lib/argp-namefrob.h: Move declarations of program_invocation_name
62530         and program_invocation_short_name to argp.h, so they are visible
62531         to user programs.
62532         * lib/argp.h: Likewise
62533
62534 2006-09-10  Bruno Haible  <bruno@clisp.org>
62535
62536         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62537         m4/inttypes_h.m4, m4/uintmax_t.m4.
62538
62539 2006-09-10  Bruno Haible  <bruno@clisp.org>
62540
62541         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
62542         gl_AC_TYPE_UINTMAX_T.
62543
62544 2006-09-10  Bruno Haible  <bruno@clisp.org>
62545
62546         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
62547
62548 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62549
62550         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
62551         convention.  Text proposed by Bruno Haible.
62552         (struct argp_option): Document the use of N_() wrappers.
62553
62554         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
62555         '\v', and translate the two parts separately, instead of feeding
62556         the whole string to gettext.  This allows to exclude
62557         '\v' from the strings visible to the translator by writing doc
62558         strings as N_("..") "\v" N_("..").
62559
62560 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
62561
62562         * config/srclist.txt: Undo latest change; the bug was fixed.
62563
62564 2006-09-09  Bruno Haible  <bruno@clisp.org>
62565
62566         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
62567         assignments if building a library without libtool.
62568         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
62569         in func_emit_lib_Makefile_am.
62570         (func_import): When building a static library libfoo.a, arrange to
62571         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
62572         (func_create_testdir): Likewise.
62573         * modules/gc (configure.ac, Makefile.am): If building statically,
62574         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
62575         * modules/iconvme (configure.ac, Makefile.am): Likewise.
62576         * modules/striconv (configure.ac, Makefile.am): Likewise.
62577         Based on a suggestion by Ralf Wildenhues.
62578
62579 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62580
62581         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62582         Check for unistd.h too, since Autoconf doesn't assume POSIX.
62583         Also:
62584
62585         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62586         Add year_2050_test to catch glibc bug 2821
62587         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62588
62589         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62590         Prefer #ifdef to #if.
62591
62592         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
62593         Return from 'main' instead of calling 'exit'.
62594
62595 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62596
62597         * lib/mktime.c (guess_time_tm): Fix bug where mktime
62598         returned the maximum time_t value rather than (time_t) -1.
62599         Problem originally reported by William Bardwell
62600         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62601
62602         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62603         Moved to here ...
62604         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62605         ... from here.
62606
62607 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62608
62609         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
62610         2821 is fixed.
62611
62612 2006-09-08  Jim Meyering  <jim@meyering.net>
62613
62614         Don't make generated files read-only.  That would bother too many
62615         people.  However, do retain the ability to work when targets are
62616         read-only: remove the destination and temporary files before writing
62617         them (when generated via sed or echo), or by using the -f option for
62618         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
62619         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62620         * modules/byteswap, modules/configmake, modules/fcntl:
62621         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62622         * modules/localcharset, modules/netinet_in, modules/poll:
62623         * modules/stdbool, modules/stdint, modules/sys_select:
62624         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62625
62626 2006-09-08  Jim Meyering  <jim@meyering.net>
62627
62628         Avoid new build failure on FreeBSD 6.0.
62629         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
62630         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
62631         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
62632
62633 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62634
62635         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
62636
62637 2006-09-07  Jim Meyering  <jim@meyering.net>
62638
62639         Fix global typo in last change: use chmod u-w, not chmod u-x.
62640         Spotted by Paul Eggert and Bruce Korb.
62641         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62642         * modules/byteswap, modules/configmake, modules/fcntl:
62643         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62644         * modules/localcharset, modules/netinet_in, modules/poll:
62645         * modules/stdbool, modules/stdint, modules/sys_select:
62646         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62647
62648 2006-09-06  Jim Meyering  <jim@meyering.net>
62649
62650         Make generated files be read-only.
62651         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
62652         Ensure that each generated file is now read-only.
62653         * modules/argz: Likewise.
62654         * modules/arpa_inet: Likewise.
62655         * modules/byteswap: Likewise.
62656         * modules/configmake: Likewise.
62657         * modules/fcntl: Likewise.
62658         * modules/fnmatch: Likewise.
62659         * modules/getopt: Likewise.
62660         * modules/glob: Likewise.
62661         * modules/inttypes: Likewise.
62662         * modules/netinet_in: Likewise.
62663         * modules/poll: Likewise.
62664         * modules/stdbool: Likewise.
62665         * modules/stdint: Likewise.
62666         * modules/sys_select: Likewise.
62667         * modules/sys_socket: Likewise.
62668         * modules/sys_stat: Likewise.
62669         * modules/sysexits: Likewise.
62670         * modules/localcharset: Same as above, but continue using temporary
62671         file named "t-$@" (why different?) rather than the "$@-t" used
62672         everywhere else.
62673
62674         * modules/sysexits (Makefile.am): Replace literal occurrences
62675         of "sysexit.h" more readable, and more consistent, "$@".
62676
62677 2006-09-06  Bruno Haible  <bruno@clisp.org>
62678
62679         * modules/striconv: New file.
62680         * modules/xstriconv: New file.
62681         * MODULES.html.sh (Internationalization functions): Add striconv,
62682         xstriconv.
62683
62684 2006-09-06  Bruno Haible  <bruno@clisp.org>
62685
62686         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
62687         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
62688         not using libtool correctly.
62689
62690 2006-09-06  Bruno Haible  <bruno@clisp.org>
62691
62692         * lib/striconv.h: New file.
62693         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
62694         iconvstring.c.
62695         * lib/xstriconv.h: New file.
62696         * lib/xstriconv.c: New file.
62697
62698 2006-09-06  Bruno Haible  <bruno@clisp.org>
62699
62700         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62701         lib_..._LDFLAGS.
62702
62703 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62704
62705         * lib/argz_.h: Sync from Libtool.
62706
62707         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
62708                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62709
62710         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
62711
62712 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62713
62714         * modules/trim: New file.
62715
62716 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62717
62718         * lib/trim.h: New file.
62719         * lib/trim.c: New file.
62720
62721 2006-09-05  Bruno Haible  <bruno@clisp.org>
62722
62723         * MODULES.html.sh (String handling): Add trim.
62724
62725 2006-09-04  Karl Berry  <karl@gnu.org>
62726
62727         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
62728         until next release.
62729
62730 2006-09-03  Bruno Haible  <bruno@clisp.org>
62731
62732         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
62733         correctly.
62734
62735 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62736
62737         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
62738         not gl_GETLOADAVG.  Omit unneeded semicolons.
62739         Problems reported by Ralf Wildenhues in
62740         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62741         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
62742         at the end, which is the usual gnulib style.
62743
62744         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
62745         of doing all the work ourselves.
62746         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
62747         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
62748
62749 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62750
62751         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
62752         Problem reported by Ralf Wildenhues in
62753         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62754
62755         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
62756         HAVE_STRUCT_STATFS_F_FSTYPENAME.
62757
62758 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62759
62760         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
62761         yesterday's patch by changing test -n to test -z.
62762
62763 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62764
62765         * modules/getloadavg (Files): Add m4/getloadavg.m4.
62766         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
62767         the former is now obsolescent.
62768
62769         * modules/chdir-long (Depends-on): Add fcntl.
62770
62771 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62772
62773         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
62774         obsolescent, and programs should use gnulib instead.
62775         * m4/getloadavg.m4: New file, with contents taken from Autoconf
62776         but with prefixes changed.
62777
62778 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62779
62780         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
62781         or stdbool.h, because they might not exist while configuring.
62782
62783         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
62784         Don't include unistd.h or limits.h; not needed, since chdir-long.h
62785         does that for us.
62786         (O_DIRECTORY): Remove.
62787
62788 2006-08-31  Eric Blake  <ebb9@byu.net>
62789
62790         * gnulib-tool: Don't let emacs change spaces to TAB.
62791
62792 2006-08-31  Bruno Haible  <bruno@clisp.org>
62793
62794         * gnulib-tool: When calling func_import more than once, do it in a
62795         subshell.
62796         Reported by Eric Blake <ebb9@byu.net>.
62797
62798 2006-08-31  Bruno Haible  <bruno@clisp.org>
62799
62800         * gnulib-tool (nl): Remove variable.
62801         (sed_transform_lib_file): Use more robust test for config-h module.
62802         (func_import): Fix typo in 2006-08-25 patch.
62803
62804 2006-08-31  Bruno Haible  <bruno@clisp.org>
62805
62806         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
62807         specified, augment Makefile.am variables instead of assigning them.
62808
62809 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62810
62811         Work around a bug in both the Linux and SunOS 64-bit kernels:
62812         nanosleep mishandles sleeps for longer than 2**31 seconds.
62813         Problem reported by Frank v Waveren in
62814         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
62815         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
62816         Check for nanosleep bug.
62817         (LIB_NANOSLEEP): Append clock_gettime library if needed.
62818
62819 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62820
62821         Work around a bug in both the Linux and SunOS 64-bit kernels:
62822         nanosleep mishandles sleeps for longer than 2**31 seconds.
62823         Problem reported by Frank v Waveren in
62824         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
62825         * lib/nanosleep.c (BILLION): New constant.
62826         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
62827         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
62828         implementation.
62829
62830 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62831
62832         * modules/nanosleep (Depends-on): Add gettime.
62833
62834 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62835         and Simon Josefsson  <jas@extundo.com>
62836         and Oskar Liljeblad  <oskar@osk.mine.nu>
62837
62838         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
62839         * gnulib-tool (func_import): New license type 'unmodifiable license
62840         text'.
62841         * modules/fdl: Use it.  Longer description.
62842         * module/gpl, module/lgpl: New files.
62843
62844 2006-08-30  Jim Meyering  <jim@meyering.net>
62845
62846         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
62847         shadowing the parameter.
62848
62849 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62850
62851         Sync from Libtool:
62852
62853         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62854
62855         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
62856         sharing with gnulib.  Report by Eric Blake.
62857
62858 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62859
62860         * modules/isapipe: New file.
62861         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
62862
62863 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62864
62865         * modules/configmake (Makefile.am): Add a comment, and omit
62866         the CONFIGMAKE_ prefix from generated macro names.  Suggested
62867         by Bruno Haible.
62868
62869 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62870
62871         * m4/isapipe.m4: New file.
62872
62873 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62874
62875         * lib/isapipe.c, lib/isapipe.h: New files.
62876
62877 2006-08-29  Jim Meyering  <jim@meyering.net>
62878
62879         * modules/configmake (Makefile.am): Make configmake.h depend on
62880         Makefile.  Otherwise, a stale configmake.h could hang around.
62881
62882 2006-08-29  Eric Blake  <ebb9@byu.net>
62883
62884         * lib/error.c (error_at_line, print_errno_message): Match libc, after
62885         resolution of upstream bug 3044.
62886
62887 2006-08-29  Bruno Haible  <bruno@clisp.org>
62888
62889         * modules/localcharset (Depends-on): Add configmake.
62890         (Makefile.am): Remove setting of LIBDIR through DEFS.
62891
62892 2006-08-29  Bruno Haible  <bruno@clisp.org>
62893
62894         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
62895         defined.
62896
62897 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62898
62899         * modules/fcntl: New file.
62900         * modules/chdir-safer (Depends-on): Add fcntl.
62901         * modules/fts: Likewise.
62902         * modules/mkdir-p: Likewise.
62903
62904         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
62905         This undoes the most recent change, since we're now addressing the
62906         problem in a different way.
62907
62908         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
62909         into output, since the output might be called Makefile.am even
62910         if $makefile_name is something different.
62911         (func_import): Use $makefile_am rather than
62912         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
62913         empty.
62914
62915         * modules/inttypes (Files): Add m4/inttypes-h.m4.
62916
62917 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62918
62919         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
62920         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
62921         recent change to stdint.m4, since we're now addressing the problem in a
62922         different way.
62923
62924 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62925
62926         * m4/fcntl_h.m4: New file.
62927
62928 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62929
62930         * lib/fcntl_.h: New file.
62931         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
62932         the fcntl module.
62933         * lib/dirchownmod.c: Likewise.
62934         * lib/fts.c: Likewise.
62935
62936         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
62937         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
62938         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
62939         just before including <inttypes.h>, to avoid circular inclusion.
62940
62941 2006-08-28  Jim Meyering  <jim@meyering.net>
62942
62943         * doc/visibility.texi: Actually read and correct the grammar of the
62944         sentence affected by yesterday's change.
62945
62946 2006-08-28  Eric Blake  <ebb9@byu.net>
62947
62948         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
62949         needs wrapper.
62950
62951 2006-08-28  Eric Blake  <ebb9@byu.net>
62952
62953         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
62954
62955 2006-08-28  Eric Blake  <ebb9@byu.net>
62956
62957         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
62958
62959 2006-08-28  Bruno Haible  <bruno@clisp.org>
62960
62961         * modules/c-strstr: New file, from GNU gettext.
62962         * MODULES.html.sh (String handling): Add c-strstr.
62963
62964 2006-08-28  Bruno Haible  <bruno@clisp.org>
62965
62966         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
62967         macros.
62968         Reported by Eric Blake.
62969
62970 2006-08-28  Bruno Haible  <bruno@clisp.org>
62971
62972         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
62973         (VASNPRINTF): Return a string of length > INT_MAX without failing.
62974         * lib/vasprintf.c: Include errno.h, limits.h.
62975         (EOVERFLOW): New fallback definition.
62976         (vasprintf): Test here whether the string length is > INT_MAX.
62977         * lib/vsnprintf.c: Include errno.h, limits.h.
62978         (EOVERFLOW): New fallback definition.
62979         (vsnprintf): Fix bug when generated string was too long for the buffer.
62980         Test here whether the string length is > INT_MAX.
62981
62982 2006-08-28  Bruno Haible  <bruno@clisp.org>
62983
62984         * lib/inttypes_.h (SCNX*): Remove definitions.
62985         Reported by Eric Blake.
62986
62987 2006-08-28  Bruno Haible  <bruno@clisp.org>
62988
62989         * lib/c-strstr.h: New file, from GNU gettext.
62990         * lib/c-strstr.c: New file, from GNU gettext.
62991
62992 2006-08-28  Bruno Haible  <bruno@clisp.org>
62993
62994         * gnulib-tool: Reorder some statements.
62995
62996 2006-08-28  Bruno Haible  <bruno@clisp.org>
62997
62998         * gnulib-tool: New option --makefile-name.
62999         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
63000         $makefile_name.
63001         (func_import): Write $makefile_name to the cache file, and read it from
63002         there unless explicitly specified. Use $makefile_name as file name
63003         instead of Makefile.am. Adjust the recommendations accordingly.
63004
63005 2006-08-28  Bruno Haible  <bruno@clisp.org>
63006
63007         * gnulib-tool (func_verify_module): Check against misapplying patch.
63008
63009 2006-08-28  Bruno Haible  <bruno@clisp.org>
63010
63011         * gnulib-tool (func_relativize, func_relconcat): New functions.
63012         Give an error if --local-dir is given with --update.
63013         Remove trailing slashes from $local_gnulib_dir.
63014         (func_import): Store the relativized $local_gnulib_dir in
63015         gnulib-cache.m4, and read it from there if not specified explicitly.
63016
63017 2006-08-28  Bruno Haible  <bruno@clisp.org>
63018
63019         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
63020         is the current directory. Respect also $local_gnulib_dir.
63021
63022 2006-08-28  Bruno Haible  <bruno@clisp.org>
63023             Simon Josefsson  <jas@extundo.com>
63024
63025         BeOS portability.
63026         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
63027
63028 2006-08-27  Jim Meyering  <jim@meyering.net>
63029
63030         * doc/visibility.texi: Remove duplicate word: "pointer".
63031
63032 2006-08-26  Bruno Haible  <bruno@clisp.org>
63033
63034         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
63035         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
63036         (Makefile.am): Create inttypes.h from inttypes_.h.
63037         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
63038
63039         * modules/imaxabs: New file.
63040
63041         * modules/imaxdiv: New file.
63042
63043 2006-08-26  Bruno Haible  <bruno@clisp.org>
63044
63045         * m4/inttypes.m4: New file.
63046         * m4/_inttypes_h.m4: Remove file.
63047         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
63048         PRI_MACROS_BROKEN.
63049         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
63050
63051         * m4/imaxabs.m4: New file.
63052
63053         * m4/imaxdiv.m4: New file.
63054
63055 2006-08-26  Bruno Haible  <bruno@clisp.org>
63056
63057         * lib/inttypes_.h: New file.
63058         * lib/inttypes.h: Remove file.
63059         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
63060
63061         * lib/imaxabs.c: New file.
63062
63063         * lib/imaxdiv.c: New file.
63064
63065 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63066
63067         New config-h module, so that "make" output needn't be cluttered
63068         by -DHAVE_CONFIG_H.
63069         * MODULES.html.sh (Support for building libraries and executables):
63070         Add config-h.
63071         * modules/config-h: New file.
63072         * gnulib-tool (nl, sed_transform_lib_file): New vars.
63073         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
63074         the config-h module is used.
63075
63076         New configmake module, so that "make" output needn't be cluttered
63077         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
63078         * MODULES.html.sh (Support for building libraries and executables):
63079         Add configmake.
63080         * modules/configmake: New file.
63081
63082 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63083
63084         * m4/config-h.m4: New file.
63085
63086 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63087
63088         * config/srclist.txt: Add elisp-comp.
63089
63090 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63091
63092         * MODULES.html.sh (Support for building libraries and executables):
63093         Add elisp-comp.
63094         * build-aux/elisp-comp: New file.
63095         * modules/elisp-comp: New file.
63096
63097 2006-08-24  Bruno Haible  <bruno@clisp.org>
63098
63099         * gnulib-tool (func_create_testdir): Use non-default values of
63100         sourcebase and m4base.
63101
63102 2006-08-24  Bruno Haible  <bruno@clisp.org>
63103
63104         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
63105         HTML structure.
63106
63107 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63108
63109         * modules/openat (Depends-on): Add lchown.
63110
63111 2006-08-23  Bruno Haible  <bruno@clisp.org>
63112
63113         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
63114         of gl_LOCK_EARLY instead of gl_LOCK.
63115
63116 2006-08-23  Bruno Haible  <bruno@clisp.org>
63117
63118         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
63119         on OSF/1 to no.
63120         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
63121
63122 2006-08-23  Bruno Haible  <bruno@clisp.org>
63123
63124         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
63125         as unusable.
63126
63127         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
63128         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
63129         (gl_LOCK): New macro.
63130
63131 2006-08-22  Simon Josefsson  <jas@extundo.com>
63132
63133         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
63134         to md5 module.
63135
63136 2006-08-22  Simon Josefsson  <jas@extundo.com>
63137
63138         * MODULES.html.sh: Add "Support for maintaining and release
63139         projects".
63140
63141         * build-aux/gnupload: New file, from coreutils.
63142
63143 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63144
63145         Avoid the need for AC_LIBSOURCES in m4 macros.
63146         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
63147         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
63148         * modules/check-version (EXTRA_DIST): Add check-version.h.
63149         * modules/crc (EXTRA_DIST): Add crc.h.
63150         * modules/des (EXTRA_DIST): Add des.h.
63151         * modules/gc (EXTRA_DIST): Add gc.h.
63152         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
63153         * modules/getline (EXTRA_DIST): Add getline.h.
63154         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
63155         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
63156         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
63157         * modules/md2 (EXTRA_DIST): Add md2.h.
63158         * modules/md4 (EXTRA_DIST): Add md4.h.
63159         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
63160         * modules/read-file (EXTRA_DIST): Add read-file.h.
63161         * modules/readline (EXTRA_DIST): Add readline.h.
63162         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
63163         rijndael-api-fst.h.
63164
63165 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63166
63167         * m4/rijndael.m4 (gl_ARCFOUR):
63168         * m4/arctwo.m4 (gl_ARCTWO):
63169         * m4/check-version.m4 (gl_CHECK_VERSION):
63170         * m4/crc.m4 (gl_CRC):
63171         * m4/des.m4 (gl_DES):
63172         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
63173         * m4/gc.m4 (gl_GC):
63174         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
63175         * m4/getline.m4 (gl_FUNC_GETLINE):
63176         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
63177         * m4/hmac-md5.m4 (gl_HMAC_MD5):
63178         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
63179         * m4/md2.m4 (gl_MD2):
63180         * m4/md4.m4 (gl_MD4):
63181         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
63182         * m4/read-file.m4 (gl_FUNC_READ_FILE):
63183         * m4/readline.m4 (gl_FUNC_READLINE):
63184         * m4/rijndael.m4 (gl_RIJNDAEL):
63185         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63186         to get the necessary .h files and whatnot.
63187
63188 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63189
63190         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
63191         gnulib rather than the other way around.
63192         * config/srclistvars.sh (COREUTILS): Remove.
63193
63194 2006-08-22  Jim Meyering  <jim@meyering.net>
63195
63196         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
63197
63198         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
63199
63200 2006-08-22  Eric Blake  <ebb9@byu.net>
63201
63202         * modules/regexprops-generic: New file.
63203         * MODULES.html.sh (Support for building documentation): List it.
63204
63205 2006-08-22  Eric Blake  <ebb9@byu.net>
63206
63207         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
63208         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
63209         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
63210         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
63211
63212 2006-08-22  Bruno Haible  <bruno@clisp.org>
63213
63214         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
63215         and lib_LTLIBRARIES like the other lib_* variables.
63216
63217 2006-08-22  Bruno Haible  <bruno@clisp.org>
63218
63219         * build-aux/x-to-1.in: New file, from GNU gettext.
63220
63221 2006-08-22  Bruno Haible  <bruno@clisp.org>
63222
63223         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
63224         <utmpx.h> exists.
63225
63226 2006-08-22  Bruno Haible  <bruno@clisp.org>
63227
63228         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
63229         <utmpx.h> exists.
63230
63231 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63232
63233         BeOS portability.
63234         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
63235         exist.
63236         Problem reported by Bruno Haible.
63237
63238 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63239
63240         Avoid the need for AC_LIBSOURCES in m4 macros.
63241         * modules/acl (EXTRA_DIST): Add acl.h.
63242         * modules/argmatch (Files): Add m4/argmatch.m4.
63243         (configure.ac): Add gl_ARGMATCH.
63244         (EXTRA_DIST): Renamed from lib_SOURCES, for
63245         consistency with the other modules.  Remove argmatch.c.
63246         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
63247         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
63248         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
63249         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
63250         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
63251         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
63252         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
63253         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
63254         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
63255         * modules/closeout (EXTRA_DIST): Add closeout.h.
63256         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
63257         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
63258         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
63259         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
63260         dirname.h; remove basename.c and stripslash.c.
63261         * modules/exclude (EXTRA_DIST): Add exclude.h.
63262         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
63263         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
63264         * modules/file-type (EXTRA_DIST): Add file-type.h.
63265         * modules/filemode (EXTRA_DIST): Add filemode.h.
63266         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
63267         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63268         * modules/fpending (EXTRA_DIST): Add __fpending.h.
63269         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
63270         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
63271         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
63272         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
63273         * modules/getdate (EXTRA_DIST): Add getdate.c.
63274         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
63275         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
63276         * modules/getpass (EXTRA_DIST): Add getpass.h.
63277         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
63278         * modules/group-member (EXTRA_DIST): Add group-member.h.
63279         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
63280         * modules/hash (EXTRA_DIST): Add hash.h.
63281         * modules/human (EXTRA_DIST): Add human.h.
63282         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
63283         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
63284         * modules/lchown (EXTRA_DIST): Add lchown.h.
63285         * modules/long-options (EXTRA_DIST): Add long-options.h.
63286         * modules/lstat (EXTRA_DIST): Add lstat.h.
63287         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
63288         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
63289         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
63290         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
63291         * modules/memxor (EXTRA_DIST): Add memxor.h.
63292         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
63293         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
63294         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
63295         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
63296         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
63297         * modules/physmem (EXTRA_DIST): Add physmem.h.
63298         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
63299         * modules/posixver (EXTRA_DIST): Add posixver.h.
63300         * modules/quote (EXTRA_DIST): Add quote.h.
63301         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
63302         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
63303         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
63304         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
63305         regex_internal.h regexec.c.
63306         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
63307         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
63308         * modules/same (EXTRA_DIST): Add same.h.
63309         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
63310         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
63311         * modules/savedir (EXTRA_DIST): Add savedir.h.
63312         * modules/sha1 (EXTRA_DIST): Add sha1.h.
63313         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
63314         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
63315         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
63316         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
63317         * modules/strdup (EXTRA_DIST): Add strdup.h.
63318         * modules/strftime (EXTRA_DIST): Add strftime.h.
63319         * modules/strndup (EXTRA_DIST): Add strndup.h.
63320         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
63321         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
63322         * modules/time_r (EXTRA_DIST): Add time_r.h.
63323         * modules/timespec (EXTRA_DIST): Add timespec.h.
63324         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63325         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
63326         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
63327         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
63328         * modules/userspec (EXTRA_DIST): Add userspec.h.
63329         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
63330         * modules/utimens (EXTRA_DIST): Add utimens.h.
63331         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
63332         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
63333         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
63334         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
63335         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
63336         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
63337         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
63338         * modules/yesno (EXTRA_DIST): Add yesno.h.
63339
63340 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63341
63342         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
63343
63344         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
63345         * m4/dev-ino.m4, same-inode.m4: Remove.
63346
63347         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
63348         * m4/acl.m4 (AC_FUNC_ACL):
63349         * m4/backupfile.m4 (gl_BACKUPFILE):
63350         * m4/c-strtod.m4 (gl_C99_STRTOLD):
63351         * m4/canon-host.m4 (gl_CANON_HOST):
63352         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63353         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
63354         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
63355         * m4/cloexec.m4 (gl_CLOEXEC):
63356         * m4/close-stream.m4 (gl_CLOSE_STREAM):
63357         * m4/closeout.m4 (gl_CLOSEOUT):
63358         * m4/dirfd.m4 (gl_FUNC_DIRFD):
63359         * m4/dirname.m4 (gl_DIRNAME):
63360         * m4/exclude.m4 (gl_EXCLUDE):
63361         * m4/exitfail.m4 (gl_EXITFAIL):
63362         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
63363         * m4/file-type.m4 (gl_FILE_TYPE):
63364         * m4/filemode.m4 (gl_FILEMODE):
63365         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
63366         * m4/fpending.m4 (gl_FUNC_FPENDING):
63367         * m4/fprintftime.m4 (gl_FPRINTFTIME):
63368         * m4/fts.m4 (gl_FUNC_FTS):
63369         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
63370         * m4/getdate.m4 (gl_GETDATE):
63371         * m4/gethrxtime.m4 (gl_GETHRXTIME):
63372         * m4/getpagesize.m4 (gl_GETPAGESIZE):
63373         * m4/getpass.m4 (gl_FUNC_GETPASS):
63374         * m4/gettime.m4 (gl_GETTIME):
63375         * m4/getugroups.m4 (gl_GETUGROUPS):
63376         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
63377         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
63378         * m4/hard-locale.m4 (gl_HARD_LOCALE):
63379         * m4/hash.m4 (gl_HASH):
63380         * m4/idcache.m4 (gl_IDCACHE):
63381         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
63382         * m4/lchown.m4 (gl_FUNC_LCHOWN):
63383         * m4/long-options.m4 (gl_LONG_OPTIONS):
63384         * m4/lstat.m4 (gl_FUNC_LSTAT):
63385         * m4/md5.m4 (gl_MD5):
63386         * m4/memcasecmp.m4 (gl_MEMCASECMP):
63387         * m4/memcoll.m4 (gl_MEMCOLL):
63388         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
63389         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
63390         * m4/memxor.m4 (gl_MEMXOR):
63391         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
63392         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
63393         * m4/modechange.m4 (gl_MODECHANGE):
63394         * m4/mountlist.m4 (gl_MOUNTLIST):
63395         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63396         * m4/openat.m4 (gl_FUNC_OPENAT):
63397         * m4/pathmax.m4 (gl_PATHMAX):
63398         * m4/physmem.m4 (gl_PHYSMEM):
63399         * m4/posixtm.m4 (gl_POSIXTM):
63400         * m4/posixver.m4 (gl_POSIXVER):
63401         * m4/quote.m4 (gl_QUOTE):
63402         * m4/quotearg.m4 (gl_QUOTEARG):
63403         * m4/readtokens.m4 (gl_READTOKENS):
63404         * m4/readutmp.m4 (gl_READUTMP):
63405         * m4/regex.m4 (gl_REGEX):
63406         * m4/safe-read.m4 (gl_SAFE_READ):
63407         * m4/safe-write.m4 (gl_SAFE_WRITE):
63408         * m4/same.m4 (gl_SAME):
63409         * m4/save-cwd.m4 (gl_SAVE_CWD):
63410         * m4/savedir.m4 (gl_SAVEDIR):
63411         * m4/settime.m4 (gl_SETTIME):
63412         * m4/sha1.m4 (gl_SHA1):
63413         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
63414         * m4/stat-macros.m4 (gl_STAT_MACROS):
63415         * m4/stat-time.m4 (gl_STAT_TIME):
63416         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
63417         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
63418         * m4/strdup.m4 (gl_FUNC_STRDUP):
63419         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
63420         * m4/strndup.m4 (gl_FUNC_STRNDUP):
63421         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
63422         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
63423         * m4/time_r.m4 (gl_TIME_R):
63424         * m4/timespec.m4 (gl_TIMESPEC):
63425         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
63426         * m4/unlinkdir.m4 (gl_UNLINKDIR):
63427         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
63428         * m4/userspec.m4 (gl_USERSPEC):
63429         * m4/utimecmp.m4 (gl_UTIMECMP):
63430         * m4/utimens.m4 (gl_UTIMENS):
63431         * m4/xalloc.m4 (gl_XALLOC):
63432         * m4/xgetcwd.m4 (gl_XGETCWD):
63433         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
63434         * m4/xreadlink.m4 (gl_XREADLINK):
63435         * m4/xstrtod.m4 (gl_XSTRTOD):
63436         * m4/yesno.m4 (gl_YESNO):
63437         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63438         to get the necessary .h files and whatnot.
63439
63440 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
63441             Bruno Haible  <bruno@clisp.org>
63442
63443         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
63444         /bin/sh understanding of '!' conditional negation.
63445
63446 2006-08-21  Jim Meyering  <jim@meyering.net>
63447
63448         * modules/openat (Depends-on): Really alphabetize.
63449
63450         * modules/acl (Depends-on): Add error and quote.
63451
63452         * check-module (find_included_lib_files): Add at-func.c to the
63453         ok-to-include-more-than-once white list.
63454
63455         * modules/openat (Depends-on): Add lstat.  Alphabetize.
63456
63457 2006-08-21  Bruno Haible  <bruno@clisp.org>
63458
63459         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63460         Emit a pkgdata_DATA variable only if some snippets add contents to it.
63461         Reported by Martin Lambers <marlam@marlam.de>.
63462
63463 2006-08-21  Bruno Haible  <bruno@clisp.org>
63464
63465         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
63466         specify an installation location, don't emit a noinst_LIBRARIES or
63467         noinst_LTLIBRARIES assignment.
63468
63469 2006-08-21  Bruno Haible  <bruno@clisp.org>
63470
63471         BeOS portability.
63472         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
63473         BeOS has mbrtowc() but no <wctype.h>.
63474
63475 2006-08-21  Bruno Haible  <bruno@clisp.org>
63476
63477         BeOS portability.
63478         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
63479         exist.
63480
63481 2006-08-21  Bruno Haible  <bruno@clisp.org>
63482
63483         BeOS portability.
63484         * lib/mbchar.h: Include <wctype.h> only if it exists.
63485
63486 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63487
63488         Remove files that are no longer needed by their respective modules.
63489         * m4/obstack.m4: Remove.
63490         * m4/strerror_r.m4: Remove.
63491         * m4/uint32_t.m4: Remove.
63492         * m4/uintptr_t.m4: Remove.
63493         * m4/ullong_max.m4: Remove.
63494         * m4/xstrtoimax.m4: Remove.
63495         * m4/xstrtoumax.m4: Remove.
63496
63497         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
63498         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
63499         dependencies now capture this.
63500
63501         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
63502         Do not use AC_LIBSOURCES, since gnulib modules now do this.
63503         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
63504         * m4/human.m4 (gl_HUMAN): Likewise.
63505         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
63506         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
63507
63508         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
63509
63510         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
63511         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
63512         stdint.
63513         * m4/human.m4 (gl_HUMAN): Likewise.
63514         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
63515         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
63516         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63517         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63518         * m4/xstrtol (gl_XSTRTOL): Likewise.
63519
63520         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
63521         AC_TYPE_LONG_LONG_INT.
63522         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63523         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
63524         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
63525         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63526
63527         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
63528         on stdbool.
63529
63530         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
63531         (gl_PREREQ_XSTRTOUL): Remove.
63532
63533         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
63534
63535         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
63536         mode.
63537
63538 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63539
63540         Add and change modules to make it easier for coreutils to use
63541         gnulib-tool.
63542         * modules/backupfile (Files): Remove m4/d-ino.m4.
63543         (Depends-on): Add d-ino.
63544         * modules/cycle-check (Depends-on): Add stdint.
63545         (lib_SOURCES): Add cycle-check.h.
63546         * modules/d-ino: New module.
63547         * modules/d-type: New module.
63548         * modules/error (Files): Remove m4/strerror_r.m4.
63549         * modules/filemode (Files): Add m4/st_dm_mode.m4.
63550         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
63551         m4/inttypes_h.m4, m4/uintmax_t.m4.
63552         (Depends-on): Add stdint.
63553         (lib_SOURCES): Add fsusage.h.
63554         * modules/getcwd (Files): Remove d-ino.m4.
63555         (Depends-on): Add d-ino.
63556         * modules/getndelim2 (Depends-on): Add stdint.
63557         * modules/glob (Files): Remove m4/d-type.m4.
63558         (Depends-on): Add d-type.
63559         * modules/host-os: New module.
63560         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
63561         m4/inttypes_h.m4, m4/uintmax_t.m4.
63562         * Depends-on: Add stdint.
63563         (lib_SOURCES): Add human.h.
63564         * modules/inttostr (Files): Remove m4/intmax_t.m4,
63565         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
63566         m4/uintmax_t.m4, m4/ulonglong.m4.
63567         (Depends-on): Add stdint.
63568         (EXTRA_DIST): Add inttostr.h.
63569         * modules/lchmod: New module.
63570         * modules/link-follow: New module.
63571         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
63572         (Depends-on): Add lchmod.
63573         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
63574         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
63575         (Depends-on): Add stdint.
63576         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
63577         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
63578         (Depends-on): Add stdint.
63579         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
63580         * modules/perl: New module.
63581         * modules/regex (Depends-on): Add stdint.
63582         * modules/rmdir-errno: New module.
63583         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63584         m4/intmax_t.m4.
63585         (Depends-on): Add stdint.
63586         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63587         m4/uintmax_t.m4.
63588         (Depends-on): Add stdint.
63589         * modules/unlink-busy: New module.
63590         * modules/utimecmp (Depends-on): Add stdint.
63591         * modules/uptime: New module.
63592         * modules/winsz-ioctl: New module.
63593         * modules/winsz-termios: New module.
63594         * modules/xnanosleep (Depends-on): Add nanosleep.
63595         * modules/ullong_max: Remove.
63596         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
63597         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
63598         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
63599         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
63600         (Depends-on): Add inttypes.
63601         (lib_SOURCES): Add xstrtol.h.
63602         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
63603         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
63604         * MODULES.html.sh: Move 'assert' into the assert section.
63605         Move 'dummy' into the linking section.
63606         Remove ullong_max.
63607         Add section for compatibility checks for POSIX:2001 functions,
63608         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
63609         winsz-ioctl, and winsz-termios into it.
63610         Add lchmod.
63611         Add top-level Misc section and put host-os, perl, and uptime
63612         into it.
63613
63614 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63615
63616         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
63617         now assume the stdint module.  Do not include inttypes.h.
63618         * lib/fsusage.h: Likewise.
63619         * lib/getndelim2.c: Likewise.
63620         * lib/human.h: Likewise.
63621         * lib/inttostr.h: Likewise.
63622         * lib/obstack.c: Likewise.
63623         * lib/regex_internal.h: Likewise.
63624         * lib/tempname.c: Likewise.
63625         * lib/utimecmp.c: Likewise.
63626         * lib/xstrtol.h: Likewise.
63627
63628         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
63629
63630         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
63631         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
63632         * lib/xtime.h: Likewise.
63633
63634 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63635
63636         * modules/openat (Files): Add lib/fchmodat.c.
63637         Fixes problem reported by Jay Youngman.
63638
63639 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63640
63641         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
63642         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
63643
63644 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
63645             Bruno Haible  <bruno@clisp.org>
63646
63647         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
63648         and is a script that invokes bison. Tighten the code. Add comments.
63649
63650 2006-08-18  Jim Meyering  <jim@meyering.net>
63651
63652         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
63653         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
63654         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
63655         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
63656
63657 2006-08-18  Bruno Haible  <bruno@clisp.org>
63658
63659         * modules/bison-i18n: New file.
63660         * MODULES.html.sh (Internationalization functions): Add it.
63661
63662 2006-08-18  Bruno Haible  <bruno@clisp.org>
63663
63664         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
63665         sys/statvfs.h. When getmntinfo was found, check its declaration and
63666         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
63667
63668 2006-08-18  Bruno Haible  <bruno@clisp.org>
63669
63670         * m4/bison-i18n.m4: New file, from bison.
63671
63672 2006-08-18  Bruno Haible  <bruno@clisp.org>
63673
63674         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
63675         (ME_DUMMY): Treat "kernfs" as a dummy.
63676         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
63677
63678 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63679
63680         Update from coreutils.
63681
63682         2006-08-15  Jim Meyering  <jim@meyering.net>
63683
63684         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
63685
63686         2006-01-17  Jim Meyering  <jim@meyering.net>
63687
63688         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
63689
63690         2006-01-11  Jim Meyering  <jim@meyering.net>
63691
63692         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
63693         Check for the lchmod function.
63694
63695 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63696
63697         Update from coreutils.
63698
63699         * lib/__fpending.h: Add copyright notice.
63700         * lib/fprintftime.h: Likewise.
63701         * lib/savedir.c: Use (C) in copyright notice.
63702         * lib/savedir.h: Likewise.
63703
63704         2006-08-15  Jim Meyering  <jim@meyering.net>
63705
63706         * lib/at-func.c: New file, with the logic of all emulated at-functions.
63707         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
63708         in support of the EXPECTED_ERRNO macro.
63709         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
63710         definitions.  Instead, define the appropriate symbols and include
63711         "at-func.c".
63712         * lib/mkdirat.c (mkdirat): Likewise.
63713         * lib/fchmodat.c (fchmodat): Likewise.
63714         (ENOSYS): Remove definition.
63715         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
63716         it.  Don't include "unistd--.h" -- it wasn't ever used.
63717
63718         2006-01-17  Jim Meyering  <jim@meyering.net>
63719
63720         Rewrite fts.c not to change the current working directory,
63721         by using openat, fstatat, fdopendir, etc..
63722
63723         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
63724         (HAVE_OPENAT_SUPPORT): Define.
63725         [_LIBC] (fchdir): Don't undef or define; no longer used.
63726         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
63727         Now, this `function' always succeeds, and consumes its file descriptor
63728         parameter -- so callers must not close such FDs.  Update callers.
63729         (diropen_fd, opendirat, cwd_advance_fd): New functions.
63730         (diropen): Add parameter, SP.  Adjust all callers.
63731         Implement using diropen_fd, rather than open.
63732         (fts_open): Initialize new member, fts_cwd_fd.
63733         Remove fts_rft-setting code.
63734         (fts_close): Close fts_cwd_fd, if necessary.
63735         (__opendir2): Define in terms of opendir or opendirat,
63736         depending on whether the FST_NOCHDIR flag is set.
63737         (fts_build): Since fts_safe_changedir consumes its FD, and since
63738         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
63739         and close the dup'd file descriptor upon failure.
63740         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
63741         (fts_safe_changedir): Tweak semantics to reflect that this function
63742         now calls cwd_advance_fd and hence consumes its FD argument.
63743         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
63744         [struct FTS] (fts_rft): Remove now-unused member.
63745         [struct FTS] (fts_cycle.state): Improve comment.
63746
63747         * lib/openat.c (openat_needs_fchdir): New function.
63748         * lib/openat.h (openat_needs_fchdir): Declare it.
63749
63750 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
63751
63752         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
63753         Problem and fix reported by Pádraig Brady in
63754         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
63755
63756 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63757
63758         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
63759
63760 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63761
63762         * lib/memcoll.c (memcoll): Optimize for the common case where the
63763         arguments are bytewise equal.
63764
63765 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63766
63767         * doc/regexprops-generic.texi: Add a copyright notice.
63768
63769 2006-08-15  Bruno Haible  <bruno@clisp.org>
63770
63771         * modules/tmpdir (License): Change to LGPL.
63772
63773 2006-08-15  Bruno Haible  <bruno@clisp.org>
63774
63775         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
63776         module.
63777
63778 2006-08-14  Simon Josefsson  <jas@extundo.com>
63779
63780         * config/srclist.txt: Add gnupload.
63781
63782 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63783
63784         Change copyright notice from LGPL 2 to GPL 2, since that's the
63785         standard form used in the gnulib repository.
63786         * tests/test-lock.c: Likewise.
63787         * tests/test-stdint.c: Likewise.
63788         * tests/test-tls.c: Likewise.
63789
63790         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
63791         prelude-manager.  User shorter URLs for GNU projects, without '?'.
63792         Add copyright notice.
63793
63794         * check-module: Add copyright notice.  Output a copyright
63795         notice if "--version" is specified.
63796         * modules/COPYING: New file.
63797         * tests/test-getaddrinfo.c: Add copyright notice.
63798         * tests/test-verify.c: Likewise.
63799
63800 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63801
63802         Change copyright notice from LGPL 2 to GPL 2, since that's the
63803         standard form used in the gnulib repository.
63804         * lib/lock.c: LGPL -> GPL.
63805         * lib/lock.h: Likewise.
63806         * lib/strnlen1.c: Likewise.
63807         * lib/strnlen1.h: Likewise.
63808         * lib/tls.c: Likewise.
63809         * lib/tls.h: Likewise.
63810         * lib/tmpdir.c: Likewise.
63811
63812         * lib/TODO: Remove; this belongs only in coreutils.
63813
63814 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63815
63816         Add copyright notices to long-enough files that lack them, since
63817         otherwise the files aren't clearly free.  Use the same notice that
63818         getdate.texi already uses.
63819         * doc/alloca-opt.texi: Add copyright notice.
63820         * doc/alloca.texi: Likewise.
63821         * doc/ctime.texi: Likewise.
63822         * doc/functions.texi: Likewise.
63823         * doc/gcd.texi: Likewise.
63824         * doc/gnulib-tool.texi: Likewise.
63825         * doc/inet_ntoa.texi: Likewise.
63826         * doc/visibility.texi: Likewise.
63827
63828         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
63829         * doc/quote.texi: Add copyright notice.
63830
63831         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
63832         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
63833         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
63834         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
63835         is now obsolete, and give a pointer to the Sun list.
63836         Add copyright notice.
63837
63838 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63839
63840         * config/srclistvars.sh: Add copyright notice.
63841
63842 2006-08-14  Eric Blake  <ebb9@byu.net>
63843
63844         Import the following change from libc:
63845
63846         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
63847
63848         Upstream bug 2997.
63849         * lib/misc/error.c: Add space between program name and message if file
63850         name is missing.
63851
63852 2006-08-12  Karl Berry  <karl@gnu.org>
63853
63854         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
63855         remove, these originate in gnulib now.
63856
63857 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63858
63859         * doc/Makefile (standards.info standards.html standards.dvi):
63860         Also depend on make-stds.texi.
63861
63862 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
63863
63864         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
63865         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
63866
63867         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
63868         in wchar_t.  Problem reported by Eric Blake.
63869
63870         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
63871         LEN is smaller than SIZE.  Suggested by Bruno Haible.
63872         Also, help the compiler to keep LEN in a register.
63873
63874 2006-08-11  Eric Blake  <ebb9@byu.net>
63875
63876         * users.txt: Sort.  Add tar.
63877
63878 2006-08-11  Bruno Haible  <bruno@clisp.org>
63879
63880         * users.txt: New file.
63881
63882 2006-08-11  Bruno Haible  <bruno@clisp.org>
63883
63884         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
63885         before <wchar.h>. Needed for OSF/1 and BSD/OS.
63886
63887 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63888
63889         * modules/snprintf (Depends-on): Remove minmax.
63890         (Maintainer): Add self and Bruno.
63891
63892 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63893
63894         * lib/.cppi-disable: Add snprintf.h, socket_.h.
63895         * lib/snprintf.c: Include <errno.h> and <limits.h>.
63896         (EOVERFLOW): Define if the system does not.
63897         Do not include "minmax.h"; it wasn't used.
63898         (snprintf): Don't assume size_t promotes to an unsigned type.
63899         Fix bug when generated string was too long for the buffer: the
63900         buffer's contents are supposed to be the initial prefix of the
63901         output.  Don't assume vasnprintf returns EOVERFLOW if the size
63902         exceeds INT_MAX; do the check ourselves.
63903
63904         Import the following changes from libc:
63905
63906         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
63907
63908         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
63909         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
63910         set wc to the byte which couldn't be converted.
63911         (re_string_reconstruct): Don't clear valid_raw_len before calling
63912         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
63913         tip_context using re_string_context_at.
63914
63915         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
63916
63917         * lib/posix/regex.h: g++ still cannot handled [restrict].
63918
63919         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
63920
63921         * lib/posix/regex.h: Remove special handling for VMS.
63922
63923 2006-08-10  Jim Meyering  <jim@meyering.net>
63924
63925         * modules/same-inode: New module.
63926         * modules/dev-ino: New module.
63927         * modules/cycle-check: Depend on these modules, rather than simply
63928         including their .h files.
63929         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
63930         required via m4/cycle-check.m4.
63931         * modules/same: Depend on new same-inode module, rather than
63932         including same-inode.h.
63933         * modules/chdir-safer: New file.
63934
63935         * modules/chown (Depends-on): Add stat-macros.
63936
63937 2006-08-10  Jim Meyering  <jim@meyering.net>
63938
63939         * m4/cycle-check.m4: New file.
63940         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
63941         * m4/dev-ino.m4, m4/same-inode.m4: New files.
63942
63943 2006-08-10  Eric Blake  <ebb9@byu.net>
63944
63945         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
63946         in from original proposal.
63947
63948 2006-08-10  Eric Blake  <ebb9@byu.net>
63949         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
63950
63951         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
63952         namespace.
63953
63954 2006-08-10  Bruno Haible  <bruno@clisp.org>
63955
63956         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
63957         as well.
63958
63959 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63960
63961         Sync from coreutils.
63962
63963         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
63964
63965         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
63966         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
63967
63968 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63969
63970         * modules/restrict: Remove; no longer needed now that we assume
63971         Autoconf 2.59 or later.
63972         * MODULES.html.sh: Remove 'restrict'.
63973         * modules/argp (Depends-on): Remove 'restrict'.
63974         * modules/base64 (Depends-on): Likewise.
63975         * modules/gc (Depends-on): Likewise.
63976         * modules/getaddrinfo (Depends-on): Likewise.
63977         * modules/glob (Depends-on): Likewise.
63978         * modules/inet_ntop (Depends-on): Likewise.
63979         * modules/inet_pton (Depends-on): Likewise.
63980         * modules/memxor (Depends-on): Likewise.
63981         * modules/regex (Depends-on): Likewise.
63982         * modules/strtok_r (Depends-on): Likewise.
63983         * modules/time_r (Depends-on): Likewise.
63984
63985 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63986
63987         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
63988         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
63989         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63990         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
63991         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
63992         * m4/memxor.m4 (gl_MEMXOR): Likewise.
63993         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
63994         gl_C_RESTRICT replaced by AC_C_RESTRICT.
63995
63996         Merge from coreutils.
63997         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
63998         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
63999         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64000         * m4/time_r.m4 (gl_TIME_R): Likewise.
64001
64002 2006-08-09  Karl Berry  <karl@gnu.org>
64003
64004         * config/srclist.txt: no more gettext-tools, per Bruno.
64005
64006 2006-08-08  Eric Blake  <ebb9@byu.net>
64007
64008         * modules/verror: New module.
64009         * MODULES.html.sh: Document it.
64010
64011 2006-08-08  Eric Blake  <ebb9@byu.net>
64012
64013         * lib/verror.h, lib/verror.c: New files.
64014
64015 2006-08-08  Eric Blake  <ebb9@byu.net>
64016
64017         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
64018         verror_at_line output complies with GNU Coding Standards even when
64019         file is NULL.
64020
64021 2006-08-07  Bruno Haible  <bruno@clisp.org>
64022
64023         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
64024         versions of AIX.
64025         Reported by Ralf Wildenhues.
64026
64027 2006-08-07  Bruno Haible  <bruno@clisp.org>
64028
64029         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
64030         in an AC_DEFUN. Needed so that the autoconf snippets can use
64031         AC_REQUIRE.
64032
64033 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64034
64035         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64036         Initialize pkgdata_DATA.
64037         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
64038         overriding it.
64039
64040 2006-08-06  Eric Blake  <ebb9@byu.net>
64041
64042         * lib/error.h: Fold in some upstream changes from glibc.
64043         * lib/error.c: Likewise.
64044
64045 2006-08-04  Bruno Haible  <bruno@clisp.org>
64046
64047         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64048         Make the mostlyclean-local rule depend on mostlyclean-generic.
64049         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
64050
64051 2006-07-31  Bruno Haible  <bruno@clisp.org>
64052
64053         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
64054         <stdlib.h>, <string.h>.
64055
64056 2006-07-30  Bruno Haible  <bruno@clisp.org>
64057
64058         * modules/readlink (License): Change to LGPL.
64059
64060 2006-07-30  Bruno Haible  <bruno@clisp.org>
64061
64062         * modules/javaversion (Makefile.am): Distribute javaversion.java and
64063         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
64064         set PKGDATADIR to point to it.
64065
64066 2006-07-30  Bruno Haible  <bruno@clisp.org>
64067
64068         * modules/csharpexec (configure.ac): Comment out macro invocation.
64069         * modules/javaexec (configure.ac): Likewise.
64070         * modules/javacomp-script (configure.ac): Likewise.
64071
64072         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
64073
64074 2006-07-30  Bruno Haible  <bruno@clisp.org>
64075
64076         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
64077         linked-list.
64078
64079 2006-07-30  Bruno Haible  <bruno@clisp.org>
64080
64081         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
64082
64083 2006-07-30  Bruno Haible  <bruno@clisp.org>
64084
64085         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64086         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
64087         get removed.
64088
64089 2006-07-29  Bruno Haible  <bruno@clisp.org>
64090
64091         Make it possible for gnulib-tool to work with locally modified or
64092         augmented gnulib repositories.
64093         * gnulib-tool (func_usage): Document --local-dir option.
64094         (local_gnulib_dir): New variable.
64095         Handle --local-dir option.
64096         (func_lookup_file): New function.
64097         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
64098         (func_get_description, func_get_filelist, func_get_description,
64099         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
64100         func_get_automake_snippet, func_get_include_directive,
64101         func_get_license, func_get_maintainer): Use func_lookup_file.
64102         (func_import, func_create_testdir): Use func_lookup_file.
64103
64104 2006-07-29  Bruno Haible  <bruno@clisp.org>
64105
64106         * modules/setenv (Depends-on): Add unistd.
64107
64108 2006-07-29  Bruno Haible  <bruno@clisp.org>
64109
64110         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
64111
64112 2006-07-29  Bruno Haible  <bruno@clisp.org>
64113
64114         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
64115
64116 2006-07-29  Bruno Haible  <bruno@clisp.org>
64117
64118         * gnulib-tool (import, update): If there is no Makefile.am, look at
64119         aclocal.m4, instead of bailing out.
64120
64121 2006-07-29  Bruno Haible  <bruno@clisp.org>
64122
64123         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
64124         Categorize the options by when they are useful.
64125
64126 2006-07-29  Bruno Haible  <bruno@clisp.org>
64127
64128         * gnulib-tool (func_usage): Document option --no-libtool.
64129         Handle option --no-libtool.
64130         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
64131         for changed semantics of $libtool variable.
64132         (func_import): Likewise. If libtool is not used, show this through
64133         an option --no-libtool.
64134         (func_create_testdir): Update.
64135
64136 2006-07-29  Bruno Haible  <bruno@clisp.org>
64137
64138         * gnulib-tool (func_import): Extend error message about missing
64139         --doc-base.
64140
64141 2006-07-29  Bruno Haible  <bruno@clisp.org>
64142
64143         * gnulib-tool (func_import): Don't create the $docbase directory if
64144         there is no file to store there.
64145
64146 2006-07-29  Bruno Haible  <bruno@clisp.org>
64147
64148         * gnulib-tool (autoconf_minversion): If a --dir option is given and
64149         relevant, look for configure.ac there, not in the current directory.
64150         Also use a simple search for AC_PREREQ, not "autoconf --trace".
64151
64152 2006-07-29  Bruno Haible  <bruno@clisp.org>
64153
64154         * gnulib-tool (SORT): New variable.
64155         (func_usage): Undocument --assume-autoconf option.
64156         Remove --assume-autoconf option handling.
64157         (autoconf_minversion): Determine from the contents of configure.ac.
64158         (func_import): Remove autoconf_minversion handling.
64159         Suggested by Eric Blake.
64160
64161 2006-07-29  Bruno Haible  <bruno@clisp.org>
64162
64163         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
64164
64165 2006-07-29  Bruno Haible  <bruno@clisp.org>
64166
64167         * config/srclist.txt (*setenv.[ch]): Remove rules.
64168
64169 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64170
64171         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
64172
64173 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64174
64175         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
64176         arpa/inet.h.
64177
64178 2006-07-28  Simon Josefsson  <jas@extundo.com>
64179
64180         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
64181         * modules/inet_pton (Depends-on): Likewise.
64182
64183 2006-07-28  Simon Josefsson  <jas@extundo.com>
64184
64185         * m4/netinet_in_h.m4: New file.
64186
64187 2006-07-28  Simon Josefsson  <jas@extundo.com>
64188
64189         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
64190         #include's.
64191
64192 2006-07-28  Simon Josefsson  <jas@extundo.com>
64193
64194         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
64195         #include's.
64196
64197 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
64198
64199         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
64200         setgid on directories only if they set these bits.
64201         * lib/modechange.h: Remove obsolete comment about masks.
64202
64203 2006-07-28  Eric Blake  <ebb9@byu.net>
64204
64205         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
64206         macro expansion.
64207
64208 2006-07-28  Bruno Haible  <bruno@clisp.org>
64209
64210         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
64211
64212 2006-07-28  Bruno Haible  <bruno@clisp.org>
64213
64214         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
64215
64216 2006-07-28  Bruno Haible  <bruno@clisp.org>
64217
64218         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
64219         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
64220         Define fallbacks.
64221         Avoids link error on FreeBSD 4.x.
64222         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64223
64224         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
64225         encoding.
64226         * lib/mbswidth.c (iswcntrl): Likewise.
64227
64228 2006-07-27  Bruno Haible  <bruno@clisp.org>
64229
64230         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
64231         test.
64232
64233 2006-07-27  Bruno Haible  <bruno@clisp.org>
64234
64235         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
64236         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
64237         defined.
64238
64239 2006-07-26  Eric Blake  <ebb9@byu.net>
64240
64241         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
64242
64243 2006-07-26  Eric Blake  <ebb9@byu.net>
64244
64245         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
64246         like mingw that lack mkstemp.
64247         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
64248         avoid compilation warning on mingw.
64249
64250 2006-07-26  Bruno Haible  <bruno@clisp.org>
64251
64252         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
64253         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
64254         INT_FAST*_MIN, INTPTR_MIN.
64255
64256 2006-07-25  Bruno Haible  <bruno@clisp.org>
64257
64258         * modules/version-etc (Depends-on): Add stdarg.
64259
64260 2006-07-25  Bruno Haible  <bruno@clisp.org>
64261
64262         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
64263         complex commands.
64264
64265 2006-07-25  Bruno Haible  <bruno@clisp.org>
64266
64267         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
64268         defined in <stdarg.h> or config.h.
64269
64270 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64271
64272         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
64273         (gl_STDIO_SAFER): Remove.
64274
64275 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64276
64277         * MODULES.html.sh (File stream based Input/Output):
64278         Add fopen-safer, tmpfile-safer; remove stdio-safer.
64279         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
64280         * modules/fopen-safer, modules/tmpfile-safer: New files.
64281         * modules/stdio-safer: Remove.
64282
64283 2006-07-24  Bruno Haible  <bruno@clisp.org>
64284
64285         * modules/tmpdir: New file.
64286         * MODULES.html.sh (File system functions): Add it.
64287
64288 2006-07-24  Bruno Haible  <bruno@clisp.org>
64289
64290         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
64291         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
64292
64293 2006-07-24  Bruno Haible  <bruno@clisp.org>
64294
64295         * modules/clean-temp: New file.
64296
64297 2006-07-24  Bruno Haible  <bruno@clisp.org>
64298
64299         * m4/tmpdir.m4: New file, from GNU gettext.
64300
64301 2006-07-24  Bruno Haible  <bruno@clisp.org>
64302
64303         * lib/tmpdir.h: New file, from GNU gettext.
64304         * lib/tmpdir.c: New file, from GNU gettext.
64305
64306 2006-07-24  Bruno Haible  <bruno@clisp.org>
64307
64308         * lib/clean-temp.h: New file, from GNU gettext.
64309         * lib/clean-temp.c: New file, from GNU gettext.
64310
64311 2006-07-23  Eric Blake  <ebb9@byu.net>
64312
64313         * modules/stdio-safer (Files): Add tmpfile-safer.c.
64314         (Depends-on): Add binary-io.
64315
64316 2006-07-23  Eric Blake  <ebb9@byu.net>
64317
64318         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
64319
64320 2006-07-23  Eric Blake  <ebb9@byu.net>
64321
64322         * lib/tmpfile-safer.c: New file.
64323         * lib/stdio-safer.h (fopen_safer): Add prototype.
64324         * lib/stdio--.h (tmpfile): Make safer.
64325
64326 2006-07-23  Bruno Haible  <bruno@clisp.org>
64327
64328         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
64329         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
64330         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
64331         gl_linked_remove_at): Use it.
64332
64333 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64334         and Simon Josefsson <jas@extundo.com>
64335
64336         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
64337
64338         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
64339
64340 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64341
64342         * modules/close-stream: New file.
64343         * modules/closeout (Description): Make it clear that it exits
64344         with a diagnostic on error.
64345         (Depends-on): Add close-stream.  Remove fpending, stdbool.
64346         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
64347
64348 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64349
64350         * m4/close-stream.m4: New file.
64351
64352 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64353
64354         * lib/close-stream.c, lib/close-stream.h: New files.
64355
64356 2006-07-22  Bruno Haible  <bruno@clisp.org>
64357
64358         Merge from GNU gettext 0.15.
64359
64360         2006-05-01  Bruno Haible  <bruno@clisp.org>
64361
64362                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
64363
64364         2006-07-22  Bruno Haible  <bruno@clisp.org>
64365
64366                 * modules/javaversion: New file.
64367                 * MODULES.html.sh (Java): Add javaversion.
64368
64369         2006-03-12  Bruno Haible  <bruno@clisp.org>
64370
64371                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
64372
64373         2005-12-04  Bruno Haible  <bruno@clisp.org>
64374
64375                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
64376                 (untested).
64377
64378         2006-06-21  Bruno Haible  <bruno@clisp.org>
64379
64380                 Avoid warnings from recent versions of mcs.
64381                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
64382                 -o, -L, -r any more. Use options documented since mcs-1.0
64383                 instead. Similarly for -g.
64384
64385         2005-12-04  Bruno Haible  <bruno@clisp.org>
64386
64387                 * build-aux/csharpcomp.sh.in: Suffix for resources is
64388                 .resources, not .resource.
64389
64390         2005-07-09  Bruno Haible  <bruno@clisp.org>
64391
64392                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
64393                 add a .dll suffix.
64394                 Reported by Mark Junker <mjscod@gmx.de>.
64395
64396         2006-07-22  Bruno Haible  <bruno@clisp.org>
64397
64398                 * modules/gettext: Upgrade to gettext-0.15.
64399                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
64400                 m4/visibility.m4.
64401                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
64402
64403 2006-07-22  Bruno Haible  <bruno@clisp.org>
64404
64405         Merge from GNU gettext 0.15.
64406
64407         2006-03-25  Bruno Haible  <bruno@clisp.org>
64408
64409                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
64410
64411         2006-07-21  Bruno Haible  <bruno@clisp.org>
64412
64413                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
64414                 "1.1".
64415
64416         2006-05-09  Bruno Haible  <bruno@clisp.org>
64417
64418                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
64419                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
64420                 for the conftestver execution.
64421
64422         2006-05-01  Bruno Haible  <bruno@clisp.org>
64423
64424                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
64425                 optional target-version argument. Verify that the compiler
64426                 groks source of the specified source-version, or add -source
64427                 option as necessary. Verify that the compiler produces
64428                 bytecode in the specified target-version, or add -target and
64429                 -source options as necessary. Make the result of the test
64430                 available as variable CONF_JAVAC. Also log error output in
64431                 config.log.
64432
64433         2006-03-11  Bruno Haible  <bruno@clisp.org>
64434
64435                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
64436
64437         2006-05-09  Bruno Haible  <bruno@clisp.org>
64438
64439                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
64440                 CLASSPATH_SEPARATOR to a semicolon.
64441
64442         2006-03-12  Bruno Haible  <bruno@clisp.org>
64443
64444                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
64445                 available as variable CONF_JAVA, for subsequent autoconf
64446                 tests. Also log error output in config.log.
64447
64448         2006-07-19  Bruno Haible  <bruno@clisp.org>
64449
64450                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
64451                 that getline works on glibc2 systems. Needed to avoid trouble
64452                 in relocatable.c.
64453                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
64454
64455         2005-12-04  Bruno Haible  <bruno@clisp.org>
64456
64457                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
64458                 launcher (untested).
64459
64460         2005-12-04  Bruno Haible  <bruno@clisp.org>
64461
64462                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
64463
64464         2006-07-22  Bruno Haible  <bruno@clisp.org>
64465
64466                 * gettext.m4: Update from GNU gettext-0.15.
64467                 * nls.m4: Likewise.
64468                 * po.m4: Likewise.
64469                 * inttypes-pri.m4: Likewise.
64470                 * inttypes-h.m4: Renamed from inttypes.m4.
64471                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
64472
64473 2006-07-22  Bruno Haible  <bruno@clisp.org>
64474
64475         Merge from GNU gettext 0.15.
64476
64477         2005-07-05  Bruno Haible  <bruno@clisp.org>
64478
64479                 * printf-args.c (printf_fetchargs): Work around broken
64480                 definition of wint_t on mingw.
64481
64482         2005-02-12  Bruno Haible  <bruno@clisp.org>
64483
64484                 * xallocsa.h: Add extern "C" for C++.
64485
64486         2006-05-17  Bruno Haible  <bruno@clisp.org>
64487
64488                 Cygwin portability.
64489                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
64490
64491         2006-04-30  Bruno Haible  <bruno@clisp.org>
64492
64493                 * progreloc.c: Include <mach-o/dyld.h> if available.
64494                 (find_executable): Use _NSGetExecutablePath when possible.
64495
64496         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64497
64498                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
64499                 function.
64500
64501         2005-12-29  Bruno Haible  <bruno@clisp.org>
64502
64503                 * progreloc.c (set_program_name_and_installdir): Fix
64504                 compilation error.
64505
64506         2005-12-04  Bruno Haible  <bruno@clisp.org>
64507
64508                 Cygwin portability.
64509                 * progreloc.c: Include <windows.h> also on Cygwin.
64510                 (find_executable): Add support for Cygwin.
64511                 (set_program_name_and_installdir): Handle also platforms with
64512                 nonempty EXEEXT.
64513
64514         2006-07-11  Bruno Haible  <bruno@clisp.org>
64515
64516                 * javacomp.c: Fix a comment.
64517                 Reported by Jim Meyering.
64518
64519         2006-04-30  Bruno Haible  <bruno@clisp.org>
64520
64521                 * javacomp.h (compile_java_class): Add source_version,
64522                 target_version arguments.
64523                 * javacomp.c: Rewritten to choose only a compiler that
64524                 respects the specified source_version and target_version.
64525
64526         2006-06-27  Bruno Haible  <bruno@clisp.org>
64527
64528                 Assume correct S_ISDIR macro.
64529                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
64530
64531         2006-07-22  Bruno Haible  <bruno@clisp.org>
64532
64533                 * javaversion.h: New file, from GNU gettext.
64534                 * javaversion.c: New file, from GNU gettext.
64535                 * javaversion.java: New file, from GNU gettext.
64536                 * javaversion.class: New file, from GNU gettext.
64537
64538         2006-05-17  Bruno Haible  <bruno@clisp.org>
64539
64540                 Cygwin portability.
64541                 * javaexec.c (execute_java_class): Test for jview program
64542                 also on Cygwin.
64543
64544         2006-04-09  Bruno Haible  <bruno@clisp.org>
64545
64546                 * fatal-signal.c: Don't include string.h.
64547                 (at_fatal_signal): Use a copying loop instead of memcpy.
64548
64549         2005-12-04  Bruno Haible  <bruno@clisp.org>
64550
64551                 * csharpexec.c: Add support for 'clix' launcher (untested).
64552                 (execute_csharp_using_sscli): New function.
64553                 (execute_csharp_program): Call it.
64554
64555         2006-06-21  Bruno Haible  <bruno@clisp.org>
64556
64557                 Avoid warnings from recent versions of mcs.
64558                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
64559                 -o, -L, -r any more. Use options documented since mcs-1.0
64560                 instead. Similarly for -g.
64561
64562         2005-07-09  Bruno Haible  <bruno@clisp.org>
64563
64564                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
64565                 add a .dll suffix.
64566                 Reported by Mark Junker <mjscod@gmx.de>.
64567
64568         2006-06-17  Bruno Haible  <bruno@clisp.org>
64569
64570                 * config.charset: Update for NetBSD 3.0.
64571
64572         2006-05-17  Bruno Haible  <bruno@clisp.org>
64573
64574                 Cygwin portability.
64575                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
64576
64577         2006-05-16  Bruno Haible  <bruno@clisp.org>
64578
64579                 * localcharset.c [CYGWIN]: Include <windows.h>.
64580                 (get_charset_aliases): For Cygwin, return the same CPxxx
64581                 aliases list as under WIN32.
64582                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
64583                 the environment variables. Fall back to GetACP().
64584
64585         2006-04-05  Bruno Haible  <bruno@clisp.org>
64586
64587                 * config.charset: Update Juan Manuel Guerrero's address.
64588
64589         2005-02-12  Bruno Haible  <bruno@clisp.org>
64590
64591                 * allocsa.h: Add extern "C" for C++.
64592
64593         2005-02-10  Bruno Haible  <bruno@clisp.org>
64594
64595                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
64596                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
64597
64598         2006-07-22  Bruno Haible  <bruno@clisp.org>
64599
64600                 * gettext.h: Update to GNU gettext-0.15.
64601
64602 2006-07-22  Bruno Haible  <bruno@clisp.org>
64603
64604         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
64605         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
64606         lib-prefix.m4, longdouble.m4, ssize_t.m4.
64607
64608 2006-07-21  Eric Blake  <ebb9@byu.net>
64609
64610         * modules/stdlib-safer: New file.
64611         * MODULES.html.sh (File stream based Input/Output): Add
64612         stdlib-safer.
64613
64614 2006-07-21  Eric Blake  <ebb9@byu.net>
64615
64616         * lib/stdlib-safer.h: New file from coreutils, required by
64617         stdlib--.h.
64618
64619 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
64620
64621         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
64622
64623 2006-07-20  Bruno Haible  <bruno@clisp.org>
64624
64625         * gnulib-tool: Recognize new option --assume-autoconf.
64626         (autoconf_minversion): New variable.
64627         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
64628
64629 2006-07-20  Bruno Haible  <bruno@clisp.org>
64630
64631         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
64632
64633 2006-07-19  Derek R. Price  <derek@ximbiot.com>
64634
64635         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
64636         Reindent and repaginate.
64637
64638 2006-07-19  Derek Price  <derek@ximbiot.com>
64639
64640         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
64641         Correct grammar.
64642
64643 2006-07-17  Bruno Haible  <bruno@clisp.org>
64644
64645         * modules/list: New file.
64646         * modules/array-list: New file.
64647         * modules/carray-list, modules/carray-list-tests: New files.
64648         * modules/linked-list, modules/linked-list-tests: New files.
64649         * modules/avltree-list, modules/avltree-list-tests: New files.
64650         * modules/rbtree-list, modules/rbtree-list-tests: New files.
64651         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
64652         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
64653         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
64654         * modules/oset: New file.
64655         * modules/array-oset: New file.
64656         * modules/avltree-oset, modules/avltree-oset-tests: New files.
64657         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
64658         * tests/test-carray_list.c: New file.
64659         * tests/test-linked_list.c: New file.
64660         * tests/test-avltree_list.c: New file.
64661         * tests/test-rbtree_list.c: New file.
64662         * tests/test-linkedhash_list.c: New file.
64663         * tests/test-avltreehash_list.c: New file.
64664         * tests/test-rbtreehash_list.c: New file.
64665         * tests/test-avltree_oset.c: New file.
64666         * tests/test-rbtree_oset.c: New file.
64667         * MODULES.html.sh (Container data structures): New section.
64668
64669 2006-07-17  Bruno Haible  <bruno@clisp.org>
64670
64671         * m4/gl_list.m4: New file.
64672
64673 2006-07-17  Bruno Haible  <bruno@clisp.org>
64674
64675         * lib/gl_list.h: New file.
64676         * lib/gl_list.c: New file.
64677         * lib/gl_array_list.h: New file.
64678         * lib/gl_array_list.c: New file.
64679         * lib/gl_carray_list.h: New file.
64680         * lib/gl_carray_list.c: New file.
64681         * lib/gl_linked_list.h: New file.
64682         * lib/gl_linked_list.c: New file.
64683         * lib/gl_anylinked_list1.h: New file.
64684         * lib/gl_anylinked_list2.h: New file.
64685         * lib/gl_avltree_list.h: New file.
64686         * lib/gl_avltree_list.c: New file.
64687         * lib/gl_anyavltree_list1.h: New file.
64688         * lib/gl_anyavltree_list2.h: New file.
64689         * lib/gl_rbtree_list.h: New file.
64690         * lib/gl_rbtree_list.c: New file.
64691         * lib/gl_anyrbtree_list1.h: New file.
64692         * lib/gl_anyrbtree_list2.h: New file.
64693         * lib/gl_anytree_list1.h: New file.
64694         * lib/gl_anytree_list2.h: New file.
64695         * lib/gl_linkedhash_list.h: New file.
64696         * lib/gl_linkedhash_list.c: New file.
64697         * lib/gl_anyhash_list1.h: New file.
64698         * lib/gl_anyhash_list2.h: New file.
64699         * lib/gl_avltreehash_list.h: New file.
64700         * lib/gl_avltreehash_list.c: New file.
64701         * lib/gl_rbtreehash_list.h: New file.
64702         * lib/gl_rbtreehash_list.c: New file.
64703         * lib/gl_anytreehash_list1.h: New file.
64704         * lib/gl_anytreehash_list2.h: New file.
64705
64706         * lib/gl_oset.h: New file.
64707         * lib/gl_oset.c: New file.
64708         * lib/gl_array_oset.h: New file.
64709         * lib/gl_array_oset.c: New file.
64710         * lib/gl_avltree_oset.h: New file.
64711         * lib/gl_avltree_oset.c: New file.
64712         * lib/gl_rbtree_oset.h: New file.
64713         * lib/gl_rbtree_oset.c: New file.
64714         * lib/gl_anytree_oset.h: New file.
64715
64716 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64717
64718         * m4/mkancesdirs.m4: New file.
64719         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
64720         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
64721         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
64722         it.
64723
64724 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64725
64726         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
64727         * lib/mkancesdirs.h: New files.
64728         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
64729         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
64730         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
64731         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
64732         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
64733         callers changed.  Revamp internals significantly, by not
64734         attempting to create directories that are temporarily more
64735         permissive than the final results.  Do not attempt to use
64736         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
64737         This removes some race conditions, fixes some bugs, and simplifies
64738         things.  Use new dirchownmod function to do owner and mode changes.
64739         * lib/mkdir-p.h: Likewise.
64740         * lib/modechange.c (octal_to_mode): New function.
64741         (struct mode_change): New member mentioned.
64742         (make_node_op_equals): New arg mentioned.  All callers changed.
64743         (mode_compile): Keep track of which mode bits the user has explicitly
64744         mentioned.
64745         (mode_adjust): New arg DIR, so that we implement the X op correctly.
64746         New arg PMODE_BITS, to keep track of which mode bits the user
64747         mentioned; it treats S_ISUID and S_ISGID speciall.
64748         All callers changed.
64749         * lib/modechange.h: Likewise.
64750
64751 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64752
64753         * MODULES.html.sh: Add mkancestors.
64754         * modules/mkancesdirs: New module.
64755         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
64756         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
64757         The chdir-safer and afs files are now orphans; I'll remove them
64758         unless someone speaks up.
64759         Add lib/dirchownmod.c, lib/dirchownmod.h.
64760         (Depends-on): Remove alloca, chown, save-cwd, dirname.
64761         Add lchown, mkancesdirs.
64762         (Maintainer): Add self.
64763
64764 2006-07-15  Karl Berry  <karl@gnu.org>
64765
64766         * gnulib-tool: help message wording/arrangement.
64767
64768 2006-07-14  Simon Josefsson  <jas@extundo.com>
64769
64770         * doc/gnulib.texi (Libtool and Windows): New section.
64771
64772 2006-07-12  Simon Josefsson  <jas@extundo.com>
64773
64774         * modules/gendocs (License): Fix license, approved by Karl.
64775
64776 2006-07-12  Eric Blake  <ebb9@byu.net>
64777
64778         * MODULES.html.sh: Add gendocs.
64779
64780 2006-07-11  Eric Blake  <ebb9@byu.net>
64781
64782         * modules/fdl: New module, to install doc/fdl.texi.
64783         * MODULES.html.sh: Add new section for documentation modules.
64784         * gnulib-tool: Avoid space-tab.
64785         (--doc-base): New option, to manage files from doc.
64786
64787 2006-07-11  Eric Blake  <ebb9@byu.net>
64788
64789         * m4/absolute-header.m4: Fix comments to match recent change.
64790
64791 2006-07-11  Eric Blake  <ebb9@byu.net>
64792
64793         * gnulib-tool: List --doc-base before --tests-base.
64794
64795 2006-07-11  Derek R. Price  <derek@ximbiot.com>
64796
64797         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
64798
64799 2006-07-11  Bruno Haible  <bruno@clisp.org>
64800
64801         * README: Mention where to put documentation.
64802
64803 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64804
64805         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
64806
64807 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
64808
64809         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
64810         to stdint.m4.
64811
64812 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
64813
64814         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
64815         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
64816         "no/such/file/stdint.h" when there is no such file, so that
64817         the resulting C code can be parsed by dodgy compilers.
64818         Problems reported by Bob Proulx.
64819
64820 2006-07-10  Derek R. Price  <derek@ximbiot.com>
64821
64822         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
64823         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
64824         macros into the GNU _D_EXACT_NAMLEN.
64825         * lib/savedir.c:  Likewise.
64826         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
64827
64828 2006-07-10  Derek R. Price  <derek@ximbiot.com>
64829         and Paul Eggert  <eggert@cs.ucla.edu>
64830
64831         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
64832         * m4/savedir.m4:
64833         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
64834         macros into the GNU _D_EXACT_NAMLEN.
64835
64836 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64837
64838         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
64839         around the absolute name, to work around a problem with the HP-UX
64840         11.23 native C compiler, reported by Bob Proulx.
64841
64842 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64843
64844         * doc/maintain.texi, make-stds.texi: Sync from
64845         <http://savannah.gnu.org/projects/gnustandards>.
64846
64847 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64848
64849         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
64850
64851 2006-07-09  Jim Meyering  <jim@meyering.net>
64852
64853         * m4/glob.m4: Remove a doubled word in a comment.
64854
64855 2006-07-09  Jim Meyering  <jim@meyering.net>
64856
64857         * lib/argp-pv.c: Remove a doubled word in a comment.
64858         * lib/check-version.c (check_version): Likewise.
64859         * lib/javacomp.c (compile_java_class): Likewise.
64860
64861 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
64862
64863         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
64864         for the benefit of people using Autoconf 2.60.  If you want to
64865         support older Autoconf versions you can copy m4/onceonly_2_57.m4
64866         (or m4/onceonly.m4, if pre-2.57) manually.
64867
64868 2006-07-08  Jim Meyering  <jim@meyering.net>
64869
64870         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
64871         comment.
64872         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
64873         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
64874         comment.
64875
64876 2006-07-08  Jim Meyering  <jim@meyering.net>
64877
64878         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
64879
64880 2006-07-07  Simon Josefsson  <jas@extundo.com>
64881
64882         * tests/test-crc.c: Change expected crc value, the test vector
64883         were probably computed using the old broken crc.c?
64884
64885 2006-07-06  Simon Josefsson  <jas@extundo.com>
64886
64887         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
64888         now the canonical place for the M4 file).
64889
64890         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
64891         from the sys_socket dependency now.
64892
64893         * modules/inet_pton (Files): Ditto.
64894
64895         * modules/inet_ntop (Files): Ditto.
64896
64897 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64898
64899         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
64900         not gl_PREREQ_GETUSERSHELL.
64901
64902 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64903
64904         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
64905         with only one argument, for Autoconf 2.60.
64906         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
64907         expand to nothing, so add a shell command to avoid syntax error.
64908         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64909
64910 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64911
64912         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
64913
64914 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64915
64916         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
64917         no longer needed.  Check for isblank decl.
64918         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
64919         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
64920         of existence.
64921
64922 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64923
64924         * lib/getloadavg.c: Use __VMS, not VMS.
64925         * lib/getopt.c: Likewise.
64926         * lib/getpagesize.h: Likewise.
64927         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
64928         and probably does not work.
64929
64930 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64931
64932         * lib/.cppi-disable: Add wcwidth.
64933         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
64934         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
64935         (ISGRAPH): Remove.  All uses changed to isgraph.
64936         (FOLD) [!defined _LIBC]: Remove special case.
64937         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
64938         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
64939         HAVE_ISBLANK.
64940         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
64941         case.
64942
64943 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
64944
64945         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
64946         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
64947         brackets.  Other minor changes to suppress some compiler
64948         warnings.
64949
64950 2006-07-06  Derek R. Price  <derek@ximbiot.com>
64951         and Paul Eggert  <eggert@cs.ucla.edu>
64952
64953         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
64954         of invoking obsolescent AC_HEADER_DIRENT macro.
64955         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
64956         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
64957         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
64958         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
64959         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
64960         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64961         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
64962         * m4/readdir.m4: Remove; no longer needed.
64963
64964 2006-07-06  Derek R. Price  <derek@ximbiot.com>
64965         and Paul Eggert  <eggert@cs.ucla.edu>
64966
64967         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
64968         Don't worry about this obsolete case any more.
64969         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
64970         directories.
64971         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
64972         worry about this obsolete case any more.
64973         * lib/fts.c: Likewise.
64974         * lib/getcwd.c: Likewise.
64975         * lib/glob.h: Likewise.
64976         * lib/savedir.c: Likewise.
64977
64978 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64979
64980         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
64981         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
64982         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
64983         needed.
64984         All uses removed.
64985         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64986         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
64987         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
64988         needed.
64989         * m4/getdate.m4 (gl_GETDATE): Likewise.
64990         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
64991         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
64992         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
64993         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64994         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
64995         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64996         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
64997         needed.
64998
64999 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65000
65001         * lib/memcasecmp.c: Include <limits.h>.
65002         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
65003         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
65004         Don't assume isdigit succeeds only on '0' through '9'.
65005
65006 2006-07-05  Eric Blake  <ebb9@byu.net>
65007
65008         * modules/getaddrinfo (Depends-on): Add snprintf.
65009
65010 2006-07-05  Eric Blake  <ebb9@byu.net>
65011
65012         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
65013         to avoid 'header present but could not be compiled' on cygwin.
65014
65015 2006-07-05  Eric Blake  <ebb9@byu.net>
65016
65017         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
65018         missing from netdb.h.
65019         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
65020
65021 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65022
65023         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
65024         no longer needed.
65025         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
65026         * m4/getdate.m4 (gl_GETDATE): Likewise.
65027         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65028         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65029         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65030         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65031         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65032
65033 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65034
65035         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
65036         All uses of is_space replaced by isspace.
65037         * lib/exit.h: Don't talk about STDC_HEADERS.
65038         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
65039         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
65040         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
65041         replaced by isprint etc.
65042         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
65043         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65044         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
65045         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
65046         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
65047         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65048
65049 2006-07-05  Bruno Haible  <bruno@clisp.org>
65050
65051         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
65052         the function exists, before testing against AIX.
65053         Reported by Martin Lambers <marlam@marlam.de>.
65054
65055 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65056
65057         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
65058         From Mark D. Baushke.
65059
65060 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65061
65062         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
65063         to the absolute name, not just one, to bypass Sun C 5.8's
65064         "warning: #include of /usr/include/... may be non-portable".
65065
65066 2006-07-04  Eric Blake  <ebb9@byu.net>
65067
65068         * modules/dirname-tests: New test module.
65069         * tests/test-dirname.c: New file, replacing dirname.c
65070         TEST_DIRNAME section that was recently deleted.
65071
65072 2006-07-04  Bruno Haible  <bruno@clisp.org>
65073
65074         Assume ANSI C header files and <ctype.h> functions.
65075         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
65076         (mbsnwidth): Use isprint, iscntrl instead.
65077
65078 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65079
65080         Merge from coreutils.
65081         * MODULES.html.sh: Add xstrtold.
65082         * modules/xstrtold: New file.
65083         * modules/cycle-check (Files): Add lib/same-inode.h.
65084         * modules/dirname (Files): Add m4/double-slash-root.m4.
65085         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
65086         * modules/mkdir-p (Files): Add lib/same-inode.h.
65087         * modules/same (Files): Add lib/same-inode.h.
65088
65089 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65090
65091         * m4/absolute-header.m4: Renamed from full-header-path.m4.
65092         This is to keep the terminology clean; POSIX talks about
65093         "absolute pathnames", not "full pathnames", but the GNU
65094         Coding Standards say to use "path" for something else;
65095         so use "absolute" to keep both sides happy.
65096         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
65097         Set gl_absolute_header, not gl_full_header_path.
65098         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
65099         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
65100         All uses changed.
65101
65102         Merge from coreutils.
65103
65104         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65105
65106         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
65107         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
65108         want to require the building of c-strtod.o.
65109         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
65110         needs -lm directly.
65111         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
65112
65113         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65114
65115         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
65116         --as-needed option if available.  Problem reported by Albert Chin in
65117         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
65118         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
65119         cc merely issues a bunch of annoying warnings for --as-needed
65120         (this problem was reported by Bob Proulx).  Also, try linking with
65121         -lm to detect a bug in binutils 2.16 (this problem was reported
65122         by Ralf Wildenhues).
65123
65124         2006-06-18  Jim Meyering  <jim@meyering.net>
65125
65126         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
65127         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
65128         macro.
65129         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
65130         also check for glibc-2.4's abort-inducing bug.
65131
65132         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
65133         Low-probability clean-up should be to use rmdir to get rid of
65134         the just-created directory, not unlink.
65135
65136         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
65137         configure fail, and request a bug report to inform us about it.
65138         Add a comment that, barring reports to the contrary, in 2007 we'll
65139         assume ftruncate is universally available.
65140
65141         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65142
65143         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
65144
65145         2006-03-12  Jim Meyering  <jim@meyering.net>
65146
65147         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
65148         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
65149         * m4/same.m4 (gl_SAME): Likewise.
65150         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
65151
65152         2006-03-11  Eric Blake  <ebb9@byu.net>
65153
65154         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
65155         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
65156         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
65157         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
65158
65159 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65160
65161         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
65162         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
65163         reported by Mark D. Baushke, one in
65164         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
65165
65166         Merge from coreutils.
65167
65168         * lib/.cppi-disable: Add stdint_.h.
65169         * lib/.cvsignore: Add stdint.h.
65170
65171         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65172
65173         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
65174         both double and long double versions.
65175         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
65176         * lib/xstrtold.c: New file.
65177         * lib/xstrtod.h (xstrtold): New decl.
65178
65179         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65180
65181         * lib/filemode.c (setst): Remove.
65182         (strmode): Rewrite to avoid setst.  This makes the code shorter,
65183         (arguably) clearer, and the generated code is a bit smaller on my
65184         Debian GNU/Linux stable x86 host.
65185
65186         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65187
65188         * lib/filemode.c: Include "filemode.h" first, to test the interface.
65189         Assume that filemode.h includes sys/types.h and sys/stat.h.
65190         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
65191         (ftypelet): Reorder to put common cases first, for efficiency.
65192         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
65193         to do 'M'.
65194         (strmode): Renamed from mode_string, and now stores 12 bytes instead
65195         of 10, for compatibility with FreeBSD.  All callers changed.
65196         (filemodestring): Now stores 12 bytes instead of 10, and sets file
65197         types that can't be deduced solely from st_mode.  First arg is now a
65198         const pointer.
65199         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
65200         (strmode): Renamed from mode_string.
65201         (filemodestring): New decl.
65202         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
65203         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
65204         needed.
65205         (S_ISPORT, S_ISWHT): New macros, if not already defined.
65206
65207         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65208
65209         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
65210         fsusage.h now does that.  Include fsusage.h first, to test interface.
65211         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
65212         at most one method (the old code could have generated decls that
65213         didn't conform to C89, not that this was ever exercised).
65214         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
65215
65216         2006-03-19  Jim Meyering  <jim@meyering.net>
65217
65218         Work even in a chroot where d_ino values for entries in "/"
65219         don't match the stat.st_ino values for the same names.
65220         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
65221         number, iterate through all entries again, using lstat instead.
65222         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
65223         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
65224
65225         * lib/getcwd.c (__getcwd): Clarify a comment.
65226         Use memcpy in place of a call to strcpy.
65227
65228         2006-03-12  Jim Meyering  <jim@meyering.net>
65229
65230         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
65231         matches that of the current directory (which we're about to chdir ".."
65232         out of), then save the dev-ino of the parent, instead.
65233
65234         * lib/same-inode.h (SAME_INODE): New file/macro.
65235         * lib/chdir-safer.c (SAME_INODE): Remove definition.
65236         Include "same-inode.h", instead.
65237         * lib/same.c: Likewise.
65238         * lib/cycle-check.h: Include "same-inode.h".
65239         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
65240         * lib/cycle-check.c (SAME_INODE): Remove definition.
65241         * lib/root-dev-ino.h: Include "same-inode.h".
65242
65243         2006-03-11  Eric Blake  <ebb9@byu.net>
65244
65245         * lib/same.c (same_name): s/base_name/last_component/
65246         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
65247         * lib/filenamecat.c (file_name_concat): Likewise.
65248
65249         2006-03-11  Eric Blake  <ebb9@byu.net>,
65250                     Paul Eggert  <eggert@cs.ucla.edu>
65251
65252         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
65253         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
65254         drive prefix.
65255         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
65256         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
65257         (last_component): New method.
65258         * lib/dirname.c (dir_len): Determine when drive letters need a
65259         subsequent slash.  Preserve // when it is special.
65260         (dir_name): Don't append dot when drive letter is absolute.
65261         [TEST_DIRNAME]: Move into a full-blown gnulib test.
65262         * lib/basename.c (base_name): New semantics - malloc the result.
65263         Preserve // when it is special.  Preserve relative files that look
65264         like drive letters.
65265         (base_len): Preserve // when it is special.
65266         (last_component): New method, similar to old base_name semantics.
65267         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
65268         base_name.  Strip redundant slashes from ///.
65269
65270 2006-07-03  Jim Meyering  <jim@meyering.net>
65271
65272         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
65273         macro is used before the first cycle_check call.
65274
65275 2006-07-03  Eric Blake  <ebb9@byu.net>
65276
65277         * modules/dirname (Depends-on): Add xstrndup.
65278
65279 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65280
65281         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
65282         test cases, so that config.log is a bit easier to follow.
65283
65284 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65285
65286         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
65287         both are 64 bits, since this seems to be the tradition, and this
65288         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
65289         we ever run into a host that prefers long long to long in this
65290         case, we'll need another configure-time test.  Problem reported by
65291         Jim Meyering.
65292
65293 2006-07-02  Eric Blake  <ebb9@byu.net>
65294
65295         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
65296
65297 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65298
65299         * modules/inttypes (Depends-on): No longer depends on stdint.
65300         * modules/stdint (Description): Say more about assumptions.
65301         Say that the fast types might differ.  Say macros are used.
65302         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
65303         (Makefile.am): Revise list of substituted symbols to match
65304         new stdint.m4.
65305         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
65306         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
65307         * tests/test-stdint.c (verify_same_types)
65308         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
65309         the code conforms to C99/C89.
65310         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
65311         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
65312
65313 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65314
65315         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
65316         but fix a bug, by requiring at least 64 bits.
65317         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65318         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
65319         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
65320         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65321
65322         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
65323         changes.  Make 2.59 a prerequisite.  Check and substitute for
65324         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
65325         inttypes.h.  Do not use special include files; just use the
65326         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
65327         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
65328         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
65329         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
65330         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
65331         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
65332         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
65333         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
65334         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
65335         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
65336         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
65337         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
65338         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
65339         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
65340         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
65341         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
65342         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
65343         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
65344         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
65345         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
65346         WINT_MAX.  Check for C99 conformance more strictly, by detecting
65347         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
65348         not check for things that C99 does not require, e.g., int8_t.  If
65349         a test isn't needed unless <stdint.h> isn't working, and is
65350         unlikely to be needed for any other reason, then don't do it
65351         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
65352         size_t, since we assume C89 freestanding at least.  Do not check
65353         for sig_atomic_t, wchar_t, or wint_t, since the code now does
65354         the right thing even if the types are not defined.  Instead use:
65355         (gl_STDINT_TYPE_PROPERTIES): New macro.
65356         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
65357         testing whether <sys/types.h> clashes, as Autoconf does this for
65358         us now.  All uses removed.
65359         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
65360         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
65361         (gl_CHECK_TYPE_SAME):
65362         Remove; no longer needed.
65363         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
65364         exists, since we'll return 0 anyway in that case.
65365         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
65366
65367 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65368
65369         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
65370         possible collision with system files.
65371         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
65372         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
65373         WCHAR_MIN and WCHAR_MAX in this case.
65374         (<stddef.h>): Do not include; no longer needed.
65375         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
65376         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
65377         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
65378         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
65379         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
65380         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
65381         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
65382         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
65383         !defined(__c99))]: Include in this case too, since it's harmless
65384         now.
65385         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
65386         dangerous to do so.
65387         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
65388         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
65389         (_STDINT_MIN, _STDINT_MAX): New macros.
65390         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
65391         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
65392         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
65393         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
65394         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
65395         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
65396         macros, not typedefs; this simplifies things quite a bit.
65397         Use long int for all types narrower than int64_t.
65398         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
65399         Define in terms of long long int or int64_t or long int,
65400         not int64_t or int32_t.  This saves some compile-time testing.
65401         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
65402         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
65403         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
65404         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
65405         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
65406         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
65407         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
65408         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
65409         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
65410         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
65411         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65412         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65413         undef any previous version and define our own version, for
65414         simplicity and consistency with the new macros for types.
65415         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65416         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65417         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
65418         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
65419         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
65420         @WINT_T_SUFFIX@ to keep things simple here.
65421         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
65422         Simplify by assuming typical 8/16/32/64 host, since we're
65423         already doing that elsewhere anyway.
65424         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
65425         and assume long long int is 64 bits if available.  This
65426         speeds up 'configure'.
65427
65428 2006-07-01  Eric Blake  <ebb9@byu.net>
65429
65430         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
65431         Reported by Andreas Buening.
65432
65433 2006-07-01  Eric Blake  <ebb9@byu.net>
65434
65435         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
65436
65437 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65438
65439         * lib/getaddrinfo.c: fixed typo
65440
65441 2006-06-29  Jim Meyering  <jim@meyering.net>
65442
65443         * modules/strftime (Maintainer): Add my name, since with the
65444         FPRINTFTIME changes strftime.c has forked from glibc.
65445
65446 2006-06-29  Eric Blake  <ebb9@byu.net>
65447
65448         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
65449
65450 2006-06-29  Eric Blake  <ebb9@byu.net>
65451
65452         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
65453
65454 2006-06-29  Eric Blake  <ebb9@byu.net>
65455
65456         * lib/stat_.h: New file.
65457
65458 2006-06-29  Eric Blake  <ebb9@byu.net>
65459
65460         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
65461         unused static function.
65462
65463 2006-06-29  Eric Blake  <ebb9@byu.net>
65464
65465         * doc/functions.texi (Function Portability): Document missing lstat
65466         on mingw.
65467
65468 2006-06-29  Eric Blake  <ebb9@byu.net>
65469
65470         * MODULES.html.sh: Add sys_stat.
65471         * modules/sys_stat: New module.
65472         * modules/mkstemp (Depends-on): Add sys_stat.
65473
65474 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65475
65476         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
65477
65478 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65479
65480         * m4/c-bs-a.m4: Removed.
65481
65482 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65483
65484         * lib/strftime.c: Assume strftime() exists.
65485
65486 2006-06-29  Derek Price  <derek@ximbiot.com>
65487
65488         * modules/c-bs-a: Removed - \a is C89.
65489         * MODULES.html.sh: Remove c-bs-a.
65490
65491 2006-06-29  Bruno Haible  <bruno@clisp.org>
65492
65493         * modules/wcwidth (License): Change to LGPL.
65494
65495 2006-06-28  Simon Josefsson  <jas@extundo.com>
65496
65497         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
65498         on _WIN32.
65499
65500         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
65501         getnameinfo.
65502
65503 2006-06-28  Simon Josefsson  <jas@extundo.com>
65504
65505         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
65506
65507 2006-06-28  Simon Josefsson  <jas@extundo.com>
65508
65509         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
65510         functions there.  It will succeed on Windows XP, but on Windows
65511         2000 and (presumably) earlier, it will fail, and use the internal
65512         re-implementation.
65513         (use_win32_p): New function.
65514         (getaddrinfo): Use strtoul on servname, to support numeric ports.
65515         Support AI_NUMERICSERV to disable getservbyname.
65516         (getnameinfo): New function, only supports
65517         NI_NUMERICHOST|NI_NUMERICSERV for now.
65518
65519         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
65520         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
65521         getnameinfo.
65522
65523 2006-06-28  Eric Blake  <ebb9@byu.net>
65524
65525         * modules/wcwidth: New file.
65526         * modules/mbchar (Depends-on): Add wcwidth.
65527         * modules/mbswidth (Depends-on): Add wcwidth.
65528         * MODULES.html.sh: Add wcwidth.
65529
65530 2006-06-28  Eric Blake  <ebb9@byu.net>
65531
65532         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
65533         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
65534
65535 2006-06-28  Eric Blake  <ebb9@byu.net>
65536
65537         * lib/xvasprintf.h: Fix comments.
65538
65539 2006-06-28  Eric Blake  <ebb9@byu.net>
65540
65541         * lib/mbchar.h (wcwidth): Include wcwidth.h.
65542         * lib/mbswidth.c (wcwidth): Move from here...
65543         * lib/wcwidth.h: ...to this new file.
65544
65545 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65546
65547         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
65548
65549         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
65550         it's obsolete.
65551         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
65552
65553 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65554
65555         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
65556         Autoconf 2.60 says this stuff was obsolete.
65557
65558 2006-06-28  Bruno Haible  <bruno@clisp.org>
65559
65560         * modules/wcwidth (Files): Add m4/wchar_t.m4.
65561
65562 2006-06-28  Bruno Haible  <bruno@clisp.org>
65563
65564         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
65565         gt_TYPE_WCHAR_T.
65566
65567 2006-06-28  Bruno Haible  <bruno@clisp.org>
65568
65569         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
65570         declaration for wcwidth.
65571         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
65572
65573 2006-06-28  Bruno Haible  <bruno@clisp.org>
65574
65575         * lib/mkdtemp.c [MINGW]: Include <io.h>.
65576         (mkdir): Define using _mkdir.
65577
65578 2006-06-28  Bruno Haible  <bruno@clisp.org>
65579
65580         * lib/getaddrinfo.h: Fix POSIX URL.
65581         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
65582         _WIN32.
65583         (use_win32_p): Make static.
65584         (getaddrinfo): Reject service name if it is empty or does not consist
65585         solely of decimal digits, or if its value is > 65535.
65586         (getnameinfo): Remove useless casts.
65587
65588 2006-06-27  Simon Josefsson  <jas@extundo.com>
65589
65590         * modules/sys_select: New file, suggested by Bruno Haible, Paul
65591         Eggert and Martin Lambers.
65592
65593 2006-06-27  Simon Josefsson  <jas@extundo.com>
65594
65595         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
65596         Eggert and Martin Lambers.
65597
65598 2006-06-27  Bruno Haible  <bruno@clisp.org>
65599
65600         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
65601         result to 0, not to empty.
65602         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
65603
65604 2006-06-27  Bruno Haible  <bruno@clisp.org>
65605
65606         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
65607
65608 2006-06-26  Simon Josefsson  <jas@extundo.com>
65609
65610         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
65611         present.
65612
65613 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
65614
65615         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
65616         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
65617         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
65618
65619 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
65620
65621         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
65622
65623 2006-06-26  Bruno Haible  <bruno@clisp.org>
65624
65625         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
65626
65627 2006-06-26  Bruno Haible  <bruno@clisp.org>
65628
65629         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
65630
65631 2006-06-26  Bruno Haible  <bruno@clisp.org>
65632
65633         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
65634         SGI C compiler in pre-C99 mode.
65635         Suggested by Mark D. Baushke and Larry Jones.
65636
65637 2006-06-26  Bruno Haible  <bruno@clisp.org>
65638
65639         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
65640         WCHAR_MAX.
65641         Reported by Mark D. Baushke and Larry Jones.
65642
65643 2006-06-26  Bruno Haible  <bruno@clisp.org>
65644
65645         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
65646         in pre-C99 mode.
65647         Suggested by Mark D. Baushke and Larry Jones.
65648
65649 2006-06-23  Simon Josefsson  <jas@extundo.com>
65650             Bruno Haible  <bruno@clisp.org>
65651
65652         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
65653         Emit mostlyclean-local rule.
65654         (func_emit_tests_Makefile_am): Likewise.
65655         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
65656
65657 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
65658
65659         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
65660
65661 2006-06-23  Bruno Haible  <bruno@clisp.org>
65662
65663         * tests/test-stdint.c: Update to match ISO C 99 Technical
65664         Corrigendum 1.
65665
65666 2006-06-23  Bruno Haible  <bruno@clisp.org>
65667
65668         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
65669
65670 2006-06-23  Bruno Haible  <bruno@clisp.org>
65671
65672         * lib/stdint_.h: Treat IRIX like OpenBSD.
65673
65674 2006-06-23  Bruno Haible  <bruno@clisp.org>
65675
65676         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
65677         ISO C 99 Technical Corrigendum 1.
65678
65679 2006-06-22  Simon Josefsson  <jas@extundo.com>
65680
65681         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
65682         MinGW.
65683
65684 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65685
65686         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
65687         needed.  Some compiler complained about some of them.  Problem reported
65688         by Larry Jones in
65689         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
65690
65691 2006-06-21  Simon Josefsson  <jas@extundo.com>
65692
65693         * tests/test-getaddrinfo.c: New file.
65694
65695         * modules/getaddrinfo-tests: New file.
65696
65697         * MODULES.html.sh: Add inet_pton.
65698
65699         * modules/inet_pton: New file.
65700
65701 2006-06-21  Simon Josefsson  <jas@extundo.com>
65702
65703         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
65704         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
65705         of using the (limited) gnulib implementation on Windows XP.
65706
65707         * m4/inet_pton.m4: New file.
65708
65709 2006-06-21  Simon Josefsson  <jas@extundo.com>
65710
65711         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
65712         variable.
65713
65714         * lib/socket_.h: Don't define WINVER.
65715
65716         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
65717         slightly modified to work in gnulib.
65718
65719 2006-06-21  Simon Josefsson  <jas@extundo.com>
65720
65721         * doc/gnulib.texi (Windows sockets): Add.
65722
65723 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65724
65725         * lib/read-file.c (fread_file): Start with buffer allocation of
65726         0 bytes rather than 1 byte; this simplifies the code.
65727         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
65728         code to free buffer and save/restore errno.
65729         (internal_read_file): Remove unused local.
65730
65731 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65732
65733         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
65734         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
65735         Problem reported by Denis Excoffier in
65736         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
65737
65738 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65739
65740         * modules/sys_socket, modules/socklen: Include sys/types since
65741         FreeBSD 4.x's sys/socket.h needs it.
65742
65743 2006-06-19  Simon Josefsson  <jas@extundo.com>
65744
65745         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
65746
65747 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65748
65749         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
65750
65751 2006-06-19  Bruno Haible  <bruno@clisp.org>
65752
65753         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
65754         and FULL_PATH_INTTYPES_H in angle brackets.
65755         Reported by Mark D. Baushke <mdb@gnu.org>.
65756
65757 2006-06-17  Eric Blake  <ebb9@byu.net>
65758
65759         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
65760         errno.
65761
65762 2006-06-17  Bruno Haible  <bruno@clisp.org>
65763
65764         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
65765         <sys/inttypes.h>.
65766
65767 2006-06-17  Bruno Haible  <bruno@clisp.org>
65768
65769         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
65770         whether errno is declared. Assume <errno.h> declares errno.
65771
65772 2006-06-17  Bruno Haible  <bruno@clisp.org>
65773
65774         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
65775
65776 2006-06-17  Bruno Haible  <bruno@clisp.org>
65777
65778         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
65779         problem on Solaris 2.5.1.
65780
65781 2006-06-16  Eric Blake  <ebb9@byu.net>
65782
65783         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
65784         * lib/unicodeio.c [!defined errno]: Likewise.
65785         * lib/strtol.c [!defined errno]: Likewise.
65786         * lib/strtod.c [!defined errno]: Likewise.
65787
65788 2006-06-15  Eric Blake  <ebb9@byu.net>
65789
65790         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
65791
65792 2006-06-15  Eric Blake  <ebb9@byu.net>
65793
65794         * config/srclist.txt (ssize_t.m4): Lose sync.
65795
65796 2006-06-15  Bruno Haible  <bruno@clisp.org>
65797
65798         * modules/stdint (Files): Include m4/full-header-path.m4,
65799         m4/size_max.m4, m4/wchar_t.m4.
65800         (Makefile.am): Many more substitutions.
65801         * modules/stdint-tests: New file.
65802         * tests/test-stdint.c: New file.
65803
65804 2006-06-15  Bruno Haible  <bruno@clisp.org>
65805
65806         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
65807         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
65808         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
65809         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
65810         gl_CHECK_TYPE_SAME): New macros.
65811
65812 2006-06-15  Bruno Haible  <bruno@clisp.org>
65813
65814         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
65815
65816 2006-06-15  Bruno Haible  <bruno@clisp.org>
65817
65818         * lib/stdint_.h: Rewritten to be fully auto-configured.
65819         Fixes bug on HP-UX/IA64.
65820
65821 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
65822
65823         * lib/getdate.y (__attribute__): Don't define if already defined.
65824         Problem reported by Larry Jones.
65825         * lib/utimens.c (__attribute__): Likewise.
65826
65827 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
65828
65829         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
65830         reported by Andreas Schwab.
65831
65832 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65833             Bruno Haible  <bruno@clisp.org>
65834
65835         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
65836         check for the declaration of strnlen and a run test that exposes the
65837         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
65838         rpl_strndup.
65839
65840 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65841             Bruno Haible  <bruno@clisp.org>
65842
65843         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
65844
65845 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65846
65847         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
65848         compile test, for Tru64 4.0D.
65849
65850 2006-05-28  Karl Berry  <karl@gnu.org>
65851
65852         * config/srclist.txt (printf-args.c): lose sync.
65853
65854 2006-05-26  Martin Lambers  <marlam@marlam.de>
65855
65856         * lib/getpass.c: Updates the test for the native W32 API, and adds
65857         missing includes, thus fixing compilation warnings.
65858
65859 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65860
65861         * lib/exclude.c (exclude_fnmatch): New function.
65862         (excluded_file_name): Call exclude_fnmatch.
65863         * lib/exclude.h (excluded_file_name): New prototype
65864
65865 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
65866
65867         * lib/tempname.c (small_open, large_open): New macros.
65868         (__open, __open64) [!_LIBC]: Remove.
65869         (__gen_tempname): Use small_open and large_open instead of __open
65870         and __open64.  This fixes a portability bug on HP-UX 11.11i
65871         reported by Simon Wing-Tang in
65872         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
65873
65874 2006-05-24  Bruno Haible  <bruno@clisp.org>
65875
65876         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
65877         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
65878         Reported by Thorsten Maerz <torte@netztorte.de> via
65879         Aaron Stone <aaron@serendipity.cx>.
65880
65881 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65882
65883         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
65884         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
65885         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
65886         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
65887         not really conditional on the cache.
65888         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
65889
65890 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65891
65892         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
65893         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
65894         (my_usleep): Don't mishandle maximum value.
65895
65896 2006-05-19  Jim Meyering  <jim@meyering.net>
65897
65898         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
65899
65900 2006-05-17  Bruno Haible  <bruno@clisp.org>
65901
65902         Cygwin portability.
65903         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
65904
65905 2006-05-17  Bruno Haible  <bruno@clisp.org>
65906
65907         * lib/stdint_.h: Fix recognition of Cygwin.
65908
65909 2006-05-15  Bruno Haible  <bruno@clisp.org>
65910
65911         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
65912         on libtool patch by Ralf Wildenhues.
65913
65914 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65915
65916         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
65917         test for C99 conformance; (bool) 0.5 is an integer constant
65918         expression, but (bool) -0.5 is not.  Problem reported by Fedor
65919         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
65920
65921 2006-05-11  Simon Josefsson  <jas@extundo.com>
65922
65923         * m4/xvasprintf.m4: Fix obvious typo.
65924
65925 2006-05-11  Jim Meyering  <jim@meyering.net>
65926
65927         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
65928         James Lemley.
65929
65930 2006-05-10  Simon Josefsson  <jas@extundo.com>
65931
65932         * lib/md4.c: Typo fix, update copyright years.
65933         (K1, K2): Don't use L because it turn computations into 64-bit on
65934         64-bit platforms.
65935
65936 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
65937
65938         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
65939         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
65940         unwanted sign propagation, e.g., on hosts with 64-bit int.
65941         There still are some problems with reeelly weird theoretical hosts
65942         (e.g., 33-bit int) but it's not worth worrying about now.
65943         * lib/sha1.c (rol): Likewise.
65944         (K1, K2, K3, K4): Remove unnecessary L suffix.
65945
65946 2006-05-10  Bruno Haible  <bruno@clisp.org>
65947
65948         * lib/des.c: Cast to avoid warnings.
65949
65950 2006-05-09  Bruno Haible  <bruno@clisp.org>
65951
65952         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
65953         (Depends-on): Depend also on xsize, stdarg.
65954         (configure.ac): Add gl_XVASPRINTF.
65955
65956 2006-05-09  Bruno Haible  <bruno@clisp.org>
65957
65958         * m4/xvasprintf.m4: New file.
65959
65960 2006-05-09  Bruno Haible  <bruno@clisp.org>
65961
65962         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
65963         (EOVERFLOW): Define fallback value.
65964         (xstrcat): New function.
65965         (xvasprintf): Recognize the special case of a string concatenation.
65966
65967 2006-05-08  Eric Blake  <ebb9@byu.net>
65968
65969         * gnulib-tool (func_version): Base copyright year on CVS date.
65970         (func_emit_copyright_notice): New function.
65971         (func_emit_lib_Makefile_am): Use it.
65972         (func_emit_tests_Makefile_am): Likewise.
65973         (func_import): Likewise.
65974
65975 2006-05-08  Bruno Haible  <bruno@clisp.org>
65976
65977         * modules/stdarg: New file.
65978         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
65979
65980 2006-05-08  Bruno Haible  <bruno@clisp.org>
65981
65982         * m4/stdarg.m4: New file, from GNU gettext.
65983
65984 2006-05-08  Bruno Haible  <bruno@clisp.org>
65985
65986         * config/srclist.txt (build-aux/config.rpath): different from latest
65987         release.
65988
65989 2006-05-08  Bruno Haible  <bruno@clisp.org>
65990
65991         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
65992
65993 2006-05-05  Jim Meyering  <jim@meyering.net>
65994
65995         * m4/warning.m4: New file, derived from bison's file by the same name.
65996
65997 2006-05-03  Bruno Haible  <bruno@clisp.org>
65998
65999         * lib/stdint_.h: Shorter URL.
66000         * lib/inttypes.h: Likewise.
66001
66002 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66003
66004         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
66005
66006 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66007
66008         * lib/verify.h: Document the internals better.  Most of this change
66009         was written by Bruno Haible.
66010
66011 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66012
66013         * doc/verify.texi: New file, partly based on a proposal by
66014         Bruno Haible.
66015
66016 2006-05-02  Bruno Haible  <bruno@clisp.org>
66017
66018         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
66019         test from here...
66020         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
66021
66022 2006-04-29  Bruno Haible  <bruno@clisp.org>
66023
66024         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
66025         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
66026
66027 2006-04-29  Bruno Haible  <bruno@clisp.org>
66028
66029         * gnulib-tool: Make --update option actually work.
66030
66031 2006-04-29  Bruno Haible  <bruno@clisp.org>
66032
66033         * doc/gcd.texi: New file.
66034         * doc/gnulib.texi: Include it.
66035
66036 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
66037
66038         * lib/getdate.y (get_date): When adding relative date, start with the
66039         initial time, not with the result of the first mktime call.
66040
66041 2006-04-25  Bruno Haible  <bruno@clisp.org>
66042
66043         * gnulib-tool (func_import): Output the include directives in three
66044         blocks, sorted separately.
66045         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66046
66047 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66048
66049         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
66050         to define main with arguments, for C++.  Reported by Eric Blake.
66051         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
66052         Prefer 'int main ()' to 'int main (void)', for C++.
66053         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
66054         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
66055         for 'main', for C99 and C++.
66056
66057 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66058
66059         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
66060         Don't assume that exit status -1 is valid.
66061         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66062         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
66063         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
66064         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
66065         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
66066         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
66067         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
66068         functions can be used without declaring them, or that you can
66069         exit with status -1.
66070         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
66071
66072 2006-04-24  Karl Berry  <karl@gnu.org>
66073
66074         * config/srclist.txt (longdouble.m4): sync lost.
66075
66076 2006-04-24  Eric Blake  <ebb9@byu.net>
66077
66078         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
66079
66080 2006-04-24  Bruno Haible  <bruno@clisp.org>
66081
66082         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
66083         poll() implementation in AIX.
66084         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66085
66086 2006-04-24  Bruno Haible  <bruno@clisp.org>
66087
66088         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
66089         assigned exactly once.
66090
66091 2006-04-23  Claudio Fontana  <claudio@gnu.org>
66092             Bruno Haible  <bruno@clisp.org>
66093
66094         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
66095         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
66096         for AM_CPPFLAGS.
66097
66098 2006-04-23  Bruno Haible  <bruno@clisp.org>
66099
66100         * modules/copy-file: Depend on unistd.
66101         * modules/execute: Likewise.
66102         * modules/fatal-signal: Likewise.
66103         * modules/findprog: Likewise.
66104         * modules/mkdtemp : Likewise.
66105         * modules/pipe: Likewise.
66106         * modules/wait-process: Likewise.
66107
66108 2006-04-23  Bruno Haible  <bruno@clisp.org>
66109
66110         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
66111         condition was already detected.
66112         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66113
66114 2006-04-23  Bruno Haible  <bruno@clisp.org>
66115
66116         * lib/copy-file.c: Include <unistd.h> unconditionally.
66117         * lib/execute.c: Likewise.
66118         * lib/fatal-signal.c: Likewise.
66119         * lib/findprog.c: Likewise.
66120         * lib/mkdtemp.c: Likewise.
66121         * lib/pipe.h: Likewise.
66122         * lib/pipe.c: Likewise.
66123         * lib/wait-process.h: Likewise.
66124
66125 2006-04-23  Bruno Haible  <bruno@clisp.org>
66126
66127         * gnulib-tool (func_usage): Fix --import description. Document
66128         --update.
66129         (func_import): Create temporary file in a temporary directory, if
66130         --dry-run is specified. Silence errors from 'grep' when there are no
66131         m4 files in $m4dir.
66132         (func_create_testdir): Silence errors from 'grep' when there are no
66133         m4 files in $m4dir.
66134         Reported by Karl Berry <karl@freefriends.org>.
66135
66136 2006-04-20  Bruno Haible  <bruno@clisp.org>
66137
66138         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
66139         one argument, so that the code will be portable to Autoconf 2.60.
66140         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
66141         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66142         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
66143
66144 2006-04-19  Derek Price  <derek@ximbiot.com>
66145             Eric Blake  <ebb9@byu.net>
66146
66147         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
66148         rather than "/full/path.h".  Update comment to match.  Shorten &
66149         generalize m4_translit call via AS_TR_CPP.
66150
66151 2006-04-19  Derek Price  <derek@ximbiot.com>
66152             Eric Blake  <ebb9@byu.net>
66153
66154         * lib/inttypes.h: Correct grammar in comment.
66155
66156 2006-04-18  Derek Price  <derek@ximbiot.com>
66157             Paul Eggert  <eggert@cs.ucla.edu>
66158
66159         * modules/inttypes: New file.
66160         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
66161
66162 2006-04-18  Derek Price  <derek@ximbiot.com>
66163             Paul Eggert  <eggert@cs.ucla.edu>
66164
66165         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
66166         New files.
66167
66168 2006-04-18  Derek Price  <derek@ximbiot.com>
66169             Paul Eggert  <eggert@cs.ucla.edu>
66170
66171         * lib/inttypes.h: New file.
66172         * lib/strtoimax.c: Assume <inttypes.h>.
66173
66174 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
66175
66176         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
66177         isn't mounted.  Problem reported by Kir Kolyshkin.
66178
66179 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66180
66181         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
66182         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
66183         Derek R. Price.
66184         * lib/regex.h (RE_DUP_MAX): Update comment to match current
66185         implementation.
66186
66187 2006-04-12  Eric Blake  <ebb9@byu.net>
66188
66189         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
66190         is now done automatically by the corresponding Autoconf macro.
66191
66192 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
66193
66194         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
66195         time_r.h.
66196
66197 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66198
66199         Merge regex changes from libc, removing some of our
66200         POSIX-conformance changes that were rejected and redoing them in a
66201         less-intrusive way.
66202
66203         * lib/regcomp.c (re_compile_internal, init_dfa):
66204         Length arg is now size_t, not Idx.  All uses changed.
66205         (peek_token): Forward decl now says internal_function.
66206         (__re_error_msgid, __re_error_msgid_idx):
66207         Now static rather than extern with attribute_hidden.
66208         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
66209         For some reason libc prefers K&R style defns for external functions.
66210         (regerror) [!defined _LIBC]: Likewise.
66211         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
66212         (seek_collating_symbol_entry, lookup_collation_sequence_value):
66213         (build_range_exp, build_collating_symbol):
66214         Use K&R-style defn.
66215         (re_compile_fastmap): Use '\0' to memset, not 0.
66216         (utf8_sb_map): Make the calculations more obvious.
66217         (init_dfa, parse_bracket_exp, build_charclass_op):
66218         Call calloc and cast result, as glibc does.
66219         (init_word_char, fetch_token, peek_token, peek_token_bracket):
66220         (build_range_exp, build_collating_symbol):
66221         Now internal functions.
66222
66223         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
66224
66225         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
66226         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
66227         Don't depend on VMS; depend on __VMS instead, for POSIX
66228         namespace cleanness.
66229         (regoff_t): Define to ssize_t, not long int.
66230
66231         Remove the REG_ macros named below.  Instead, make the old names
66232         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
66233         __USE_GNU_REGEX.
66234         (REG_BACKSLASH_ESCAPE_IN_LISTS):
66235         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
66236         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
66237         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
66238         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
66239         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
66240         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
66241         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
66242         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
66243         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
66244         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
66245         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
66246         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
66247         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
66248         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
66249         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
66250         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
66251         (REG_NREGS):
66252         Remove.  All uses replaced by the old RE_* names.
66253         (RE_BACKSLASH_ESCAPE_IN_LISTS):
66254         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
66255         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
66256         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
66257         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
66258         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
66259         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
66260         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
66261         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
66262         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
66263         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
66264         Don't bother having these macros be independent of each others'
66265         values, since they no longer exist in the POSIX name space.
66266
66267         Rename the following member names back to their old names,
66268         unless !__USE_GNU_REGEX.  All uses changed back.
66269         (buffer): Renamed from re_buffer.
66270         (allocated): Renamed from re_allocated.
66271         (used): Renamed from re_used.
66272         (syntax): Renamed from re_syntax.
66273         (fastmap): Renamed from re_fastmap.
66274         (translate): Renamed from re_translate.
66275         (can_be_null): Renamed from re_can_be_null.
66276         (regs_allocated): Renamed from re_regs_allocated.
66277         (fastmap_accurate): Renamed from re_fastmap_accurate.
66278         (no_sub): Renamed from re_no_sub.
66279         (not_bol): Renamed from re_not_bol.
66280         (not_eol): Renamed from re_not_eol.
66281         (newline_anchor): Renamed from re_newline_anchor.
66282         (num_regs): Renamed from rm_num_regs.
66283         (start): Renamed from rm_start.
66284         (end): Renamed from rm_end.
66285
66286         (free_state): Move up a bit.
66287
66288         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
66289         #define to be empty.
66290         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
66291         when that is what is intended.
66292         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
66293         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
66294         (MAX): New macro.
66295         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
66296         All uses changed back to re_malloc, etc.  It's now the caller's
66297         responsibility to check for overflow; all callers changed.
66298         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
66299         (re_x2nrealloc): Remove.
66300         (free_state): Remove decl.
66301
66302         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
66303         (re_set_registers, re_exec):
66304         Use K&R-style defn.
66305
66306         2006-01-31  Roland McGrath  <roland@redhat.com>
66307
66308         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
66309         Reported by Mike Frysinger <vapier@gentoo.org>.
66310
66311         2006-01-15  Andreas Jaeger  <aj@suse.de>
66312
66313         [BZ #1950]
66314         * lib/regex_internal.c (re_string_reconstruct): Adjust for
66315         build_wcs_upper_buffer change.
66316         (build_wcs_upper_buffer): Change return type.
66317
66318         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
66319
66320         * lib/regex_internal.h: Include <stdint.h> if available.
66321
66322         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
66323
66324         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
66325
66326         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66327
66328         * lib/regcomp.c: Adjust for changed secondary hash function.
66329
66330         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
66331
66332         * lib/regex.h: Pretty printing.
66333         Clean up namespace a bit.
66334
66335         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
66336
66337         * lib/regexec.c (update_cur_sifted_state, check_arrival,
66338         check_arrival_add_next_nodes): Avoid using uninitialized variable.
66339
66340         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66341                     Ulrich Drepper  <drepper@redhat.com>
66342
66343         [BZ #1302]
66344         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
66345         changed.
66346         (bitset_word_t): Renamed from bitset_word.  All uses changed.
66347
66348         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
66349
66350         [BZ #281]
66351         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
66352         * lib/regcomp.c: Remove unnecessary uses of
66353         unsigned RE_TRANSLATE_TYPE.
66354         * lib/regex_internal.h: Likewise.
66355         * lib/regex_internal.c: Likewise.
66356         * lib/regexec.c: Likewise.
66357         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
66358
66359         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
66360
66361         * lib/regexec.c (find_recover_state): Remove unnecessary
66362         initialization.
66363         (transit_state_bkref): Make DFA a const pointer.
66364         (get_subexp): Likewise.
66365         (check_arrival): Likewise.
66366         (update_cur_sifted_state): Likewise.
66367         (re_search_internal): Likewise.
66368         (prune_impossible_nodes): Likewise.
66369         (acquire_init_state_context): Likewise.
66370         (proceed_next_node): Likewise.
66371         (set_regs): Likewise.
66372         (free_fail_stack_return): Likewise.
66373         (check_arrival_expand_ecl): Mark DFA parameter as const.
66374         (check_arrival_expand_ecl_sub): Likewise.
66375         (check_subexp_limits): Likewise.
66376         (sub_epsilon_src_nodes):  Likewise.
66377         (add_epsilon_src_nodes):  Likewise.
66378         (merge_state_array): Likewise.
66379         (update_regs): Likewise.
66380         (build_trtable): Likewise.
66381         (sift_states_backward): Mark MCTX parameter as const.
66382         (build_sifted_states): Likewise.
66383         (update_cur_sifted_state): Likewise.
66384         (sift_states_mkref): Likewise.
66385         (check_arrival_expand_ecl): Mark eclosure as const.
66386         (check_dst_limits_calc_pos_1): Likewise.
66387         * lib/regex_internal.h (re_match_context_t): Make dfa a const
66388         pointer.
66389
66390         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
66391
66392         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
66393         (transit_state_sb): Likewise.
66394         (transit_state_mb): Likewise.
66395         (sift_states_iter_mb): Likewise.
66396         (check_arrival_add_next_nodes): Likewise.
66397         (check_node_accept_bytes): Change first parameter to pointer-to-const.
66398         [_LIBC] (re_search_2_stub): Use mempcpy.
66399
66400         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
66401         mbrtowc for very simple UTF-8 case.
66402
66403         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
66404         a pointer-to-const.
66405         (re_acquire_state_context): Likewise.
66406         * lib/regex_internal.h: Adjust prototypes.
66407
66408         * lib/regex.c: Prevent using C++ compilers.
66409
66410         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
66411         (re_acquire_state_context): Likewise.
66412
66413 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66414
66415         * modules/regex (Depends-on): Add ssize_t.
66416
66417 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66418
66419         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
66420         translation table.
66421
66422 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66423
66424         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
66425
66426 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
66427             Bruno Haible  <bruno@clisp.org>
66428
66429         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
66430         <sys/types.h> and <inttypes.h>.
66431
66432 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66433
66434         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
66435         `__error_t_defined', so argp.h will not typedef the former.
66436
66437 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
66438
66439         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
66440         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
66441         glibc names.  Even if glibc is changed to conform to POSIX, the
66442         traditional names will be available anyway, since regex depends on
66443         the extensions module.  Also, fix a longstanding typo in the
66444         implementation of Spencer ERE test #75 from grep 2.3.  Problems
66445         reported by Emanuele Giaquinta.  Also, change sense of cached
66446         variable, so that the message makes sense.
66447
66448 2006-03-24  Simon Josefsson  <jas@extundo.com>
66449
66450         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
66451         including some doc fixes.
66452         (base64_encode_alloc): Fix +1 bug on allocation failures.
66453
66454 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66455
66456         * lib/base64.c (base64_encode): Do not read past end of array with
66457         unsanitized input on systems with CHAR_BIT > 8.
66458
66459 2006-03-24  Eric Blake  <ebb9@byu.net>
66460
66461         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
66462
66463 2006-03-22  Karl Berry  <karl@gnu.org>
66464
66465         * config/srclist.txt (*setenv.[ch]): get from coreutils.
66466         * config/srclistvars.sh (COREUTILS): new var.
66467
66468 2006-03-17  Jim Meyering  <jim@meyering.net>
66469
66470         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
66471         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
66472
66473 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66474
66475         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
66476         no longer needs it.  Instead, check that regoff_t is as least
66477         as wide as ptrdiff_t.
66478
66479         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
66480         so that our regex.h stays compatible with the installed regex.
66481         This is helpful for installers who configure --without-included-regex.
66482         Problem reported by Emanuele Giaquinta.
66483
66484 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66485
66486         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
66487         Typedef to long int, not to off_, as POSIX will likely change
66488         in that direction.
66489
66490 2006-03-15  Eric Blake  <ebb9@byu.net>
66491
66492         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
66493
66494 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66495
66496         * lib/argp-help.c (validate_uparams): Fix typo
66497         * lib/argp-parse.c (argp_default_options): Consistently begin help
66498         messages with a lowercase letter.
66499
66500 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
66501
66502         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
66503         overrun buffers and shouldn't be used (much as gets shouldn't be
66504         used).
66505         * lib/time_r.c (asctime_r, ctime_r): Likewise.
66506
66507 2006-03-08  Simon Josefsson  <jas@extundo.com>
66508
66509         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
66510         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66511
66512 2006-03-08  Simon Josefsson  <jas@extundo.com>
66513
66514         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
66515         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66516
66517 2006-03-08  Simon Josefsson  <jas@extundo.com>
66518
66519         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
66520         signal that configure disabled the device.
66521
66522 2006-03-08  Simon Josefsson  <jas@extundo.com>
66523
66524         * build-aux/maint.mk: Fix refresh-po, to handle no translated
66525         languages.
66526
66527 2006-03-07  Simon Josefsson  <jas@extundo.com>
66528
66529         * modules/getopt (Depends-on): Add unistd.
66530
66531         * modules/unistd: New file.
66532
66533 2006-03-07  Simon Josefsson  <jas@extundo.com>
66534
66535         * modules/gc-random: New file.
66536
66537 2006-03-07  Simon Josefsson  <jas@extundo.com>
66538
66539         * m4/unistd_h.m4: New file.
66540
66541 2006-03-07  Simon Josefsson  <jas@extundo.com>
66542
66543         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
66544         test to be side-effect free by storing the result in the cache
66545         variable gl_cv_lib_readline, and moving the assignment of
66546         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
66547         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66548
66549 2006-03-07  Simon Josefsson  <jas@extundo.com>
66550
66551         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
66552         error on missing devices (the functions will return an error).
66553
66554         * m4/gc.m4: Move random stuff to gc-random.m4
66555
66556 2006-03-07  Simon Josefsson  <jas@extundo.com>
66557
66558         * lib/unistd_.h: New file.
66559
66560 2006-03-07  Simon Josefsson  <jas@extundo.com>
66561
66562         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
66563
66564 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66565
66566         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
66567         Problem reported by Juan Manuel Guerrero.
66568
66569 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66570
66571         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
66572         the unistd module.
66573         * lib/getlogin_r.c: Likewise.
66574         * lib/getlogin_r.h: Likewise.
66575         * lib/glob.c: Likewise.
66576         * lib/pagealign_alloc.c: Likewise.
66577         * lib/unistd_.h: Remove; no longer needed.
66578
66579 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66580
66581         * MODULES.html.sh (Support for systems lacking POSIX:2001):
66582         Add unistd.
66583         * modules/c-stack (Depends-on): Add unistd.
66584         * modules/getlogin_r: Likewise.
66585         * modules/glob: Likewise.
66586         * modules/pagealign_alloc: Likewise.
66587         * modules/unistd (Files): Remove lib/unistd_.h.
66588         (EXTRA_DIST): Remove.
66589         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
66590         need unistd_.h.
66591         (MOSTLYCLEANFILES): Remove unistd.h-t.
66592
66593 2006-03-03  Simon Josefsson  <jas@extundo.com>
66594
66595         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
66596
66597 2006-03-03  Simon Josefsson  <jas@extundo.com>
66598
66599         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
66600         libidn and bison.
66601
66602 2006-03-03  Simon Josefsson  <jas@extundo.com>
66603
66604         * build-aux/maint.mk: Add indent target.
66605
66606 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
66607
66608         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
66609         our replacement poll.h in any case, to avoid a differing
66610         declaration from a system header.  Seen on AIX.
66611
66612 2006-03-01  Simon Josefsson  <jas@extundo.com>
66613
66614         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
66615         <kasal@ucw.cz>.
66616
66617 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66618
66619         * modules/gettime (Depends-on): Add extensions module.
66620         * modules/nanosleep (Depends-on): Likewise.
66621         * modules/settime (Depends-on): Likewise.
66622
66623 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66624
66625         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
66626         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
66627         pedantically.
66628         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66629         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
66630
66631         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
66632         not "==".  Reported by Ralf Wildenhues.
66633
66634 2006-03-01  Karl Berry  <karl@gnu.org>
66635
66636         * doc/Copyright/request-*: new files, synced from gnuorg.
66637
66638 2006-03-01  Karl Berry  <karl@gnu.org>
66639
66640         * config/srclist.txt (Copyright/*): new entries.
66641
66642 2006-02-28  Simon Josefsson  <jas@extundo.com>
66643
66644         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
66645
66646 2006-02-27  Simon Josefsson  <jas@extundo.com>
66647
66648         * lib/base64.h: Indent #define's.  From Jim Meyering
66649         <jim@meyering.net>.
66650
66651 2006-02-27  Jim Meyering  <jim@meyering.net>
66652
66653         Revert the change of 2006-02-24, so these files can continue
66654         to be sync'd from gettext.
66655         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
66656         of `config.h'.
66657
66658 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66659
66660         * modules/intprops: New file.
66661         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66662         Add intprops.
66663         * modules/getloadavg (Files): Remove lib/intprops.h.
66664         (Depends-on): Add intprops.
66665         * modules/human: Likewise.
66666         * modules/inttostr: Likewise.
66667         * modules/openat: Likewise.
66668         * modules/sig2str: Likewise.
66669         * modules/userspec: Likewise.
66670         * modules/utimecmp: Likewise.
66671         * modules/xnanosleep: Likewise.
66672         * modules/xstrtol: Likewise.
66673
66674 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
66675
66676         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
66677         * modules/lock-tests (TESTS): Use $(EXEEXT).
66678         * modules/tls-tests: Likewise.
66679         * modules/argp-tests: Likewise.
66680         (check_PROGRAMS): New var, replacing...
66681         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
66682
66683 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66684
66685         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
66686         `config.h'.
66687
66688 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
66689
66690         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
66691
66692 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66693
66694         Sync from coreutils.
66695         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
66696         gl_CHDIR_SAFER.
66697
66698 2006-02-22  Jim Meyering  <jim@meyering.net>
66699
66700         Sync from coreutils.
66701         * m4/chdir-safer.m4: New file.
66702
66703 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
66704
66705         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
66706         AT_FDCWD exceeds INT_MAX.
66707         * lib/openat.h (AT_FDCWD): Likewise.
66708
66709 2006-02-17  Eric Blake  <address@hidden>
66710
66711         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
66712
66713 2006-02-16  Simon Josefsson  <jas@extundo.com>
66714
66715         * modules/getaddrinfo (Depends-on): Add sys_socket.
66716
66717 2006-02-15  Simon Josefsson  <jas@extundo.com>
66718
66719         * build-aux/maint.mk: Add dsyntax-check rule.
66720
66721 2006-02-15  Eric Blake  <ebb9@byu.net>
66722
66723         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
66724         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
66725         'present but cannot compile' warnings on cygwin.
66726         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
66727         use ws2tcpip.h if sys/socket.h works.
66728         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
66729         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
66730
66731 2006-02-14  Simon Josefsson  <jas@extundo.com>
66732
66733         * modules/maintainer-makefile (Files): Rename.
66734
66735         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
66736         and (the local) Makefile.cfg to maint-cfg.mk.
66737
66738         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
66739         to the latter.
66740
66741         * modules/maintainer-makefile: New module.
66742
66743         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
66744         severaly stripped to make it possible to build it up from scratch
66745         with reliable tests.
66746
66747         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
66748         fixes to permit overriding the default actions when configure and
66749         makefile are not available.
66750
66751 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
66752
66753         Sync from coreutils.
66754         * modules/lstat (Depends-on): Don't depend on xalloc.
66755         (License): Change from GPL to LGPL, since this is now simply a
66756         replacement for a libc function.
66757
66758 2006-02-14  Jim Meyering  <jim@meyering.net>
66759
66760         Sync from coreutils.
66761
66762         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
66763         failure on deficient systems, and simplify gnulib lgpl dependencies.
66764         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
66765         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
66766
66767         * lib/xalloc-die.c: Remove unused definition of N_.
66768
66769 2006-02-14  Jim Meyering  <jim@meyering.net>
66770
66771         Sync from coreutils.
66772         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
66773         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
66774         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
66775         double-quote uses of that variable, to accommodate the rare case in
66776         which getmntent is available in none of the libraries checked.  This
66777         happens at least on FreeBSD 5.0.
66778
66779 2006-02-13  Simon Josefsson  <jas@extundo.com>
66780
66781         * gnulib-tool (Usage): Fix --import, from
66782         karl@freefriends.org (Karl Berry).
66783
66784 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66785
66786         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
66787
66788 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
66789
66790         * lib/argp-namefrob.h: Restore changes accidentally lost during the
66791         "autoupdate" on 2005-12-12.
66792
66793 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
66794
66795         * modules/closeout (Depends-on): Remove atexit.
66796
66797 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
66798
66799         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
66800         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
66801
66802 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
66803
66804         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
66805         __EXTENSIONS__ if this causes compilation to fail.  Problem
66806         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
66807         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
66808
66809 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
66810
66811         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
66812         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
66813         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
66814         All uses changed.
66815
66816 2006-01-26  Simon Josefsson  <jas@extundo.com>
66817
66818         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
66819         prototype is visible on mingw32.
66820
66821         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
66822         for mingw32.
66823
66824         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
66825         mingw32).
66826
66827 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
66828
66829         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
66830         attempt to open for write; this always fails, at least on POSIX
66831         hosts.  This reinstates the 2006-01-09 change, which was
66832         inadvertently removed.
66833
66834 2006-01-26  Bruno Haible  <bruno@clisp.org>
66835
66836         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
66837         Reported by Paul Eggert.
66838
66839 2006-01-26  Bruno Haible  <bruno@clisp.org>
66840             Paul Eggert  <eggert@cs.ucla.edu>
66841
66842         * lib/stdbool_.h (_Bool)
66843         [(! (defined __cplusplus || defined __BEOS__)
66844           && !defined __GNUC__
66845           && !(defined __HP_cc || defined __xlc__
66846                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
66847                || defined __sgi))]:
66848         #define to signed char in these cases too; this simplifies
66849         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
66850         etc., separately) and makes it more conservative.
66851
66852 2006-01-25  Simon Josefsson  <jas@extundo.com>
66853
66854         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
66855         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
66856         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
66857
66858 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66859
66860         * lib/argp-namefrob.h: Bugfix. Remove stray #
66861
66862 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
66863
66864         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
66865         so that we test the test.
66866         Check for yet another HP-UX cc bug involving *bool |= bool.
66867
66868 2006-01-25  Karl Berry  <karl@gnu.org>
66869
66870         * config/srclist.txt (vasnprintf.c): sync lost.
66871
66872 2006-01-25  Jim Meyering  <jim@meyering.net>
66873
66874         Sync from the stable (b5) branch of coreutils:
66875
66876         * lib/fts.c (fts_children): Don't let close() clobber errno from
66877         failed fchdir().
66878
66879         * lib/fts.c (fts_stat): When following a symlink-to-directory,
66880         don't necessarily interpret stat-fails+lstat-succeeds as indicating
66881         a dangling symlink.  That can also happen at least for ELOOP.
66882         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
66883         FYI, this bug predates the inclusion of fts.c in coreutils.
66884
66885         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
66886         in their own block, so pre-c99 compilers don't object.
66887
66888         Avoid the double-free (first in fts_read, second in fts_close) that
66889         would occur when an `active' directory is made inaccessible (e.g.,
66890         via chmod a-x) during a traversal.
66891         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
66892         before returning.  Reproduce this failure by
66893         mkdir -p a/b; cd a; chmod a-x . b
66894         Reported by Stavros Passas.
66895
66896 2006-01-25  Jim Meyering  <jim@meyering.net>
66897
66898         * lib/fileblocks.c: Remove more useless parentheses.
66899         * lib/readutmp.h: Likewise.
66900
66901 2006-01-25  Bruno Haible  <bruno@clisp.org>
66902
66903         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
66904         warnings.
66905         Reported by Paul Eggert.
66906
66907 2006-01-25  Bruno Haible  <bruno@clisp.org>
66908
66909         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
66910         rid of a trap command. For Solaris sh.
66911         Reported by Mark D. Baushke <mdb@gnu.org>.
66912
66913 2006-01-24  Simon Josefsson  <jas@extundo.com>
66914
66915         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
66916         Bruno.
66917
66918 2006-01-24  Karl Berry  <karl@gnu.org>
66919
66920         * config/srclist.txt (argp-namefrob.h): sync lost.
66921
66922 2006-01-24  Jim Meyering  <jim@meyering.net>
66923
66924         * modules/openat (Files): Add lib/intprops.h.
66925         From Mark D. Baushke.
66926
66927 2006-01-24  Jim Meyering  <jim@meyering.net>
66928
66929         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
66930         Reported by Mark D. Baushke.
66931
66932 2006-01-24  Jim Meyering  <jim@meyering.net>
66933
66934         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
66935
66936 2006-01-24  Bruno Haible  <bruno@clisp.org>
66937
66938         * modules/strnlen (Maintainer): Change from glibc to all.
66939
66940 2006-01-24  Bruno Haible  <bruno@clisp.org>
66941
66942         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
66943         Patch by Paul Eggert.
66944
66945 2006-01-24  Bruno Haible  <bruno@clisp.org>
66946
66947         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
66948         already has it.
66949         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
66950         2005-11-26.
66951
66952         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
66953         'signed char' to avoid problems with the built-in _Bool type.
66954         Reported by Paul Eggert on 2005-11-26.
66955
66956 2006-01-24  Bruno Haible  <bruno@clisp.org>
66957
66958         * gnulib-tool (func_import): Avoid constructing complicated sed
66959         expressions inside backquote.
66960         Report and solution by Mark D. Baushke <mdb@gnu.org>.
66961
66962 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
66963
66964         These changes imported from libc.
66965         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
66966         test and two separate function calls.
66967         * lib/strndup.c (__strndup): Add libc_hidden_def.
66968
66969 2006-01-23  Simon Josefsson  <jas@extundo.com>
66970
66971         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
66972         Remove the test_*_SOURCES variable: automake infers it by default.
66973         * modules/tls-tests: Likewise.
66974
66975 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66976
66977         Work around porting bugs reported by Dieter in
66978         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
66979         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
66980         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
66981         Include "getopt.h" first, to check interface.
66982         (getenv): Declare only if defined HAVE_DECL_GETENV &&
66983         !HAVE_DECL_GETENV.
66984         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
66985         (__strndup): Revert to K&R-style function dfns, the glibc style.
66986         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
66987         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
66988         Include strnlen.h first, to get prototype properly.
66989         (strnlen): Renamed from __strnlen.
66990         Remove weak alias.
66991
66992 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66993
66994         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
66995
66996 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66997
66998         * config/srclist.txt: Adjust to reflect glibc reorganization.
66999         This affects only comments.
67000
67001 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67002
67003          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
67004          Reported by Bruce Korb <bkorb@gnu.org>.
67005
67006 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67007
67008         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
67009         to pacify gcc -Wswitch-default.
67010
67011 2006-01-22  Bruno Haible  <bruno@clisp.org>
67012
67013         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
67014         temporary buffer for sprintf, take into account the precision also
67015         for 'd', 'i', 'u', 'o', 'x', 'X'.
67016
67017 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67018
67019         * modules/argp-tests: New module
67020         * tests/test-argp.c: New file
67021         * tests/test-argp-2.sh: New file
67022
67023 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67024
67025         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
67026         (__argp_base_name): Removed
67027         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
67028         typo.
67029         (__argp_base_name): Provide macro definition or extern declaration
67030         depending on the configuration
67031
67032 2006-01-20  Simon Josefsson  <jas@extundo.com>
67033
67034         * modules/inet_ntop (Depends-on): Depend on sys_socket.
67035
67036 2006-01-20  Simon Josefsson  <jas@extundo.com>
67037
67038         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
67039
67040 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67041
67042         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
67043         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
67044         Suggested by Bruno Haible.
67045
67046 2006-01-20  Karl Berry  <karl@gnu.org>
67047
67048         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
67049         until changes propagate, I guess.
67050
67051 2006-01-19  Simon Josefsson  <jas@extundo.com>
67052
67053         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
67054
67055 2006-01-19  Simon Josefsson  <jas@extundo.com>
67056
67057         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
67058
67059 2006-01-19  Simon Josefsson  <jas@extundo.com>
67060
67061         * gnulib-tool: Set check_PROGRAMS.
67062
67063         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67064         modules/des-tests, modules/gc-arcfour-tests,
67065         modules/gc-arctwo-tests, modules/gc-des-tests,
67066         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67067         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67068         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67069         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67070         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67071         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
67072         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
67073         test_*_SOURCES.
67074
67075 2006-01-18  Simon Josefsson  <jas@extundo.com>
67076
67077         * modules/socklen (Depends-on): Depend on sys_socket.
67078
67079 2006-01-18  Simon Josefsson  <jas@extundo.com>
67080
67081         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67082         modules/des-tests, modules/gc-arcfour-tests,
67083         modules/gc-arctwo-tests, modules/gc-des-tests,
67084         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67085         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67086         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67087         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67088         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67089         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
67090         $(EXEEXT) to automake TESTS variable, for mingw32.
67091
67092 2006-01-17  Simon Josefsson  <jas@extundo.com>
67093
67094         * modules/socklen (Include): Need sys/socket.h.
67095
67096 2006-01-17  Bruno Haible  <bruno@clisp.org>
67097
67098         * modules/ssize_t (Include): Add <sys/types.h>.
67099
67100 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
67101
67102         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
67103         it's not portable and it doesn't work with cross-compiles.
67104         Problem reported by Bruno Haible.  Fix missing-$ typo in
67105         'test "gl_cv_ignore_unused_libraries" ...' that prevented
67106         -zignore from being used with Sun's C compiler.
67107
67108 2006-01-12  Simon Josefsson  <jas@extundo.com>
67109
67110         * lib/base64.c: Fix warning, reported by Bruno Haible
67111         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
67112
67113 2006-01-12  Bruno Haible  <bruno@clisp.org>
67114
67115         * modules/ldd: New file.
67116         * build-aux/ldd.sh.in: New file.
67117         * MODULES.html.sh (Support for building libraries and executables): Add
67118         ldd.
67119
67120 2006-01-12  Bruno Haible  <bruno@clisp.org>
67121
67122         * m4/ldd.m4: New file.
67123
67124 2006-01-12  Bruno Haible  <bruno@clisp.org>
67125
67126         * gnulib-tool (func_import, func_create_testdir): Don't go into an
67127         endless loop while replacing $auxdir with build-aux.
67128
67129 2006-01-11  Simon Josefsson  <jas@extundo.com>
67130
67131         * lib/stdint_.h (SIZE_MAX): Add missing (.
67132
67133 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
67134
67135         Sync from coreutils.
67136         * lib/md5.c: Fix commentary typos.
67137         (alignof, UNALIGNED_P): No need for a GCC-specific version.
67138         * lib/md5.h (__attribute__): Remove; unused.
67139         * lib/sha1.c: Fix commentary to match md5 better.
67140         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
67141         so that we don't need to worry about alignment.  All uses changed.
67142         This merges the 2005-10-28 md5 change into sha1.
67143
67144 2006-01-11  Jim Meyering  <jim@meyering.net>
67145
67146         Sync from coreutils.
67147         * lib/md5.c (OP): Fix spacing.
67148
67149 2006-01-11  Bruno Haible  <bruno@clisp.org>
67150
67151         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67152         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
67153         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
67154
67155 2006-01-11  Bruno Haible  <bruno@clisp.org>
67156
67157         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67158         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
67159         the "early" section as well.
67160
67161 2006-01-11  Bruno Haible  <bruno@clisp.org>
67162
67163         Avoid "ar: no archive members specified" error on MacOS X.
67164         * gnulib-tool (func_modules_add_dummy): New function.
67165         (func_import, func_create_testdir): Invoke it.
67166
67167 2006-01-11  Bruno Haible  <bruno@clisp.org>
67168
67169         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
67170         with $auxdir in AC_CONFIG_FILES statements.
67171
67172 2006-01-11  Bruno Haible  <bruno@clisp.org>
67173
67174         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67175         Initialize also noinst_HEADERS to empty.
67176
67177 2006-01-11  Bruno Haible  <bruno@clisp.org>
67178
67179         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
67180         variables.
67181         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
67182         autoreconf.
67183
67184 2006-01-11  Bruno Haible  <bruno@clisp.org>
67185
67186         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
67187         overridable by the user.
67188         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67189
67190 2006-01-10  Simon Josefsson  <jas@extundo.com>
67191
67192         * modules/sys_socket: New file.
67193
67194 2006-01-10  Simon Josefsson  <jas@extundo.com>
67195
67196         * m4/sys_socket_h.m4: New file.
67197
67198 2006-01-10  Simon Josefsson  <jas@extundo.com>
67199
67200         * lib/socket_.h: New file.
67201
67202 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67203
67204         * modules/readutmp (Maintainer): Add myself.
67205
67206 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67207
67208         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
67209         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
67210         People who are still concerned with buggy memcmp implementations
67211         can invoke gl_FUNC_MEMCMP themselves.
67212
67213 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67214
67215         * lib/regex_internal.h (BITSET_WORD_BITS):
67216         Work around a bug in 64-bit PGC (before version 6.1-2), where the
67217         preprocessor mishandles large unsigned values as if they were signed.
67218         Problem reported by Claudio Fontana in
67219         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
67220
67221 2006-01-10  Jim Meyering  <jim@meyering.net>
67222
67223         Avoid the double-free (first in fts_read, second in fts_close) that
67224         would occur when an `active' directory is made inaccessible (e.g.,
67225         via chmod a-x) during a traversal.
67226         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67227         before returning.  Reproduce this failure by
67228         mkdir -p a/b; cd a; chmod a-x . b
67229         Reported by Stavros Passas.
67230
67231         Sync from coreutils.
67232         * lib/sha1.c: Tweak grammar in a comment.
67233
67234 2006-01-10  Jim Meyering  <jim@meyering.net>
67235
67236         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
67237         Patch by Joerg Sonnenberger.
67238
67239 2006-01-10  Bruno Haible  <bruno@clisp.org>
67240
67241         * modules/readutmp: Depend on module free.
67242         * modules/strtok_r: Depend on module restrict.
67243
67244 2006-01-10  Bruno Haible  <bruno@clisp.org>
67245
67246         * modules/gettext (configure.ac): Add an invocation of
67247         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
67248
67249 2006-01-10  Bruno Haible  <bruno@clisp.org>
67250
67251         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
67252         Reported by Werner Lemberg <wl@gnu.org>.
67253
67254 2006-01-10  Bruno Haible  <bruno@clisp.org>
67255
67256         * lib/localcharset.c: Update from GNU gettext.
67257
67258 2006-01-10  Bruno Haible  <bruno@clisp.org>
67259
67260         * lib/argp.h (__const): Remove macro. Use const instead.
67261         * lib/argp-fmtstream.h (__const): Likewise.
67262         * lib/glob_.h (__const): Remove macro.
67263         * lib/glob-libc.h: Use const instead of __const.
67264
67265 2006-01-10  Bruno Haible  <bruno@clisp.org>
67266
67267         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
67268         variable.
67269         Needed to avoid an automake error regarding the 'gettext' module.
67270
67271 2006-01-09  Simon Josefsson  <jas@extundo.com>
67272
67273         * modules/inet_ntop (Depends-on): Add restrict.
67274
67275 2006-01-09  Simon Josefsson  <jas@extundo.com>
67276
67277         * modules/gc-rijndael-tests (License): Put under LGPL.
67278
67279         * modules/gc-des-tests (License): Likewise.
67280
67281         * modules/gc-arcfour-tests (License): Likewise.
67282
67283         * modules/gc-arctwo-tests (License): Likewise.
67284
67285         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
67286
67287         * modules/gc-hmac-sha1-tests (Files): Likewise.
67288
67289         * modules/gc-hmac-md5-tests (License): Likewise.
67290
67291         * modules/gc-sha1-tests (License): Likewise.
67292
67293         * modules/gc-md5-tests (License): Likewise.
67294
67295         * modules/gc-md4-tests (License): Likewise.
67296
67297         * modules/gc-md2-tests (License): Likewise.
67298
67299         * modules/gc-tests (License): Likewise.
67300
67301         * modules/des-tests (License): Likewise.
67302
67303         * modules/md4-tests (License): Likewise.
67304
67305         * modules/md2-tests (License): Likewise.
67306
67307 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67308
67309         Sync from coreutils:
67310
67311         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
67312         * modules/lib-ignore: New file.
67313         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
67314         chdir-safer.m4, lchmod.m4.
67315         * modules/openat: Add mkdirat.c, openat-priv.h.
67316
67317 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67318
67319         Sync from coreutils.
67320         * m4/lib-ignore.m4: New file.
67321         * m4/lchmod.m4: New file.
67322
67323 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67324
67325         Sync from coreutils.
67326         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
67327         for write access: POSIX says that must fail.
67328         * lib/fts.c (diropen): Likewise.
67329         * lib/save-cwd.c (save_cwd): Likewise.
67330         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
67331         well, for minor improvements on hosts that lack O_DIRECTORY.
67332         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
67333         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
67334         Fall back on chown if open failed with EACCES.
67335
67336         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
67337         Report an error at compile-time if only a 1-second nominal clock
67338         resolution is found.
67339
67340         * lib/lchmod.h: New file.
67341         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
67342         (make_dir_parents): Use lchown rather than chown, and
67343         lchmod rather than chmod.
67344
67345         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
67346         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
67347         "proc" reported by n0dalus.
67348
67349         * lib/mountlist.c: Include <limits.h>.
67350         (dev_from_mount_options)
67351         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
67352         New function.  It no longer assumes "dev=" has the System V meaning
67353         on Linux (since it doesn't).  It also parses "dev=" more carefully.
67354         (read_file_system_list)
67355         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
67356         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
67357         dev= in that case.
67358
67359         * lib/posixtm.h (PDS_PRE_2000): New macro.
67360         * lib/posixtm.c (year): Arg is now syntax_bits rather than
67361         allow_century.  All usages changed.  Reject dates outside the range
67362         1969-1999 if PDS_PRE_2000 is used.
67363
67364 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67365
67366         Sync from coreutils.
67367         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
67368         (Time of day items): Mention the possibility of leap seconds.
67369         Problem reported by Dr. David Alan Gilbert.
67370
67371 2006-01-09  Jim Meyering  <jim@meyering.net>
67372
67373         Sync from coreutils.
67374
67375         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
67376
67377         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
67378
67379         * lib/modechange.c (mode_compile): Reject an invalid mode string
67380         that starts with an octal digit.  From Andreas Gruenbacher.
67381
67382         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
67383         and dup to open_safer and dup_safer, respectively.
67384         (openat_permissive): Fix typo in comment.
67385
67386         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
67387         "gettext.h"; either no longer needed or are guaranteed by openat.h.
67388         (_): Remove; no longer needed.
67389         (openat): Renamed from rpl_openat; no need for rpl_openat
67390         since openat.h renames openat for us.
67391         Replace most of the body with a call to openat_permissive,
67392         to avoid duplicate code.
67393         Port to (probably hypothetical) environments were mode_t is
67394         wider than int.
67395         (openat_permissive): Require mode arg, so that we can check
67396         types better.  Put it just after flags.  Change cwd failure
67397         indicator from pointer-to-bool to pointer-to-errno-value.
67398         All callers changed.
67399         Invoke openat_save_fail and/or openat_restore_fail if
67400         cwd_errno is null, so that openat can call us.
67401         (openat_permissive, fdopendir, fstatat, unlinkat):
67402         Simplify errno handling to avoid some duplicate code,
67403         as it's OK to set errno on success.
67404         * lib/openat.h: Revamp code so that function macros depend on
67405         __OPENAT_PREFIX only, not also on AT_FDCWD.
67406         (openat_ro): Remove.  Caller changed to use openat_permissive.
67407         (openat_permissive): Now a macro, if not a function.
67408         (openat_restore_fail, openat_save_fail): Now always functions,
67409         since mkdirat needs them even if __OPENAT_PREFIX is defined.
67410
67411         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
67412         and openat.c.
67413         * lib/mkdirat.c: Include openat-priv.h.
67414         Remove definitions of macros defined therein.
67415         * lib/openat.c: Likewise.
67416
67417         * lib/mkdirat.c (mkdirat): New file and function.
67418         * lib/openat.h (mkdirat): Declare.
67419
67420         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
67421
67422         * lib/openat.h (openat_permissive): Declare.
67423         (openat_ro): Define.
67424
67425         * lib/openat.c (EXPECTED_ERRNO): New macro.
67426         (openat_permissive): New function -- used in remove.c rewrite.
67427         (all functions): Set errno just before returning, only if there
67428         was an actual failure.
67429         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
67430
67431         Emulate openat-family functions using Linux's procfs, if possible.
67432         Idea and some code based on Ulrich Drepper's glibc changes.
67433
67434         * lib/openat.c: (BUILD_PROC_NAME): New macro.
67435         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
67436         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
67437         before falling back on save_cwd and restore_cwd.
67438         (fdopendir, fstatat, unlinkat): Likewise.
67439
67440         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
67441         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
67442
67443         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
67444         as second argument to va_arg.  Otherwise, some versions of gcc
67445         warn that `if this code is reached, the program will abort'.
67446
67447 2006-01-09  Jim Meyering  <jim@meyering.net>
67448
67449         Sync from coreutils.
67450         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
67451         Require openat-priv.h.
67452
67453 2006-01-09  Bruno Haible  <bruno@clisp.org>
67454
67455         * modules/strnlen (Include): Use strnlen.h.
67456
67457 2006-01-09  Bruno Haible  <bruno@clisp.org>
67458
67459         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
67460
67461 2006-01-09  Bruno Haible  <bruno@clisp.org>
67462
67463         * lib/sysexit_.h (EX_OK): New macro.
67464         Suggested by Martin Lambers <marlam@marlam.de>.
67465
67466 2006-01-09  Bruno Haible  <bruno@clisp.org>
67467
67468         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
67469         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
67470
67471 2006-01-09  Bruno Haible  <bruno@clisp.org>
67472
67473         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
67474         numbers.
67475
67476 2006-01-09  Bruno Haible  <bruno@clisp.org>
67477
67478         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
67479         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
67480         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
67481         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
67482
67483 2006-01-09  Bruno Haible  <bruno@clisp.org>
67484
67485         * build-aux/javacomp.sh.in: New file, moved from lib/.
67486         * modules/javacomp-script (Files): Update.
67487         (configure.ac): Add AC_CONFIG_FILES invocation.
67488         (EXTRA_DIST): Remove variable.
67489
67490         * build-aux/javaexec.sh.in: New file, moved from lib/.
67491         * modules/javaexec (Files): Update.
67492         (configure.ac): Add AC_CONFIG_FILES invocation.
67493         (EXTRA_DIST): Remove javaexec.sh.in.
67494
67495         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
67496         * modules/csharpcomp-script (Files): Update.
67497         (configure.ac): Add AC_CONFIG_FILES invocation.
67498         (EXTRA_DIST): Remove variable.
67499
67500         * build-aux/csharpexec.sh.in: New file, moved from lib/.
67501         * modules/csharpexec (Files): Update.
67502         (configure.ac): Add AC_CONFIG_FILES invocation.
67503         (EXTRA_DIST): Remove csharpexec.sh.in.
67504
67505 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67506
67507         Sync from coreutils.
67508
67509         Add POSIX ACL support
67510         * lib/acl.h (copy_acl, set_acl): Add declarations.
67511         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
67512         systems other than Linux.
67513         (chmod_or_fchmod): New function: use fchmod when possible,
67514         and chmod otherwise.
67515         (file_has_acl): Add a POSIX ACL implementation, with a
67516         Linux-specific subcase.
67517         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
67518         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
67519         acls are unsupported.
67520         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
67521         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
67522         are unsupported.
67523
67524 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67525
67526         Sync from coreutils.
67527         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
67528
67529 2006-01-07  Bruno Haible  <bruno@clisp.org>
67530
67531         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
67532         gl_EARLY.
67533
67534 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67535
67536         * lib/strftime.c (tzname): Don't declare if it is already #defined.
67537         Problem reported for Mingw by Mark Junker.
67538
67539 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67540
67541         * README: Gnulib normally doesn't generate a tarball.
67542
67543 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
67544
67545         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
67546         long int, not int, for nanosecond counts, so that people who are
67547         used to POSIX struct timespec won't be surprised.  Reported by Jim
67548         Meyering.
67549
67550 2005-12-28  Bruno Haible  <bruno@clisp.org>
67551
67552         * build-aux/config.rpath: Update from GNU gettext.
67553
67554 2005-12-16  Jim Meyering  <jim@meyering.net>
67555
67556         * modules/fprintftime: New module.
67557         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
67558
67559 2005-12-16  Jim Meyering  <jim@meyering.net>
67560
67561         * m4/fprintftime.m4: New file.
67562
67563 2005-12-16  Jim Meyering  <jim@meyering.net>
67564
67565         * lib/fprintftime.c, lib/fprintftime.h: New files.
67566
67567 2005-12-15  Simon Josefsson  <jas@extundo.com>
67568
67569         * modules/socklen (configure.ac): Fix M4 macro name, to align with
67570         new m4/socklen.m4.
67571
67572 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67573
67574         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
67575         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
67576
67577 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67578
67579         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
67580         * lib/argp-help.c (fill_in_uparams): Check if the constructed
67581         struct uparams is valid. Fall back to the default values if it is
67582         not.
67583
67584 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67585
67586         * modules/argp (Files): Add argp-pin.c
67587         (Depends-on): dirname
67588         (lib_SOURCES): Add argp-pin.c
67589
67590 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67591
67592         * m4/argp.m4:  Check if program_invocation_name and
67593         program_invocation_short_name are declared and define appropriate
67594         macros if they are not.
67595
67596 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67597
67598         * lib/argp-help.c (__argp_base_name): New function
67599         (__argp_short_program_name): Rewrite using __argp_base_name
67600         * lib/argp-namefrob.h: Define program_invocation_name and
67601         program_invocation_short_name if requested
67602         (__argp_base_name): Add prototype
67603         * lib/argp-parse.c (argp_def): Use gettext wrappers
67604         (argp_default_parser): Use __argp_base_name
67605         * lib/argp-pin.c: New file. Defines program_invocation_name and
67606         program_invocation_short_name on systems that lack them.
67607
67608 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67609
67610         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
67611         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67612         porting problem reported by Georg Schwarz in
67613         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67614
67615 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67616
67617         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
67618         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67619         porting problem reported by Georg Schwarz in
67620         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67621
67622 2005-12-05  Bruno Haible  <bruno@clisp.org>
67623
67624         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
67625         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
67626         Reported by Mark Junker <mjscod@gmx.de>.
67627
67628 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
67629
67630         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
67631         Use implementation from Albert Chin, with some
67632         comments/corrections by Stepan Kasal and myself.
67633
67634 2005-12-02  Bruno Haible  <bruno@clisp.org>
67635
67636         * gnulib-tool (func_import): Accept GPLed build tool modules when
67637         --lgpl is given.
67638         * modules/csharpcomp-script: New file.
67639         * modules/csharpcomp: Depend on it.
67640         * modules/javacomp-script: New file.
67641         * modules/javacomp: Depend on it.
67642         Suggested by Simon Josefsson.
67643
67644 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
67645
67646         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
67647         statement, to work around an HP-UX 10.20 compiler bug reported by
67648         Peter O'Gorman.
67649
67650 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67651
67652         * modules/savedir (Depends-on): Add openat.
67653
67654 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67655
67656         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
67657         (uintmax_t) [defined uintmax_t]: Do not declare.
67658         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
67659         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
67660         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
67661         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
67662         sake of portability to weird hosts that C allows (though we don't
67663         know of any practical examples).
67664
67665         * lib/savedir.h (fdsavedir): New decl.
67666         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
67667         contains most of the former guts of savedir.
67668         (savedir): Use savedirstream.
67669         Include "openat.h".
67670
67671 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67672
67673         * modules/obstack (Files): Add m4/ulonglong.m4.
67674         Problem reported by Davide Angelocola.
67675
67676 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
67677
67678         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
67679         coreutils no longer futzes with rounding modes.
67680
67681 2005-11-14  Jim Meyering  <jim@meyering.net>
67682
67683         * lib/mkstemp-safer.c: Include <config.h>, required for possible
67684         replacement of mkstemp.
67685
67686 2005-11-10  Simon Josefsson  <jas@extundo.com>
67687
67688         * lib/readline.c: Remove EOL.
67689
67690 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67691
67692         * modules/gethrxtime (Depends-on): Add gettime.
67693
67694 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67695
67696         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
67697         or gettimeofday; no longer needed.
67698
67699 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67700
67701         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
67702         time business.
67703         (gethrxtime) [! (HAVE_NANOUPTIME
67704         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
67705         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
67706         our own approximation.
67707
67708 2005-11-08  Eric Blake  <ebb9@byu.net>
67709
67710         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67711
67712 2005-11-08  Eric Blake  <ebb9@byu.net>
67713
67714         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67715
67716 2005-11-04  Bruno Haible  <bruno@clisp.org>
67717
67718         * gnulib-tool: Implement --update mode.
67719
67720 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67721
67722         Fix porting problem reported by Theodoros V. Kalamatianos.
67723         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
67724         Don't assume that futimes failing means we must fail.
67725
67726 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67727
67728         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
67729         variables to suggest the intended function of the PATH_MAX check.
67730
67731 2005-10-30  Kean Johnston  <jkj@sco.com>
67732
67733         Trivial changes to support SCO systems.
67734         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
67735         as PATH_MAX.
67736         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
67737         where __ptr is null when no I/O is pending.
67738
67739 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67740
67741         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
67742         leave errno alone.  Problem reported by Dmitry V. Levin.
67743
67744 2005-10-28  Simon Josefsson  <jas@extundo.com>
67745
67746         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
67747         Test more.
67748
67749         * tests/test-gc-md2.c, tests/test-md2.c: New files.
67750
67751         * modules/md2, modules/md2-tests: New files.
67752
67753 2005-10-28  Simon Josefsson  <jas@extundo.com>
67754
67755         * m4/inet_ntop.m4: More tests.
67756
67757         * m4/gc-md2.m4, md2.m4: New file.
67758
67759 2005-10-28  Simon Josefsson  <jas@extundo.com>
67760
67761         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
67762         "restrict" keywords, as per POSIX.  Protect the function
67763         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
67764         Don't use K&R prototypes.  Check the sprintf return values.
67765         Re-define EAFNOSUPPORT if not present.  Indent.
67766
67767         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
67768         suggested by Bruno Haible <bruno@clisp.org>.
67769
67770         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
67771
67772         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
67773
67774         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
67775         libgcrypt).
67776
67777         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
67778
67779         * lib/md2.h, lib/md2.c: New files.
67780
67781 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
67782
67783         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
67784         errno alone.  Problem reported by Frederic Jolliton.
67785
67786 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67787
67788         * modules/verify (License): Change from GPL to LGPL.  This is a
67789         tiny module and there are apparently near-equivalents that are
67790         under the BSD license.
67791
67792 2005-10-24  Simon Josefsson  <jas@extundo.com>
67793
67794         * modules/sha1: Relicense to LGPL.
67795
67796 2005-10-24  Simon Josefsson  <jas@extundo.com>
67797
67798         * lib/md4.h: Shrink buffer size, now that we changed the type.
67799
67800 2005-10-23  Simon Josefsson  <jas@extundo.com>
67801
67802         * gnulib-tool (func_import): Fix --tests-base.
67803
67804 2005-10-22  Simon Josefsson  <jas@extundo.com>
67805
67806         * modules/arcfour (Depends-on): Need stdint.
67807
67808 2005-10-22  Simon Josefsson  <jas@extundo.com>
67809
67810         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
67811         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
67812
67813 2005-10-22  Simon Josefsson  <jas@extundo.com>
67814
67815         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
67816         suggested by Bruno Haible <bruno@clisp.org>.
67817
67818 2005-10-22  Simon Josefsson  <jas@extundo.com>
67819
67820         * lib/crc.h: Include stddef.h, for size_t.
67821
67822 2005-10-22  Simon Josefsson  <jas@extundo.com>
67823
67824         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
67825         arcfour_context struct (simplify test vector testing in GNU
67826         Shishi).
67827
67828 2005-10-21  Simon Josefsson  <jas@extundo.com>
67829
67830         * modules/des, modules/des-tests: New files.
67831
67832         * modules/gc-des, modules/gc-des-tests: New files.
67833
67834         * tests/test-des.c, tests/test-gc-des.c: New file.
67835
67836 2005-10-21  Simon Josefsson  <jas@extundo.com>
67837
67838         * modules/arctwo, modules/arctwo-tests: New files.
67839
67840         * tests/test-arctwo.c: New file.
67841
67842         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
67843
67844         * tests/test-gc-arctwo.c: New file.
67845
67846 2005-10-21  Simon Josefsson  <jas@extundo.com>
67847
67848         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
67849         Bruno Haible <bruno@clisp.org>.
67850
67851         * m4/gc-des.m4: New file.
67852
67853 2005-10-21  Simon Josefsson  <jas@extundo.com>
67854
67855         * m4/arctwo.m4: New file.
67856
67857         * m4/gc-arctwo.m4: New file.
67858
67859 2005-10-21  Simon Josefsson  <jas@extundo.com>
67860
67861         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
67862         block.
67863
67864 2005-10-21  Simon Josefsson  <jas@extundo.com>
67865
67866         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
67867         <bruno@clisp.org>.
67868
67869         * lib/hmac-sha1.c (hmac_sha1): Likewise.
67870
67871         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
67872         Bruno Haible <bruno@clisp.org>.
67873
67874         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
67875         <bruno@clisp.org>.
67876
67877 2005-10-21  Simon Josefsson  <jas@extundo.com>
67878
67879         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
67880
67881 2005-10-21  Simon Josefsson  <jas@extundo.com>
67882
67883         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
67884
67885 2005-10-21  Simon Josefsson  <jas@extundo.com>
67886
67887         * lib/des.h, lib/des.c: New files.
67888
67889         * lib/gc-gnulib.c: Support DES.c
67890
67891 2005-10-21  Simon Josefsson  <jas@extundo.com>
67892
67893         * lib/arctwo.h, lib/arctwo.c: New files.
67894
67895         * lib/gc-gnulib.c: Support ARCTWO.
67896
67897 2005-10-21  Simon Josefsson  <jas@extundo.com>
67898
67899         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
67900         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67901
67902 2005-10-21  Simon Josefsson  <jas@extundo.com>
67903
67904         * gnulib-tool (func_import, func_create_testdir): Define automake
67905         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
67906         Makefile.am snippet),
67907         suggested by Bruno Haible <bruno@clisp.org>.
67908
67909         * modules/gc (Makefile.am): Use it.
67910
67911 2005-10-21  Bruno Haible  <bruno@clisp.org>
67912
67913         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
67914         patch.
67915
67916 2005-10-19  Simon Josefsson  <jas@extundo.com>
67917
67918         * tests/test-gc-rijndael.c: New file.
67919
67920         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
67921
67922 2005-10-19  Simon Josefsson  <jas@extundo.com>
67923
67924         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
67925         interface too.
67926
67927 2005-10-19  Simon Josefsson  <jas@extundo.com>
67928
67929         * tests/test-gc-arcfour.c: New file.
67930
67931         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
67932
67933 2005-10-19  Simon Josefsson  <jas@extundo.com>
67934
67935         * modules/gc-md4, modules/gc-md4-tests: New file.
67936
67937         * tests/test-gc-md4.c: New file.
67938
67939 2005-10-19  Simon Josefsson  <jas@extundo.com>
67940
67941         * m4/gc-md4.m4: New file.
67942
67943 2005-10-19  Simon Josefsson  <jas@extundo.com>
67944
67945         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
67946         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
67947         <kasal@ucw.cz>.
67948
67949 2005-10-19  Simon Josefsson  <jas@extundo.com>
67950
67951         * m4/gc-arcfour.m4: New file.
67952
67953         * m4/gc-rijndael.m4: New file.
67954
67955 2005-10-19  Simon Josefsson  <jas@extundo.com>
67956
67957         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
67958
67959 2005-10-19  Simon Josefsson  <jas@extundo.com>
67960
67961         * lib/gc-gnulib.c: Support ARCFOUR.
67962
67963 2005-10-19  Simon Josefsson  <jas@extundo.com>
67964
67965         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
67966         support.
67967
67968         * lib/gc.h: Add ECB enum type.
67969
67970         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
67971
67972 2005-10-18  Simon Josefsson  <jas@extundo.com>
67973
67974         * tests/test-md5.c: New file.
67975
67976         * modules/md5-tests: New file.
67977
67978 2005-10-18  Simon Josefsson  <jas@extundo.com>
67979
67980         * tests/test-md4.c: New file.
67981
67982         * modules/md4, modules/md4-tests: New files.
67983
67984 2005-10-18  Simon Josefsson  <jas@extundo.com>
67985
67986         * m4/md4.m4: New file.
67987
67988 2005-10-18  Simon Josefsson  <jas@extundo.com>
67989
67990         * lib/md4.h, lib/md4.c: New files, based on md5.?.
67991
67992 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
67993
67994         * gnulib-tool (func_create_testdir): Omit the second check whether
67995         BUILT_SOURCES in nonempty.
67996
67997 2005-10-17  Simon Josefsson  <jas@extundo.com>
67998
67999         * tests/test-rijndael.c: New file.
68000
68001 2005-10-17  Simon Josefsson  <jas@extundo.com>
68002
68003         * modules/sha1: Depend on stdint instead of md5.
68004
68005         * modules/md5: Depend on stdint, remove uint32_t.
68006
68007 2005-10-17  Simon Josefsson  <jas@extundo.com>
68008
68009         * modules/gc-sha1-tests: New file.
68010
68011         * tests/test-gc-sha1.c: New file.
68012
68013 2005-10-17  Simon Josefsson  <jas@extundo.com>
68014
68015         * m4/md5.m4: Remove call to uint32_t.m4.
68016
68017 2005-10-17  Simon Josefsson  <jas@extundo.com>
68018
68019         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
68020
68021         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
68022         md5.h.
68023
68024         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
68025
68026         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
68027
68028 2005-10-17  Simon Josefsson  <jas@extundo.com>
68029
68030         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
68031
68032 2005-10-17  Simon Josefsson  <jas@extundo.com>
68033
68034         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
68035
68036 2005-10-17  Simon Josefsson  <jas@extundo.com>
68037
68038         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
68039
68040         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
68041
68042 2005-10-17  Bruno Haible  <bruno@clisp.org>
68043
68044         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
68045         that it can also be used in a test.
68046
68047 2005-10-16  Bruno Haible  <bruno@clisp.org>
68048
68049         * gnulib-tool (func_emit_tests_Makefile_am): Also define
68050         TESTS_ENVIRONMENT, so that individual tests can augment it.
68051
68052         * gnulib-tool (func_create_testdir): Use an intermediate target for
68053         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
68054         macros, like $(ALLOCA_H), which cannot be passed through the command
68055         line.
68056
68057 2005-10-15  Simon Josefsson  <jas@extundo.com>
68058
68059         * modules/rijndael-tests: New file.
68060
68061         * modules/rijndael: New file.
68062
68063 2005-10-15  Simon Josefsson  <jas@extundo.com>
68064
68065         * m4/rijndael.m4: New file.
68066
68067 2005-10-15  Simon Josefsson  <jas@extundo.com>
68068
68069         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
68070
68071         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
68072
68073 2005-10-14  Simon Josefsson  <jas@extundo.com>
68074
68075         * tests/test-arcfour.c: New file.
68076
68077         * modules/arcfour, modules/arcfour-tests: New files.
68078
68079 2005-10-14  Simon Josefsson  <jas@extundo.com>
68080
68081         * m4/arcfour.m4: New file.
68082
68083 2005-10-14  Simon Josefsson  <jas@extundo.com>
68084
68085         * lib/arcfour.h, lib/arcfour.c: New files.
68086
68087 2005-10-14  Roland McGrath  <roland@redhat.com>
68088
68089         Import from libc.  [BZ #1331]
68090         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
68091         macro argument.
68092         Reported by Matej Vela <vela@debian.org>.
68093
68094 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68095
68096         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
68097         include <wchar.h>; no longer needed.
68098
68099 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68100
68101         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
68102
68103 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
68104         and  Ulrich Drepper  <drepper@redhat.com>
68105
68106         Import from libc.
68107         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
68108         instead of inline stream orientation test and two separate
68109         function calls.  Pay no attention to USE_IN_LIBIO.
68110
68111 2005-10-13  Simon Josefsson  <jas@extundo.com>
68112
68113         * modules/gc-hmac-md5-tests: New file.
68114
68115         * tests/test-gc-hmac-sha1.c: New file.
68116
68117         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
68118
68119         * modules/gc-hmac-md5-tests: New file.
68120
68121         * tests/test-gc-md5.c: New file.
68122
68123         * modules/gc-md5-tests: New file.
68124
68125 2005-10-13  Simon Josefsson  <jas@extundo.com>
68126
68127         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
68128         Move memory allocation outside of loop.
68129
68130 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
68131
68132         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
68133         intermediate directory is in a read-only file system.  Problem
68134         reported by Eric Blake.
68135
68136 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
68137
68138         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
68139
68140 2005-10-12  Simon Josefsson  <jas@extundo.com>
68141
68142         * tests/test-hmac-sha1.c: New file.
68143
68144         * modules/hmac-sha1-tests: New file.
68145
68146         * modules/hmac-sha1: New file.
68147
68148 2005-10-12  Simon Josefsson  <jas@extundo.com>
68149
68150         * modules/gc-sha1: New file.
68151
68152 2005-10-12  Simon Josefsson  <jas@extundo.com>
68153
68154         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
68155
68156         * tests/test-gc-pbkdf2-sha1.c: New file.
68157
68158 2005-10-12  Simon Josefsson  <jas@extundo.com>
68159
68160         * modules/gc-md5, modules/gc-hmac-md5: New files.
68161
68162         * modules/gc (Files): Remove md5, memxor and hmac files.
68163
68164 2005-10-12  Simon Josefsson  <jas@extundo.com>
68165
68166         * m4/gc-pbkdf2-sha1.m4: New file.
68167
68168         * m4/gc-hmac-sha1.m4: New file.
68169
68170         * m4/gc-sha1: New file.
68171
68172         * m4/hmac-sha1.m4: New file.
68173
68174 2005-10-12  Simon Josefsson  <jas@extundo.com>
68175
68176         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
68177
68178         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
68179
68180 2005-10-12  Simon Josefsson  <jas@extundo.com>
68181
68182         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
68183         suggested by Bruno Haible <bruno@clisp.org>.
68184
68185 2005-10-12  Simon Josefsson  <jas@extundo.com>
68186
68187         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
68188
68189 2005-10-12  Simon Josefsson  <jas@extundo.com>
68190
68191         * lib/gc-pbkdf2-sha1.c: New file.
68192
68193         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
68194
68195 2005-10-12  Simon Josefsson  <jas@extundo.com>
68196
68197         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
68198
68199         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
68200
68201 2005-10-12  Simon Josefsson  <jas@extundo.com>
68202
68203         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
68204         GC_USE_HMAC_MD5, respectively.
68205
68206         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
68207         (gc_md5): Fix typo.
68208
68209         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
68210
68211         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
68212
68213         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
68214
68215 2005-10-12  Bruno Haible  <bruno@clisp.org>
68216
68217         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
68218         Reported by Stepan Kasal <kasal@ucw.cz>.
68219
68220 2005-10-11  Simon Josefsson  <jas@extundo.com>
68221
68222         * tests/test-crc.c: New file.
68223
68224         * modules/crc, modules/crc-tests: New files.
68225
68226 2005-10-11  Simon Josefsson  <jas@extundo.com>
68227
68228         * m4/crc.m4: New file.
68229
68230 2005-10-11  Simon Josefsson  <jas@extundo.com>
68231
68232         * lib/gc.h: Add gc_hash and gc_hash_buffer.
68233
68234         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
68235
68236         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
68237
68238 2005-10-11  Simon Josefsson  <jas@extundo.com>
68239
68240         * lib/crc.h, lib/crc.c: New files.
68241
68242         * lib/gc.h (gc_hash_buffer): Add doc.
68243
68244 2005-10-11  Bruno Haible  <bruno@clisp.org>
68245
68246         * modules/c-strcasestr: New file.
68247         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
68248
68249 2005-10-11  Bruno Haible  <bruno@clisp.org>
68250
68251         * modules/c-strcase: New file.
68252         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
68253
68254 2005-10-11  Bruno Haible  <bruno@clisp.org>
68255
68256         * lib/strcasecmp.c: Include limits.h.
68257         (strcasecmp): Avoid integer overflow on exotic platforms.
68258         * lib/strncasecmp.c: Include limits.h.
68259         (strncasecmp): Avoid integer overflow on exotic platforms.
68260         Reported by Paul Eggert.
68261
68262 2005-10-11  Bruno Haible  <bruno@clisp.org>
68263
68264         * lib/c-strcasestr.h: New file, from GNU gettext.
68265         * lib/c-strcasestr.c: New file, from GNU gettext.
68266
68267 2005-10-11  Bruno Haible  <bruno@clisp.org>
68268
68269         * lib/c-strcase.h: New file, from GNU gettext.
68270         * lib/c-strcasecmp.c: New file, from GNU gettext.
68271         * lib/c-strncasecmp.c: New file, from GNU gettext.
68272
68273 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68274
68275         * modules/mempcpy (License): GPL -> LGPL.
68276         * modules/strchrnul (License): Likewise.
68277         * modules/sysexits (License): Likewise.
68278
68279 2005-10-08  Simon Josefsson  <jas@extundo.com>
68280
68281         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
68282
68283 2005-10-07  Simon Josefsson  <jas@extundo.com>
68284
68285         * m4/memxor.m4: Remove gl_C_RESTRICT call.
68286
68287 2005-10-06  Simon Josefsson  <jas@extundo.com>
68288
68289         * tests/test-hmac-md5.c: New file.
68290
68291         * modules/hmac-md5-tests: New file.
68292
68293         * modules/hmac-md5: New file.
68294
68295 2005-10-06  Simon Josefsson  <jas@extundo.com>
68296
68297         * m4/hmac-md5.m4: New file.
68298
68299         * m4/memxor.m4: Require gl_C_RESTRICT.
68300
68301 2005-10-06  Simon Josefsson  <jas@extundo.com>
68302
68303         * lib/memxor.c (memxor): Avoid casts and warnings.
68304
68305 2005-10-06  Simon Josefsson  <jas@extundo.com>
68306
68307         * lib/hmac-md5.c: New file.
68308
68309         * lib/hmac.h: New file.
68310
68311 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68312
68313         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
68314         promotes to int, not unsigned int, to catch the AIX 5.3
68315         compiler bug.
68316
68317 2005-10-05  Simon Josefsson  <jas@extundo.com>
68318
68319         * modules/memxor: New file.
68320
68321         * modules/iconv (Files): Move config.rpath to havelib, it is used
68322         there.
68323
68324         * modules/havelib (Files): Add config.rpath.
68325
68326 2005-10-05  Simon Josefsson  <jas@extundo.com>
68327
68328         * m4/memxor.m4: New file.
68329
68330 2005-10-05  Simon Josefsson  <jas@extundo.com>
68331
68332         * lib/memxor.c (memxor): Fix compiler error.
68333
68334         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
68335         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
68336
68337         * lib/memxor.h, lib/memxor.c: New files.
68338
68339         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
68340         we assume all systems have it, suggested by Jim Meyering
68341         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
68342         any systems lack sys/socket.h; mingw32 is known to lack it, but we
68343         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
68344         same reasons.
68345
68346 2005-10-05  Simon Josefsson  <jas@extundo.com>
68347
68348         * config/srclist.txt: Add glibc bug 1423 for md5.h.
68349
68350 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68351
68352         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
68353         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
68354         needed, since the source code now assumes these .h files.
68355
68356 2005-10-05  Derek Price  <derek@ximbiot.com>
68357
68358         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
68359
68360 2005-10-05  Bruno Haible  <bruno@clisp.org>
68361
68362         * modules/stdint (License): Change to LGPL.
68363
68364 2005-10-04  Simon Josefsson  <jas@extundo.com>
68365
68366         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
68367         D. Baushke" <mdb@gnu.org>.
68368
68369 2005-10-04  Bruno Haible  <bruno@clisp.org>
68370
68371         * lib/verify.h (verify_true): Provide alternative definition for C++.
68372
68373 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
68374
68375         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
68376         (SSIZE_MAX): New macro, if not already defined.
68377         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
68378         than 2 GiB.
68379
68380 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68381
68382         Sync from coreutils.
68383         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
68384         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
68385         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
68386         ULLONG_MAX doesn't work with 2.7.2.1.
68387
68388 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68389
68390         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
68391         From Ben Pfaff.
68392
68393         * modules/exclude (Depends-on): Depend on verify.
68394         * modules/strtoimax (Depends-on): Likewise.
68395         * modules/utimecmp (Depends-on): Likewise.
68396
68397 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68398
68399         * lib/exclude.c: Include verify.h.
68400         (verify): Remove.  All callers changed to use verify.h's version.
68401         * lib/strtoimax.c: Likewise.
68402         * lib/utimecmp.c: Likewis.e
68403
68404         Sync from coreutils.
68405         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
68406         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
68407         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
68408         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
68409         bother returning ENOSYS if settimeofday or stime fails; just let
68410         them return whatever errno they want to return.
68411         * lib/utimens.c: Include unistd.h, for dup2.
68412         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
68413         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
68414
68415 2005-10-02  Jim Meyering  <jim@meyering.net>
68416
68417         Sync from coreutils.
68418         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
68419         from glibc-2.2.5 that fails for read-only files.
68420
68421 2005-10-02  Jim Meyering  <jim@meyering.net>
68422
68423         Sync from coreutils.
68424         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
68425         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
68426         `#if HAVE_CONFIG_H'.
68427         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
68428         Remove AT_FDCWD test.
68429         Do not consume the fd unless successful.
68430         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
68431         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
68432         block, so that we don't even try to compile it if settimeofday is
68433         available.  This works around a compilation failure on OSF1 V5.1,
68434         due to stime requiring a `long int*' while tv_sec is `int'.
68435
68436 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
68437
68438         Sync from coreutils.
68439         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
68440         against `yes', rather than just testing for nonempty.
68441
68442 2005-10-01  Simon Josefsson  <jas@extundo.com>
68443
68444         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
68445         and Darwin.
68446
68447         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
68448         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
68449         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
68450         freeaddrinfo and gai_strerror are declared by the POSIX headers.
68451         Check if struct addrinfo is declared.
68452
68453 2005-10-01  Simon Josefsson  <jas@extundo.com>
68454
68455         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
68456         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
68457         AI_* and EAI_* definitions.  Protect function declarations.
68458
68459 2005-10-01  Jim Meyering  <jim@meyering.net>
68460
68461         Sync from coreutils.
68462
68463         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
68464         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
68465         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
68466         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68467         in the inet and nsl libraries.  Required on Solaris 5.7.
68468
68469 2005-10-01  Jim Meyering  <jim@meyering.net>
68470
68471         Sync from coreutils.
68472         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68473         in the inet and nsl libraries.  Required on Solaris 5.7.
68474
68475 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
68476
68477         * lib/getdelim.c (getdelim): Remove unused variables.
68478
68479 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68480
68481         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
68482         so that the code works even with ancient cpp.  Portability problem
68483         with GCC 2.7.2.1 reported by Thomas M.Ott.
68484
68485 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68486
68487         * modules/regex (Depends-on): Add strcase.
68488
68489         * modules/gethostname (Licence): Change from GPL to LGPL, since
68490         gethostname.c is a trivial implementation of a standard library
68491         function.
68492         * modules/poll (License): Change from GPL to LGPL, since it's
68493         derived from LGPL code.
68494
68495 2005-09-27  Jim Meyering  <jim@meyering.net>
68496
68497         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
68498         HAVE_CONFIG_H.
68499
68500         * lib/intprops.h (signed_type_or_expr__): Define.
68501         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
68502         for unsigned types.
68503
68504 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68505
68506         * lib/verify.h (verify_expr): Remove, replacing with:
68507         (verify_true): New macro that returns true instead of void.
68508         (verify_type__): Remove.
68509         (verify): Use verify_true rather than verify_type__.
68510
68511 2005-09-26  Bruno Haible  <bruno@clisp.org>
68512
68513         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
68514         is necessary.
68515         (lib_SOURCES): Remove mbchar.c.
68516         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
68517         (Files): Add m4/mbrtowc.m4.
68518         * modules/mbiter: Likewise.
68519         * modules/mbuiter: Likewise.
68520
68521 2005-09-26  Bruno Haible  <bruno@clisp.org>
68522
68523         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
68524         compile mbchar.c if they are not both present.
68525         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
68526         * m4/mbiter.m4 (gl_MBITER): Likewise.
68527         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
68528         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
68529         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
68530
68531 2005-09-25  Jim Meyering  <jim@meyering.net>
68532
68533         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
68534         also uses socklen_t.
68535
68536 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
68537
68538         * lib/utimens.c (ENOSYS): Define if not already defined.
68539         (futimens): Support having a null PATH if the file descriptor
68540         is nonnegative.
68541
68542         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
68543         Remove.
68544         (__attribute): Define to empty unless GCC 3.1 or later.
68545         This works around a core dump on OpenBSD 3.4, which has GCC
68546         2.95.3, which dumps core when given __attribute__(()).  It also
68547         simplifies other tests, since we really don't want to bother with
68548         worrying about which ancient version of GCC supported what.
68549         Original problem reported by Yoann Vandoorselaere, with part of
68550         the fix suggested by Derek Price.
68551
68552 2005-09-24  Jim Meyering  <jim@meyering.net>
68553
68554         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
68555         so we can once again use a positive bitfield width of 1 -- now we
68556         don't have to explain why we were using a bitfield width of 2.
68557
68558 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68559
68560         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
68561         and similarly for the other external symbols.  Problem reported
68562         by James Gallager.
68563
68564         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
68565         bug reported by Jim Meyering.
68566
68567         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
68568         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
68569         not needed, since socklen is a prerequisite module.
68570
68571 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68572
68573         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
68574         Problem reported by Eric Blake.
68575         (getaddrinfo): Initialize se so that it's not garbage.
68576         Redo internal storage allocation so that it doesn't make unportable
68577         assumptions about alignment.
68578         Fix a memory leak.
68579
68580         * lib/utimens.c (futimens): Use futimesat if available.
68581         Prefer it to futimes since it doesn't have the futimes bug.
68582
68583         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
68584         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
68585         Instead, declare a function that returns a pointer to an array,
68586         and use verify_type__ to declare the size of the array.
68587         Problem and germ of a solution reported by Bruno Haible.
68588         (verify_type__): Use 2, not 1, for bitfield size, to avoid
68589         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
68590
68591 2005-09-23  Jim Meyering  <jim@meyering.net>
68592
68593         Sync from coreutils.
68594         Correct build failure (socklen_t not defined) on at least
68595         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
68596         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
68597
68598 2005-09-23  Jim Meyering  <jim@meyering.net>
68599
68600         * modules/getaddrinfo (Depends-on): Add socklen.
68601
68602 2005-09-23  Bruno Haible  <bruno@clisp.org>
68603
68604         * tests/test-verify.c: New file.
68605
68606 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68607
68608         Sync from coreutils.
68609
68610         * modules/argmatch (Depends-on): Add verify.
68611         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
68612         unistd-safer.
68613         * modules/save-cwd (Depends-on): Likewise.
68614
68615         * modules/openat (Files): Add lib/openat-die.c.
68616         (Depends-on): Remove error, exitfail.
68617         Add dirname.
68618
68619         * modules/verify: New file.
68620         * MODULES.html.sh (Diagnostics <assert.h>): New section,
68621         with "verify" module.
68622
68623 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68624
68625         Sync from coreutils.
68626
68627         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
68628         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
68629         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
68630         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
68631         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
68632         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
68633         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
68634         Don't bother checking for string.h, stdlib.h, unistd.h.
68635         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
68636         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
68637         module's job.
68638         * m4/jm-macros.m4 (gl_MACROS): Likewise.
68639         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
68640
68641         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
68642         (gl_GETDATE): Use it.
68643
68644         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
68645
68646 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68647
68648         Sync from coreutils.
68649
68650         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
68651         stat-time.h.
68652         * lib/argmatch.h: Include verify.h
68653         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
68654         (ARGMATCH_ASSERT): Remove; unused.
68655         * lib/canonicalize.c: Assume STDC_HEADERS.
68656         * lib/exclude.c: Include "strcase.h".
68657         * lib/regex_internal.h [!defined _LIBC]: Likewise.
68658         * lib/getusershell.c: Include stdio--.h rather than stdio.h
68659         and stdio-safer.h.
68660         (getusershell): Call fopen, not fopen_safer.
68661         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
68662         Do not include unistd-safer.h.
68663         (save_cwd): Don't call fd_safer; no longer needed
68664         now that we include fcntl--.h.
68665
68666         * lib/getdate.y (relative_time): New type.
68667         (RELATIVE_TIME_0): New constant.
68668         (parser_control): Use relative_time instead of doing it ourselves.
68669         (%union): Add new relative_time rel member.
68670         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
68671         Now typeless.
68672         (relunit, relunit_snumber): Now of type rel.
68673         (zone, rel, relunit, get_date): Adjust to above changes.
68674
68675         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
68676         Do not include unistd-safer.h.
68677         (getloadavg): Don't call fd_safer; no longer needed
68678         now that we include fcntl--.h.
68679
68680         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
68681         (make_dir_parents): Treat ENOSYS like EEXIST.
68682
68683         Improve quality of diagnostics on restore_cwd failure.
68684         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
68685         (make_dir_parents): Last arg is now int * (for errno), not bool *.
68686         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
68687         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
68688         each time through the loop.  Do not diagnose restore_cwd failure;
68689         that is the caller's job (and perhaps the caller does not care).
68690
68691         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
68692         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
68693         If the file already exists but is not a directory, don't bother
68694         to try to make its parents.
68695         Close potential file descriptor leak if we can't chdir("/") (!).
68696         Don't always return true if chdir($PWD) fails; return true only
68697         if the requested action was done successfully (except for the
68698         chdir($PWD)).
68699         Don't log final directory unless we actually made it.
68700         Refactor to avoid duplicate code to fix up permissions.
68701         Don't attempt to fix up parent permissions if chdir($PWD) fails.
68702
68703         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
68704         to make it a bit faster and (I hope) clearer.
68705         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
68706         Fix bug in formats like %2N.
68707
68708         * lib/verify.h: New file.
68709
68710 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68711
68712         Sync from coreutils.
68713         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
68714
68715 2005-09-22  Jim Meyering  <jim@meyering.net>
68716
68717         Sync from coreutils.
68718
68719         * m4/lstat.m4 (gl_FUNC_LSTAT):
68720         Use AC_LIBSOURCES to require lstat.c and lstat.h.
68721         Remove obsolete comment.
68722         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
68723         * m4/xstrtod.m4: Likewise.
68724
68725         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
68726
68727 2005-09-22  Jim Meyering  <jim@meyering.net>
68728
68729         Sync from coreutils.
68730
68731         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
68732
68733         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
68734         the .tm_year member, since otherwise gcc-4.0 would now warn about
68735         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
68736
68737         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
68738         order to avoid an unsuppressible warning from gcc on 64-bit systems.
68739
68740         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
68741         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
68742         when run in a time zone for which daylight savings time is in effect
68743         for the starting date.
68744
68745         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
68746         stop us from restricting permissions of just-created absolute-named
68747         directories.
68748         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
68749         to restore initial working directory.
68750         * lib/mkdir-p.c (make_dir_parents): New parameter:
68751         different_working_dir, to tell caller if/when we change the working
68752         directory and are unable to return to the initial one.
68753         * lib/mkdir-p.h (make_dir_parents): Update prototype.
68754         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
68755         `return false'.  This fixes a bug introduced on 2004-07-30.
68756
68757         * lib/openat.c (fdopendir): Be sure to close the supplied
68758         file descriptor before returning.  This makes our replacement
68759         implementation a little closer to Solaris's, where fdopendir
68760         ties the file descriptor to the returned DIR* pointer.
68761         * lib/openat.c (unlinkat): New function.
68762         * lib/openat.h (unlinkat): Add prototype.
68763         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
68764         (openat_restore_fail): Rename from openat_restore_die.
68765         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
68766
68767         Provide an alternative to exiting immediately upon save_cwd or
68768         restore_cwd failure.  Now, an application can arrange e.g.,
68769         to perform a longjump in that case.
68770         * lib/openat.c: Include dirname.h.
68771         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
68772         (rpl_openat, fdopendir, fstatat): Call openat_save_die
68773         and openat_restore_die rather than calling error directly.
68774         Don't include "error.h" or "exitfail.h"; they're no longer needed.
68775
68776         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
68777         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
68778         define.
68779
68780         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
68781         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
68782                             int utc, int nanoseconds);
68783         Background:
68784         date should not have to allocate a megabyte of virtual memory to
68785         handle a format argument like +%1048575T.  When implemented with
68786         strftime, it must allocate such a buffer, use strftime to fill it
68787         in, print it, then free it.
68788         With fprintftime, it simply prints everything and exits.
68789         With no need for memory allocation, that's one fewer way to fail.
68790         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
68791         optional field width, not before, so we accept %9:z, not %:9z.
68792         (my_strftime): Be sure to use L_('x') for literals.
68793
68794         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
68795         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
68796         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
68797         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
68798         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
68799         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
68800         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
68801         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
68802         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
68803         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
68804         * lib/xgethostname.c, lib/xreadlink.c:
68805         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
68806
68807         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
68808         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
68809         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
68810         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
68811         and don't include <sys/file.h>).
68812
68813 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
68814
68815         Sync from coreutils.
68816
68817         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
68818         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
68819         [!LDAV_DONE]: Avoid unused variable warning.
68820
68821 2005-09-21  Bruno Haible  <bruno@clisp.org>
68822
68823         * lib/unicodeio.h (unicode_to_mb): New declaration.
68824
68825 2005-09-20  Derek Price  <derek@ximbiot.com>
68826
68827         * lib/getaddrinfo.c: Don't include <netdb.h> included from
68828         getaddrinfo.h.
68829
68830 2005-09-20  Bruno Haible  <bruno@clisp.org>
68831
68832         * gnulib-tool: Remove trailing slashes from the values specified for
68833         --source-base, --m4-base, --tests-base, --aux-dir.
68834         Suggested by Simon Josefsson <jas@extundo.com>.
68835
68836 2005-09-20  Bruno Haible  <bruno@clisp.org>
68837
68838         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
68839         func_modules_to_filelist, func_import, func_create_testdir): Make all
68840         sorting results locale-independent, so that gnulib-cache.m4 doesn't
68841         change when gnulib-tool is invoked in a different locale.
68842
68843 2005-09-19  Simon Josefsson  <jas@extundo.com>
68844
68845         * m4/socklen.m4: Fix typo.
68846
68847 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68848
68849         Use a consistent style for including <config.h>.
68850         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
68851         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
68852         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
68853         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
68854         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
68855         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
68856         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
68857         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
68858         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
68859         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
68860         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
68861         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
68862         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
68863         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
68864         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
68865         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
68866         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
68867         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
68868         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
68869         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
68870         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
68871         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
68872         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
68873         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
68874         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
68875         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
68876         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
68877         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
68878         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
68879         lib/xstrtoumax.c, lib/yesno.c:
68880         Standardize inclusion of config.h.
68881         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
68882         lib/inttostr.h:  Removed inclusion of config.h from header files.
68883         * lib/inttostr.c:  Adjusted in-tree users.
68884         * lib/timespec.h: Remove superfluous warning to include config.h.
68885         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
68886         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
68887         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
68888         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
68889         config.h with HAVE_CONFIG_H.
68890
68891 2005-09-19  Jim Meyering  <jim@meyering.net>
68892
68893         * modules/pathmax (License): Change to LGPL.
68894
68895 2005-09-19  Derek Price  <derek@ximbiot.com>
68896
68897         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
68898
68899 2005-09-19  Bruno Haible  <bruno@clisp.org>
68900
68901         * gnulib-tool (import): Provide default for --tests-base.
68902
68903 2005-09-19  Bruno Haible  <bruno@clisp.org>
68904
68905         * doc/quote.texi: New file, extracted from gnulib.texi.
68906         * doc/ctime.texi: New file, extracted from gnulib.texi.
68907         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
68908         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
68909         * doc/gnulib.texi: Include them.
68910
68911 2005-09-18  Bruno Haible  <bruno@clisp.org>
68912
68913         Portability fix.
68914         * gnulib-tool (func_readlink): New function.
68915         (func_ln_if_changed): Use it.
68916
68917 2005-09-18  Bruno Haible  <bruno@clisp.org>
68918
68919         * gnulib-tool: Support --with-tests also with --import.
68920         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
68921         (func_import): Use variables $testsbase and $inctests. Emit a
68922         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
68923         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
68924         SUBDIRS += $testsdir.
68925         (func_create_testdir): Update.
68926
68927 2005-09-18  Bruno Haible  <bruno@clisp.org>
68928
68929         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
68930         instead of $dry_run.
68931         (func_cp_if_changed, func_mv_if_changed): Remove functions.
68932         (func_ln_if_changed): Don't handle dry-run here.
68933         (func_import): In dry-run mode, detect more precisely which actions
68934         would be performed, and don't use "...ing" verbs.
68935
68936 2005-09-18  Bruno Haible  <bruno@clisp.org>
68937
68938         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
68939         (func_import): Use join on two temporary files instead of three nested
68940         loops, in order to determine which files are new or old.
68941
68942 2005-09-18  Bruno Haible  <bruno@clisp.org>
68943
68944         * gnulib-tool (func_import): Comment out code that spits out the
68945         new files with --dry-run.
68946
68947 2005-09-18  Bruno Haible  <bruno@clisp.org>
68948
68949         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
68950
68951 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68952
68953         * lib/stat-time.h: New file.
68954         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
68955         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
68956         in a different way.
68957         (timespec_cmp): New function.
68958         * lib/utimecmp.c: Include stat-time.h.
68959         (SYSCALL_RESOLUTION): Depend on whether various struct stat
68960         members exist, not on the obsolescent ST_MTIM_NSEC.
68961         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
68962
68963 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68964
68965         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
68966
68967 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68968
68969         * MODULES.html.sh (File system functions): Add stat-time.
68970         * modules/stat-time: New file.
68971         * modules/timespec (Files): Remove m4/st_mtim.m4; this
68972         is now done in a different way, by the stat-time module.
68973         * modules/utimecmp (Depends-on): Add stat-time.
68974
68975 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68976
68977         * m4/st_mtim.m4: Remove.  Superseded by...
68978         * m4/stat-time.m4: New file.
68979         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
68980         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
68981
68982 2005-09-15  Derek Price  <derek@ximbiot.com>
68983
68984         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
68985
68986 2005-09-15  Derek Price  <derek@ximbiot.com>
68987
68988         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
68989         * lib/regex_internal.c: Ditto, using this...
68990         (__GNUC_PREREQ): ...new macro.
68991         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
68992         using...
68993         (__GNUC_PREREQ): ...this new macro.
68994
68995         * lib/strstr.h: Include string.h. Define strstr as a macro here.
68996
68997 2005-09-15  Derek Price  <derek@ximbiot.com>
68998             Paul Eggert  <eggert@cs.ucla.edu>
68999
69000         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
69001         changes, consolidating in...
69002         * lib/regex_internal.h: ...this file.
69003
69004 2005-09-13  Jim Meyering  <jim@meyering.net>
69005
69006         * lib/canon-host.c: Filter through gnu indent and reword comments
69007         slightly.
69008         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
69009
69010 2005-09-13  Derek Price  <derek@ximbiot.com>
69011
69012         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
69013         failure.
69014         Reported by Jim Meyering  <jim@meyering.net>.
69015
69016 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69017
69018         * lib/base64.c: Typo.
69019         (base64_encode): Put b64str in initialized data section.
69020
69021 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
69022
69023         Merge glibc and coreutils changes into gnulib, plus a few
69024         extra fixes.
69025         * lib/md5.c: Use #error rather than a string.
69026         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
69027         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
69028         (__attribute__): Define to empty for non recent-GCC.
69029         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
69030         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
69031         Renamed from their non-__ counterparts, with new macros replacing
69032         them if not _LIBC.  Add __THROW attribute.
69033         (rol): Remove.
69034         (struct md5_ctx): Align buffer if using GCC.
69035         * lib/sha1.h (struct sha1_ctx): Likewise.
69036         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
69037         The old name was backwards.
69038         (NOTSWAP): Remove; not used.
69039         (rol): New macro, moved here from md5.h.
69040         (sha1_process_block): Remove a FIXME that doesn't make sense.
69041
69042 2005-09-12  Derek Price  <derek@ximbiot.com>
69043
69044         Return usable errors from canon-host.
69045         * lib/canon-host.h: New file.
69046         * lib/canon-host.c (canon_host): Wrap...
69047         (canon_host_r): ...this new function, which now relies exclusively on
69048         getaddrinfo.
69049         (ch_strerror): New function.
69050         (last_cherror): New global.
69051         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
69052         interface.
69053         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
69054         void *.
69055         (freeaddrinfo): Free ai->ai_canonname when set.
69056
69057 2005-09-12  Derek Price  <derek@ximbiot.com>
69058
69059         Make canon-host require getaddrinfo.
69060         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
69061         AC_LIBSOURCE canon-host.h.  Call...
69062         (gl_PREREQ_CANON_HOST): ...this new function, which requires
69063         gl_GETADDRINFO.
69064         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
69065
69066 2005-09-12  Derek Price  <derek@ximbiot.com>
69067
69068         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
69069         LGPL.
69070         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
69071
69072 2005-09-12  Derek Price  <derek@ximbiot.com>
69073
69074         * lib/gai_strerror.c: Include config.h when available.  Include
69075         getaddrinfo.h before other headers to test interface.
69076         Reported by Larry Jones <lawrence.jones@ugs.com>.
69077
69078 2005-09-12  Derek Price  <derek@ximbiot.com>
69079             Paul Eggert  <eggert@cs.ucla.edu>
69080
69081         * modules/glob (Files): Add glob-libc.h.
69082
69083 2005-09-12  Derek Price  <derek@ximbiot.com>
69084             Paul Eggert  <eggert@cs.ucla.edu>
69085
69086         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
69087         glob_.h, glob-libc.h.
69088         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
69089
69090 2005-09-12  Derek Price  <derek@ximbiot.com>
69091             Paul Eggert  <eggert@cs.ucla.edu>
69092
69093         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
69094         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
69095         protecting things that should be done only in gnulib contexts.
69096         * lib/glob_.h: New file, containing only the glob things needed for
69097         gnulib.
69098         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
69099         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
69100         (glob, globfree, glob_pattern_p): Now defined simply in terms of
69101         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
69102         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
69103         and to respect the namespace rules better.
69104
69105 2005-09-08  Simon Josefsson  <jas@extundo.com>
69106
69107         * modules/socklen: New file.
69108
69109 2005-09-08  Simon Josefsson  <jas@extundo.com>
69110
69111         * m4/socklen.m4: New file.
69112
69113 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69114
69115         * modules/utimens (Files): Add m4/utimbuf.m4, since
69116         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
69117         Reported by Sergey Poznyakoff.
69118
69119 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69120
69121         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
69122         definitions, since that's the preferred style in glibc.
69123         Fix a minor spacing issue, and update copyright notice to match
69124         glibc's.
69125
69126 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69127
69128         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
69129
69130 2005-09-06  Simon Josefsson  <jas@extundo.com>
69131
69132         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
69133         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
69134
69135 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69136
69137         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
69138         warning.
69139
69140 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69141
69142         * config/srclist.txt: Add glibc bug 1302.
69143
69144 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
69145
69146         Change bitset word type from unsigned int to unsigned long int,
69147         as this has better performance on typical 64-bit hosts.
69148         Port bitset code to hosts with unusual word sizes.
69149         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
69150         (build_collating_symbol):
69151         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
69152         argument is a bitset.  This is merely a style issue, but it makes
69153         it clearer that an entire array is expected.
69154         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
69155         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
69156         Port to the case where bitset_word is not the same as unsigned int.
69157         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69158         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
69159         Likewise.
69160         * lib/regexec.c (check_dst_limits_calc_pos_1,
69161         check_subexp_matching_top):
69162         (build_trtable, group_nodes_into_DFAstates):
69163         Likewise.
69164         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
69165         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
69166         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
69167         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
69168         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
69169         * lib/regcomp.c (optimize_subexps, lower_subexp):
69170         Work even if bitset_word has holes in its bitwise representation.
69171         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
69172         * lib/regexec.c (check_dst_limits_calc_pos_1,
69173         check_subexp_matching_top):
69174         Likewise.
69175         * lib/regex_internal.c (re_string_reconstruct):
69176         Don't assume UCHAR_MAX == 255.
69177         * lib/regex_internal.h (bitset_set_all): Likewise.
69178         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
69179         All uses changed.
69180         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
69181         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
69182         All uses changed.
69183         (BITSET_WORD_MAX): New macro.
69184         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
69185         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
69186         (bitset_empty, bitset_copy):
69187         Prefer sizeof (bitset) to multiplying it out ourselves.
69188         (bitset_not_merge): Remove; unused.
69189         (bitset_contain): Return bool, not unsigned int with one bit on.
69190         All callers changed.
69191         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
69192         alignment than re_node_set; do this by defining a new internal
69193         type struct dests_alloc and using it to allocate memory.
69194
69195 2005-09-05  Bruno Haible  <bruno@clisp.org>
69196
69197         * gnulib-tool (func_import): Fix comparison in handling of symbolic
69198         links.
69199
69200 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
69201
69202         * modules/size_max (Makefile.am): Add size_max.h
69203
69204 2005-09-04  Derek Price  <derek@ximbiot.com>
69205
69206         * gnulib-tool (func_import): Fix reversed $symbolic logic.
69207
69208 2005-09-03  Simon Josefsson  <jas@extundo.com>
69209
69210         * gnulib-tool: Fix typo.
69211
69212 2005-09-03  Simon Josefsson  <jas@extundo.com>
69213
69214         * config/srclist.txt: Add glibc bug 1293.
69215
69216 2005-09-03  Derek Price  <derek@ximbiot.com>
69217
69218         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
69219         From Larry Jones <lawrence.jones@ugs.com>.
69220
69221 2005-09-02  Simon Josefsson  <jas@extundo.com>
69222
69223         * modules/socklen: New file.
69224
69225 2005-09-02  Simon Josefsson  <jas@extundo.com>
69226
69227         * modules/havelib: New module.
69228
69229         * modules/gettext, modules/iconv, modules/lock, modules/readline:
69230         Use havelib.
69231
69232 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69233
69234         Check for arithmetic overflow when calculating sizes, to prevent
69235         some buffer-overflow issues.  These patches are conservative, in the
69236         sense that when I couldn't determine whether an overflow was possible,
69237         I inserted a run-time check.
69238         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
69239         macros.
69240         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
69241         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
69242         (re_xnrealloc, re_x2nrealloc): New inline functions.
69243         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
69244         parse_bracket_exp):
69245         (build_equiv_class, build_charclass): Check for arithmetic overflow
69246         in size expression calculations.
69247         * lib/regex_internal.c (re_string_realloc_buffers):
69248         (build_wcs_upper_buffer, re_node_set_add_intersect):
69249         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
69250         (re_dfa_add_node, register_state): Likewise.
69251         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
69252         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
69253         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
69254         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
69255
69256 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69257
69258         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69259         m4/ulonglong.m4.  Problem reported by Martin Lambers.
69260
69261 2005-09-02  Bruno Haible  <bruno@clisp.org>
69262
69263         Support for lib vs. lib64 distinction on biarch platforms.
69264         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
69265         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
69266         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
69267
69268 2005-09-02  Bruno Haible  <bruno@clisp.org>
69269
69270         * gnulib-tool (import): In the other first-use case, provide defaults
69271         as well.
69272
69273 2005-09-02  Bruno Haible  <bruno@clisp.org>
69274
69275         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
69276         patches not yet found in the latest gettext release.
69277
69278 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69279
69280         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
69281         to avoid a collision with bits/local_lim.h in glibc.
69282         All uses changed.  Problem reported by Dmitry V. Levin in
69283         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
69284
69285         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
69286         bugs in int versus size_t comparisons.
69287         (re_string_context_at): Fix bug where the code assumed that
69288         Idx is signed.
69289
69290         Use bool where appropriate.
69291         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
69292         All callers changed.
69293         (calc_eclosure_iter): Likewise, for ROOT arg.
69294         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
69295         (build_charclass_op): Likewise, for NON_MATCH arg.
69296         * lib/regex_internal.c (re_string_allocate, re_string_construct):
69297         (re_string_construct_common): Likewise, for ICASE arg.
69298         * lib/regexec.c (re_search_2_stub, re_search_stub):
69299         Likewise, for RET_LEN arg.
69300         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
69301         (set_regs): Likewise, for FL_BACKTRACK arg.
69302         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
69303         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
69304         (calc_eclosure_iter, parse_bracket_exp):
69305         Use bool for internal variables that are booleans.
69306         * lib/regexec.c (re_search_internal, check_matching,
69307         proceed_next_node):
69308         (set_regs, build_sifted_states, sift_states_bkref):
69309         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
69310         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69311         (find_collation_sequence_value):
69312         Likewise.
69313         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
69314         (re_node_set_compare):
69315         Return bool, not int. All callers changed.
69316         * lib/regexec.c (check_halt_node_context, check_dst_limits):
69317         (build_trtable, check_node_accept): Likewise.
69318         * lib/regex_internal.h: Include stdbool.h.
69319
69320         Fix bugs uncovered when converting to bool.
69321         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
69322         failure instead of charging ahead blindly.
69323         * lib/regex_internal.c (register_state): Likewise.
69324         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
69325         for freeing internal storage.
69326         (group_nodes_into_DFA_states): Use unsigned int, not int, for
69327         bitset pieces used as boolean, to avoid undefined behavior
69328         on hosts that do int overflow checking.
69329
69330 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69331
69332         * config/srclist.txt: Add glibc bugs 1285-1287.
69333
69334 2005-09-01  Jim Meyering  <jim@meyering.net>
69335
69336         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
69337         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
69338         Require gl_STAT_MACROS, too.
69339
69340 2005-09-01  Bruno Haible  <bruno@clisp.org>
69341
69342         * gnulib-tool (import): In the first-use case, provide defaults.
69343
69344 2005-09-01  Bruno Haible  <bruno@clisp.org>
69345
69346         * gnulib-tool (func_import): Remove the .tmp files.
69347
69348 2005-09-01  Bruno Haible  <bruno@clisp.org>
69349
69350         * gnulib-tool (func_import): Fix handling of symbolic links.
69351
69352 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69353
69354         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
69355         old glibc regex code mishandles strings longer than 2**31 bytes.
69356         This patch fixes this when the regex code is used in gnulib
69357         (i.e., outside glibc).
69358
69359         This patch should not affect the use of the regex code inside
69360         glibc.  No doubt this problem also needs to be handled for glibc
69361         as well, but the result will be an incompatible change to the
69362         glibc ABI, and the old ABI will have to be supported too.  That
69363         can be the the subject for another patch.
69364
69365         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
69366         governing whether the rest of this patch is active.  By default,
69367         the macro is disabled and the patch has no effect.
69368         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
69369         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
69370         (struct re_pattern_buffer, re_search, re_search_2, re_match):
69371         (re_match_2, re_set_registers): Use the new types.
69372         * lib/regex_internal.h (Idx, re_hashval_t): New types.
69373         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
69374         New macros.
69375         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
69376         (re_string_context_at, bin_tree_t, re_dfastate_t):
69377         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
69378         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
69379         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
69380         (re_string_char_size_at, re_string_wchar_at):
69381         (re_string_elem_size_at):
69382         Use the new types and macros to port to 64-bit hosts.
69383         Use unsigned types for internal values, so that the code
69384         mostly works even for arrays larger than SSIZE_MAX.
69385         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
69386         (search_duplicated_node, calc_eclosure_iter, fetch_number):
69387         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
69388         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
69389         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
69390         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
69391         (calc_inveclosure, parse_dup_op, build_range_exp):
69392         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
69393         (fetch_number, create_token_tree, mark_opt_subexp):
69394         Likewise.
69395         * lib/regex_internal.c (re_string_construct_common,
69396         create_ci_newstate):
69397         (create_cd_newstate, re_string_allocate, re_string_construct):
69398         (re_string_realloc_buffers, build_wcs_upper_buffer):
69399         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69400         (re_string_reconstruct, re_string_peek_byte_case):
69401         (re_string_fetch_byte_case, re_string_context_at):
69402         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69403         (re_node_set_init_copy, re_node_set_add_intersect):
69404         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69405         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69406         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69407         (re_acquire_state, re_acquire_state_context, register_state):
69408         Likewise.
69409         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
69410         search_cur_bkref_entry):
69411         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
69412         (re_search_internal, re_search_2_stub, re_search_stub)
69413         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
69414         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
69415         (update_cur_sifted_state, check_dst_limits):
69416         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69417         (check_subexp_limits, sift_states_bkref, merge_state_array):
69418         (check_subexp_matching_top, get_subexp, get_subexp_sub):
69419         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
69420         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69421         (expand_bkref_cache, check_node_accept_bytes):
69422         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
69423         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
69424         (acquire_init_state_context, check_halt_node_context):
69425         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
69426         (sift_states_backward, clean_state_log_if_needed):
69427         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
69428         (find_recover_state, transit_state_sb, transit_state_mb):
69429         (transit_state_bkref, build_trtable, match_ctx_clean):
69430         Likewise.
69431         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
69432         to work around an assumption that REG_MISSING is negative.
69433
69434         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
69435         (seek_collating_symbol_entry) [defined _LIBC]:
69436         (lookup_collation_sequence_value) [defined _LIBC]:
69437         (build_range_exp, build_collating_symbol) [defined _LIBC]:
69438         Use prototypes rather than old-style function definitions.
69439         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
69440         (transit_state_sb) [0]:
69441         (find_collation_sequence_value) [defined _LIBC]: Likewise.
69442
69443         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
69444         rm_eo.
69445
69446         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
69447         (optimize_subexps, lower_subexp):
69448         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
69449         since the signed shift might overflow.  Use 1u<<31 instead.
69450         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69451         Likewise.
69452         * lib/regexec.c (check_dst_limits_calc_pos_1,
69453         check_subexp_matching_top): Likewise.
69454
69455         * lib/regcomp.c (optimize_subexps, lower_subexp):
69456         Use CHAR_BIT rather than 8, for clarity.
69457         * lib/regexec.c (check_dst_limits_calc_pos_1):
69458         (check_subexp_matching_top): Likewise.
69459         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
69460         have to worry about portability issues when shifting it left.
69461         Remove no-longer-needed test for table_size > 0.
69462         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
69463         in a word, as the resulting behavior is undefined.
69464         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
69465         in one case, a <= should have been an <, and in another case the
69466         whole test was missing.
69467         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
69468         the standard name CHAR_BIT.
69469         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
69470         this is not true on one's complement and signed-magnitude hosts.
69471
69472         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
69473         next_last_offset.
69474         (struct re_dfa_t): Remove unused member states_alloc.
69475         * lib/regcomp.c (init_dfa): Don't initialize unused members.
69476
69477 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69478
69479         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
69480         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
69481         and large-file glibc and in 32-bit large-file Solaris.
69482
69483 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69484
69485         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
69486         lengths fit in regoff_t; this isn't true if regoff_t is the same
69487         width as size_t.
69488         * lib/regex.c (re_search_internal): 5th arg is LAST_START
69489         (= START + RANGE) instead of RANGE.  This avoids overflow
69490         problems when regoff_t is the same width as size_t.
69491         All callers changed.
69492         (re_search_2_stub): Check for overflow when adding the
69493         sizes of the two strings.
69494         (re_search_stub): Check for overflow when adding START
69495         to RANGE; if it occurs, substitute the extreme value.
69496
69497 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69498
69499         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
69500
69501 2005-08-31  Jim Meyering  <jim@meyering.net>
69502
69503         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
69504         a pointer-to-const.
69505         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
69506         (register_state): Likewise.
69507         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
69508         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69509         (group_nodes_into_DFAstates): Likewise.
69510
69511 2005-08-31  Jim Meyering  <jim@meyering.net>
69512
69513         * check-module: Add a FIXME comment.
69514
69515 2005-08-31  Eric Blake  <ebb9@byu.net>
69516
69517         * modules/unistd-safer (Files): Add unistd--.h.
69518         * modules/stdio-safer (Files): Add stdio--.h.
69519
69520 2005-08-31  Derek Price  <derek@ximbiot.com>
69521
69522         * lib/getdelim.c (getdelim): Return EOF on EOF.
69523         Reported by Larry Jones <lawrence.jones@ugs.com>.
69524
69525 2005-08-31  Bruno Haible  <bruno@clisp.org>
69526
69527         Avoid unnecessary diffs in the generated lib/Makefile.am.
69528         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
69529         the generated files.
69530         (func_import): Don't set cmd.
69531
69532 2005-08-31  Bruno Haible  <bruno@clisp.org>
69533
69534         * lib/strstr.c: Include <stddef.h>, for NULL.
69535         * lib/strcasestr.c: Likewise.
69536         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69537
69538 2005-08-31  Bruno Haible  <bruno@clisp.org>
69539
69540         * gnulib-tool: New option --macro-prefix.
69541         (func_import): Use macro_prefix.
69542         (import): Handle option --macro-prefix.
69543
69544 2005-08-31  Bruno Haible  <bruno@clisp.org>
69545
69546         * gnulib-tool (import): Rename most ac_* variables to cached_*.
69547         Also use new variables cached_lgpl, cached_libtool.
69548
69549 2005-08-31  Bruno Haible  <bruno@clisp.org>
69550
69551         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
69552         always instantiating them.
69553
69554 2005-08-31  Bruno Haible  <bruno@clisp.org>
69555
69556         * gnulib-tool (func_import): Read the previous cached settings
69557         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
69558         earlier added by gnulib but are now dropped. Warn when a gnulib file
69559         overwrites a non-gnulib file.
69560
69561 2005-08-31  Bruno Haible  <bruno@clisp.org>
69562
69563         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
69564         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
69565         projects that don't keep autogenerated files in CVS. Put into
69566         actioncmd only the specified modules, not the transitive closure.
69567
69568 2005-08-31  Bruno Haible  <bruno@clisp.org>
69569
69570         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
69571         Create directories that shall be filled.
69572         (import): Don't look for gl_* macros in configure.ac. Recurse across
69573         all directories containing a gnulib-cache.m4 files, if meaningful.
69574
69575 2005-08-31  Bruno Haible  <bruno@clisp.org>
69576
69577         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
69578         (import): Set seen_libtool when we see gl_LIBTOOL.
69579
69580 2005-08-31  Bruno Haible  <bruno@clisp.org>
69581
69582         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
69583         declaration macro definitions from generated gnulib.m4.
69584
69585 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
69586
69587         * lib/iconvme.h: Add prototype for iconv_alloc.
69588
69589 2005-08-29  Simon Josefsson  <jas@extundo.com>
69590
69591         * lib/iconvme.c: Fix errno.
69592
69593 2005-08-29  Bruno Haible  <bruno@clisp.org>
69594
69595         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
69596         that it works when the directory contains spaces.
69597
69598 2005-08-29  Bruno Haible  <bruno@clisp.org>
69599
69600         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
69601
69602 2005-08-29  Bruno Haible  <bruno@clisp.org>
69603
69604         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
69605         Emit more advice.
69606
69607 2005-08-29  Bruno Haible  <bruno@clisp.org>
69608         and Stepan Kasal  <kasal@ucw.cz>
69609
69610         * check-module: If more parameters are given, check each of them
69611         separately; add more exceptions, as noted by Jim Meyering.
69612         (check_module): New procedure.
69613         (%exempt_header): Now contains all exceptions.
69614
69615 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
69616
69617         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
69618
69619 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69620
69621         * lib/iconvme.c: Split iconv_string into iconv_alloc.
69622
69623 2005-08-28  Bruno Haible  <bruno@clisp.org>
69624
69625         * m4/gnulib-tool.m4: New file.
69626
69627 2005-08-27  Jim Meyering  <jim@meyering.net>
69628
69629         * modules/unistd-safer (Files): Add pipe-safer.c.
69630         * modules/fcntl-safer (Files): Add creat-safer.c.
69631
69632 2005-08-27  Jim Meyering  <jim@meyering.net>
69633
69634         * m4/stdlib-safer.m4: New file.  From coreutils.
69635         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
69636         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
69637         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
69638         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
69639         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
69640
69641 2005-08-27  Jim Meyering  <jim@meyering.net>
69642
69643         * lib/fopen-safer.c: Merge minor changes from coreutils.
69644         * lib/dup-safer.c: Likewise.
69645         * lib/fd-safer.c: Likewise.
69646
69647         Merge from coreutils.
69648         * lib/stdio--.h: New file.
69649         * lib/stdlib--.h: New file.
69650         * lib/mkstemp-safer.c: New file.
69651
69652         GNU tar needs these.
69653         * lib/pipe-safer.c: New file.
69654         * lib/creat-safer.c: New file.
69655         * lib/fcntl--.h (creat): Define to creat_safer.
69656         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
69657         * lib/unistd--.h (pipe): Define to pipe_safer.
69658         * lib/unistd-safer.h: Declare pipe_safer.
69659
69660 2005-08-26  Simon Josefsson  <jas@extundo.com>
69661
69662         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
69663         Haible <bruno@clisp.org>.
69664
69665 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
69666
69667         * lib/regex_internal.h: Remove all references to
69668         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
69669         or better.
69670         (bitset_not, bitset_merge, bitset_not_merge):
69671         (bitset_mask, re_string_allocate, re_string_construct):
69672         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
69673         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
69674         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
69675         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
69676         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69677         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69678         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
69679         (re_acquire_state_context):
69680         Remove unnecessary forward decls.
69681         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
69682         Put __attribute at function definition,
69683         now that the function decl has been removed.
69684         * lib/regex_internal.c (re_string_peek_byte_case):
69685         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
69686         Likewise.
69687
69688 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
69689
69690         * m4/regex.m4: Add AC_PREREQ(2.50).
69691         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
69692
69693 2005-08-25  Simon Josefsson  <jas@extundo.com>
69694
69695         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
69696         __fsetlocking.
69697
69698 2005-08-25  Simon Josefsson  <jas@extundo.com>
69699
69700         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
69701         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
69702         GLIBC specific code.
69703
69704 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69705
69706         Make regex safe for g++.  This fixes one real bug (an "err"
69707         that should have been "*err").  g++ problem reported by
69708         Sam Steingold.
69709         * lib/regex_internal.h (re_calloc): New macro, consistent with
69710         re_malloc etc.  All callers of calloc changed to use re_calloc.
69711         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
69712         not int.  All callers changed.
69713         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
69714         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
69715         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
69716         (find_recover_state): Change "err" to "*err"; this fixes what
69717         appears to be a real bug.
69718         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
69719         versus int.
69720
69721 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69722
69723         * modules/regex (Depends-on): Add malloc, since the code
69724         assumes that !malloc(0) means failure.
69725
69726 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69727
69728         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
69729
69730         alloca modernization/simplification for regex.
69731         * lib/regex.c: Remove portability cruft for alloca.  This no longer
69732         needs to be at the start of the file, and can be moved into
69733         regex_internal.h and simplified.
69734         * lib/regex_internal.h: Include <alloca.h>.
69735         (__libc_use_alloca) [!defined _LIBC]: New macro.
69736         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
69737         now works outside glibc.
69738
69739 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69740
69741         * config/srclist.txt: Add glibc bugs 1241, 1245.
69742
69743 2005-08-25  Jim Meyering  <jim@meyering.net>
69744
69745         * lib/open-safer.c: Include <config.h>.
69746         Otherwise, we'd lose LARGEFILE support in any file using
69747         e.g. "fcntl--.h"
69748
69749 2005-08-25  Bruno Haible  <bruno@clisp.org>
69750
69751         * m4/minmax.m4: Require autoconf 2.52.
69752         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
69753         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
69754         alternatives of translit over the alphabet.
69755         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
69756
69757 2005-08-24  Simon Josefsson  <jas@extundo.com>
69758
69759         * tests/test-getpass.c: New file.
69760
69761 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69762
69763         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
69764         for GNU regex features.
69765
69766 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69767
69768         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
69769         * lib/regex.h (regerror): Likewise.
69770
69771         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
69772         requires this.  (The code never needed it.)
69773
69774         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
69775         All uses of recently-renamed identifiers changed to use the new,
69776         POSIX-compliant names.  The code will build and run just fine
69777         without these changes, but it's better to eat our own dog food
69778         and use the standard-conforming names.
69779
69780         * lib/regex.h: Fix a multitude of POSIX name space violations.
69781         These changes have an effect only for programs that define
69782         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
69783         do not change anything for programs compiled in the normal way.
69784         Also, there is no effect on the ABI.
69785
69786         (_REGEX_SOURCE): New macro.
69787         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
69788         defined and _GNU_SOURCE is not; this fixes a name space violation.
69789
69790         Rename the following macros to obey POSIX requirements.
69791         The old names are still visible as macros if _REGEX_SOURCE is defined.
69792         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
69793         RE_BACKSLASH_ESCAPE_IN_LISTS.
69794         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
69795         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
69796         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
69797         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
69798         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
69799         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
69800         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
69801         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
69802         (REG_INTERVALS): renamed from RE_INTERVALS.
69803         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
69804         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
69805         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
69806         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
69807         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
69808         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
69809         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
69810         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
69811         RE_UNMATCHED_RIGHT_PAREN_ORD.
69812         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
69813         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
69814         (REG_DEBUG): renamed from RE_DEBUG.
69815         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
69816         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
69817         unusual, since we can't clash with the POSIX REG_ICASE.
69818         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
69819         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
69820         (REG_NO_SUB): renamed from RE_NO_SUB.
69821         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
69822         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
69823         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
69824         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
69825         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
69826         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
69827         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
69828         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
69829         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
69830         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
69831         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
69832         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
69833         RE_SYNTAX_POSIX_MINIMAL_BASIC.
69834         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
69835         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
69836         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
69837         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
69838         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
69839         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
69840         (REG_FIXED): Renamed from REGS_FIXED.
69841         (REG_NREGS): Renamed from RE_NREGS.
69842
69843         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
69844         of other REG_* macros, since POSIX says the user is allowed to
69845         #undef these macros selectively.
69846
69847         (reg_errcode_t): Update comment stating what other tables need
69848         to be consistent.
69849
69850         Rename the following enum values to obey POSIX requirements.
69851         The old names are still visible as macros.
69852         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
69853         is not defined, since GNU is supposed to be a superset of POSIX as
69854         much as possible, and since we want reg_errcode_t to be a signed
69855         type for implementation consistency.
69856         (_REG_NOERROR): Renamed from REG_NOERROR.
69857         (_REG_NOMATCH): Renamed from REG_NOMATCH.
69858         (_REG_BADPAT): Renamed from REG_BADPAT.
69859         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
69860         (_REG_ECTYPE): Renamed from REG_ECTYPE.
69861         (_REG_EESCAPE): Renamed from REG_EESCAPE.
69862         (_REG_ESUBREG): Renamed from REG_ESUBREG.
69863         (_REG_EBRACK): Renamed from REG_EBRACK.
69864         (_REG_EPAREN): Renamed from REG_EPAREN.
69865         (_REG_EBRACE): Renamed from REG_EBRACE.
69866         (_REG_BADBR): Renamed from REG_BADBR.
69867         (_REG_ERANGE): Renamed from REG_ERANGE.
69868         (_REG_ESPACE): Renamed from REG_ESPACE.
69869         (_REG_BADRPT): Renamed from REG_BADRPT.
69870         (_REG_EEND): Renamed from REG_EEND.
69871         (_REG_ESIZE): Renamed from REG_ESIZE.
69872         (_REG_ERPAREN): Renamed from REG_ERPAREN.
69873         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
69874         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
69875         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
69876         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
69877
69878         (_REG_RE_NAME, _REG_RM_NAME): New macros.
69879         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
69880         changed.  But support the old name if the new one is not defined
69881         and if _REGEX_SOURCE.
69882
69883         Change the following member names in struct re_pattern_buffer.
69884         The old names are still supported if !_REGEX_SOURCE.
69885         The new names are always supported, regardless of _REGEX_SOURCE.
69886         (re_buffer): Renamed from buffer.
69887         (re_allocated): Renamed from allocated.
69888         (re_used): Renamed from used.
69889         (re_syntax): Renamed from syntax.
69890         (re_fastmap): Renamed from fastmap.
69891         (re_translate): Renamed from translate.
69892         (re_can_be_null): Renamed from can_be_null.
69893         (re_regs_allocated): Renamed from regs_allocated.
69894         (re_fastmap_accurate): Renamed from fastmap_accurate.
69895         (re_no_sub): Renamed from no_sub.
69896         (re_not_bol): Renamed from not_bol.
69897         (re_not_eol): Renamed from not_eol.
69898         (re_newline_anchor): Renamed from newline_anchor.
69899
69900         Change the following member names in struct re_registers.
69901         The old names are still supported if !_REGEX_SOURCE.
69902         The new names are always supported, regardless of _REGEX_SOURCE.
69903         (rm_num_regs): Renamed from num_regs.
69904         (rm_start): Renamed from start.
69905         (rm_end): Renamed from end.
69906
69907         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
69908         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
69909         Prepend __ to parameter names.
69910
69911         Undo yesterday's changes.
69912
69913 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69914
69915         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
69916         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
69917         lib/regex.c.
69918
69919 2005-08-24  Jim Meyering  <jim@meyering.net>
69920
69921         Sync from coreutils.
69922         * m4/fcntl-safer.m4: New file.
69923
69924         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
69925         and object files for this module.
69926
69927 2005-08-24  Jim Meyering  <jim@meyering.net>
69928
69929         Sync from coreutils.
69930         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
69931
69932 2005-08-24  Jim Meyering  <jim@meyering.net>
69933
69934         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
69935         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
69936
69937 2005-08-24  Jim Meyering  <jim@meyering.net>
69938
69939         * modules/fcntl-safer: New module.
69940         * modules/fts (Depends-on): Add fcntl-safer.
69941         * MODULES.html.sh (File descriptor based Input/Output):
69942         Add fcntl-safer.
69943
69944 2005-08-24  Bruno Haible  <bruno@clisp.org>
69945
69946         Support for unit test modules.
69947         * modules/README: Mention tests modules.
69948         * modules/TEMPLATE-TESTS: New file.
69949         * gnulib-tool: New options --extract-tests-module, --with-tests and
69950         --tests-base (unused for the moment).
69951         (testsbase, inctests): New variables.
69952         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
69953         (func_verify_module): Exclude TEMPLATE-TESTS.
69954         (func_verify_nontests_module, func_verify_tests_module): New functions.
69955         (func_get_dependencies): Add implicit dependency for tests modules.
69956         (func_get_tests_module): New function.
69957         (func_modules_transitive_closure): When --with-tests was specified,
69958         include the unit tests as well, unless explicitly avoided.
69959         (func_emit_lib_Makefile_am): Ignore the tests modules here.
69960         (func_emit_tests_Makefile_am): New function.
69961         (func_create_testdir): When --with-tests was specified, emit a
69962         tests/ directory.
69963         * MODULES.html.sh (Future developments): Update.
69964
69965 2005-08-24  Bruno Haible  <bruno@clisp.org>
69966
69967         * modules/tls-tests: New file.
69968         * tests/test-tls.c: New file, from GNU gettext.
69969
69970 2005-08-24  Bruno Haible  <bruno@clisp.org>
69971
69972         * modules/lock-tests: New file.
69973         * tests/test-lock.c: New file, from GNU gettext.
69974
69975 2005-08-24  Bruno Haible  <bruno@clisp.org>
69976
69977         * lib/lock.h: Add multiple inclusion guard.
69978         * lib/tls.h: Add multiple inclusion guard.
69979
69980 2005-08-24  Bruno Haible  <bruno@clisp.org>
69981
69982         * gnulib-tool: Add support for the --aux-dir option to
69983         --create-testdir, --create-megatestdir, --test, --megatest.
69984         (func_create_testdir, func_create_megatestdir): Optionally emit a
69985         AC_CONFIG_AUX_DIR directive.
69986         (create-testdir, create-megatestdir, test, megatest): Provide a
69987         default value for $auxdir.
69988
69989 2005-08-24  Bruno Haible  <bruno@clisp.org>
69990
69991         * gnulib-tool (import): Use compound statement instead of subshell
69992         where possible.
69993
69994 2005-08-24  Bruno Haible  <bruno@clisp.org>
69995
69996         * gnulib-tool (import): Change --aux-dir default to "build-aux".
69997
69998 2005-08-24  Bruno Haible  <bruno@clisp.org>
69999
70000         * gnulib-tool (func_version): Update.
70001
70002 2005-08-24  Bruno Haible  <bruno@clisp.org>
70003
70004         * gnulib-tool (func_import, func_create_testdir,
70005         func_create_megatestdir): Quote all autoconf macro arguments.
70006
70007 2005-08-24  Bruno Haible  <bruno@clisp.org>
70008
70009         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
70010         option --force, because --force causes the aclocal.m4 of each
70011         subdirectory to be newer than the corresponding config.h.in.
70012
70013 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70014
70015         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
70016         All contents moved to gl_REGEX.
70017         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
70018         assume that it does.
70019
70020 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70021
70022         * lib/regex.h (REG_NOSYS)
70023         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
70024         Define, since POSIX requires it as of 2001.
70025         (_REG_ENOSYS)
70026         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
70027         New private symbol, used to keep the enum signed in all cases.
70028         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
70029         Youngman in
70030         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
70031
70032         * lib/regex_internal.c (re_string_skip_chars, register_state):
70033         (calc_state_hash):
70034         Remove forward decls; no longer needed now that we use prototypes.
70035         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
70036         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
70037         (clean_state_log_if_needed): Likewise.
70038
70039 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70040
70041         * config/srclist.txt: Add glibc bugs 1231-1233.
70042
70043 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70044
70045         Fix problems reported by Sam Steingold in
70046         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
70047         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
70048         assumed that reg_errcode_t is a signed type, which is not
70049         necessarily true if _XOPEN_SOURCE is not defined.
70050         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
70051         since some compilers warn about it otherwise.
70052
70053 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70054
70055         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
70056         (init_word_char, create_initial_state, duplicate_node_closure):
70057         (fetch_token, peek_token_bracket, build_range_exp):
70058         (build_collating_symbol): Remove forward decls; no longer needed
70059         now that we use prototypes.
70060
70061         * lib/regcomp.c:
70062         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
70063         (re_compile_fastmap_iter, regcomp, regerror, regfree):
70064         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
70065         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
70066         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
70067         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
70068         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
70069         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
70070         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
70071         (build_range_exp, build_collating_symbol, parse_bracket_exp):
70072         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
70073         (build_charclass, build_charclass_op, fetch_number, create_tree):
70074         (create_token_tree, mark_opt_subexp, duplicate_tree):
70075         Use prototypes rather than old-style definitions.
70076
70077         * lib/regex_internal.c:
70078         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
70079         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
70080         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70081         (re_string_reconstruct, re_string_peek_byte_case):
70082         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
70083         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70084         (re_node_set_init_copy, re_node_set_add_intersect):
70085         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70086         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70087         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70088         (re_acquire_state, re_acquire_state_context, register_state):
70089         (create_ci_newstate, create_cd_newstate, free_state):
70090         Likewise.
70091         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
70092         re_search_2):
70093         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
70094         (re_search_internal, prune_impossible_nodes):
70095         (acquire_init_state_context, check_matching, static):
70096         (check_halt_node_context, check_halt_state_context, proceed_next_node):
70097         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
70098         (update_regs, sift_states_backward, build_sifted_states):
70099         (clean_state_log_if_needed, merge_state_array):
70100         (update_cur_sifted_state, add_epsilon_src_nodes):
70101         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
70102         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
70103         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
70104         (find_recover_state, check_subexp_matching_top, transit_state_mb):
70105         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
70106         (check_arrival, check_arrival_add_next_nodes):
70107         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70108         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70109         (check_node_accept_bytes, check_node_accept, extend_buffers):
70110         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
70111         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
70112         (sift_ctx_init):
70113         Likewise.
70114
70115         * lib/regex_internal.h:
70116         (re_string_allocate, re_string_construct, re_string_reconstruct):
70117         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
70118         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
70119         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
70120         (re_string_context_at, re_string_peek_byte_case):
70121         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
70122         is defined, since we now use prototypes always.
70123
70124         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
70125         C89 or better.  All uses removed.
70126
70127 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70128
70129         * config/srclist.txt: Add glibc bugs 1220-1227.
70130
70131 2005-08-20  Jim Meyering  <jim@meyering.net>
70132
70133         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
70134         of unused local, dfa.
70135
70136 2005-08-20  Bruno Haible  <bruno@clisp.org>
70137
70138         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
70139
70140 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70141
70142         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
70143         (re_node_set_insert_last, re_dfa_add_node):
70144         Rename local variables to avoid GCC shadowing warnings.
70145
70146 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70147
70148         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
70149         [defined lint]: Suppress bogus uninitialized-variable warnings.
70150
70151         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
70152         and let the caller return REG_ESPACE if out of space.  This
70153         removes an uninitialied-variable warning with GCC 4.0.1, and also
70154         avoids taking the address of a local variable.  All callers
70155         changed.
70156
70157 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70158
70159         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
70160         $LIBCSRC/posix/regexec.c.
70161         Add glibc bug 1217 for regcomp.c.
70162
70163 2005-08-19  Jim Meyering  <jim@meyering.net>
70164
70165         * lib/regexec.c (proceed_next_node): Redo local variables to
70166         avoid GCC shadowing warnings.
70167
70168 2005-08-18  Bruno Haible  <bruno@clisp.org>
70169
70170         * lib/strstr.c (strstr): Fix return value in multibyte case.
70171         * lib/strcasestr.c (strcasestr): Likewise.
70172
70173 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70174
70175         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
70176
70177 2005-08-17  Jim Meyering  <jim@meyering.net>
70178
70179         Make the %s format (seconds since the epoch) work for a negative
70180         number and when used with a zero-padded field width, e.g. %015s.
70181
70182         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
70183         label so that it precedes the code to set `digits'.  Otherwise,
70184         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
70185         print `00-22'.  Now, it prints `-0022', as it should.
70186
70187 2005-08-17  Bruno Haible  <bruno@clisp.org>
70188
70189         * modules/strstr (Files): Add m4/mbrtowc.m4.
70190         (Depends-on): Add mbuiter.
70191
70192 2005-08-17  Bruno Haible  <bruno@clisp.org>
70193
70194         * modules/strcasestr: New file.
70195         * MODULES.html.sh (String handling, based on ANSI C 89): Add
70196         strcasestr.
70197
70198 2005-08-17  Bruno Haible  <bruno@clisp.org>
70199
70200         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
70201
70202 2005-08-17  Bruno Haible  <bruno@clisp.org>
70203
70204         * modules/mbuiter: New file.
70205         * MODULES.html.sh (Extended multibyte and wide character utilities):
70206         Add mbuiter.
70207
70208 2005-08-17  Bruno Haible  <bruno@clisp.org>
70209
70210         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
70211         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
70212
70213 2005-08-17  Bruno Haible  <bruno@clisp.org>
70214
70215         * m4/strcasestr.m4: New file.
70216
70217 2005-08-17  Bruno Haible  <bruno@clisp.org>
70218
70219         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
70220         * lib/strstr.c: Completely rewritten, with multibyte locale support.
70221
70222 2005-08-17  Bruno Haible  <bruno@clisp.org>
70223
70224         * lib/strcasestr.h: New file.
70225         * lib/strcasestr.c: New file.
70226
70227 2005-08-17  Bruno Haible  <bruno@clisp.org>
70228
70229         * lib/strcasecmp.c: Use mbuiter.h.
70230
70231 2005-08-17  Bruno Haible  <bruno@clisp.org>
70232
70233         * lib/mbuiter.h: New file.
70234
70235 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70236
70237         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
70238         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
70239         and gl_GETOPT are both invoked via different paths (as happens
70240         with GNU tar CVS because it uses both argp and getopt), the former
70241         wins.
70242
70243 2005-08-16  Bruno Haible  <bruno@clisp.org>
70244
70245         * modules/tls: New file.
70246         * MODULES.html.sh (Multithreading): Add tls.
70247
70248 2005-08-16  Bruno Haible  <bruno@clisp.org>
70249
70250         * modules/strnlen1: New file.
70251         * MODULES.html.sh (String handling): Add strnlen1.
70252
70253 2005-08-16  Bruno Haible  <bruno@clisp.org>
70254
70255         * modules/strcase (Files): Add m4/mbrtowc.m4.
70256         (Depends-on): Add strnlen1, mbchar.
70257
70258 2005-08-16  Bruno Haible  <bruno@clisp.org>
70259
70260         * modules/mbiter: New file.
70261         * MODULES.html.sh (Extended multibyte and wide character utilities):
70262         Add mbiter.
70263
70264 2005-08-16  Bruno Haible  <bruno@clisp.org>
70265
70266         * modules/mbfile: New file.
70267         * MODULES.html.sh (Extended multibyte and wide character utilities):
70268         Add mbfile.
70269
70270 2005-08-16  Bruno Haible  <bruno@clisp.org>
70271
70272         * modules/mbchar: New file.
70273         * MODULES.html.sh (Extended multibyte and wide character utilities):
70274         New section.
70275
70276 2005-08-16  Bruno Haible  <bruno@clisp.org>
70277
70278         * m4/tls.m4: New file, from GNU gettext.
70279
70280 2005-08-16  Bruno Haible  <bruno@clisp.org>
70281
70282         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
70283         always.
70284         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
70285
70286 2005-08-16  Bruno Haible  <bruno@clisp.org>
70287
70288         * m4/mbiter.m4: New file.
70289
70290 2005-08-16  Bruno Haible  <bruno@clisp.org>
70291
70292         * m4/mbfile.m4: New file.
70293
70294 2005-08-16  Bruno Haible  <bruno@clisp.org>
70295
70296         * m4/mbchar.m4: New file.
70297
70298 2005-08-16  Bruno Haible  <bruno@clisp.org>
70299
70300         * lib/tls.h: New file, from GNU gettext.
70301         * lib/tls.c: New file, from GNU gettext.
70302
70303 2005-08-16  Bruno Haible  <bruno@clisp.org>
70304
70305         * lib/strnlen1.h: New file.
70306         * lib/strnlen1.c: New file.
70307
70308 2005-08-16  Bruno Haible  <bruno@clisp.org>
70309
70310         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
70311         (mbi_init): Update.
70312         (mbi_avail, mbi_advance): Let the iteration end before the terminating
70313         NUL byte, not after it.
70314
70315 2005-08-16  Bruno Haible  <bruno@clisp.org>
70316
70317         * lib/strcase.h (strcasecmp): Add note in comments.
70318         * lib/strncasecmp.c: Use code from strcasecmp.c.
70319         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
70320         (strcasecmp): Work correctly in multibyte locales.
70321
70322 2005-08-16  Bruno Haible  <bruno@clisp.org>
70323
70324         * lib/mbiter.h: New file.
70325
70326 2005-08-16  Bruno Haible  <bruno@clisp.org>
70327
70328         * lib/mbfile.h: New file.
70329
70330 2005-08-16  Bruno Haible  <bruno@clisp.org>
70331
70332         * lib/mbchar.h: New file.
70333         * lib/mbchar.c: New file.
70334
70335 2005-08-16  Bruno Haible  <bruno@clisp.org>
70336
70337         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
70338         the valid ones. Makes the comparison operations transitive:
70339         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
70340         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
70341
70342 2005-08-15  Simon Josefsson  <jas@extundo.com>
70343
70344         * modules/ssize_t (License): Change to 'unlimited'.
70345
70346         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
70347
70348 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70349
70350         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
70351         Add comments for each pending glibc patch.
70352
70353 2005-08-15  Bruno Haible  <bruno@clisp.org>
70354
70355         * lib/regex.h (__restrict_arr): Don't define to __restrict if
70356         __cplusplus is defined.
70357
70358 2005-08-14  Jim Meyering  <jim@meyering.net>
70359
70360         Sync from coreutils.
70361
70362         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
70363         Use the hash-table-based cycle-detection code not just when
70364         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
70365         Reported by James Youngman in
70366         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
70367         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
70368         FTS_TIGHT_CYCLE_CHECK.
70369         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
70370         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
70371         once again.
70372         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
70373         * lib/fts.c (fd_safer): Remove decl.
70374         Include fcntl--.h rather than unistd-safer.h
70375         (fts_safe_changedir): Don't call fd_safer; no longer needed
70376         now that we include fcntl--.h.
70377
70378 2005-08-12  Simon Josefsson  <jas@extundo.com>
70379
70380         * modules/getndelim2: Use ssize_t module.
70381         * modules/getnline: Likewise.
70382         * modules/safe-read: Likewise.
70383         * modules/xreadlink: Likewise.
70384
70385         * modules/ssize_t: New file.
70386
70387 2005-08-12  Simon Josefsson  <jas@extundo.com>
70388
70389         * m4/readline.m4: Look for termcap, curses or ncurses if required.
70390
70391 2005-08-12  Simon Josefsson  <jas@extundo.com>
70392
70393         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70394         ssize_t.
70395
70396 2005-08-12  Simon Josefsson  <jas@extundo.com>
70397
70398         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
70399         readline, getdelim and check_version.
70400         (Support for systems lacking ISO C 99: Sizes of integer types):
70401         Add size_max.
70402
70403 2005-08-12  Bruno Haible  <bruno@clisp.org>
70404
70405         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
70406
70407 2005-08-11  Simon Josefsson  <jas@extundo.com>
70408
70409         * modules/readline: New file.
70410
70411         * modules/strnlen (Files): Add strnlen.h.
70412
70413 2005-08-11  Simon Josefsson  <jas@extundo.com>
70414
70415         * m4/readline.m4: New file.
70416
70417 2005-08-11  Simon Josefsson  <jas@extundo.com>
70418
70419         * lib/readline.h, readline.c: New file.
70420
70421 2005-08-11  Simon Josefsson  <jas@extundo.com>
70422
70423         * doc/gnulib.texi (Initial import, Finishing touches): Mention
70424         gl_AVOID.
70425
70426 2005-08-11  Bruno Haible  <bruno@clisp.org>
70427
70428         * lib/strnlen.h (strnlen): Change parameter name to match comment.
70429
70430 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
70431
70432         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
70433
70434 2005-08-10  Simon Josefsson  <jas@extundo.com>
70435
70436         * tests/test-iconvme.c: New file.
70437
70438 2005-08-10  Simon Josefsson  <jas@extundo.com>
70439
70440         * m4/strnlen.m4: New file.
70441
70442         * m4/strndup.m4: Don't check for strnlen declaration, done in
70443         strnlen.m4.
70444
70445 2005-08-10  Simon Josefsson  <jas@extundo.com>
70446
70447         * lib/strndup.c: Use strnlen.h.
70448
70449         * lib/strnlen.h: New file.
70450
70451 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70452
70453         * README: Typos.
70454
70455 2005-08-02  Simon Josefsson  <jas@extundo.com>
70456
70457         * modules/readline: New file.
70458
70459 2005-08-02  Simon Josefsson  <jas@extundo.com>
70460
70461         * modules/getdelim: New file.
70462
70463         * modules/getline: Rewrite, don't use getndelim2.
70464
70465 2005-08-02  Simon Josefsson  <jas@extundo.com>
70466
70467         * m4/getline.m4: Separate out getdelim stuff into separate module.
70468
70469         * m4/getdelim.m4: New file.
70470
70471 2005-08-02  Simon Josefsson  <jas@extundo.com>
70472
70473         * lib/getline.h, getline.c: Rewrite.
70474
70475         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
70476
70477 2005-07-31  Bruno Haible  <bruno@clisp.org>
70478
70479         * lib/lock.h (gl_lock_initializer): New macro.
70480         (gl_lock_define_initialized): Use it.
70481         (gl_rwlock_initializer): New macro.
70482         (gl_rwlock_define_initialized): Use it.
70483         (gl_recursive_lock_initializer): New macro.
70484         (gl_recursive_lock_define_initialized): Use it.
70485
70486 2005-07-30  Karl Berry  <karl@gnu.org>
70487
70488         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
70489         Report from Ben Pfaff, regarding getopt.
70490
70491 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
70492
70493         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
70494         normal way.
70495         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
70496         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
70497         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
70498         (gl_GETOPT): Use the new macros.  Most of the implementation
70499         is moved to the new macros.  This is for programs like Emacs
70500         that don't want all the functionality of gl_GETOPT.
70501
70502 2005-07-26  Bruno Haible  <bruno@clisp.org>
70503
70504         * m4/lock.m4: Update from GNU gettext.
70505
70506 2005-07-26  Bruno Haible  <bruno@clisp.org>
70507
70508         * lib/lock.h: Update from GNU gettext.
70509         * lib/lock.c: Update from GNU gettext.
70510
70511 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
70512
70513         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
70514         obsolescent AC_TRY_RUN.  Include the default includes files, for
70515         'exit'.
70516
70517 2005-07-24  Bruno Haible  <bruno@clisp.org>
70518
70519         * modules/visibility: New file.
70520         * MODULES.html.sh (Misc): Add visibility.
70521
70522 2005-07-24  Bruno Haible  <bruno@clisp.org>
70523
70524         * m4/visibility.m4: New file.
70525
70526 2005-07-24  Bruno Haible  <bruno@clisp.org>
70527
70528         * doc/visibility.texi: New file.
70529
70530 2005-07-22  Bruno Haible  <bruno@clisp.org>
70531
70532         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
70533         $(ALLOCA_H), redundant through BUILT_SOURCES.
70534         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
70535         redundant through BUILT_SOURCES.
70536         * modules/byteswap (Makefile.am): Remove explicit dependency on
70537         $(BYTESWAP_H), redundant through BUILT_SOURCES.
70538         * modules/fnmatch (Makefile.am): Remove explicit dependency on
70539         $(FNMATCH_H), redundant through BUILT_SOURCES.
70540         * modules/getopt (Makefile.am): Remove explicit dependency on
70541         $(GETOPT_H), redundant through BUILT_SOURCES.
70542         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
70543         redundant through BUILT_SOURCES.
70544         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
70545         redundant through BUILT_SOURCES.
70546         * modules/stdbool (Makefile.am): Remove explicit dependency on
70547         $(STDBOOL_H), redundant through BUILT_SOURCES.
70548         * modules/stdint (Makefile.am): Remove explicit dependency on
70549         $(STDINT_H), redundant through BUILT_SOURCES.
70550         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
70551         Remove explicit dependency on $(SYSEXITS_H).
70552         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
70553
70554 2005-07-18  Simon Josefsson  <jas@extundo.com>
70555
70556         * lib/check-version.c (check_version): Accept identical versions too.
70557
70558 2005-07-18  Bruno Haible  <bruno@clisp.org>
70559
70560         * modules/lock: New file.
70561         * MODULES.html.sh (Multithreading): New section.
70562
70563 2005-07-18  Bruno Haible  <bruno@clisp.org>
70564
70565         * m4/lock.m4: New file, from GNU gettext.
70566
70567 2005-07-18  Bruno Haible  <bruno@clisp.org>
70568
70569         * lib/lock.h: New file, from GNU gettext.
70570         * lib/lock.c: New file, from GNU gettext.
70571
70572 2005-07-18  Bruno Haible  <bruno@clisp.org>
70573
70574         * lib/lock.h (gl_once_t): New type.
70575         (gl_once_define, gl_once): New macros.
70576         * lib/lock.c (fresh_once): New variable.
70577         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
70578         functions.
70579
70580 2005-07-16  Simon Josefsson  <jas@extundo.com>
70581
70582         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
70583         workaround, suggested by Bruno.
70584
70585 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70586
70587         * modules/xalloc (Depends-on): Add xalloc-die.
70588         * modules/xvasprintf (Depends-on): Add xalloc-die.
70589
70590 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70591
70592         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
70593         with a minor change.
70594
70595 2005-07-15  Bruno Haible  <bruno@clisp.org>
70596
70597         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
70598         When using lib/poll.c, define poll as rpl_poll.
70599
70600 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
70601
70602         * modules/argp (Depends-on): Remove unlocked-io.
70603
70604 2005-07-14  Derek Price  <derek@ximbiot.com>
70605
70606         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
70607         for glob symlink bug.
70608
70609 2005-07-14  Bruno Haible  <bruno@clisp.org>
70610
70611         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
70612         Instead, test for *_unlocked function declarations directly.
70613
70614 2005-07-11  Simon Josefsson  <jas@extundo.com>
70615
70616         * modules/size_max: New file.
70617
70618         * modules/xsize: Depend on size_max module for size_max.m4.
70619
70620 2005-07-11  Simon Josefsson  <jas@extundo.com>
70621
70622         * lib/size_max.h: New file.
70623
70624 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
70625
70626         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
70627         copyright symbol and the year.
70628         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
70629         (version_etc_va): Use parameterized copyright notice.
70630         Reword to conform to the current GNU coding standards.
70631
70632 2005-07-11  Karl Berry  <karl@gnu.org>
70633
70634         * doc/gnulib.texi (Quoting): new node.
70635         (Initial import): more info, from Patrice.
70636
70637 2005-07-11  Bruno Haible  <bruno@clisp.org>
70638
70639         * gnulib-tool (func_usage): Document option --avoid.
70640         (Command line options): Handle --avoid.
70641         (func_acceptable): New function.
70642         (func_modules_transitive_closure): Use it.
70643
70644 2005-07-11  Bruno Haible  <bruno@clisp.org>
70645
70646         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
70647         Reported by Jim Meyering.
70648
70649 2005-07-10  Bruno Haible  <bruno@clisp.org>
70650
70651         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
70652         Needed when size_t is smaller than 'unsigned int'.
70653         Reported by Paul Eggert.
70654
70655 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70656
70657         * modules/argp (Depends-on): Add unlocked-io
70658
70659 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70660
70661         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
70662         block of defines.
70663
70664 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70665
70666         * config/srclist.txt: Comment out regcomp.c, since we have a porting
70667         fix now.
70668
70669 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
70670         and Paul Eggert  <eggert@cs.ucla.edu>
70671
70672         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
70673         in wint_t, not wchar_t.  Remove now-unnecessary cast.
70674
70675 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70676
70677         * modules/regex (Files): Add lib/regex_internal.c,
70678         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
70679         (Depends-on): Add extensions.
70680         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
70681
70682 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70683
70684         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
70685         pathconf.
70686         * m4/same.m4 (gl_SAME): Likewise.
70687         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
70688
70689         * m4/regex.m4: Adjust to new libc regex implementation.
70690         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
70691         all the .c and .h parts of (the new) regex.
70692         Quote the m4 stuff better.
70693         Check for RE_ICASE bug of old gnulib.
70694         Check for REG_STARTEND of recent libc.
70695         Rename local variables from jm_* to gl_*.
70696         Quote operand of "test -f".
70697         Say "recent enough" version of libc, not "version 2".
70698         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
70699         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
70700         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
70701         Remove check for btowc, isascii.
70702         Require AM_LANGINFO_CODESET.
70703
70704 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70705
70706         * lib/regex.c, regex.h: Sync from libc.
70707         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
70708         * lib/regexec.c:
70709         New files, synced from libc, except that regex_internal.h
70710         currently has a small porting fix.
70711
70712 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70713
70714         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
70715         regex_internal.c, regexec.c.
70716         Add regex_internal.h too, but as a comment, since the libc version
70717         is currently broken in gnulib mode.
70718
70719 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70720
70721         Support programs like Emacs that use gnulib but not gettext.
70722         * MODULES.html.sh (Internationalization functions): Add gettext-h.
70723         * modules/gettext-h: New file.
70724         * modules/gettext (Files): Remove lib/gettext.h.
70725         (Depends-on): Add gettext-h.
70726         (Makefile.am): Remove lib_SOURCES.
70727         * modules/argmatch, modules/c-stack, modules/closeout:
70728         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
70729         * modules/execute, modules/file-type, modules/getaddrinfo:
70730         * modules/getopt, modules/human, modules/javacomp:
70731         * modules/javaexec, modules/mkdir-p, modules/obstack:
70732         * modules/openat, modules/pagealign_alloc, modules/pipe:
70733         * modules/quotearg, modules/regex, modules/rpmatch:
70734         * modules/unicodeio, modules/userspec, modules/version-etc:
70735         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
70736         * modules/xsetenv:
70737         Depend on gettext-h, not gettext.
70738
70739 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70740
70741         * gnulib-tool (func_import): Add support for 'public domain' license.
70742         * modules/alloca, modules/atexit, modules/memmove:
70743         Now public domain, not GPL.
70744         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
70745         * modules/realloc, modules/strerror, modules/strtod:
70746         Now LGPL, not GPL.
70747
70748 2005-07-05  Bruno Haible  <bruno@clisp.org>
70749
70750         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
70751         autoconf CVS. Needed for mingw.
70752
70753 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70754
70755         Remove the dependency of the strftime module on the tzset module.
70756         * modules/strftime (Depends-on): Remove dependency on tzset.
70757
70758 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70759
70760         Remove the dependency of the strftime module on the tzset module.
70761         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
70762         gl_FUNC_TZSET_CLOBBER.
70763
70764 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70765
70766         Remove the dependency of the strftime module on the tzset module.
70767         * lib/strftime.c (my_strftime)
70768         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
70769         Copy the input structure, to work around some of the bug with
70770         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
70771         Solaris releases, you should also use the tzset module, but we won't
70772         require it as a dependency any more since we don't want LGPLed code
70773         to depend on GPLed code.
70774
70775 2005-07-02  Jim Meyering  <jim@meyering.net>
70776
70777         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
70778         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
70779         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
70780         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
70781
70782 2005-07-02  Jim Meyering  <jim@meyering.net>
70783
70784         * lib/backupfile.c (backup_args): Change a `0' to NULL.
70785
70786 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70787
70788         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
70789         declares only 'struct timespec;' (!).
70790
70791 2005-07-01  Jim Meyering  <jim@meyering.net>
70792
70793         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
70794         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
70795         * lib/save-cwd.c, tempname.c:
70796         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70797         and don't include <sys/file.h>).
70798
70799 2005-06-29  Jim Meyering  <jim@meyering.net>
70800
70801         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
70802         type name.  Use the variable name instead.
70803         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
70804         Likewise.
70805
70806 2005-06-28  Simon Josefsson  <jas@extundo.com>
70807
70808         * modules/check-version (Files): Add check-version.m4.
70809
70810 2005-06-28  Simon Josefsson  <jas@extundo.com>
70811
70812         * m4/check-version.m4: New file, suggested by Jim Meyering
70813         <jim@meyering.net>.
70814
70815 2005-06-28  Simon Josefsson  <jas@extundo.com>
70816
70817         * lib/check-version.h, lib/check-version.c: New files.
70818
70819 2005-06-28  Simon Josefsson  <jas@extundo.com>
70820
70821         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
70822         collision with global variable.  Better indentation.  Don't
70823         increment buffer pointer beyond buffer end.  Based on comments
70824         from Paul Eggert <eggert@cs.ucla.edu>.
70825
70826         * lib/base64.h: Indent.
70827
70828 2005-06-28  Simon Josefsson  <jas@extundo.com>
70829
70830         * doc/gnulib.texi (Library version handling): New section.
70831
70832 2005-06-28  Jim Meyering  <jim@meyering.net>
70833
70834         * check-module (find_included_lib_files): Hard-code another
70835         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
70836         but modules/fts-lgpl (correctly) does not list those files.
70837
70838         * modules/canonicalize (Files): Add lib/pathmax.h.
70839
70840 2005-06-25  Simon Josefsson  <jas@extundo.com>
70841
70842         * modules/check-version: New file.
70843
70844 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
70845
70846         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
70847         initializer of struct addrinfo, as an indication that we don't
70848         care how many members the structure has.
70849
70850 2005-06-24  Derek Price  <derek@ximbiot.com>
70851         and Bruno Haible  <bruno@clisp.org>
70852
70853         Remove stat module & update lstat.
70854         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
70855         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70856         * m4/stat.m4: Remove this file.
70857
70858 2005-06-24  Derek Price  <derek@ximbiot.com>
70859         and Bruno Haible  <bruno@clisp.org>
70860
70861         Remove stat module & update lstat.
70862         * lib/stat.c: Remove this file...
70863         (slash_aware_lstat): ...moving this content and its support...
70864         * lib/lstat.c (rpl_lstat): ...into here.
70865         * lib/lstat.h: New file.
70866
70867 2005-06-24  Derek Price  <derek@ximbiot.com>
70868         and Bruno Haible  <bruno@clisp.org>
70869
70870         Remove stat module & update lstat.
70871         * config/srclist.txt (libc sources): Remove stat.
70872
70873 2005-06-24  Derek Price  <derek@ximbiot.com>
70874         and Bruno Haible  <bruno@clisp.org>
70875
70876         Remove stat module & update lstat.
70877         * MODULES.html.sh (stat): Remove.
70878         * MODULES.html: Regenerated.
70879         * modules/lstat (Description): Correct function name.
70880         (Files): Add "lstat.h".
70881         (Depends-on): Remove stat, add xalloc, stat-macros.
70882         * modules/stat: Remove this file.
70883         (Include): Add "lstat.h", remove <sys/stat.h>.
70884
70885 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
70886
70887         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
70888         (ranged_convert): Don't save conversion in a temporary struct.
70889         This causes a warning with GCC 4.0.0, and anyway in the typical
70890         case it's not worth the extra 100 bytes or so of code.
70891         (ranged_convert, __mktime_internal): When calling a function via a
70892         pointer P, use P () rather than (*P) (), as we now assume C89 or
70893         better.
70894
70895 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70896
70897         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
70898         "who -r" failed to give output.  Problem reported by Tim Waugh.
70899
70900         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
70901         (xcalloc): Use it to avoid needless tests.
70902         Problem reported by Jim Meyering.
70903
70904 2005-06-20  Derek Price  <derek@ximbiot.com>
70905
70906         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
70907         unnecessary for Autoconfs > 2.59c.
70908
70909 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70910
70911         * lib/argp.h (__option_is_short): Check upper limit of
70912         __key. Isprint() requires its argument to have the value
70913         of an unsigned char or EOF.
70914
70915 2005-06-16  Jim Meyering  <jim@meyering.net>
70916
70917         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
70918         when either N or S is zero.
70919
70920 2005-06-16  Derek Price  <derek@ximbiot.com>
70921
70922         * m4/bison.m4: Declare YACC & YFLAGS precious.
70923
70924 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
70925
70926         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
70927         multibyte string or pattern, fall back on unibyte matching.
70928         Problem reported by James Youngman.
70929
70930 2005-06-08  Bruno Haible  <bruno@clisp.org>
70931
70932         * modules/csharpcomp: New file.
70933         * MODULES.html.sh (C#): Add csharpcomp.
70934
70935 2005-06-08  Bruno Haible  <bruno@clisp.org>
70936
70937         * m4/csharpcomp.m4: New file, from GNU gettext.
70938
70939 2005-06-08  Bruno Haible  <bruno@clisp.org>
70940
70941         * lib/csharpcomp.h: New file, from GNU gettext.
70942         * lib/csharpcomp.c: New file, from GNU gettext.
70943         * lib/csharpcomp.sh.in: New file, from GNU gettext.
70944
70945 2005-06-08  Bruno Haible  <bruno@clisp.org>
70946
70947         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
70948         warning on mingw.
70949
70950 2005-06-07  Derek Price  <derek@ximbiot.com>
70951
70952         Sync from CVS.
70953         * lib/glob_.h: Indent nested #ifdef.
70954
70955 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70956
70957         Sync from coreutils.
70958         Use "file name" when talking about file names, instead of "filename"
70959         or "path", as per the GNU coding standards.
70960         * lib/mkdir-p.c: Renamed from makepath.c.
70961         (make_dir_parents): Renamed from make_path.  All callers changed.
70962         * lib/mkdir-p.h: Likewise.  All includers changed.
70963         * lib/filenamecat.c: Renamed from path-concat.c.
70964         (file_name_concat): Renamed from path_concat.  All callers changed.
70965         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
70966         * lib/filenamecat.h: Likewise.  All includers changed.
70967         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
70968         in comments or local variable names.
70969         * lib/basename.c: Likewise.
70970         * lib/canonicalize.c, canonicalize.h: Likewise.
70971         * lib/dirname.c, dirname.h: Likewise.
70972         * lib/euidaccess.c: Likewise.
70973         * lib/exclude.c: Likewise
70974         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
70975         * lib/fsusage.c, fsuage.h: Likewise.
70976         * lib/fts.c, fts_.h: Likewise.
70977         * lib/getcwd.c: Likewise.
70978         * lib/getloadavg.c: Likewise.
70979         * lib/mkstemp.c: Likewise.
70980         * lib/mountlist.c, mountlist.h: Likewise.
70981         * lib/openat.c, openat.h: Likewise.
70982         * lib/readlink-stub.c: Likewise.
70983         * lib/readutmp.c, readutmp.h: Likewise.
70984         * lib/rename.c: Likewise.
70985         * lib/rmdir.c: Likewise.
70986         * lib/same.c: Likewise.
70987         * lib/savedir.c: Likewise.
70988         * lib/stripslash.c: Likewise.
70989         * lib/tempname.c: Likewise.
70990         * lib/xreadlink.c: Likewise.
70991         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
70992         All uses changed.
70993         * lib/exclude.h: Likewise.
70994
70995         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
70996         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70997         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
70998         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70999         * lib/pathmax.h: Include <limits.h> unconditionally, since other
71000         files have been getting away with it for years (MORE/BSD 4.3
71001         is extinct now).
71002         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
71003         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71004
71005         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
71006         Define to 256, not 255, as per modern POSIX.
71007
71008 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71009
71010         Sync from coreutils.
71011         Use "file name" when talking about file names, instead of "filename"
71012         or "path", as per the GNU coding standards.
71013         * MODULES.html.sh: mkdir-p renamed from makepath.
71014         filenamecat renamed from path-concat.
71015         * modules/filenamecat: Renamed from modules/path-concat.
71016         (Files): filenamecat.h and filenamecat.c renamed from
71017         path-concat.h and path-concat.c.
71018         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
71019         (Include): filenamecat.h, not path-concat.h.
71020         * modules/mkdir-p: Renamed from modules/makepath.
71021         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
71022         makepath.c.
71023         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
71024         (Include): mkdir-p.h, not makepath.h.
71025
71026 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71027
71028         Sync from coreutils.
71029         * m4/mkdir-p.m4: Renamed from makepath.m4.
71030         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
71031         Rename files from makepath.c to mkdir-p.c, and from
71032         makepath.h to mkdir-p.h.
71033         * m4/filenamecat.m4: Renamed from path-concat.m4.
71034         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
71035         Rename files from path-concat.c to filenamecat.c,
71036         and from path-concat.h to filenamecat.h.
71037         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
71038         "file name" in local variables or comments.
71039         * m4/rename.m4: Likewise.
71040
71041 2005-06-01  Bruno Haible  <bruno@clisp.org>
71042
71043         * modules/csharpexec: New file.
71044         * MODULES.html.sh (C#): New section.
71045
71046 2005-06-01  Bruno Haible  <bruno@clisp.org>
71047
71048         * m4/csharp.m4: New file, from GNU gettext.
71049         * m4/csharpexec.m4: New file, from GNU gettext.
71050
71051 2005-06-01  Bruno Haible  <bruno@clisp.org>
71052
71053         * lib/csharpexec.h: New file, from GNU gettext.
71054         * lib/csharpexec.c: New file, from GNU gettext.
71055         * lib/csharpexec.sh.in: New file, from GNU gettext.
71056
71057 2005-05-31  Derek Price  <derek@ximbiot.com>
71058             Paul Eggert  <eggert@cs.ucla.edu>
71059
71060         Sync from cvs.
71061         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71062
71063 2005-05-31  Derek Price  <derek@ximbiot.com>
71064             Paul Eggert  <eggert@cs.ucla.edu>
71065
71066         Sync from cvs.
71067         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71068
71069 2005-05-29  Derek Price  <derek@ximbiot.com>
71070
71071         * config/srclist.txt (glob_.h, glob.c): Add these files.
71072
71073 2005-05-29  Derek Price  <derek@ximbiot.com>
71074
71075         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
71076         * modules/glob: New file.
71077         * modules/getlogin_r: Add link to POSIX spec in description.
71078
71079 2005-05-29  Derek Price  <derek@ximbiot.com>
71080             Paul Eggert  <eggert@cs.ucla.edu>
71081
71082         * m4/glob.m4: New file.
71083
71084 2005-05-29  Derek Price  <derek@ximbiot.com>
71085             Paul Eggert  <eggert@cs.ucla.edu>
71086
71087         * lib/glob_.h, lib/glob.c: New files.
71088
71089 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71090
71091         * modules/fts (Files): Remove m4/inttypes-pri.m4.
71092         * modules/fts-lgpl (Depends-on): Remove gettext.
71093
71094 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71095
71096         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
71097         and don't require gt_INTTYPES_PRI.
71098
71099 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71100
71101         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
71102
71103         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
71104         the configuration hassle isn't worth it.
71105         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
71106         (LONGEST_MODIFIER, PRIuMAX): Remove.
71107
71108 2005-05-27  Bruno Haible  <bruno@clisp.org>
71109
71110         * lib/getlogin_r.h: Remove second include of <stddef.h>.
71111
71112 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
71113
71114         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
71115         _POSIX_PTHREAD_SEMANTICS for Solaris.
71116
71117 2005-05-25  Derek Price  <derek@ximbiot.com>
71118
71119         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
71120
71121 2005-05-25  Derek Price  <derek@ximbiot.com>
71122             Paul Eggert  <eggert@cs.ucla.edu>
71123
71124         * modules/getlogin_r, m4/getlogin_r.m4: New files.
71125         * lib/getlogin_r.c, getlogin_r.h: New files.
71126
71127 2005-05-25  Bruno Haible  <bruno@clisp.org>
71128             Derek Price  <derek@ximbiot.com>
71129
71130         * lib/getlogin_r.h: Simplify API documentation.
71131
71132 2005-05-23  Derek Price  <derek@ximbiot.com>
71133
71134         * modules/minmax (Files): Add m4/minmax.m4.
71135         (configure.ac): Add gl_MINMAX.
71136
71137 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71138
71139         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
71140         so that unistd-safer.h (GPL'ed code) need not be included.
71141
71142 2005-05-22  Bruno Haible  <bruno@clisp.org>
71143
71144         * m4/minmax.m4: New file.
71145         Based on a patch by Derek Price <derek@ximbiot.com>.
71146
71147 2005-05-22  Bruno Haible  <bruno@clisp.org>
71148
71149         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
71150         (INT64_MIN): Fix definition.
71151         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
71152
71153         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
71154         NEED_SIGNED_INT_TYPES.
71155
71156         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
71157         HAVE_SYSTEM_INTTYPES.
71158
71159 2005-05-22  Bruno Haible  <bruno@clisp.org>
71160
71161         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
71162         Also include <sys/param.h> if it defines MIN, MAX.
71163         Based on a patch by Derek Price <derek@ximbiot.com>.
71164
71165 2005-05-21  Jim Meyering  <jim@meyering.net>
71166
71167         * modules/fts (Files): Add m4/inttypes-pri.m4.
71168         (Depends-on): Add lstat and remove gettext.  Alphabetize.
71169
71170 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71171
71172         New fts module.
71173         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
71174         (setup_dir, free_dir): New functions.
71175         (enter_dir, leave_dir): Define trivial
71176         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
71177         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
71178         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
71179         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
71180         Move to fts-cycle.c.
71181         (fts_open): Use setup_dir.
71182         (fts_close): Use free_dir.
71183         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
71184         This adds a label and some gotos, but the alternatives were messier.
71185         Check for memory allocation failure when entering a dir.
71186         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
71187         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
71188         (FTS): New member fts_cycle, that is a union that contains the
71189         old active_dir_ht and cycle_state.  All uses changed to mention
71190         fts_cycle.ht and fts_cycle.state.
71191         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
71192         fts.c, with the following changes:
71193         (setup_dir, free_dir): New functions.
71194         (enter_dir): Now returns bool.  Return true if successful, false
71195         if memory exhausted.  All callers changed.
71196         Do not bother partly cleaning up on
71197         memory allocation failure; that is free_dir's job.
71198         However, free ad if hash_insert fails, to avoid memory leak.
71199         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
71200         fts->fts_options to see which union member to use.
71201
71202 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71203
71204         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
71205         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
71206
71207 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71208
71209         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
71210
71211 2005-05-20  Jim Meyering  <jim@meyering.net>
71212
71213         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
71214         Now a macro, to pacify GCC.
71215
71216 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71217
71218         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
71219         of -1.
71220
71221 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71222
71223         * lib/chown.c (rpl_chown): Return -1 on failure.
71224
71225 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71226
71227         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
71228         Don't check for stddef.h.
71229         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
71230         don't use its results.
71231         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
71232         since we include them unconditionally.  Don't require
71233         AM_STDBOOL_H, since stdbool is a prerequisite.
71234         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
71235         since we assume C89 or better.
71236         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
71237         as we don't use their results.
71238         Don't check for fchdir, memmove, memset, strrchr, as we use
71239         them unconditionally.
71240         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
71241         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
71242
71243 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71244
71245         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
71246         Include <stddef.h> unconditionally, since we assume C89 now.
71247         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
71248         * lib/fts.c: Include fts_.h first, to check interface.
71249         Do not include intprops.h; no longer needed.
71250         Include cycle-check.h and hash.h, since fts_.h no longer does.
71251         Remove unnecessary casts of closedir to void.
71252         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
71253         decide whether to decrement nlinks.
71254         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
71255         (FTS): Use struct hash_table * instead of Hash_table, so that
71256         we no longer need to include hash.h here.
71257
71258 2005-05-18  Jim Meyering  <jim@meyering.net>
71259
71260         * modules/dirfd (License): Change to LGPL.  Most of the code
71261         is already in the public domain.
71262
71263 2005-05-18  Jim Meyering  <jim@meyering.net>
71264
71265         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
71266         Reported by Yoann Vandoorselaere.
71267
71268 2005-05-17  Jim Meyering  <jim@meyering.net>
71269
71270         * m4/fts.m4: New file, from coreutils.
71271
71272 2005-05-17  Jim Meyering  <jim@meyering.net>
71273
71274         * lib/fts.c, lib/fts_.h: New files, from coreutils.
71275
71276 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71277
71278         Sync from coreutils.
71279         * m4/unlinkdir.m4: New file.
71280
71281 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71282
71283         Sync from coreutils.
71284         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
71285         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
71286         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
71287         White space changes only.
71288         * lib/makepath.c (make_path): Port to hosts where leading "//" is
71289         special.
71290         * lib/yesno.c: Include getline.h, not ctype.h.
71291         (yesno): Don't remove leading white space; POSIX doesn't allow it.
71292         Use getline to remove arbitrary restriction on response length.
71293
71294 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71295
71296         * config/srclist-update: Spell out "Street" in FSF postal
71297         mail address; this is the style the FSF seems to prefer.
71298
71299         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
71300         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
71301         this updates FSF postal mail address.
71302
71303         Sync from coreutils.
71304         * modules/unlinkdir: New file.
71305         * modules/yesno (Depends-on): Add getline.
71306         * MODULES.html.sh (File system functions): Add unlinkdir.
71307
71308 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71309
71310         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
71311         lib/strsep.h:
71312         Change the initial comment to refer to GPL, not LGPL.
71313         gnulib-tool will change it to LGPL as needed.
71314
71315         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
71316         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
71317         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
71318         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
71319         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
71320         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
71321         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
71322         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
71323         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
71324         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
71325         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
71326         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
71327         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
71328         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
71329         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
71330         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
71331         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
71332         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
71333         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
71334         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
71335         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
71336         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
71337         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
71338         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
71339         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
71340         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
71341         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
71342         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
71343         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
71344         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
71345         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
71346         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
71347         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
71348         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
71349         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
71350         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
71351         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
71352         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
71353         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
71354         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
71355         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
71356         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
71357         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
71358         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
71359         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
71360         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
71361         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
71362         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
71363         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
71364         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
71365         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71366         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
71367         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
71368         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
71369         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
71370         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
71371         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
71372         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
71373         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
71374         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
71375         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
71376         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
71377         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
71378         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
71379         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
71380         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
71381         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
71382         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
71383         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
71384         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
71385         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
71386         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
71387         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
71388         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
71389         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
71390         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
71391         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
71392         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
71393         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
71394         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
71395         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
71396         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
71397         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
71398         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
71399         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
71400         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
71401         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
71402         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
71403         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
71404         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
71405         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
71406         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
71407         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
71408         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
71409         lib/yesno.c, lib/yesno.h:
71410         Update FSF postal mail address.
71411
71412 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71413
71414         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
71415         tests/test-memmem.c, tests/test-stpncpy.c:
71416         Update FSF postal mail address.
71417
71418 2005-05-13  Bruno Haible  <bruno@clisp.org>
71419
71420         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
71421         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
71422         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
71423         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
71424         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
71425         Add support for 64-bit integers in the MSVC compiler.
71426
71427 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71428
71429         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
71430
71431 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
71432
71433         * gnulib-tool (func_import): Sort and uniquify recommended includes.
71434
71435 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
71436
71437         * doc/getdate.texi (General date syntax): Don't say that date
71438         date --iso-8601=ns generates acceptable dates; it doesn't yet.
71439         Problem reported by Nic Ferrier.
71440
71441 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71442
71443         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
71444         specified in ai_socktype. Fix invalid ai_protocol
71445         check. ai_protocol is usually set to 0 or depending on
71446         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
71447         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
71448         ai_socktype / ai_protocol in the returned addrinfo structure.
71449
71450 2005-05-10  Simon Josefsson  <jas@extundo.com>
71451
71452         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
71453         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71454
71455 2005-05-10  Karl Berry  <karl@gnu.org>
71456
71457         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
71458         (from http://www.gnu.org/licenses).
71459         * doc/COPYING.LIB: also rename to COPYING.LESSER.
71460         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
71461         fdl.texi suffices.
71462
71463 2005-05-10  Karl Berry  <karl@gnu.org>
71464
71465         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
71466         (COPYING.DOC): remove.
71467
71468         * config/srclist-update: new FSF address.
71469
71470 2005-05-10  Derek Price  <derek@ximbiot.com>
71471
71472         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
71473         possible.
71474
71475 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71476             Bruno Haible  <bruno@clisp.org>
71477
71478         * modules/inet_ntop: New file.
71479         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71480         inet_ntop.
71481
71482 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71483             Bruno Haible  <bruno@clisp.org>
71484
71485         * m4/inet_ntop.m4: New file.
71486
71487 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71488             Bruno Haible  <bruno@clisp.org>
71489
71490         * lib/inet_ntop.h: New file.
71491         * lib/inet_ntop.c: New file, from glibc with modifications.
71492
71493 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
71494
71495         * modules/time_r (License): Change to LGPL.
71496         * modules/extensions (License): Change to LGPL.  Actually,
71497         the license is more permissive than that, but currently gnulib-tool
71498         doesn't know how to handle more-permissive licenses.
71499
71500         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
71501         Problem reported by Dave Love.
71502
71503 2005-05-08  Jim Meyering  <jim@meyering.net>
71504
71505         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
71506         blank.
71507
71508 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71509
71510         * modules/argmatch (Depends-on): Add stdbool.
71511         * modules/backupfile (Depends-on): Likewise.
71512         * modules/chdir-long (Depends-on): Likewise.
71513         * modules/closeout (Depends-on): Likewise.
71514         * modules/cycle-check (Depends-on): Likewise.
71515         * modules/dirname (Depends-on): Likewise.
71516         * modules/fnmatch (Depends-on): Likewise.
71517         * modules/fsusage (Depends-on): Likewise.
71518         * modules/fwriteerror (Depends-on): Likewise.
71519         * modules/getcwd (Depends-on): Likewise.
71520         * modules/getloadavg (Depends-on): Likewise.
71521         * modules/hard-locale (Depends-on): Likewise.
71522         * modules/makepath (Depends-on): Likewise.
71523         * modules/mountlist (Depends-on): Likewise.
71524         * modules/nanosleep (Depends-on): Likewise.
71525         * modules/posixtm (Depends-on): Likewise.
71526         * modules/quotearg (Depends-on): Likewise.
71527         * modules/readtokens (Depends-on): Likewise.
71528         * modules/readtokens0 (Depends-on): Likewise.
71529         * modules/readutmp (Depends-on): Likewise.
71530         * modules/save-cwd (Depends-on): Likewise.
71531         * modules/strftime (Depends-on): Likewise.
71532         * modules/userspec (Depends-on): Likewise.
71533         * modules/utimecmp (Depends-on): Likewise.
71534         * modules/xgetcwd (Depends-on): Likewise.
71535         * modules/xnanosleep (Depends-on): Likewise.
71536         * modules/xstrtod (Depends-on): Likewise.
71537         * modules/yesno (Depends-on): Likewise.
71538
71539 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
71540
71541         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
71542         needless checks.
71543
71544 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71545
71546         Merge from coreutils.  Among other things,
71547         add bulletproofing for cases where stdin, stdout, or stderr are closed.
71548         * lib/fd-safer.c: New file.
71549         * lib/fcntl-safer.h, open-safer.c: Remove.
71550         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
71551         * lib/dup-safer.c: Include unistd-safer.h first.
71552         Don't include errno.h.
71553         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
71554         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
71555         * lib/file-type.c: Rely on file-type.h change.
71556         * lib/getloadavg.c: Include unistd-safer.h.
71557         (getloadavg): Use safer open.
71558         * lib/getusershell.c: Include "stdio-safer.h".
71559         (getusershell): Use safer fopen.
71560         * lib/long-options.c (long_options): Use NULL rather than 0.
71561         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
71562         'free'.
71563         * lib/modechange.c: Likewise.
71564         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
71565         (MODE_DONE): New constant.
71566         (struct mode_change): Remove 'next' member.
71567         (make_node_op_equals): New function; like the old one of the
71568         same name, except it allocates an array.
71569         (mode_compile, mode_create_from_ref): Use it.
71570         (mode_compile): Allocate result as an array, not a linked list.
71571         Parse octal string ourself, so that we catch mistakes like "+0".
71572         (mode_adjust): Arg is an array, not a linked list.
71573         * lib/modechange.c: Include stat-macros.h, xalloc.h.
71574         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
71575         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
71576         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
71577         Remove.  This is now stat-macros.h's job.
71578         (talloc): Remove.  All callers replaced by xalloc, so that
71579         our invokers don't have to worry about reporting memory failures.
71580         (make_node_op_equals): Remove.
71581         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71582         New constants.
71583         (struct mode_change): Moved here from modechange.h.
71584         (mode_append_entry): Remove.
71585         (mode_compile): Remove MASKED_OPS arg, since it encouraged
71586         apps to have incorrect behavior.  Use simpler algorithm for head
71587         and tail.  Don't futz with umask; that's now the job of mode_adjust.
71588         Detect more invalid usages rather than having somewhat-random behavior.
71589         Don't insert an "a=" action, as that leads to incorrect behavior.
71590         (mode_compile, mode_create_from_ref): Return NULL on error instead
71591         of an enum, since now there's only one way to have an error.  All
71592         callers changed.
71593         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
71594         at the correct time.  Simplify calculation of "+u" and its ilk.
71595         Don't mishandle "+X".
71596         (mode_free): Remove "register" and localize decls.
71597         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71598         (struct mode_change): Move to modechange.c; callers don't
71599         need to see this stuff.
71600         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
71601         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
71602         (mode_change, mode_adjust): Reflect the new signatures noted above.
71603         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
71604         that might redefine system include files.
71605         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
71606         (my_usleep): Use NULL rather than (void *) 0.
71607         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
71608         Use siginterrupt to specify that system calls should be interrupted.
71609         (rpl_nanosleep): Move initialization of suspended closer to call of
71610         my_usleep.
71611         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
71612         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
71613         (desirable_utmp_entry): New function.
71614         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
71615         using x2nrealloc, to simplify logic.
71616         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
71617         size calculation.  Do not assume utmp file is a regular file.
71618         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
71619         (READ_UTMP_CHECK_PIDS): New constant.
71620         * lib/save-cwd.c: Include unistd-safer.h.
71621         (save_cwd): Use fd_safer.
71622         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
71623         [!_LIBC] Include "stat-macros.h" instead.
71624         * lib/unistd-safer.h (fd_safer): New decl.
71625
71626 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71627
71628         * modules/getloadavg (Depends-on): Add unistd-safer.
71629         * modules/getusershell (Depends-on): Add stdio-safer.
71630         * modules/lstat (Depends-on): Remove xalloc.
71631         * modules/mkstemp (Depends-on): Add stat-macros.
71632         * modules/modechange (Depends-on): Remove xstrtol.
71633         Add stat-macros, xalloc.
71634         * modules/save-cwd (Depends-on): Add unistd-safer.
71635         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
71636         * modules/unistd-safer (Files): Add lib/fd-safer.c
71637         (Makefile.am): Remove lib_SOURCES.
71638
71639         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
71640         Remove fcntl-safer; unistd-safer supersedes it.
71641
71642 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71643
71644         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
71645         AC_HEADER_STAT.
71646         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
71647         (gl_PREREQ_CHOWN): Remove.
71648         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
71649         it.  Don't require AC_HEADER_STAT.
71650         (gl_PREREQ_LSTAT): Remove.
71651         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
71652         Don't require AC_HEADER_STAT.
71653         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
71654         (gl_PREREQ_RMDIR): Remove.
71655         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
71656         mention stat-macros.h or AC_HEADER_STAT, since we'll make
71657         the stat-macros module a prerequisite.
71658         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
71659         * m4/filemode.m4 (gl_FILEMODE): Likewise.
71660         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
71661         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
71662         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
71663         variable names.
71664         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
71665         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
71666         variable prefixes.
71667         * m4/fcntl-safer.m4: Remove.
71668         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
71669         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
71670         Invoke gl_PREREQ_FD_SAFER.
71671         (gl_PREREQ_FD_SAFER): New macro.
71672         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
71673         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
71674         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
71675         Remove duplicate call to AC_LIBOBJ(readutmp).
71676         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
71677
71678         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
71679         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
71680
71681 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71682
71683         * MODULES.html.sh (Misc): Add byteswap.
71684
71685 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71686
71687         * modules/getcwd (Depends-on): Add extensions.
71688         * modules/openat (Depends-on): Likewise.
71689
71690 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71691
71692         * modules/byteswap: New file.
71693
71694 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71695
71696         * m4/byteswap.m4: New file.
71697
71698 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71699
71700         * lib/byteswap_.h: New file.
71701
71702 2005-04-25  Karl Berry  <karl@gnu.org>
71703
71704         * m4/gettext.m4: Update from GNU gettext 0.14.4.
71705
71706 2005-04-25  Albert Chin  <china@thewrittenword.com>
71707
71708         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
71709         Toolkit C bug.
71710
71711 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
71712
71713         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
71714         (func_ln_if_changed): Remove forcibly for no error message
71715         in case file does not exist.
71716
71717 2005-04-19  Simon Josefsson  <jas@extundo.com>
71718
71719         * gnulib-tool (Options): Make --symlink mean --symbolic.
71720
71721 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
71722
71723         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
71724
71725 2005-04-16  Simon Josefsson  <jas@extundo.com>
71726
71727         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
71728
71729 2005-04-15  Simon Josefsson  <jas@extundo.com>
71730
71731         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
71732
71733 2005-04-15  Simon Josefsson  <jas@extundo.com>
71734
71735         * gnulib-tool: Rename --symlink to --symbolic.
71736
71737 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
71738
71739         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
71740         symbolic links to files instead of copying/moving.  Add --aux-dir,
71741         specifying directory relative --dir where auxiliary build tools
71742         are placed.
71743
71744 2005-04-14  Bruno Haible  <bruno@clisp.org>
71745
71746         * modules/allocsa (License): Change to LGPL.
71747         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71748
71749 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71750
71751         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
71752         that "UTC +1 second" continues to work.  Problem reported
71753         by Dmitry V. Levin.
71754         (relunit_snumber): New rule.
71755         (relunit): Use it.
71756
71757 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71758
71759         * lib/getdate.y (universal_time_zone_table): New constant.
71760         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
71761         universal_time_zone_table.
71762         (lookup_zone): Prefer universal_time_zone_table to
71763         local_time_zone_table, so that "GMT" time stamps are allowed in
71764         London during the summer.  Problem reported by Ian Abbott.
71765
71766 2005-04-12  Jim Meyering  <jim@meyering.net>
71767
71768         * lib/human.c (humblock): Set *options even when returning due to
71769         xstrtoumax conversion failure.  Thanks to a used-uninitialized
71770         warning from gcc-4.
71771
71772 2005-04-09  Jim Meyering  <jim@meyering.net>
71773
71774         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
71775         -Wuninitialized: initialize tm0.tm_year.
71776
71777 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71778
71779         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
71780         count, since there's no maximum.  All uses changed.
71781         Add member dsts_seen.
71782         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
71783         not being INT_MAX.
71784         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
71785         Use pc_rels_seen to decide whther a date is absolute.
71786
71787         * lib/getdate.y (number): Don't overwrite year.
71788         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
71789         check.
71790
71791 2005-04-02  Simon Josefsson  <jas@extundo.com>
71792
71793         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
71794         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
71795
71796 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
71797
71798         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
71799         where no absolute path name can be longer than PATH_MAX.
71800
71801 2005-03-27  Jim Meyering  <jim@meyering.net>
71802
71803         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
71804
71805 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
71806
71807         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
71808         "one's complement" -> "ones' complement" in comment, as per Knuth.
71809         "value of type" -> "type or expression" in comment.
71810         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
71811
71812 2005-03-26  Jim Meyering  <jim@meyering.net>
71813
71814         Comment nits.
71815         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
71816         Correct typos: s/or/of/.
71817
71818 2005-03-26  Jim Meyering  <jim@meyering.net>
71819
71820         * modules/check-include-files: Move to ../ and rename to...
71821         * check-module: ...this.
71822
71823 2005-03-25  Jim Meyering  <jim@meyering.net>
71824
71825         * modules/xvasprintf (Files): Add xalloc.h.
71826
71827 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
71828
71829         * modules/gettext (Files): config/config.rpath ->
71830         build-aux/config.rpath
71831         * modules/iconv (Files): Likewise.
71832         Problem reported by Oskar Liljeblad.
71833
71834 2005-03-23  Jim Meyering  <jim@meyering.net>
71835
71836         * modules/check-include-files: New script to check for
71837         missing dependencies, multiple includes, etc.
71838
71839         * modules/c-strtold (Depends-on): Add xalloc.
71840         * modules/c-strtod (Depends-on): Add xalloc.
71841         * modules/hash (Depends-on): Add xalloc.
71842         (Files): Remove lib/xalloc.h.
71843
71844         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
71845         * modules/userspec (Files): Add lib/inttostr.h.
71846
71847 2005-03-23  Jim Meyering  <jim@meyering.net>
71848
71849         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
71850
71851 2005-03-22  Jim Meyering  <jim@meyering.net>
71852
71853         * modules/stat-macros: New module.
71854         * modules/canonicalize, modules/euidaccess, modules/file-type,
71855         * modules/filemode, modules/lchown, modules/makepath,
71856         * modules/rmdir, modules/stat: Depend on new stat-macros module
71857         rather than listing lib/stat-macros.h manually.
71858         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
71859
71860 2005-03-22  Jim Meyering  <jim@meyering.net>
71861
71862         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
71863
71864 2005-03-22  Bruno Haible  <bruno@clisp.org>
71865
71866         * config/srclist.txt: Replace target directory 'config' with
71867         'build-aux'.
71868         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
71869         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
71870         ../build-aux/.
71871
71872 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
71873
71874         * modules/chdir-long (Depends-on): Add mempcpy.
71875
71876         * modules/acl, modules/backupfile, modules/c-strtod,
71877         modules/c-strtold, modules/canon-host, modules/canonicalize,
71878         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
71879         modules/exclude, modules/exitfail, modules/file-type,
71880         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
71881         modules/getdate, modules/getline, modules/getpagesize,
71882         modules/getpass, modules/getugroups, modules/group-member,
71883         modules/hard-locale, modules/hash, modules/human, modules/idcache,
71884         modules/inttostr, modules/long-options, modules/makepath,
71885         modules/md5, modules/memcasecmp, modules/memcoll,
71886         modules/modechange, modules/mountlist, modules/path-concat,
71887         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
71888         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
71889         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
71890         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
71891         modules/strftime, modules/strndup, modules/strverscmp,
71892         modules/timespec, modules/unlocked-io, modules/userspec,
71893         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
71894         modules/yesno:
71895         Remove lib_SOURCES line from Makefile.am section, as this is now
71896         done automatically by the corresponding Autoconf macro.
71897
71898 2005-03-21  Jim Meyering  <jim@meyering.net>
71899
71900         Changes imported from coreutils.
71901
71902         * lib/cycle-check.c: Don't include xalloc.h.
71903
71904         * lib/path-concat.c: Don't include assert.h.
71905         (path_concat): Remove assertion that would have triggered
71906         for ABASE starting with more than one slash.
71907         Reported by Andreas Schwab.
71908
71909         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
71910         properly when ABASE is an absolute file name.
71911         Correct the description of this function.
71912         Include <assert.h>.
71913         Add an assertion and a test driver.
71914         This fixes a bug introduced on 2004-07-02.
71915         Andreas Schwab reported the resulting failure of cp --parents:
71916         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
71917
71918 2005-03-21  Jim Meyering  <jim@meyering.net>
71919
71920         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
71921         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
71922
71923 2005-03-21  Jim Meyering  <jim@meyering.net>
71924         and  Paul Eggert  <eggert@cs.ucla.edu>
71925
71926         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
71927         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
71928         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
71929         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
71930         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
71931         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
71932         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
71933         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
71934         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
71935         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
71936         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
71937         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
71938         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
71939         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
71940         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
71941         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
71942         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
71943         for these modules.
71944
71945 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
71946
71947         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
71948         (which shouldn't happen), generate nothing instead of returning 0
71949         immediately, so that nstrftime (NULL, ...) doesn't return 0.
71950
71951 2005-03-16  Bruno Haible  <bruno@clisp.org>
71952
71953         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
71954         HAVE_LONGLONG_64BIT.
71955
71956 2005-03-16  Bruno Haible  <bruno@clisp.org>
71957
71958         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
71959         HAVE_LONGLONG_64BIT.
71960
71961 2005-03-16  Bruno Haible  <bruno@clisp.org>
71962
71963         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
71964         HAVE_LONGLONG_64BIT.
71965
71966 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
71967
71968         * lib/strftime.c (my_strftime): Prepend space to format so that we can
71969         reliably distinguish strftime failure from empty output on POSIX
71970         hosts.
71971
71972 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
71973
71974         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
71975         (iconv_string): Don't guess a size-zero buffer, as that might cause
71976         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
71977         result would be 'too large', where 'too large' is (heuristically)
71978         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
71979         overflow concerns.  This will prevent some unwanted malloc failures
71980         when the inputs are very large.
71981
71982 2005-03-15  Karl Berry  <karl@gnu.org>
71983
71984         * config/srclist.txt (config.rpath): from gettext.
71985         * config/config.rpath: update.
71986
71987 2005-03-15  Bruno Haible  <bruno@clisp.org>
71988
71989         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
71990         to 'negate'.
71991
71992         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
71993         variable.
71994
71995         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
71996         results.
71997
71998 2005-03-14  Simon Josefsson  <jas@extundo.com>
71999
72000         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
72001         <fx@gnu.org>.
72002
72003 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
72004
72005         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
72006         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
72007         intprops.h.
72008         * lib/strtol.c: Likewise.
72009
72010 2005-03-14  Jim Meyering  <jim@meyering.net>
72011
72012         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
72013         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
72014         to be nonzero so that we (and caller) can detect the difference
72015         between a valid zero-length expansion and an error return, even
72016         when the underlying strftime fails before writing anything into
72017         that location.
72018
72019 2005-03-14  Bruno Haible  <bruno@clisp.org>
72020
72021         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
72022         Update from GNU gettext 0.14.3.
72023
72024 2005-03-10  Jim Meyering  <jim@meyering.net>
72025
72026         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
72027
72028 2005-03-10  Jim Meyering  <jim@meyering.net>
72029
72030         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
72031         so that this module works on systems without fchdir.
72032
72033 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
72034
72035         Factor int-properties macros into a single file, except for
72036         glibc-related files.
72037         * lib/intprops.h: New file.
72038         * lib/getloadavg.c: Include it instead of limits.h.
72039         (INT_STRLEN_BOUND): Remove.
72040         * lib/human.c: Include intprops.h.
72041         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
72042         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
72043         302/1000.
72044         * lib/inttostr.h: Include intprops.h instead of limits.h.
72045         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
72046         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
72047         for consistency with intprops.h.
72048         (time_t_is_integer, twos_complement_arithmetic): Use them.
72049         * lib/sig2str.h: Include <signal.h>, intprops.h.
72050         (INT_STRLEN_BOUND): Remove.
72051         * lib/strftime.c (TYPE_SIGNED): Remove.
72052         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
72053         * lib/strtol.c: Adjust comments to match intprops.h.
72054         * lib/userspec.c: Include intprops.h.
72055         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
72056         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
72057         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
72058         instead of rolling our own expressions.
72059         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
72060
72061         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
72062         instead of int.
72063         (my_strftime): Do not mishandle years close to INT_MAX, by doing
72064         the right thing even if adding 1900 would overflow.  Similarly
72065         for tm_mon + 1 and tm_yday + 1.
72066         Make %Y always equivalent to %C%y, and similarly for %G and %g.
72067         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
72068         (DO_SIGNED_NUMBER): New macro.
72069         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
72070
72071 2005-03-07  Bruno Haible  <bruno@clisp.org>
72072
72073         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
72074
72075 2005-03-07  Bruno Haible  <bruno@clisp.org>
72076
72077         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
72078
72079 2005-03-04  Derek R. Price  <derek@ximbiot.com>
72080
72081         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
72082         (func_import): Only replace files via --import when they have actually
72083         changed.
72084
72085 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72086
72087         * m4/mmap-anon.m4: New file.
72088         * m4/pagealign_alloc.m4: New file.
72089
72090 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72091             Bruno Haible  <bruno@clisp.org>
72092
72093         * modules/pagealign_alloc: New file.
72094         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
72095
72096 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72097             Bruno Haible  <bruno@clisp.org>
72098
72099         * lib/pagealign_alloc.h: New file.
72100         * lib/pagealign_alloc.c: New file.
72101
72102 2005-03-03  Bruno Haible  <bruno@clisp.org>
72103
72104         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
72105         Use an all-permissive copyright notice, recommended by RMS.
72106
72107 2005-03-02  Bruno Haible  <bruno@clisp.org>
72108
72109         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
72110         of AIX, the replacement has to be done only after <string.h> is
72111         included, therefore not in config.h. stpncpy.h does the replacement,
72112         and stpncpy.c uses it.
72113
72114 2005-03-02  Bruno Haible  <bruno@clisp.org>
72115
72116         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
72117         stpncpy.c uses it.
72118
72119 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72120
72121         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
72122         The workaround isn't strictly needed for POSIX conformance, and
72123         it's too much of a pain to configure and maintain.  We'll ask
72124         people to fix their kernels instead.
72125         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
72126         (NANOSLEEP_BUG_WORKAROUND): Remove.
72127         (xnanosleep): Remove the workaround.
72128
72129 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72130
72131         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
72132         Reported by Derek Price.
72133         (Include): Add "timespec.h".
72134
72135         * modules/xnanosleep (Depends-on): Remove gethrxtime.
72136
72137 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72138
72139         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
72140         to detect nanosleep bug.
72141
72142 2005-03-01  Bruno Haible  <bruno@clisp.org>
72143
72144         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
72145
72146 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72147
72148         * modules/gethrxtime: New file.
72149         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
72150         (Depends-on): Add gethrxtime.
72151         (configure.ac): Add gl_XNANOSLEEP.
72152         (Makefile.am): Remove lib_SOURCES line.
72153
72154 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72155
72156         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
72157         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
72158
72159 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72160
72161         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
72162         * lib/timespec.h (gettime): Return void, since it always
72163         succeeds now.  All uses changed.
72164         * lib/gettime.c (gettime): Likewise.
72165         [HAVE_NANOTIME]: Prefer nanotime.
72166         Assume gettimeofday succeeds, as POSIX requires.
72167         Assime time () succeeds, since other code already does.
72168         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
72169         (timespec_subtract): Remove.
72170         (NANOSLEEP_BUG_WORKAROUND): New constant.
72171         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
72172         things considerably.  Use it only on GNU/Linux hosts, since the
72173         workaround shouldn't be needed elsewhere.
72174
72175 2005-02-24  Bruno Haible  <bruno@clisp.org>
72176
72177         * modules/gettext (Files): Add m4/glibc2.m4.
72178
72179 2005-02-24  Bruno Haible  <bruno@clisp.org>
72180
72181         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
72182         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
72183         * m4/progtest.m4:
72184         Update from GNU gettext 0.14.2.
72185         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
72186
72187 2005-02-24  Bruno Haible  <bruno@clisp.org>
72188
72189         * lib/localcharset.c: Update from GNU gettext 0.14.2.
72190         * lib/config.charset: Update from GNU gettext 0.14.2.
72191
72192 2005-02-24  Bruno Haible  <bruno@clisp.org>
72193
72194         * lib/gettext.h: Update from GNU gettext 0.14.2.
72195
72196 2005-02-23  Simon Josefsson  <jas@extundo.com>
72197
72198         * m4/iconvme.m4: New file.
72199
72200 2005-02-23  Jim Meyering  <jim@meyering.net>
72201
72202         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
72203         change.
72204         Thanks to Bruno Haible for catching it.
72205
72206 2005-02-22  Simon Josefsson  <jas@extundo.com>
72207
72208         * modules/iconvme: New file.
72209
72210         * MODULES.html.sh: Add iconvme.
72211
72212 2005-02-22  Simon Josefsson  <jas@extundo.com>
72213
72214         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
72215
72216 2005-02-22  Simon Josefsson  <jas@extundo.com>
72217
72218         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
72219
72220 2005-02-22  Jim Meyering  <jim@meyering.net>
72221
72222         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
72223         s/ifndef/ifdef/.
72224
72225 2005-02-20  Neil Conway  <neilc@samurai.com>
72226
72227         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
72228         returned by OSX/Darwin if the specified buffer is not large
72229         enough for the hostname.
72230
72231 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72232
72233         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
72234         pass it to _help, otherwise the latter coredumps trying to
72235         dereference state.root_argp.
72236
72237 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72238
72239         * modules/chdir-long (Depends-on): Add memrchr.
72240         * modules/memrchr (Files): Add lib/memrchr.h.
72241         (Include): "memrchr.h".
72242
72243 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72244
72245         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
72246
72247 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72248
72249         * lib/memrchr.h: New file.
72250         * lib/chdir-long.c: Include it.
72251         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
72252         Don't bother including stddef.h.
72253
72254 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72255
72256         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
72257         inclusion.
72258         Include <sys/types.h>, for dev_t.
72259         (ME_DUMMY, ME_REMOTE): Move from here....
72260         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
72261         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
72262         Dmitry V. Levin.
72263         Include mountlist.h first, to test the interface.
72264
72265 2005-01-29  Bruno Haible  <bruno@clisp.org>
72266
72267         * lib/progname.c (program_name): Initialize.
72268         Needed when linking statically on MacOS X.
72269
72270 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72271
72272         Sync from coreutils.
72273         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
72274         (Depends-on): Add c-strtod.
72275         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
72276
72277 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72278
72279         Sync from coreutils.
72280         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
72281
72282         Remove files that are specific to coreutils.
72283         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
72284
72285 2005-01-28  Bruno Haible  <bruno@clisp.org>
72286
72287         * modules/javacomp: New file.
72288         * MODULES.html.sh (Java): Add javacomp.
72289
72290 2005-01-28  Bruno Haible  <bruno@clisp.org>
72291
72292         * m4/javacomp.m4: New file, from GNU gettext.
72293
72294 2005-01-28  Bruno Haible  <bruno@clisp.org>
72295
72296         * lib/javacomp.sh.in: New file, from GNU gettext.
72297         * lib/javacomp.h: New file, from GNU gettext.
72298         * lib/javacomp.c: New file, from GNU gettext.
72299
72300 2005-01-26  Simon Josefsson  <jas@extundo.com>
72301
72302         * lib/gai_strerror.c: Use GPL in header.
72303
72304 2005-01-26  Bruno Haible  <bruno@clisp.org>
72305
72306         * modules/javaexec: New file.
72307         * MODULES.html.sh (Java): Add javaexec.
72308
72309 2005-01-26  Bruno Haible  <bruno@clisp.org>
72310
72311         * m4/javaexec.m4: New file, from GNU gettext.
72312
72313 2005-01-26  Bruno Haible  <bruno@clisp.org>
72314
72315         * lib/javaexec.sh.in: New file, from GNU gettext.
72316         * lib/javaexec.h: New file, from GNU gettext.
72317         * lib/javaexec.c: New file, from GNU gettext.
72318
72319 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72320
72321         * modules/lchown (Depends-on): Remove lchown.h
72322
72323 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72324
72325         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
72326         must be defined if the header file was not found, in order
72327         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
72328
72329 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72330
72331         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
72332         initializers for struct pentry_state.
72333         (__argp_error): Check return value of __asprintf
72334         (__argp_failure): Translate error message
72335
72336         * lib/argp-parse.c: Removed braces around the expansion of N_()
72337
72338 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72339
72340         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
72341         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
72342         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
72343         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
72344         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
72345         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
72346         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
72347         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
72348         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
72349         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
72350         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
72351         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
72352         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
72353         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
72354         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
72355         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
72356         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
72357         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
72358         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
72359         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
72360         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
72361         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
72362         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
72363         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
72364         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
72365         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
72366         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
72367         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
72368         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
72369         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
72370         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
72371         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
72372         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
72373         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
72374         xstrtol.m4, xstrtoumax.m4, yesno.m4:
72375         Use an all-permissive copyright notice, recommended by RMS.
72376
72377 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
72378
72379         * modules/chdir-long (Depends-on): Remove mempcpy.
72380
72381 2005-01-21  Jim Meyering  <jim@meyering.net>
72382
72383         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
72384         same value as for Solaris 9.
72385
72386         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
72387         component length.  This included changing the parameter to be
72388         of type `char *' rather than `char const *'.
72389         * lib/chdir-long.h (chdir_long): Update prototype.
72390
72391         * lib/openat.c (fdopendir, fstatat): New functions.
72392         * lib/openat.h: Include headers required for use of DIR and struct
72393         stat.
72394         [AT_SYMLINK_NOFOLLOW]: Define.
72395         (fdopendir, fstatat): Add prototypes.
72396
72397 2005-01-21  Bruno Haible  <bruno@clisp.org>
72398
72399         * modules/classpath: New file.
72400         * MODULES.html.sh (Java): Add classpath.
72401
72402 2005-01-21  Bruno Haible  <bruno@clisp.org>
72403
72404         * lib/classpath.h: New file, from GNU gettext.
72405         * lib/classpath.c: New file, from GNU gettext.
72406
72407 2005-01-20  Simon Josefsson  <jas@extundo.com>
72408
72409         * modules/version-etc-fsf: New file.
72410
72411 2005-01-20  Simon Josefsson  <jas@extundo.com>
72412
72413         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
72414         * lib/version-etc.c: Remove version_etc_copyright.
72415         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
72416         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
72417
72418 2005-01-20  Simon Josefsson  <jas@extundo.com>
72419
72420         * lib/base64.h (isbase64): Add.
72421
72422         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
72423         using a unsigned prototype, don't inline.
72424         (base64_decode): Use it.
72425
72426 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72427
72428         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
72429         it.
72430
72431 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72432
72433         * lib/save-cwd.c (save_cwd): Remove code to support the case
72434         where fchdir is missing or flaky.
72435
72436 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72437
72438         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
72439
72440 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72441
72442         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
72443         AC_LIBSOURCES now does this.
72444         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
72445         with new ullong_max module.
72446
72447 2005-01-19  Bruno Haible  <bruno@clisp.org>
72448
72449         * modules/sh-quote: New file.
72450         * MODULES.html.sh (Executing programs): Add sh-quote.
72451
72452 2005-01-19  Bruno Haible  <bruno@clisp.org>
72453
72454         * lib/sh-quote.h: New file, from GNU gettext.
72455         * lib/sh-quote.c: New file, from GNU gettext.
72456
72457 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72458
72459         Merge from coreutils.
72460         * m4/ullong_max.m4: New file.
72461         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
72462         (gl_MACROS): Assume localeconv exists.
72463
72464 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72465
72466         Merge changes from coreutils, as described below in several
72467         changelogs dated today.
72468
72469         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
72470         (O_DIRECTORY): Remove; not needed here, since "." must be
72471         a directory.  All uses removed.
72472         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
72473         universal on Suns, and we also need to test for IRIX.
72474         Revamp code to use 'if' rather than '#if'.
72475         Avoid unnecessary comparison of cwd->desc to 0.
72476
72477         * lib/utimens.c (futimens): Robustify the previous patch, by checking
72478         for known valid error numbers rather than observed invalid ones.
72479
72480 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72481
72482         * modules/ullong_max: New file.
72483
72484         * modules/chdir-long, modules/openat: New files.
72485         * modules/save-cwd (Depends-on): Depend on chdir-long.
72486         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
72487
72488 2005-01-18  Jim Meyering  <jim@meyering.net>
72489
72490         Merge from coreutils.
72491         * m4/chdir-long.m4, m4/openat.m4: New files.
72492         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
72493         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
72494         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
72495         is sane and DOES follow symlinks.  Besides, testing 20 different
72496         systems found no broken chown implementations.
72497         Prompted by a change in rsync's copy of this macro.
72498         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
72499
72500         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
72501
72502         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
72503         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
72504         NULL-means-set-to-current-time semantics.
72505         Remove temporary file immediately, rather than waiting
72506         for configure's at-exit trap code to do it.
72507
72508 2005-01-18  Jim Meyering  <jim@meyering.net>
72509
72510         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72511
72512         * lib/utimens.c (futimens): Account for the fact that futimes
72513         can also fail with errno == ENOSYS or errno == ENOENT.
72514         Patch from Dmitry V. Levin.
72515
72516         Change the name of the robust chdir function from chdir to chdir_long.
72517         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
72518         (restore_cwd): Use chdir_long, not chdir.
72519         * lib/chdir-long.c: Renamed from chdir.c.
72520         * lib/chdir-long.h: Renamed from chdir.h.
72521         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
72522         Hurd.
72523
72524 2005-01-18  Bruno Haible  <bruno@clisp.org>
72525
72526         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
72527         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
72528         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
72529         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
72530         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
72531         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
72532         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
72533         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
72534         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
72535         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
72536         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
72537         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
72538         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
72539         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
72540         Use an all-permissive copyright notice, recommended by RMS.
72541
72542 2005-01-18  Bob Proulx  <bob@proulx.com>
72543
72544         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
72545         simplify offsetof() macro construct to avoid compile failure with
72546         native HP-UX 11.0 ANSI C compiler.
72547
72548 2005-01-17  Bruno Haible  <bruno@clisp.org>
72549
72550         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
72551         redundant because stpncpy.m4 takes care of it.
72552
72553 2005-01-17  Bruno Haible  <bruno@clisp.org>
72554
72555         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
72556
72557 2005-01-17  Bruno Haible  <bruno@clisp.org>
72558
72559         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
72560         used.
72561
72562 2005-01-17  Bruno Haible  <bruno@clisp.org>
72563
72564         * lib/fwriteerror.h (fwriteerror): Change specification to include
72565         fclose.
72566         * lib/fwriteerror.c: Include <stdbool.h>.
72567         (fwriteerror): At the end, close the file stream. Record whether
72568         stdout was already closed.
72569
72570 2005-01-17  Bruno Haible  <bruno@clisp.org>
72571
72572         * lib/execute.c (environ): Declare if needed.
72573         * lib/pipe.c (environ): Likewise.
72574         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
72575
72576 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72577
72578         * modules/argp: Depend on vsnprintf
72579
72580 2005-01-10  Jim Meyering  <jim@meyering.net>
72581
72582         * modules/closeout (Depends-on): Add atexit.
72583
72584 2005-01-06  Bruno Haible  <bruno@clisp.org>
72585
72586         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
72587
72588 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72589
72590         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
72591         definitions to be after all include files, to avoid collisions.
72592         Problem reported by Bob Proulx.
72593
72594 2005-01-04  Jim Meyering  <jim@meyering.net>
72595
72596         Changes imported from coreutils.
72597         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
72598         as the mkstemp template, use a temporary directory and an
72599         8.3-friendly template to avoid trouble on systems like DJGPP.
72600         Reported by Juan M. Guerrero via Stepan Kasal.
72601         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
72602         close. Remove the temporary directory right away, rather than waiting
72603         for configure's at-exit trap code to do it.
72604         Suggestion from Stepan Kasal.
72605
72606 2005-01-01  Simon Josefsson  <jas@extundo.com>
72607
72608         * gnulib-tool: Print #include directives when --import'ing.
72609
72610 2004-12-28  Simon Josefsson  <jas@extundo.com>
72611
72612         * tests/test-base64.c: Include required header files.  Remove
72613         unused variables.
72614
72615 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72616
72617         * modules/error (Depends-on): Remove gettext.
72618
72619 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72620
72621         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
72622         not needed.  This removes a dependency on the gettext module.
72623         [defined _LIBC]: Do not include <libintl.h>; not needed.
72624
72625 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72626
72627         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
72628         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
72629
72630 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72631
72632         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
72633         HAVE_DECL_STRTOLD.
72634
72635 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72636
72637         * modules/getdate (Depends-on): Remove alloca-opt.
72638
72639 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72640
72641         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
72642
72643 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72644
72645         * lib/argp-parse.c: Include <stddef.h>.
72646         (alignof, alignto): New macros.
72647         (parser_init): Don't assume that void * is aligned sufficiently
72648         for struct option.
72649
72650         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
72651         need to extend the stack.
72652         (YYINITDEPTH): New macro, so that the initial stack isn't overly
72653         large.
72654
72655 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72656
72657         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
72658
72659 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72660
72661         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
72662         (2004-10-24) change.  Apparently this was a false alarm.
72663
72664         * modules/getdate: Depend on alloca-opt, not alloca.
72665
72666 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72667
72668         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
72669         Remove now-obsolete comment about AIX.
72670         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
72671         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
72672         (YYMAXDEPTH): New macro.
72673
72674 2004-12-18  Simon Josefsson  <jas@extundo.com>
72675
72676         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
72677
72678 2004-12-18  Bruno Haible  <bruno@clisp.org>
72679
72680         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
72681
72682 2004-12-18  Bruno Haible  <bruno@clisp.org>
72683
72684         * lib/fatal-signal.c (fatal_signals): Make non-const.
72685         (init_fatal_signals): New function.
72686         (uninstall_handlers, install_handlers): Ignore signals that were set to
72687         SIG_IGN.
72688         (at_fatal_signal): Call init_fatal_signals.
72689         (init_fatal_signal_set): Likewise. Ignore signals that were set to
72690         SIG_IGN.
72691         Reported by Paul Eggert.
72692
72693 2004-12-18  Bruno Haible  <bruno@clisp.org>
72694
72695         * doc/alloca.texi: New file.
72696         * doc/alloca-opt.texi: New file.
72697
72698 2004-12-17  Jim Meyering  <jim@meyering.net>
72699
72700         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
72701         Otherwise, install-sh could exit with improper exit status when
72702         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
72703
72704 2004-12-16  Simon Josefsson  <jas@extundo.com>
72705
72706         * tests/test-base64.c: Add license.
72707
72708 2004-12-15  Stepan Kasal  <address@hidden>
72709
72710         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
72711
72712 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
72713
72714         * modules/getcwd (Files): Add m4/d-ino.m4.
72715         Suggested by Mark D. Baushke.
72716
72717 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72718
72719         * lib/getdate.y (textint): New member "negative".
72720         (time_zone_hhmm): New function.
72721         Expect 14 shift-reduce conflicts, not 13.
72722         (o_colon_minutes): New rule.
72723         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
72724         (yylex): Set the "negative" member of signed numbers.
72725
72726 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72727
72728         * doc/getdate.texi (Time of day items, Time zone items):
72729         Describe new formats +00:00, UTC+00:00.
72730
72731 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72732
72733         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
72734         spurious "-l"s.  Problem reported by Stepan Kasal.
72735
72736 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
72737
72738         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
72739         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
72740
72741 2004-12-04  Simon Josefsson  <jas@extundo.com>
72742
72743         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
72744         Vandoorselaere <yoann@prelude-ids.org>.
72745
72746 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72747
72748         Changes imported from coreutils.
72749         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
72750         exist.
72751         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
72752
72753 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72754
72755         Changes imported from coreutils.
72756         * lib/hard-locale.c: Assume <locale.h> exists.
72757         Include "strdup.h".
72758         (GLIBC_VERSION): New macro.
72759         (hard_locale): Assume setlocale exists.
72760         Rewrite to avoid #ifdef.
72761         Use strdup rather than malloc + strcpy.
72762         * lib/human.c: Assume <locale.h> exists.
72763         (human_readable): Assume localeconv exists.
72764
72765 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72766
72767         * modules/hard-locale (Depends-on): Add strdup.
72768
72769 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
72770
72771         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
72772         convert T2, not T.  (Imported from libc.)
72773
72774 2004-11-30  Simon Josefsson  <jas@extundo.com>
72775
72776         * modules/restrict (License): Change to LGPL.
72777
72778 2004-11-30  Simon Josefsson  <jas@extundo.com>
72779
72780         * m4/restrict.m4: Add copyright and copying conditions.
72781
72782 2004-11-30  Simon Josefsson  <jas@extundo.com>
72783
72784         * m4/base64.m4: New file.
72785
72786 2004-11-30  Simon Josefsson  <jas@extundo.com>
72787
72788         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
72789         base64.
72790
72791         * tests/test-base64.c: New file.
72792
72793         * modules/base64: New file.
72794
72795 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
72796
72797         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
72798         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
72799
72800         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
72801
72802 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
72803
72804         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
72805         (__getcwd.c): Don't restore errno; glibc doesn't.
72806         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
72807         first, falling back to our code only if its results look suspicious.
72808         Ensure that the resulting buffer is only as large as necessary.
72809
72810         * lib/readutmp.c: Include readutmp.h first.
72811         Include <errno.h>, since readutmp.h no longer does that.
72812         * lib/readutmp.h: Don't include <errno.h>,
72813         <sys/param.h>, <time.h>; not needed to establish interface.
72814         (errno): Remove decl.
72815         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
72816         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
72817         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
72818
72819 2004-11-28  Simon Josefsson  <jas@extundo.com>
72820
72821         * lib/base64.h, base64.c: New file.
72822
72823 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72824
72825         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
72826
72827 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72828
72829         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
72830         (Depends-on): Remove pathmax, same.  Add mempcpy.
72831         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
72832         (Makefile.am): Append getcwd.h to lib_SOURCES.
72833         (Include): Add getcwd.h.
72834         (Maintainer): Change from Jim Meyering to "all, glibc",
72835         since getdate now uses intended-for-glibc code.
72836         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
72837         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
72838
72839 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72840
72841         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
72842         HP's ANSI C compiler.
72843         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
72844         Declaring int functions causes warnings on some modern systems and
72845         shouldn't be needed to compile on ancient ones.
72846         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
72847         defined.
72848
72849         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
72850         with the following changes.
72851         (__set_errno): Parenthesize properly.
72852         Include <stdbool.h>.
72853         (MIN, MAX, MATCHING_INO): New macros.
72854         (__getcwd): Define with prototype, not K&R form.
72855         Use heuristics to allocate default buffer on stack if possible.
72856         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
72857         behavior, and to avoid the PATH_MAX limit when computing
72858         ../../../../...
72859         Use MATCHING_INO to compare inode number to file.
72860         Check for arithmetic overflow in size calculations.
72861         Fix bug in reallocation of dot array that caused getcwd to fail
72862         on directories nested deeper than 75.
72863         Be more careful about saving errno on error.
72864         Do not use realloc; use only free+malloc, as this is a bit
72865         more flexible and avoids a needless copy operation.
72866         Do not inspect st_dev and st_ino for symbolic links; POSIX
72867         doesn't specify the latter.
72868         Check for closedir errors.
72869         Avoid needless casts.
72870         Use "#ifdef weak_alias" around weak_alias, to be like other
72871         glibc code.
72872         The following changes to getcwd.c have effect only when used in
72873         gnulib; they have no effect inside glibc proper.
72874         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
72875         as alloca isn't used.
72876         (alloca, __alloca): Likewise.
72877         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
72878         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
72879         unconditionally, as gnulib assumes C89 or better.
72880         Do not include <sys/param.h>.
72881         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
72882         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
72883         better.
72884         (NULL) [!defined NULL]: Remove; we assume C89 or better.
72885         Include <dirent.h> in a way that is compatible with modern Autoconf.
72886         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
72887         New macros, if not already defined.
72888         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
72889         Use "_LIBC", not "defined _LIBC", for consistency.
72890         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
72891         a mempcpy module.
72892         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
72893         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
72894         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
72895         credit only to Jim Meyering and adjust the copyright dates.
72896         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
72897         <stdlib.h>, <unistd.h>, "pathmax.h".
72898         Instead, include "xgetcwd.h" (first) and "getcwd.h".
72899         (INITIAL_BUFFER_SIZE): Remove.
72900         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
72901
72902 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72903
72904         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
72905         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
72906         Use the _ONCE methods, for efficiency.
72907         Check for fcntl.h.  In test program, include <errno.h>
72908         and <fcntl.h> if available.  Remove old K&R cruft from
72909         test program.  Check for common errors in GNU/Linux,
72910         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
72911         don't do AC_LIBOBJ, as that's getcwd.m4's job.
72912         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
72913         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
72914         name accordingly.
72915         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
72916         accommodate new getcwd.c.
72917         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
72918         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
72919         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
72920         that's all we need now.
72921
72922 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72923
72924         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
72925         argp-parse.c depends on getopt internals, that means we should
72926         always use our getopt, to be on the safe side.
72927         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
72928         order not to spoil the result of an eventual previous invocation
72929         of gl_GETOPT_SUBSTITUTE.
72930
72931 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72932
72933         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
72934         redefinition warnings. To avoid them, include the defines
72935         in `#if !defined __need_getopt ... #endif'. The only place
72936         where __getopt_argv_const is used is in definitions
72937         of getopt_long and getopt_long_only below, which are as well
72938         protected by `#ifndef __need_getopt'.
72939         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
72940         __need_getopt after including <stdio.h> and <unistd.h> These
72941         headers might have defined it.
72942
72943 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
72944
72945         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
72946
72947 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
72948
72949         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
72950         (futimens): New function, which uses futimes if available.
72951         (futimens, utimens): Support timespec==NULL, with same semantics
72952         as utime and utimens.
72953         * lib/utimens.h (futimens): New decl.
72954
72955 2004-11-23  Jim Meyering  <jim@meyering.net>
72956
72957         * lib/getopt_.h: Remove trailing blanks.
72958
72959 2004-11-23  Jim Meyering  <jim@meyering.net>
72960
72961         * lib/__fpending.c: Add comment.
72962
72963 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
72964
72965         * modules/canonicalize (Depends-on): Add xreadlink.
72966         Problem reported by James Youngman.
72967
72968 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72969
72970         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
72971         New macros.
72972         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
72973         optopt): Use them instead of invoking ## directly; otherwise, the
72974         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
72975
72976 2004-11-19  Bruno Haible  <bruno@clisp.org>
72977
72978         * lib/strtok_r.c: Move comments from here...
72979         * lib/strtok_r.h: ... to here.
72980
72981 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72982
72983         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
72984         implementations that mishandle size_t overflow.
72985
72986 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72987
72988         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
72989         might fail.  Problem reported by Yoann Vandoorselaere.
72990         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
72991         implementations that mishandle size_t overflow.
72992
72993 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72994
72995         * modules/canon-host (Depends-on): Add strdup.
72996
72997 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72998
72999         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
73000
73001 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73002
73003         * lib/canon-host.c: Include "strdup.h".
73004         (canon_host): Use getaddrinfo if available, so that IPv6 works.
73005         Use strdup instead of malloc/strcpy to duplicate strings.
73006
73007         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
73008         (human_space_before_unit): New constant.
73009         * lib/human.c (human_readable): Support it.
73010
73011         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
73012         (xgetcwd): Set errno correctly when failing.
73013         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
73014         the failure is actually due to a PATH_MAX problem.
73015
73016         Further getopt changes to make it more likely that glibc will
73017         buy the changes back.
73018         * lib/getopt.c (POSIXLY_CORRECT): New constant.
73019         (getopt): Use it, so to preserve glibc semantic
73020         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
73021         when compiling for libc.
73022         * lib/getopt_.h (__getopt_argv_const): Bring it back.
73023         (getopt_long, getopt_long_only): Use it.
73024
73025         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73026         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
73027         (getopt): Argv is now char * const *, as per standard.
73028         (_getopt_internal_r, _getopt_internal): Argv is now char **,
73029         not char *__getopt_argv_const *.
73030         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73031         _getopt_long_only_r): Likewise.
73032         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
73033         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73034         _getopt_long_r, _getopt_long_only_r): Likewise.
73035         * lib/getopt_.h (__getopt_argv_const): Remove.
73036         (getopt): Argv is now char * const *, as per standard.
73037
73038         * lib/getdate.y (tORDINAL): New token.
73039         (day, relunit): Allow it for relative times.
73040         (relative_time_table): Use tORDINAL for ordinals.
73041
73042 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73043
73044         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
73045         Document that "second" isn't allowed as an ordinal number.
73046
73047 2004-11-16  Jim Meyering  <jim@meyering.net>
73048
73049         * modules/closeout (Depends-on): Add fpending.
73050
73051 2004-11-15  Jim Meyering  <jim@meyering.net>
73052
73053         * lib/closeout.c: Include "__fpending.h" once again.
73054         Include <stdbool.h>.
73055         (close_stdout): Don't fail just because stdout was closed initially,
73056         since some programs don't write to stdout in the normal course of
73057         operation (other than --version and --help), and we don't want this
73058         function to make e.g. `touch file >&-' fail.
73059         But do fail if it was closed and someone has tried to write to it.
73060         E.g., `printf foo >&-' must fail.
73061
73062 2004-11-13  Jim Meyering  <jim@meyering.net>
73063
73064         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
73065
73066 2004-11-12  Simon Josefsson  <jas@extundo.com>
73067
73068         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
73069         small doc fix is still pending.
73070
73071 2004-11-11  Simon Josefsson  <jas@extundo.com>
73072
73073         * modules/strtok_r: New file.
73074
73075         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73076         strtok_r.
73077
73078 2004-11-11  Simon Josefsson  <jas@extundo.com>
73079
73080         * m4/strtok_r.m4: New file.
73081
73082         * m4/getopt.m4: Replace opterr.
73083
73084 2004-11-11  Simon Josefsson  <jas@extundo.com>
73085
73086         * lib/strtok_r.h, strtok_r.c: New file.
73087
73088 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73089
73090         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
73091         of replacing opterr, getopt, etc.  This should handle the
73092         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
73093
73094 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73095
73096         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
73097         we can stop lying to compilers about the constness of argv when we
73098         are compiled outside glibc.
73099         (getopt, getopt_long, getopt_long_only): Use it.
73100         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73101         _getopt_internal, getopt): Likewise.
73102         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73103         _getopt_long_only_r): Likewise.
73104         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73105         _getopt_long_r, _getopt_long_only_r): Likewise.
73106
73107         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
73108         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
73109         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
73110         the other external symbols.
73111         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
73112         declaration, since the above renaming now works around collisions.
73113
73114 2004-11-11  Jim Meyering  <jim@meyering.net>
73115
73116         * lib/linebreak.c: Remove trailing blanks.
73117         * lib/alloca_.h: Likewise.
73118         * lib/acosl.c: Likewise.
73119         * lib/euidaccess.c: Likewise.
73120         * lib/allocsa.h: Likewise.
73121
73122 2004-11-10  Simon Josefsson  <jas@extundo.com>
73123
73124         * m4/getaddrinfo.m4: New file.
73125
73126 2004-11-10  Simon Josefsson  <jas@extundo.com>
73127
73128         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
73129
73130 2004-11-10  Simon Josefsson  <jas@extundo.com>
73131
73132         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73133         getaddrinfo.
73134
73135         * modules/getaddrinfo: New file.
73136
73137 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73138
73139         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
73140
73141 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73142
73143         * lib/mktime.c (SHR): New macro, which is a portable
73144         substitute for >> that should work even on Crays.
73145         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
73146         Problem reported by Mark D. Baushke in
73147         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
73148         * lib/getdate.y (SHR): Likewise.
73149         (tm_diff): Use it.
73150         * lib/strftime.c (SHR): Likewise.
73151         (tm_diff): Use it.
73152         * lib/quotearg.c (struct quoting_options): Use unsigned int for
73153         quote_these_too, so that right shifts are well defined.  All uses
73154         changed.
73155
73156 2004-11-10  Jim Meyering  <jim@meyering.net>
73157
73158         Ensure that no close failure goes unreported.
73159         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
73160         return early when it seems there's nothing to flush.
73161         Don't include __fpending.h.
73162
73163 2004-11-10  Jim Meyering  <jim@meyering.net>
73164
73165         * modules/closeout (Depends-on): Remove fpending.
73166
73167 2004-11-10  Jim Meyering  <jim@meyering.net>
73168
73169         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
73170
73171 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73172
73173         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
73174         gl_FUNC_STRFTIME.
73175         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
73176         and AC_REQUIRE when possible, to avoid duplicate checks.
73177         Check for <wchar.h>.
73178
73179 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73180
73181         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
73182
73183 2004-11-09  Bruno Haible  <bruno@clisp.org>
73184
73185         * m4/sockpfaf.m4: New file.
73186
73187 2004-11-05  Bruno Haible  <bruno@clisp.org>
73188
73189         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
73190         Reported by Mark D. Baushke <mdb@cvshome.org>.
73191
73192 2004-11-04  Bruno Haible  <bruno@clisp.org>
73193
73194         2004-09-11  Bruno Haible  <bruno@clisp.org>
73195                 * allocsa.valgrind: New file.
73196         2004-02-06  Bruno Haible  <bruno@clisp.org>
73197                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
73198                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
73199                 Reported by Christopher Seip <chris.seip@hp.com>.
73200
73201 2004-11-04  Bruno Haible  <bruno@clisp.org>
73202
73203         * modules/allocsa (Files): Add lib/allocsa.valgrind.
73204         (Makefile.am): Distribute it.
73205
73206 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73207
73208         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
73209         with errno == ERANGE if the buffer is too small.
73210         Problem reported by Mark D. Baushke.
73211
73212 2004-11-03  Albert Chin  <china@thewrittenword.com>
73213             Paul Eggert  <eggert@cs.ucla.edu>
73214
73215         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
73216         equivalent, substitute $ac_type for equivalent type rather than
73217         blindly using uint32_t *always* which won't work if uint32_t is not
73218         available.  Define _UINT32_T to work around typedef of uint32_t if
73219         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
73220         2.5.1.
73221
73222 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73223
73224         * m4/jm-macros.m4: Sync from coreutils.
73225         (gl_MACROS): Check for mbrlen, for pathchk.
73226         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
73227
73228 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73229
73230         * lib/xreadlink.c (MAXSIZE): New macro.
73231         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
73232         size does not exceed MAXSIZE.  Avoid cast.
73233         As suggested by Mark D. Baushke in
73234         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
73235         if readlink fails with buffer size just under MAXSIZE, try again
73236         with MAXSIZE.
73237
73238 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73239
73240         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
73241
73242 2004-11-02  Derek R. Price  <derek@ximbiot.com>
73243         and  Paul Eggert  <eggert@cs.ucla.edu>
73244
73245         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
73246         (get_date): Overparenthesize to avoid GCC warning.
73247
73248 2004-11-02  Bruno Haible  <bruno@clisp.org>
73249
73250         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
73251         returns void.
73252
73253 2004-11-02  Bruno Haible  <bruno@clisp.org>
73254
73255         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
73256         function returns void.
73257
73258 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73259
73260         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
73261         fflush_unlocked, flockfile, funlockfile, funlockfile,
73262         fputs_unlocked, putc_unlocked.
73263
73264 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73265
73266         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73267         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
73268         already declared.
73269
73270 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73271
73272         * modules/getdate (Files): Add doc/getdate.texi.
73273         (Depends-on): Add setenv, xalloc.
73274
73275 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73276
73277         * lib/getdate.y: Add support for TZ="foo" within a date string.
73278         Fix some bugs near time_t boundaries.  Reject dates with
73279         out-of-range components, e.g., "Sept 31".
73280         Include <stdlib.h>, "setenv.h", "xalloc.h".
73281         (ISDIGIT_LOCALE): Remove; unused.
73282         Note that the TZ and time functions used here are not reentrant.
73283         (mktime_ok, get_tz): New functions.
73284         (TZBUFSIZE): New constant.
73285         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
73286         This requires that we sometimes generate our own TZ="XXX..." setting.
73287
73288 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73289
73290         * doc/getdate.texi: New file, from coreutils with modifications for
73291         the new TZ parsing.
73292
73293 2004-10-27  Derek R. Price  <derek@ximbiot.com>
73294
73295         * lib/mktime.c (not_equal_tm): Remove redundant check.
73296
73297 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73298
73299         * modules/regex (lib_SOURCES): Add regex.c.
73300         Reported by James Youngman in
73301         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
73302
73303 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73304
73305         * lib/getdate.y: Use Bison 1.875 features, and some minor
73306         code cleanups.  This change does not affect semantics.
73307         Don't include <stdlib.h>; no longer needed.
73308         Don't include unlocked-io.h; only the "#if TEST" code uses
73309         stdio, and performance isn't crucial there.
73310         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
73311         Bison 1.875 features as described below.
73312         All uses of "PC." replaced by "pc->".
73313         (YYSTYPE): Add a forward declaration.
73314         (yylex, yyerror): Use full prototypes in forward decls.
73315         Use "%pure-parser" rather than obsolescent "%pure_parser".
73316         Use %parse-param and %lex-param instead of obsolescent
73317         YYPARSE_PARAM and YYLEX_PARAM.
73318         (meridian_table, month_and_day_table, time_units_table,
73319         relative_time_table, time_zone_table, military_table,
73320         lookup_zone, lookup_word, get_date):
73321         Use NULL instead of 0 where appropriate.
73322         (to_hour): Avoid abort (), to avoid a dependency on
73323         stdlib.h.
73324         (yyerror, yylex): Now accepts parser_control * arg.
73325         (main) [TEST]: Use '\0' rather than 0 for char.
73326
73327 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73328
73329         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
73330
73331 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73332
73333         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
73334         It's now the caller's responsibility to handle the case where
73335         !HAVE_GETPAGESIZE && !defined getpagesize.
73336
73337         * lib/mktime.c (leapyear): Arg is long int, not int.
73338
73339 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
73340
73341         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
73342
73343 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73344
73345         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
73346         missing.  Problem reported by James Youngman.
73347
73348 2004-10-16  Simon Josefsson  <jas@extundo.com>
73349
73350         * gnulib-tool: Fix comments.  Fix parse problem.
73351         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
73352
73353 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
73354
73355         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
73356         implementation of getopt_long.  Problem reported by Alexander Taler in:
73357         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
73358
73359 2004-10-15  Bruno Haible  <bruno@clisp.org>
73360
73361         * gnulib-tool: Untabify. Initialize supplied_libname.
73362         (func_usage): More homogenous output.
73363         (func_modules_transitive_closure, func_modules_to_filelist,
73364         func_emit_lib_Makefile_am): New functions.
73365         (func_import): New function, extracted from big case statement. Use
73366         func_get_license, func_modules_transitive_closure,
73367         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
73368         opt_lgpl. Don't use test -a, as it's not portable.
73369         (func_create_testdir): Use func_modules_transitive_closure,
73370         func_modules_to_filelist, func_emit_lib_Makefile_am.
73371
73372 2004-10-15  Bruno Haible  <bruno@clisp.org>
73373
73374         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
73375
73376 2004-10-15  Bruno Haible  <bruno@clisp.org>
73377
73378         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
73379         the portions belonging to each module.
73380         Suggested by Derek Robert Price <derek@ximbiot.com>.
73381
73382 2004-10-12  Simon Josefsson  <jas@extundo.com>
73383
73384         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73385         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
73386         to real functions.
73387
73388 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73389
73390         * modules/vsnprintf: New file.
73391
73392 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73393
73394         * m4/vsnprintf.m4: New file.
73395
73396 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73397
73398         * lib/vsnprintf.h: New file.
73399         * lib/vsnprintf.c: New file.
73400
73401 2004-10-11  Bruno Haible  <bruno@clisp.org>
73402
73403         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
73404         vsnprintf.
73405
73406 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73407
73408         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
73409
73410 2004-10-07  Bruno Haible  <bruno@clisp.org>
73411
73412         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
73413         fits into the provided buffer.
73414
73415 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73416
73417         * lib/diacrit.c, diacrit.h: Add GPL notice.
73418
73419         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
73420         notice.
73421         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
73422         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
73423         This avoids a potential constant-folding bug.
73424
73425 2004-10-05  Bruno Haible  <bruno@clisp.org>
73426
73427         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
73428         for the declaration of strsep.
73429
73430 2004-10-05  Bruno Haible  <bruno@clisp.org>
73431
73432         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
73433
73434 2004-10-04  Simon Josefsson  <jas@extundo.com>
73435
73436         * modules/memmem: New file.
73437         * tests/test-memmem.c: New file.
73438         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
73439
73440 2004-10-04  Simon Josefsson  <jas@extundo.com>
73441
73442         * m4/memmem.m4: New file.
73443
73444 2004-10-04  Simon Josefsson  <jas@extundo.com>
73445
73446         * lib/memmem.h: New file.
73447         * lib/memmem.c: New file, taken from glibc.
73448
73449 2004-10-04  Simon Josefsson  <jas@extundo.com>
73450
73451         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
73452         '#ifdef USE_UNLOCKED_IO'.
73453
73454 2004-10-04  Simon Josefsson  <jas@extundo.com>
73455
73456         * config/srclist.txt: Add memmem from glibc.
73457
73458 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73459
73460         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
73461
73462         * modules/argmatch, modules/argp, modules/closeout, modules/error,
73463         modules/exclude, modules/getdate, modules/getline,
73464         modules/getndelim2, modules/getpass, modules/getpass-gnu,
73465         modules/getusershell, modules/linebuffer, modules/md5,
73466         modules/mountlist, modules/posixtm, modules/readtokens,
73467         modules/readutmp, modules/regex, modules/sha1,
73468         modules/version-etc, modules/yesno:
73469         Remove dependency on unlocked-io.
73470
73471 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73472
73473         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
73474
73475         * m4/unlocked-io.m4: Add copyright notice.
73476         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
73477
73478 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73479
73480         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
73481         * lib/xmalloc.c (xmemdup): Likewise.
73482         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
73483         XFREE): Remove these long-obsolescent macros.
73484         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
73485         * lib/xstrdup.c: Remove.
73486
73487         * lib/regex.c (re_comp): Cast gettext return value to char *,
73488         Problem reported by Martin Neitzel via Mark D. Baushke.
73489
73490 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73491
73492         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
73493         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
73494         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
73495         regex.c, sha1.c, version-etc.c, yesno.c:
73496         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
73497         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
73498         the includer's responsibility.
73499
73500         Sync from coreutils.
73501
73502         * lib/modechange.c (mode_compile): Don't decrement a pointer that
73503         points to the start of a string, as the C Standard says the
73504         resulting behavior is undefined.
73505
73506         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
73507         simple -> simple_backups, numbered_existing ->
73508         numbered_existing_backups, numbered -> numbered_backups
73509         to avoid shadowing problems.  All uses changed.
73510         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
73511         * lib/backupfile.c (check_extension, numbered_backup):
73512         Rename locals to avoid shadowing 'basename'.
73513         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
73514         once.
73515
73516         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
73517         * lib/.cvsignore: Add getopt.h.
73518
73519 2004-10-04  Bruno Haible  <bruno@clisp.org>
73520
73521         * modules/README: New file.
73522         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
73523         not a module.
73524
73525 2004-10-02  Jim Meyering  <jim@meyering.net>
73526
73527         * lib/dirfd.h, getpagesize.h: Add copyright notice.
73528
73529 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73530
73531         * modules/strsep: New file.
73532
73533 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73534
73535         * m4/strsep.m4: New file.
73536
73537 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73538
73539         * lib/strsep.h: New file.
73540         * lib/strsep.c: New file.
73541
73542 2004-10-01  Simon Josefsson  <jas@extundo.com>
73543
73544         * lib/snprintf.c (snprintf): Handle size==0.
73545
73546 2004-10-01  Simon Josefsson  <jas@extundo.com>
73547             Bruno Haible  <bruno@clisp.org>
73548
73549         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
73550         (snprintf): Declare 'args'.
73551
73552 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
73553
73554         * lib/snprintf.c: Remove comments as to why each header is needed.
73555
73556 2004-10-01  Bruno Haible  <bruno@clisp.org>
73557
73558         * MODULES.html.sh: Add strsep.
73559
73560 2004-09-30  Simon Josefsson  <jas@extundo.com>
73561
73562         * modules/snprintf: New file.
73563
73564 2004-09-30  Simon Josefsson  <jas@extundo.com>
73565
73566         * m4/snprintf.m4: New file.
73567
73568 2004-09-30  Simon Josefsson  <jas@extundo.com>
73569
73570         * lib/snprintf.h, lib/snprintf.c: New files.
73571
73572 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73573
73574         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
73575         (hol_entry_help): Never translate an empty string.
73576         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
73577         * lib/argp.h (OPTION_NO_TRANS): New option.
73578
73579 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73580
73581         * modules/argp (Maintainer): Replace Simon Josefsson
73582         by Sergey Poznyakoff.
73583
73584 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73585
73586         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
73587         changes merged back into glibc.
73588
73589 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73590
73591         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
73592
73593 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
73594
73595         * lib/xvasprintf.c: Include xalloc.h.
73596         (xvasprintf): Use xalloc_die, not xmalloc_die.
73597
73598 2004-09-29  Bruno Haible  <bruno@clisp.org>
73599
73600         * modules/alloca-opt: New file, derived from modules/alloca.
73601         * modules/allocsa: Depend on alloca-opt instead of alloca.
73602         * modules/setenv: Likewise.
73603         * modules/vasnprintf: Likewise.
73604         * MODULES.html.sh: Add alloca-opt.
73605
73606 2004-09-28  Simon Josefsson  <jas@extundo.com>
73607
73608         * gnulib-tool: New parameter --lgpl, to asseert that modules are
73609         LGPL, and to replace license template from GPL to LGPL.
73610
73611 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73612
73613         * modules/dummy: Change license to LGPL.
73614
73615 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73616
73617         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
73618
73619 2004-09-24  Simon Josefsson  <jas@extundo.com>
73620
73621         * modules/minmax (License): Change from GPL to LGPL.
73622
73623 2004-09-23  Simon Josefsson  <jas@extundo.com>
73624
73625         * gnulib-tool (--import): Typo.
73626
73627 2004-09-23  Simon Josefsson  <jas@extundo.com>
73628
73629         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
73630
73631 2004-09-22  Bruno Haible  <bruno@clisp.org>
73632
73633         * modules/*: Add 'License' field.
73634         * gnulib-tool: Accept --extract-license option.
73635         (func_get_license): New function.
73636
73637 2004-09-21  Bruno Haible  <bruno@clisp.org>
73638
73639         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
73640         Reported by Simon Josefsson.
73641
73642 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73643
73644         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
73645         gl_AC_TYPE_LONG_LONG.
73646
73647 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73648
73649         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
73650
73651 2004-09-18  Simon Josefsson  <jas@extundo.com>
73652         and  Paul Eggert  <eggert@cs.ucla.edu>
73653
73654         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
73655         calls with autoreconf.  Define GL_LIB.
73656
73657 2004-09-14  Karl Berry  <karl@gnu.org>
73658
73659         * config/srclist.txt: unsync setenv.c, sigh.
73660
73661 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73662
73663         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
73664         Problem reported by Bruno Haible in:
73665         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
73666
73667 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73668
73669         * config/srclist.txt: Comment out argp-pvh.c.
73670
73671 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
73672
73673         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
73674         in case some system header has #define'd it.  Problem reported by
73675         Soeren D. Schulze in
73676         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
73677
73678 2004-09-09  Karl Berry  <karl@gnu.org>
73679
73680         * regex.[ch]: delete from the root.  These were supposed to be
73681                 synced with emacs cvs, but this has not happened for about
73682                 a year, and anyway nothing else uses emacs regex.[ch].
73683                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
73684                 lib/regex[.ch] is untouched.
73685
73686 2004-09-09  Bruno Haible  <bruno@clisp.org>
73687
73688         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
73689
73690 2004-09-09  Bruno Haible  <bruno@clisp.org>
73691
73692         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
73693         modifications.
73694         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
73695
73696 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73697
73698         * modules/xvasprintf: New file.
73699         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
73700
73701 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73702
73703         * lib/xvasprintf.h: New file.
73704         * lib/xvasprintf.c: New file.
73705         * lib/xasprintf.c: New file.
73706
73707 2004-09-08  Bruno Haible  <bruno@clisp.org>
73708
73709         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
73710
73711 2004-09-08  Bruno Haible  <bruno@clisp.org>
73712
73713         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
73714         length is > INT_MAX.
73715         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
73716         more.
73717
73718 2004-09-08  Bruno Haible  <bruno@clisp.org>
73719
73720         * lib/stdint_.h: New file, taken from GNU clisp.
73721
73722 2004-09-08  Bruno Haible  <bruno@clisp.org>
73723             Oskar Liljeblad  <oskar@osk.mine.nu>
73724
73725         * modules/stdint: New file.
73726         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
73727
73728 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73729
73730         Import from coreutils.
73731         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
73732         strings on unbounded length.  alloca's performance benefits aren't
73733         that important here.
73734         (V_STRDUP): Remove.
73735         (parse_with_separator): New function, with most of the internals
73736         of the old parse_user_spec.  Allow user to omit both user and group,
73737         for compatibility with FreeBSD.
73738         Clone only the user name, not the entire spec.
73739         Do not set *uid, *gid unless entirely successful.
73740         Avoid memory leak in some failing cases.
73741         Fix regression for USER.GROUP reported by Dmitry V. Levin in
73742         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
73743         (parse_user_spec): Rewrite to use parse_with_separator.
73744
73745 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73746
73747         * modules/userspec: Don't depend on alloca.
73748
73749 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73750
73751         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
73752
73753 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73754
73755         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
73756         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
73757         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
73758
73759 2004-08-16  Simon Josefsson  <jas@extundo.com>
73760
73761         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
73762         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
73763         Add --dry-run for --import.
73764         Let user provided command line parameters override configure.ac
73765         settings.
73766
73767 2004-08-12  Simon Josefsson  <jas@extundo.com>
73768
73769         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
73770         as discussed with Paul Eggert in threads rooted at
73771         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
73772         and
73773         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
73774         Before, the test was empty, and relied on ELIDE_CODE in source
73775         code.)
73776         (gl_PREREQ_GETOPT): New macro.
73777         (gl_GETOPT): Use them.
73778
73779 2004-08-12  Simon Josefsson  <jas@extundo.com>
73780
73781         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
73782         * lib/getopt_.h: Renamed from getopt.h.
73783
73784 2004-08-12  Simon Josefsson  <jas@extundo.com>
73785
73786         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
73787         Change default library name from libfoo to libgnu.
73788         Now, if you have a configure.ac that says:
73789                 gl_SOURCE_BASE(gl)
73790                 gl_M4_BASE(gl/m4)
73791                 gl_MODULES(error getopt etcetera)
73792                 gl_INIT
73793         you can import all you need by running:
73794                 ../gnulib/gnulib-tool --import
73795
73796         * modules/getopt (Files): Rename getopt.h to getopt_.h.
73797         (Makefile.am): Rewrite, use logic from argz.
73798         (Include): Use <getopt.h> instead of "getopt.h".
73799
73800 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73801
73802         * modules/argp (Files): Add m4/unlocked-io.m4.
73803         (Depends-on): Add extensions.
73804
73805 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73806
73807         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
73808         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
73809         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
73810         Check for program_invocation_name, program_invocation_short_name,
73811         flockfile, funlockfile, features.h, _getopt_long_only_r.
73812
73813 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73814
73815         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
73816         its complicated substitute.
73817         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
73818         and program_invocation_name.
73819         (__argp_basename) [!_LIBC]: Remove; the only use was
73820         replaced by its body.
73821         (__argp_short_program_name): Change condition from
73822         !defined __argp_short_program_name to
73823         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
73824         to match argp-namefrob.h.
73825         (__argp_failure): Don't assume strerror_r returns char *.
73826         * lib/argp-parse.c (N_): Define unconditionally.
73827         (argp_default_options): Fill out initializers with 0 to avoid
73828         gcc warnings.
73829
73830 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73831
73832         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
73833         getopt1.c.
73834
73835 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73836
73837         Merge from coreutils.
73838
73839         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
73840
73841         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
73842         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
73843
73844 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73845
73846         Merge from coreutils.
73847
73848         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
73849         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
73850         for Reliant Unix 5.43.
73851
73852         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
73853         (union fooround): Use uintmax_t, not long int.
73854         The rest is a merge from libc:
73855         [defined _LIBC]: Include <shlib-compat.h>.
73856         (_obstack) [defined _LIBC]: Remove after 2.3.4.
73857
73858         * lib/settime.c (settime): Recode to avoid warning with
73859         Sun Forte C 6U2.
73860
73861         * lib/strverscmp.c: Convert to UTF-8.
73862
73863 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73864
73865         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
73866         m4/uintmax_t.m4.
73867
73868 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73869
73870         * modules/xalloc-die: New file.
73871         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
73872
73873         * modules/md5 (Files): Add m4/uint32_t.m4.
73874         * modules/sha1: Renamed from modules/sha.
73875         (Files):
73876         Rename lib/sha.h to lib/sha1.h.
73877         Rename lib/sha.c to lib/sha1.c.
73878         Rename m4/sha.m4 to m4/sha1.m4.
73879         (lib_SOURCES): Likewise.
73880         (configure.ac): Rename gl_SHA to gl_SHA1.
73881         (Include): sha.h -> sha1.h.
73882
73883 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73884
73885         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
73886         * m4/sha1.m4: Renamed from sha.m4.
73887         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
73888
73889 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73890
73891         * lib/obstack.h (obstack_empty_p):
73892         Don't assume that chunk->contents is suitably aligned.
73893         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
73894         Likewise. Problem reported by Benno in
73895         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
73896
73897         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
73898         readable.  This could be improved further but it'd take some work.
73899
73900 2004-08-08  Simon Josefsson  <jas@extundo.com>
73901
73902         * modules/xgethostname (Depends-on): Remove exit and error (not
73903         used).
73904
73905         * modules/getpass-gnu: Add getpass.h.
73906         (Depends-on): Add stdbool.
73907         * modules/getpass: Add getpass.h.
73908
73909 2004-08-08  Simon Josefsson  <jas@extundo.com>
73910
73911         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
73912         Check getpass declaration.
73913
73914 2004-08-08  Simon Josefsson  <jas@extundo.com>
73915
73916         * lib/xgethostname.c: Don't include error.h (not used).
73917
73918         * lib/getpass.h: Add.
73919         * lib/getpass.c: Include getpass.h first.
73920
73921 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
73922
73923         * lib/xalloc-die.c: New file.
73924         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
73925         All uses removed.
73926         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
73927         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
73928         xalloc-die.c.
73929         (_, N_, xalloc_die): Move to xalloc-die.c.
73930         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
73931         so that we needn't mess with xalloc_msg_memory_exhausted.
73932
73933         * lib/sha1.h: Renamed from sha.h.
73934         (SHA1_H): Renamed from _SHA_H.
73935         (sha1_ctx): Renamed from sha_ctx.
73936         (sha1_init_ctx): Renamed from sha_init_ctx.
73937         (sha1_process_block): Renamed from sha_process_block.
73938         (sha1_process_bytes): Renamed from sha_process_bytes.
73939         (sha1_finish_ctx): Renamed from sha_finish_ctx.
73940         (sha1_read_ctx): Renamed from sha_read_ctx.
73941         (sha1_stream): Renamed from sha_stream.
73942         (sha1_buffer): Renamed from sha_buffer.
73943         * lib/sha1.c: Likewise; renamed from sha.c.
73944         Do not include <sys/types.h>.
73945         Include <stddef.h> rather than <stdlib.h>.
73946
73947 2004-08-08  Bruno Haible  <bruno@clisp.org>
73948
73949         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
73950         FILESYSTEM_PREFIX_LEN.
73951         * lib/progreloc.c: Likewise.
73952         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
73953
73954 2004-08-06  Simon Josefsson  <jas@extundo.com>
73955
73956         * modules/progname (Depends-on): Don't depend on stdbool.
73957
73958 2004-08-06  Simon Josefsson  <jas@extundo.com>
73959
73960         * modules/getsubopt: New file.
73961         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73962         getsubopt.
73963
73964 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73965
73966         More merge from coreutils.
73967
73968         * m4/utimens.m4, m4/utimecmp.m4: New files.
73969         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
73970         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
73971         prereq.m4, sha.m4: Import changes from coreutils.
73972
73973 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73974
73975         More merge from coreutils.
73976         * modules/raise, modules/readtokens0, modules/utimens:
73977         * modules/utimecmp, module/xnanosleep: New files.
73978         * modules/strftime: Add lib/strftime.h.
73979         Change include from <time.h> to "strftime.h".
73980         * modules/yesno: Add lib/yesno.h.
73981         * modules/backupfile: Remove lib/addext.c.
73982         * modules/euidaccess: Add stat-macros.h.
73983         * modules/canonicalize, modules/euidaccess,
73984         modules/filemode, modules/lchown, modules/makepath,
73985         modules/rmdir, modules/stat: Likewise.
73986
73987 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73988
73989         Merge from tar.
73990         * lib/argp-help.c (make_hol, hol_append): Don't assume that
73991         SIZE_MAX is a valid preprocessor constant.
73992         (__argp_basename): Change from "#ifndef _LIBC"
73993         to "#ifndef __argp_short_program_name", so that
73994         we don't compile these functions for tar.
73995
73996         More merges from coreutils.
73997         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
73998         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
73999         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
74000         * lib/addext.c: Remove; no longer needed.
74001         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
74002         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
74003         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
74004         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
74005         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
74006         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
74007         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
74008         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
74009         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
74010         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74011         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
74012         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
74013         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
74014         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
74015         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
74016         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
74017         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
74018         Import changes from coreutils.
74019
74020 2004-08-05  Simon Josefsson  <jas@extundo.com>
74021
74022         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
74023
74024 2004-08-05  Simon Josefsson  <jas@extundo.com>
74025
74026         * m4/getsubopt.m4: New file.
74027
74028 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74029
74030         Merge from coreutils.
74031
74032         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
74033         * m4/getcwd-path-max.m4: New files.
74034
74035         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
74036         FILESYSTEM_PREFIX_LEN ->
74037         FILE_SYSTEM_PREFIX_LEN.
74038         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
74039         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
74040         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
74041         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
74042
74043         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
74044         prerequisite modules now handle the DOS stuff.
74045         Don't check for unistd.h.
74046
74047 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74048
74049         Merge from coreutils.
74050
74051         * lib/.gdb-history: Remove; this doesn't belong here.
74052
74053         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
74054         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
74055         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
74056         * lib/getcwd.c: New files.
74057
74058         * lib/dirname.h: Include <stdbool.h>.
74059         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
74060         for consistency with POSIX terminology.  All uses changed.
74061         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
74062         (strip_trailing_slashes): Use bool for booleans.
74063         * lib/stripslash.c (strip_trailing_slashes): Likewise.
74064
74065         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
74066         sometimes returns a positive errno value even when it succeeds.
74067         (print_errno_message) [!LIBC]: Fall back on strerror if
74068         __strerror_r fails.
74069
74070         * lib/path-concat.c (mempcpy): Don't define if a system header defines
74071         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
74072         (longest_relative_suffix): New function.
74073         (path_concat): Use it.  Assume first argument is not NULL.
74074         Port to DOS.  Omit redundant separators.
74075         Report an error instead of returning NULL.
74076         Use mempcpy instead of memcpy.
74077         (xpath_concat): Remove: not declared or used.
74078
74079         * lib/same.h: Include <stdbool.h>
74080         (same_name): Return bool, not int.
74081         * lib/same.c (same_name): Likewise.
74082         (errno): Don't declare; we assume C89 or better now.
74083
74084         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
74085         if not already defined.
74086
74087         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
74088         * lib/dup-safer.c (errno): Likewise.
74089
74090 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74091
74092         Merge from coreutils.
74093         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
74094         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
74095         * modules/path-concat: Don't depend on strdup.
74096
74097 2004-08-03  Simon Josefsson  <jas@extundo.com>
74098
74099         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
74100         * lib/progname.h: Don't include stdbool.h.
74101
74102 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74103
74104         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
74105         * MODULES.html.sh (func_all_modules): Remove fatal.
74106
74107 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74108
74109         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
74110
74111 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74112
74113         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
74114         working.
74115
74116 2004-08-02  Simon Josefsson  <jas@extundo.com>
74117
74118         * lib/getsubopt.h: New file, with comments from Bruno Haible.
74119         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
74120         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
74121
74122 2004-08-01  Simon Josefsson  <jas@extundo.com>
74123
74124         * lib/xgetdomainname.c: Include stdlib.h, for free().
74125
74126 2004-07-19  Bruno Haible  <bruno@clisp.org>
74127
74128         * MODULES.html.sh (func_all_modules): Add dummy.
74129
74130 2004-07-16  Simon Josefsson  <jas@extundo.com>
74131
74132         * modules/dummy: New file.
74133
74134 2004-07-16  Simon Josefsson  <jas@extundo.com>
74135
74136         * lib/dummy.c: New file.
74137
74138 2004-07-16  Bruno Haible  <bruno@clisp.org>
74139
74140         * lib/backupfile.h: Add extern "C" for C++.
74141         * lib/closeout.h: Likewise.
74142         * lib/copy-file.h: Likewise.
74143         * lib/findprog.h: Likewise.
74144         * lib/full-write.h: Likewise.
74145         * lib/pathname.h: Likewise.
74146         * lib/progname.h: Likewise.
74147         * lib/stpcpy.h: Likewise.
74148         * lib/stpncpy.h: Likewise.
74149         * lib/strcase.h: Likewise.
74150         * lib/strstr.h: Likewise.
74151         * lib/xalloc.h: Likewise.
74152
74153         * lib/mbswidth.h: Add extern "C" for C++.
74154         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
74155
74156 2004-07-13  Robert Millan  <robertmh@gnu.org>
74157
74158         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
74159
74160 2004-07-09  Simon Josefsson  <jas@extundo.com>
74161
74162         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
74163         failed without this.)
74164
74165 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74166
74167         * modules/chown (Files): Add lib/fchown-stub.c, since
74168         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
74169
74170 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74171
74172         * lib/fchown-stub.c: New file.
74173
74174 2004-06-24  Jim Meyering  <jim@meyering.net>
74175
74176         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
74177
74178 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74179
74180         * modules/argz: Omit "#include".
74181
74182         * MODULES.html.sh (func_all_modules): Add calloc, to match
74183         2004-06-01 addition of calloc module.
74184
74185 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74186
74187         * m4/argz.m4: New file, which is autoupdated from libtool.
74188
74189 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74190
74191         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
74192         libtool.
74193
74194 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74195
74196         * config/srclist-update: Don't insist on "USA." before the
74197         close-comment, as libtool omits the period and puts the */ on a
74198         separate line.
74199         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
74200         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
74201
74202 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
74203
74204         * modules/argz: New file.
74205         * MODULES.html.sh (func_all_modules): Add argz.
74206
74207 2004-06-12  Jim Meyering  <jim@meyering.net>
74208         and  Paul Eggert  <eggert@cs.ucla.edu>
74209
74210         * modules/hash (Files): Add lib/xalloc.h.
74211         * modules/pipe (Depends-on): Add wait-process.
74212         * modules/stat (Depends-on): Add xalloc.
74213         * modules/userspec (Files): Add lib/userspec.h.
74214         * modules/xstrto
74215
74216         Upgrade from gettext-0.13.
74217         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
74218         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
74219         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
74220
74221 2004-06-10  Jim Meyering  <jim@meyering.net>
74222
74223         * lib/calloc.c: New file.
74224
74225 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
74226
74227         * lib/getdate.y (yylex): Allow space between sign and number.
74228         Problem reported by Dan Jacobson.
74229
74230 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74231
74232         Merge from coreutils CVS.
74233
74234         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
74235         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
74236         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
74237         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
74238         xstrtol.m4: Fix copyright date and/or serial number.
74239
74240         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
74241         See if we need an fchown replacement.
74242         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
74243         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
74244         and use the replacement function if we detect either defect.
74245
74246         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
74247         gl_UTIMECMP.
74248
74249 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74250         and  Jim Meyering  <jim@meyering.net>
74251
74252         Merge from coreutils CVS.
74253
74254         * lib/stat-macros.h: New file, with contents from file-type.h
74255         and coreutils' system.h.
74256         * lib/file-type.c: Include "stat-macros.h".
74257         * lib/file-type.h (file_type): Move all macro definitions to new file,
74258         stat-macros.h.
74259
74260         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
74261         Wrap old code with this conditional.
74262         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
74263         function that does not dereference symlinks.
74264         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
74265
74266         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
74267         dependency problems.
74268         (xreadlink): Accept new arg SIZE, for efficiency.
74269         All decls and uses changed.
74270         * lib/xreadlink.h: Include <stddef.h>, for size_t.
74271
74272         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
74273         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
74274
74275         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
74276         sysexits.h.
74277
74278 2004-06-01  Jim Meyering  <jim@meyering.net>
74279
74280         * m4/calloc.m4: New file.
74281
74282 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
74283
74284         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
74285         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
74286         Also, fix a typo in a diagnostic.
74287
74288 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74289
74290         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
74291         or AC_FUNC_REALLOC.
74292
74293 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74294
74295         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
74296         macros to be defined.
74297         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
74298         the allocator returns NULL because the requested size is zero.
74299
74300 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74301
74302         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
74303         var.  Add comment explaining why libc still defines it.  This
74304         merges the following patch from glibc:
74305         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
74306
74307 2004-05-20  Andreas Schwab  <schwab@suse.de>
74308
74309         * m4/free.m4: Replace free if it not known to work, not the other
74310         way round.
74311
74312 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74313
74314         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
74315         present in glibc since revision 1.1 of this file.
74316         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
74317         obstack_alignment_mask, obstack_alloc, obstack_base,
74318         obstack_blank, obstack_blank_fast, obstack_chunk_size,
74319         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
74320         obstack_grow0, obstack_init, obstack_int_grow,
74321         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
74322         obstack_next_free, obstack_object_size, obstack_ptr_grow,
74323         obstack_ptr_grow_fast, obstack_room): Remove declarations of
74324         nonexistent functions.
74325
74326 2004-05-18  Karl Berry  <karl@gnu.org>
74327
74328         * config/srclist.txt: break link for vasnprintf.c.
74329
74330 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74331
74332         Port obstack to the AS/400, where pointers are 16 bytes wide and
74333         you cannot cast an integer to a valid pointer.  This patch is
74334         currently waiting to be integrated into glibc; see
74335         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
74336
74337         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
74338         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
74339         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
74340         (struct obstack): temp member is now a union of a pointer and
74341         an integer, instead of an integer.  All integer uses changed.
74342         This does not affect the physical layout of struct obstack,
74343         except on hosts (like the AS/400) where the size or alignment of
74344         void * is greater than that of ptrdiff_t.
74345         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
74346         __STDC__)]: Store temporary in pointer member of union, not
74347         integer member.
74348         * lib/obstack.c: Include <stddef.h>, for offsetof.
74349         (struct fooalign): Remove; it doesn't need a name.
74350         (union fooround): Change double to long double, and add void *.
74351         (DEFAULT_ALIGNMENT): Use offsetof to compute.
74352         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
74353         not a macro.  Hence the values are always int; so remove all
74354         casts-to-int in uses.
74355
74356 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74357
74358         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
74359         we can get this patch merged into glibc.
74360
74361 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74362             Paul Eggert  <eggert@cs.ucla.edu>
74363
74364         * m4/argp: Depend on alloca.
74365
74366 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74367             Paul Eggert  <eggert@cs.ucla.edu>
74368
74369         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
74370         freecoding.
74371
74372 2004-05-17  Bruno Haible  <bruno@clisp.org>
74373
74374         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
74375         precision that consists of a '.' followed by an empty digit string.
74376         Patch by Tor Lillqvist <tml@iki.fi>.
74377
74378 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74379
74380         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
74381         for backward compatibility with older code.  We need our own
74382         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
74383         it under some other name, and our alloca.h will define it.
74384
74385 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74386             Derek Price  <derek@ximbiot.com>
74387
74388         * lib/alloca.c: Include <alloca.h>, to get our interface.
74389         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
74390         include <alloca.h> first.  Use C89 prototype for alloca; this
74391         requires including <stddef.h> for size_t.  Use extern "C" if C++.
74392         Use #elif for simplicity, since we can assume C89 now.
74393         Don't try to source the system alloca.h since it will not be found
74394         and to prevent recursively including its replacement.
74395         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
74396         * lib/regex.c: Likewise.
74397
74398 2004-05-16  Derek Price  <derek@ximbiot.com>
74399             Paul Eggert  <eggert@cs.ucla.edu>
74400
74401         getline cleanup.  This changes the getndelim2 API: both order of
74402         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
74403         no delimiter).
74404
74405         * lib/getline.c: Don't include stddef.h or stdio.h, since our
74406         interface does that.
74407         (getline): Always use getdelim, so that we don't have two
74408         copies of this code.
74409         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
74410         if available.
74411         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
74412         (GETNDELIM2_MAXIMUM): New macro.
74413         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
74414         instead of the old practice of delim2==0.  All callers changed.
74415         Return -1 on overflow, instead of returning junk.
74416         Do not set *linesize unless allocation succeeds.
74417         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
74418         that we include sys/types.h.
74419         * lib/getnline.h: Likewise.
74420         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
74421         (getndelim2): Reorder arguments.
74422         * lib/getnline.c (getnline, getndelim):
74423         Don't discard the NMAX argument.
74424         (getnline): Invoke getndelim, to avoid code duplication.
74425         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
74426         of (size_t) -1 by callers of the getnline family.
74427
74428 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74429
74430         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
74431         Check for gettimeofday.
74432         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
74433         Check for settimeofday, stime.
74434
74435 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74436
74437         * lib/nanosleep.c (suspended): Change its type from int to
74438         sig_atomic_t volatile.
74439         (first_call): Make it private to rpl_nanosleep, and have it
74440         be zero initially as that's a bit faster.
74441         (my_usleep): Round up fractional times instead of truncating them,
74442         as this is the usual meaning for 'sleep'.
74443
74444         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
74445         doesn't work.
74446         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
74447         (ENOSYS): Define if not defined.
74448         (settime): Fall back on stime if it exists and settimeofday fails.
74449         But don't bother with fallbacks if a method fails with errno == EPERM.
74450
74451 2004-05-11  Jim Meyering  <jim@meyering.net>
74452
74453         Prior to this change, the save_cwd caller required read access to the
74454         current directory on most systems (ones with the fchdir function).
74455
74456         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
74457         fails, try write-only, and finally, resort to using xgetcwd.
74458
74459 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74460
74461         * lib/obstack.c, obstack.h: Import changes from libc.
74462
74463 2004-04-28  Bruno Haible  <bruno@clisp.org>
74464
74465         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
74466         also implicitly appends .exe to executables.
74467         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
74468         accepts Windows pathnames.
74469         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74470         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74471         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74472         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74473         Reported by Derek Robert Price <derek@ximbiot.com>.
74474
74475 2004-04-21  Karl Berry  <karl@gnu.org>
74476
74477         * config/srclist.txt (localcharset.c): break sync.
74478
74479 2004-04-20  Paul Eggert  <eggert@twinsun.com>
74480
74481         * m4/host-os.m4: Add a copyright notice.
74482
74483 2004-04-20  Jim Meyering  <jim@meyering.net>
74484
74485         Change UTILS_ to gl_ in AC_DEFINE'd names.
74486         Change utils_- and jm_-prefixed variables, too.
74487         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
74488         UTILS_FUNC_MKDIR_TRAILING_SLASH.
74489         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
74490
74491         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
74492         Don't emit trailing blanks.
74493         Also rename jm_-prefixed variables to have gl_ prefix.
74494
74495         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
74496         Also rename jm_-prefixed variables to have gl_ prefix.
74497
74498         * m4/jm-macros.m4: Reflect the renamings.
74499         * m4/prereq.m4: Likewise.
74500
74501 2004-04-20  Jim Meyering  <jim@meyering.net>
74502
74503         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
74504         memory.
74505
74506 2004-04-20  Jim Meyering  <jim@meyering.net>
74507             Bruno Haible  <bruno@clisp.org>
74508
74509         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
74510         memory when realloc fails.
74511
74512 2004-04-19  Jim Meyering  <jim@meyering.net>
74513
74514         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
74515         now that readutmp.c may call `free (0)'.
74516
74517 2004-04-19  Bruno Haible  <bruno@clisp.org>
74518
74519         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
74520         * m4/inttypes_h.m4: Likewise.
74521         * m4/stdint_h.m4: Likewise.
74522         * m4/intmax_t.m4: Likewise.
74523         * m4/uintmax_t.m4: Likewise.
74524
74525 2004-04-18  Jim Meyering  <jim@meyering.net>
74526
74527         * m4/prereq.m4: Don't forbid jm_ prefix.
74528
74529         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
74530         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
74531         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
74532         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
74533         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
74534         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
74535         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
74536         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
74537         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
74538         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
74539         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
74540         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
74541         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
74542         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
74543         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
74544         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
74545         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
74546         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
74547         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
74548
74549 2004-04-18  Jim Meyering  <jim@meyering.net>
74550
74551         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
74552         failure, don't leak memory and do call END_UTMP_ENT.
74553
74554 2004-04-16  Jim Meyering  <jim@meyering.net>
74555
74556         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
74557         coreutils' stat program.
74558         (gl_PREREQ): Don't require jm_PREREQ_STAT.
74559
74560 2004-04-11  Paul Eggert  <eggert@twinsun.com>
74561
74562         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
74563         C89.
74564         (CHAR_BIT): Remove, since we assume C89.
74565         Include <stdint.h> if available, as per current Autoconf CVS advice.
74566
74567 2004-03-31  Jim Meyering  <jim@meyering.net>
74568
74569         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
74570         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
74571         * m4/xalloc.m4: Likewise.
74572
74573 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74574
74575         Merge from coreutils.
74576
74577         * m4/inttostr.m4: New file.
74578         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
74579         Require AM_STDBOOL_H and gl_TIMESPEC instead.
74580         Require gl_CLOCK_TIME.
74581         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
74582
74583 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74584
74585         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
74586         not bool, to be more consistent with Unix conventions.
74587         Suggested by Bruno Haible.
74588
74589         Merge from coreutils.
74590
74591         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
74592         * lib/umaxtostr.c: New files.
74593
74594         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
74595         the usual <time.h> dance.
74596         (get_date): Change signature to support fractional time stamps.
74597         All callers changed.
74598         * lib/getdate.y: Include "getdate.h" first, as we can now
74599         assume C89 and don't need to worry about 'const'.
74600         Similarly, include "unlocked-io.h" near start, not in middle.
74601         Include <limits.h>.
74602         (textint.value): Use long int rather than int.
74603         (textint.digits): Use size_t rather than int.
74604         (BILLION, LOG10_BILLION): New constants.
74605         (parser_control): New member rel_ns.  Members day_ordinal,
74606         time_zone, month, day, hour, minutes, rel_year, rel_month,
74607         rel_day, rel_hour, rel_minutes, rel_seconds
74608         are now long int, not int.  Member seconds is now struct timespec,
74609         not int.  New member timespec_seen.  Members dates_seen, days_seen,
74610         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
74611         not int.
74612         (%union.intval): Now long int, not int.
74613         New member timespec.
74614         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
74615         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
74616         (spec): Now is a timespec or an item list.
74617         (timespec, items): New nonterminals.
74618         (time, rel, relunit, number, get_date):
74619         Add support for fractional seconds.
74620         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
74621         (gmtime, localtime, mktime): Remove decls; not needed with C89.
74622         (to_hour): First arg is now long int, not int.
74623         (to_year): Returns long int, not int.
74624         Don't treat year -70 like 70.
74625         (tm_diff): Returns long int, not int.
74626         (lookup_word): Use bool instead of int when appropriate.
74627         (yylex): Use size_t for count, not int.
74628         Detect overflow when parsing large integer constants.
74629         Add support for fractions.
74630         (get_date): Make pointers 'const' if possible.
74631         Use more-portable code to detect integer overflow.
74632         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
74633         Don't use ctime; it's not reliable if the year has >4 digits.
74634
74635         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
74636         This is for compatibility with BSD.
74637
74638         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
74639         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
74640         From coreutils' system.h.
74641
74642         * lib/userspec.c: Don't include "posixver.h".
74643         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
74644         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
74645         compatible extension.  Simplify code by removing a boolean int
74646         that was always nonzero if a string was nonnull.
74647
74648 2004-03-30  Jim Meyering  <jim@meyering.net>
74649
74650         Merge from coreutils.
74651
74652         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
74653         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
74654         on some systems one must include <grp.h> before it.
74655         Reported by Christian Krackowizer.
74656
74657 2004-03-30  Jim Meyering  <jim@meyering.net>
74658
74659         Merge from coreutils.
74660
74661         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
74662
74663         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
74664         an empty input stream.
74665
74666         * lib/readtokens.c: Include <stdbool.h>.
74667         (readtoken): Use `size_t' rather than int/long.
74668         All callers adjusted.
74669         Use `bool' rather than `int' where appropriate.
74670         Use memset rather than an explicit loop.
74671         Use x2nrealloc rather than xrealloc.
74672         Allow the use of `\0' as a delimiter.
74673         (readtokens): Likewise.
74674         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
74675
74676 2004-03-30  Jim Meyering  <jim@meyering.net>
74677
74678         * m4/realloc.m4: Remove file, since now it does no more than
74679         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
74680         the `configure.ac' section of module/realloc.
74681         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
74682
74683 2004-03-30  Bruno Haible  <bruno@clisp.org>
74684
74685         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
74686         nonnull.
74687
74688 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74689
74690         Merge changes to getloadavg.c from coreutils and Emacs.
74691
74692         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
74693         Define to an expression, not to the empty string.
74694         Include cloexec.h and xalloc.h.
74695         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
74696         Use set_cloexec_flag rather than rolling our own.
74697         * lib/cloexec.c, lib/cloexec.h: New files.
74698
74699 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74700
74701         * m4/cloexec.m4: New file.
74702
74703 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74704
74705         * lib/getopt.h: Sync with libc CVS.
74706
74707 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74708             Bruno Haible  <bruno@clisp.org>
74709
74710         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
74711         mbswidth.
74712
74713 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74714             Bruno Haible  <bruno@clisp.org>
74715
74716         * lib/mbswidth.h: Include <wchar.h> only if
74717         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
74718         <wchar.h>.
74719         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
74720
74721 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74722
74723         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
74724         Sync with libc CVS.
74725         * lib/getopt_int.h: New file, also synced from libc.
74726
74727 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74728
74729         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
74730         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
74731         Bring back getopt.c, getopt.h, getopt1.c.
74732
74733 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74734
74735         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
74736         All uses changed.  Check for sa_sigaction member; this fixes
74737         a bug first reported by Jason Andrade in
74738         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74739
74740 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74741
74742         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
74743         '#if' expressions.  Unlike the code it replaces, it does not
74744         depend on (defined _SC_PAGESIZE).  However, it does depend on
74745         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
74746         first reported by Jason Andrade in
74747         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74748
74749 2004-02-25  Simon Josefsson  <jas@extundo.com>
74750
74751         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
74752
74753 2004-02-25  Simon Josefsson  <jas@extundo.com>
74754
74755         * lib/strdup.h: New file.
74756         * lib/strdup.c: Include it.
74757         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
74758         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
74759
74760 2004-02-23  Karl Berry  <karl@gnu.org>
74761
74762         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
74763         (from fencepost.gnu.org:/gd/gnuorg).
74764
74765 2004-02-23  Karl Berry  <karl@gnu.org>
74766
74767         * config/srclistvars.sh (GNUORG) [karl]: redefine.
74768         * config/srclist.txt: add maintain/standards documents.
74769
74770 2004-02-18  Bruno Haible  <bruno@clisp.org>
74771
74772         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
74773         Reported by Derek Robert Price <derek@ximbiot.com>.
74774
74775 2004-02-16  Karl Berry  <karl@gnu.org>
74776
74777         * config/mkinstalldirs, install-sh: update from automake.
74778
74779 2004-02-06  Karl Berry  <karl@gnu.org>
74780
74781         * m4/po.m4: update from gettext 0.14.1.
74782
74783 2004-02-06  Karl Berry  <karl@gnu.org>
74784
74785         * lib/config.charset: update from gettext 0.14.1.
74786
74787 2004-02-05  Paul Eggert  <eggert@twinsun.com>
74788
74789         Add comments and code, prompted by suggestions from Bruno Haible
74790         for sh-quote.
74791         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
74792         describing the enum quoting_style values.
74793         * lib/quotearg.c (quotearg_alloc): New function.
74794         (quotearg_buffer_restyled): Treat lone { and } as special.
74795         Treat = as special.  Work around bug with older shells
74796         that "see" a '\' that is really the 2nd byte of a multibyte char.
74797         Quote empty string with shell_quoting_style.
74798
74799 2004-02-03  Bruno Haible  <bruno@clisp.org>
74800
74801         * m4/pipe.m4: New file, from GNU gettext.
74802
74803 2004-02-03  Bruno Haible  <bruno@clisp.org>
74804
74805         * lib/pipe.h: New file, from GNU gettext.
74806         * lib/pipe.c: New file, from GNU gettext.
74807
74808 2004-01-27  Bruno Haible  <bruno@clisp.org>
74809
74810         * m4/execute.m4: New file, from GNU gettext.
74811
74812 2004-01-27  Bruno Haible  <bruno@clisp.org>
74813
74814         * lib/execute.h: New file, from GNU gettext.
74815         * lib/execute.c: New file, from GNU gettext.
74816         * lib/w32spawn.h: New file, from GNU gettext.
74817
74818 2004-01-24  Paul Eggert  <eggert@twinsun.com>
74819
74820         Merge from diffutils.
74821
74822         * lib/file-type.c (file_type): Add typed memory objects.
74823         * lib/file-type.h (S_TYPEISTMO): New macro.
74824
74825         * lib/c-stack.h (c_stack_action): Remove argv argument.
74826         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
74827         (die): Don't calculate message unless segv_action returns.
74828         (get_stack_location, min_address_from_argv, max_address_from_argv,
74829         volatile stack_base, volatile_stack_size): Remove.
74830         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
74831         that every segmentation violation is a stack overflow.  (Ouch!)
74832         See Debian bug 136249 (still outstanding) for more info about why
74833         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
74834
74835 2004-01-24  Paul Eggert  <eggert@twinsun.com>
74836
74837         Exit-status fix from coreutils.
74838
74839         Use exit_failure consistently in place of EXIT_FAILURE,
74840         so that program exit statuses are consistent on failure.
74841
74842         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
74843         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
74844         * lib/argmatch.h: Comment fix to match the above.
74845         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
74846         Now a macro referring to exit_failure, instead of a separate
74847         variable.  Include "exitfail.h" to get it.
74848         * lib/xstrtol.h: Include "exitfail.h".
74849         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
74850
74851         * lib/long-options.c (parse_long_options): Use prototype
74852         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
74853         for clarity.
74854
74855 2004-01-21  Jim Meyering  <jim@meyering.net>
74856
74857         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
74858         so as not to conflict with a different-sized __mktime_internal
74859         function in GNU libc.
74860         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
74861         Problem building statically-linked `ls' reported by Michael Brunnbauer.
74862
74863 2004-01-20  Karl Berry  <karl@gnu.org>
74864
74865         * config/config.guess: update from config.
74866
74867         * config/srclistvars.sh: GNUWWWLICENSES for karl.
74868
74869 2004-01-20  Bruno Haible  <bruno@clisp.org>
74870
74871         Safer stack allocation.
74872         * lib/setenv.c: Include allocsa.h.
74873         (alloca): Remove fallback definition.
74874         (freea): Remove macro.
74875         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
74876         instead of freea.
74877
74878 2004-01-20  Bruno Haible  <bruno@clisp.org>
74879
74880         * m4/eealloc.m4: New file, from GNU gettext.
74881
74882 2004-01-20  Bruno Haible  <bruno@clisp.org>
74883
74884         * m4/allocsa.m4: New file, from GNU gettext.
74885
74886 2004-01-20  Bruno Haible  <bruno@clisp.org>
74887
74888         * lib/xallocsa.h: New file, from GNU gettext.
74889         * lib/xallocsa.c: New file, from GNU gettext.
74890
74891 2004-01-20  Bruno Haible  <bruno@clisp.org>
74892
74893         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
74894
74895 2004-01-20  Bruno Haible  <bruno@clisp.org>
74896
74897         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
74898         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
74899         specially.
74900
74901 2004-01-20  Bruno Haible  <bruno@clisp.org>
74902
74903         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
74904         patch.
74905
74906 2004-01-20  Bruno Haible  <bruno@clisp.org>
74907
74908         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
74909
74910 2004-01-20  Bruno Haible  <bruno@clisp.org>
74911
74912         * lib/eealloc.h: New file.
74913
74914 2004-01-20  Bruno Haible  <bruno@clisp.org>
74915
74916         * lib/binary-io.h: Avoid warnings on Cygwin.
74917
74918 2004-01-20  Bruno Haible  <bruno@clisp.org>
74919
74920         * lib/allocsa.h: New file, from GNU gettext.
74921         * lib/allocsa.c: New file, from GNU gettext.
74922
74923 2004-01-18  Karl Berry  <karl@gnu.org>
74924
74925         * doc/gpl.texi, doc/lgpl.texi: new files.
74926
74927 2004-01-18  Karl Berry  <karl@gnu.org>
74928
74929         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
74930         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
74931
74932 2004-01-15  Paul Eggert  <eggert@twinsun.com>
74933
74934         Merge from coreutils.
74935
74936         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
74937         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
74938         (gl_DEFAULT_POSIX2_VERSION): Move
74939         the documentation from 'configure' into 'config.hin',
74940         so that 'configure --help' isn't burdened by it and
74941         we don't have to worry about its formatting there.
74942         Reword the documentation so that it's more succinct
74943         and can be run together into a single paragraph.
74944         * m4/same.m4 (gl_SAME): Check for pathconf.
74945
74946 2004-01-15  Paul Eggert  <eggert@twinsun.com>
74947
74948         Merge from coreutils.
74949
74950         * lib/posixver.c: Include posixver.h.
74951
74952         * lib/same.c: Include <stdbool.h>, <limits.h>.
74953         (_POSIX_NAME_MAX): Define if not defined.
74954         (MIN): New macro.
74955         (same_name): If file names are silently truncated, report
74956         that the file names are the same if they are the same after
74957         the silent truncation.
74958
74959         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
74960         conversion function.
74961         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
74962         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
74963         longer needed.
74964
74965 2004-01-15  Jim Meyering  <jim@meyering.net>
74966
74967         Merge from coreutils.
74968
74969         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
74970         if no library is required.
74971         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
74972         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
74973         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
74974         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
74975         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
74976         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
74977         value, $ac_cv_search_crypt, if it's "none required".
74978         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
74979         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
74980         not gl_FUNC_GETLOADAVG.
74981         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
74982         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
74983
74984 2004-01-15  Jim Meyering  <jim@meyering.net>
74985
74986         Merge from coreutils.
74987
74988         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
74989         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
74990         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
74991
74992         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
74993         optional configure-time default.
74994
74995         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74996
74997         * lib/xreadlink.c (xreadlink): Correct outdated comment.
74998
74999 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
75000
75001         Merge from coreutils.
75002
75003         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
75004         value, $ac_cv_search_nanosleep, if it's "none required".
75005
75006 2004-01-14  Paul Eggert  <eggert@twinsun.com>
75007
75008         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
75009         with like-named macro in fnmatch.c.
75010         (EXT): Use an internal constant instead.
75011
75012         Merge fnmatch patches from glibc.
75013         * lib/fnmatch.c (mbsinit): Remove define.
75014         Add libc_hidden_ver (__fnmatch, fnmatch).
75015         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
75016         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
75017
75018 2004-01-14  Karl Berry  <karl@gnu.org>
75019
75020         * config/install-sh: update from automake.
75021
75022 2004-01-13  Karl Berry  <karl@gnu.org>
75023
75024         * config/install-sh: update from automake.
75025
75026 2004-01-09  Karl Berry  <karl@gnu.org>
75027
75028         * config/install-sh: update from automake.
75029
75030 2004-01-05  Karl Berry  <karl@gnu.org>
75031
75032         * config/config.{sub,guess}: update from config.
75033
75034 2003-12-31  Karl Berry  <karl@gnu.org>
75035
75036         * config/depcomp: update from automake.
75037
75038 2003-12-14  Karl Berry  <karl@gnu.org>
75039
75040         * lib/config.charset: update from gettext-runtime.
75041
75042 2003-12-03  Paul Eggert  <eggert@twinsun.com>
75043
75044         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
75045         Bug reported by Alfred M. Szmidt.
75046
75047 2003-12-03  Bruno Haible  <bruno@clisp.org>
75048
75049         * m4/gettext.m4: Upgrade from gettext-0.13.
75050         * m4/po.m4: Upgrade from gettext-0.13.
75051         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
75052         * m4/intmax.m4: New file, from gettext-0.13.
75053         * m4/printf-posix.m4: New file, from gettext-0.13.
75054
75055 2003-11-29  Karl Berry  <karl@gnu.org>
75056
75057         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
75058
75059 2003-11-25  Paul Eggert  <eggert@twinsun.com>
75060             Bruno Haible  <bruno@clisp.org>
75061
75062         * lib/printf-parse.h: Don't include sys/types.h.
75063         (ARG_NONE): New macro.
75064         (char_directive): Change type of *arg_index fields to size_t.
75065         * lib/printf-parse.c: Don't include sys/types.h.
75066         (SSIZE_MAX): Remove macro.
75067         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
75068         Remove unnecessary overflow check.
75069         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
75070         fields.
75071
75072 2003-11-25  Bruno Haible  <bruno@clisp.org>
75073
75074         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
75075
75076 2003-11-25  Bruno Haible  <bruno@clisp.org>
75077
75078         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
75079         gt_TYPE_SSIZE_T.
75080
75081 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75082
75083         * modules/alloca: Remove dependency on xalloc.
75084
75085 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75086
75087         * lib/alloca.c: Remove dependency on xalloc module.
75088         (xalloc_die): Remove.
75089         (memory_full) [!defined emacs]: New macro.
75090         [!defined emacs]: Don't include xalloc.h.
75091         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
75092         address arithmetic overflows.  Change datatypes a bit to avoid
75093         unnecessary casts.
75094
75095 2003-11-22  Jim Meyering  <jim@meyering.net>
75096
75097         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
75098         s/size/size_t/.
75099
75100 2003-11-21  Karl Berry  <karl@gnu.org>
75101
75102         * config/config.{sub,guess}: update from config.
75103
75104 2003-11-18  Karl Berry  <karl@gnu.org>
75105
75106         * config/config.{sub,guess}: update from config.
75107
75108         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
75109
75110 2003-11-17  Paul Eggert  <eggert@twinsun.com>
75111
75112         * README: Mention that S+T cannot overflow if S is the size of
75113         an existing object and T is sufficiently small.
75114
75115 2003-11-17  Jim Meyering  <jim@meyering.net>
75116
75117         On systems without utime and without a utimes function capable of
75118         dealing with a NULL struct utimbuf* argument, this utime replacement
75119         could -- in unusual circumstances -- leak a file descriptor.
75120         * lib/utime.c: Include <unistd.h> and <errno.h>.
75121         (utime_null): Be sure to close `fd' and to preserve errno.
75122         Reported by Geoff Collyer via Arnold Robbins.
75123
75124 2003-11-17  Bruno Haible  <bruno@clisp.org>
75125
75126         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
75127         (Depends-on): Add xsize.
75128
75129 2003-11-17  Bruno Haible  <bruno@clisp.org>
75130
75131         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
75132
75133 2003-11-17  Bruno Haible  <bruno@clisp.org>
75134
75135         * lib/vasnprintf.c (alloca): Remove fallback definition.
75136         (freea): Remove definition.
75137         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
75138         Reported by Paul Eggert.
75139
75140 2003-11-16  Paul Eggert  <eggert@twinsun.com>
75141             Bruno Haible  <bruno@clisp.org>
75142
75143         Protect against address arithmetic overflow.
75144         * lib/printf-args.h: Include stddef.h.
75145         (arguments): Change type of field 'count' to size_t.
75146         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
75147         'unsigned int' where appropriate.
75148         * lib/printf-parse.h: Include sys/types.h.
75149         (char_directive): Change type of *arg_index fields to ssize_t.
75150         (char_directives): Change type of fields 'count', max_*_length to
75151         size_t.
75152         * lib/printf-parse.c: Include sys/types.h and xsize.h.
75153         (SSIZE_MAX): Define fallback value.
75154         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
75155         instead of 'int' where appropriate. Check a_allocated, d_allocated
75156         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
75157         * lib/vasnprintf.c: Include xsize.h.
75158         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
75159         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
75160         overflow. Avoid wraparound when converting a width or precision from
75161         decimal to binary.
75162
75163 2003-11-16  Bruno Haible  <bruno@clisp.org>
75164
75165         Update from GNU gettext.
75166         * lib/printf-parse.c: Generalize to it can be compiled for wide
75167         strings.
75168         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
75169         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
75170         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
75171         SNPRINTF): New macros.
75172         Don't include <alloca.h> if the file is used inside libintl.
75173         (local_wcslen): New function, for Solaris 2.5.1.
75174         (VASNPRINTF): Use it instead of wcslen.
75175
75176 2003-11-16  Bruno Haible  <bruno@clisp.org>
75177
75178         * lib/xsize.h (xmax): New function.
75179         (xsum, xsum3, xsum4): Declare as "pure" functions.
75180
75181 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75182
75183         * modules/xalloc (Files): Undo latest change, since xalloc.h
75184         no longer needs SIZE_MAX or PTRDIFF_MAX.
75185
75186 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75187
75188         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
75189         gl_PTRDIFF_MAX.
75190
75191 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75192
75193         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
75194         "return", to pacify some unknown compiler.  Problem reported
75195         by Joerg Schilling.
75196
75197 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75198
75199         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
75200         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
75201         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
75202         heuristic is just as accurate as far as we know, and it removes a
75203         dependency on size_max.m4 and ptrdiff_max.m4.
75204
75205 2003-11-11  Bruno Haible  <bruno@clisp.org>
75206
75207         * modules/xsize (Files): Add m4/size_max.m4.
75208         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
75209
75210 2003-11-11  Bruno Haible  <bruno@clisp.org>
75211
75212         * m4/size_max.m4: New file.
75213         * m4/ptrdiff_max.m4: New file.
75214         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
75215         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
75216         (gl_XALLOC): Invoke it.
75217
75218 2003-11-11  Bruno Haible  <bruno@clisp.org>
75219
75220         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
75221         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
75222         defined.
75223
75224 2003-11-10  Paul Eggert  <eggert@twinsun.com>
75225
75226         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
75227         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
75228         rejected some allocations of exactly SIZE_MAX - 2 bytes.
75229         From Bruno Haible.
75230         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
75231         not (size_t) -1, since it's defined here.
75232
75233 2003-11-09  Karl Berry  <karl@gnu.org>
75234
75235         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
75236
75237 2003-11-06  Paul Eggert  <eggert@twinsun.com>
75238
75239         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
75240         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
75241         Reject sizes of exactly SIZE_MAX bytes.
75242         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
75243         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
75244
75245 2003-11-05  Bruno Haible  <bruno@clisp.org>
75246
75247         * lib/xsize.h: Include limits.h, to avoid a possible collision with
75248         SIZE_MAX defined in <limits.h> on Solaris.
75249
75250 2003-11-04  Jim Meyering  <jim@meyering.net>
75251
75252         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
75253         variable names, rather than @VAR@.
75254         * modules/poll: Likewise.
75255
75256 2003-11-04  Bruno Haible  <bruno@clisp.org>
75257
75258         * modules/xsize: New file.
75259         * modules/linebreak: Depend on xsize.
75260         * MODULES.html.sh (func_all_modules): Add xsize.
75261
75262 2003-11-04  Bruno Haible  <bruno@clisp.org>
75263
75264         * m4/xsize.m4: New file.
75265
75266 2003-11-04  Bruno Haible  <bruno@clisp.org>
75267
75268         * lib/xsize.h: New file.
75269         * lib/linebreak.c: Include xsize.h.
75270         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
75271         argument for overflow.
75272         Suggested by Paul Eggert.
75273
75274 2003-11-03  Karl Berry  <karl@gnu.org>
75275
75276         * config/config.{guess,sub}: update from config.
75277
75278 2003-11-03  Jim Meyering  <jim@meyering.net>
75279
75280         * modules/userspec (lib_SOURCES): Add userspec.h.
75281         (Include): Add "userspec.h".
75282         Improve description.
75283
75284 2003-11-03  Jim Meyering  <jim@meyering.net>
75285
75286         * lib/userspec.c: Include "userspec.h".
75287         * lib/userspec.h: New file.
75288
75289 2003-11-03  Bruno Haible  <bruno@clisp.org>
75290
75291         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
75292
75293 2003-11-03  Bruno Haible  <bruno@clisp.org>
75294
75295         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
75296         available, to avoid (extremely rare) race condition.
75297         Suggested by Paul Eggert.
75298
75299 2003-11-02  Karl Berry  <karl@gnu.org>
75300
75301         * config/srclist.txt (vasprintf.c): sync broken, sigh.
75302
75303 2003-10-31  Paul Eggert  <eggert@twinsun.com>
75304
75305         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
75306         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
75307         (read_filesystem_list): Set and use me_type_malloced.
75308         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
75309         whatever the type happens to be), for brevity and consistency.
75310         Check for size calculation overflow on Alphas running OSF/1.
75311
75312 2003-10-31  Jim Meyering  <jim@meyering.net>
75313
75314         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
75315
75316         * lib/linebuffer.c: Include <string.h> for declaration of memset.
75317
75318 2003-10-30  Paul Eggert  <eggert@twinsun.com>
75319             Bruno Haible  <bruno@clisp.org>
75320
75321         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
75322         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
75323
75324 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75325
75326         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
75327         netbsd*-gnu*.  Suggested by Robert Millan.
75328
75329 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75330
75331         * modules/group-member: Depend on stdbool.
75332
75333 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75334
75335         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
75336
75337 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75338
75339         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
75340         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
75341         after the 'gnu' in these cases.  This fixes some bugs in the
75342         previous change, and is based on suggestions by Robert Millan.
75343
75344 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75345
75346         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
75347         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
75348         no longer needed.
75349         * lib/quotearg.c (quotearg_n_options): Use it.
75350         * lib/group-member.c: Include <stdbool.h>.
75351         (free_group_info): Arg is now const *; don't free arg.
75352         (get_group_info): Now returns bool and accepts struct group_info *,
75353         rather than returning a malloc'ed struct group_info *.
75354         All uses changed.  Check for overflow in internal size calculation.
75355
75356         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
75357         rather than xmalloc/xrealloc.
75358         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
75359         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
75360         conformance bug: the old code used a pointer after freeing the
75361         storage that it addressed.
75362         * lib/hash.c (hash_initialize): Simplify the code by using
75363         xalloc_oversized rather than doing it by hand.
75364         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
75365         the buffer preserved.  Use free and xmalloc instead.
75366         * lib/quotearg.c (quotearg_n_options): Likewise.
75367         Use a simpler test for size overflow.  Don't use xalloc_oversized
75368         because unsigned int might be wider than size_t (!); this suggests
75369         that we should switch from unsigned int to size_t for slot numbers.
75370
75371 2003-10-28  Paul Eggert  <eggert@twinsun.com>
75372
75373         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
75374         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
75375         NetBSD kernels.  Requested by Richard Stallman.
75376
75377 2003-10-27  Paul Eggert  <eggert@twinsun.com>
75378
75379         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
75380         to allocate the returned structure.  Do not allocate a subarray,
75381         as x2nrealloc will do that.
75382         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
75383         instead of xnrealloc.
75384         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
75385
75386 2003-10-27  Bruno Haible  <bruno@clisp.org>
75387
75388         * lib/stdbool_.h: Better support for BeOS.
75389
75390 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75391
75392         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
75393         now uses inline.
75394
75395 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75396
75397         * lib/xalloc.h (xalloc_oversized): New static inline function, for
75398         callers that want to do their own size-overflow checking.  Include
75399         <stdbool.h>, since xalloc_oversized returns bool.
75400         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
75401         to use xalloc_oversized.
75402
75403         Add two functions x2realloc, x2nrealloc, for programs that grow
75404         arrays dynamically by doubling their sizes.
75405         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
75406         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
75407         New functions.
75408
75409         Port to C99 semantics for 'inline' of external functions.
75410         Bug reported by Bruno Haible.
75411         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
75412         with the old contents of xnmalloc.
75413         (xnmalloc, xmalloc): Use it.
75414         (xnrealloc_inline): New static inline function,
75415         with the old contents of xnrealloc.
75416         (xnrealloc, xrealloc): Use it.
75417
75418         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
75419         that.
75420
75421 2003-10-26  Karl Berry  <karl@gnu.org>
75422
75423         * config/srclist.txt (COPYING.DOC): no longer available from
75424         /gd/gnuorg; don't know where the ultimate source is.
75425
75426 2003-10-25  Paul Eggert  <eggert@twinsun.com>
75427
75428         Fix several address-calculation bugs in the hash modules,
75429         plus some minor code cleanup.
75430
75431         * lib/hash.h: Include <stdbool.h>, for bool.
75432         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
75433         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
75434         hash_get_n_entries, hash_get_max_bucket_length,
75435         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
75436         hash_rehash): Use size_t rather than unsigned.
75437         * lib/hash.c (struct hash_table, hash_get_n_buckets,
75438         hash_get_n_buckets_used, hash_get_n_entries,
75439         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
75440         hash_get_entries, hash_do_for_each, hash_string, is_prime,
75441         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
75442         Likewise.
75443         (SIZE_MAX): Define if not defined.
75444         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
75445         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
75446         hash_print):
75447         Use const * when possible.
75448         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
75449         (check_tuning): Fix bug: if tuning parameters were very close to
75450         0 or 1, rounding errors could have caused subscript violations.
75451         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
75452         (hash_initialize): Add 'fail:' label
75453         to free table and return NULL, and use it to simplify code.
75454         Use calloc rather than clearing the storage ourself.
75455         (hash_initialize, hash_rehash): Check for arithmetic overflow in
75456         buffer size calculations.
75457         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
75458         Include <stddef.h>, for size_t.
75459         * lib/hash-pjw.c (hash_pjw): Likewise.
75460         Switch to method described by Bruno Haible.
75461         Include <limits.h>, for CHAR_BIT.
75462         (SIZE_BITS): New macro.
75463
75464 2003-10-23  Paul Eggert  <eggert@twinsun.com>
75465
75466         * m4/getline.m4 (AM_FUNC_GETLINE):
75467         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
75468         hosts.  Problem reported by Derek Robert Price in
75469         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
75470         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
75471         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
75472
75473 2003-10-21  Paul Eggert  <eggert@twinsun.com>
75474
75475         * lib/getndelim2.c (getndelim2): When size calculation overflows,
75476         ceiling the allocation at NMAX bytes rather than silently
75477         discarding input bytes before NMAX is reached.  This makes
75478         a difference only if NMAX exceeds SIZE_MAX / 2.
75479
75480         * lib/obstack.c: Merge from glibc.
75481         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
75482         Add libc_hidden_def (_obstack_newchunk).
75483         (_obstack_free) [! defined _LIBC]: Remove.
75484         [defined _LIBC]: Make a strong alias from obstack_free, rather than
75485         a clone of the function body.
75486         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
75487         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
75488
75489         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
75490         glibc.
75491         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
75492         arg to memcpy.
75493
75494         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
75495         (obstack_ptr_grow_fast, obstack_int_grow_fast):
75496         Don't use lvalue casts, as GCC plans to remove support for them
75497         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
75498         was also present in the non-GCC version, indicating that this
75499         code had always been buggy and had never been widely used.
75500         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
75501         Use the fast variant of each macro, rather than copying the
75502         definiens of the fast variant; that way, we'll be more likely to
75503         catch future bugs in the fast variants.
75504
75505 2003-10-20  Bruno Haible  <bruno@clisp.org>
75506
75507         * modules/wait-process: New file.
75508         * MODULES.html.sh (func_all_modules): Add wait-process.
75509
75510 2003-10-20  Bruno Haible  <bruno@clisp.org>
75511
75512         * m4/wait-process.m4: New file.
75513
75514 2003-10-20  Bruno Haible  <bruno@clisp.org>
75515
75516         * lib/wait-process.h: New file, from GNU gettext.
75517         * lib/wait-process.c: New file, from GNU gettext.
75518
75519 2003-10-19  Jim Meyering  <jim@meyering.net>
75520
75521         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
75522         HPUX 10.20.
75523
75524 2003-10-18  Karl Berry  <karl@gnu.org>
75525
75526         * config/config.guess: update from config.
75527
75528 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75529
75530         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
75531         (getgroups): First arg is int, not size_t.
75532         Don't let 'free' mangle errno.
75533
75534 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75535
75536         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
75537
75538 2003-10-16  Karl Berry  <karl@gnu.org>
75539
75540         * config/config.{guess,sub}: update from config.
75541
75542 2003-10-16  Jim Meyering  <jim@meyering.net>
75543
75544         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
75545         memcpy.
75546
75547 2003-10-15  Paul Eggert  <eggert@twinsun.com>
75548
75549         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
75550         (SIZE_MAX): Remove.
75551         (new_exclude, add_exclude_file): Initial size no longer needs to
75552         be a power of 2.
75553         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
75554         our own address arithmetic overflow checking.
75555
75556         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
75557         (fnmatch): Do not alloca more than 2000 wide characters;
75558         instead, use malloc for large buffers.
75559         Check for address arithmetic overflow, and return -1
75560         with errno set to ENOMEM in that case.
75561         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
75562         (NEW_PATTERN): Do not alloca more than 8000 bytes;
75563         instead, return -1.  Check for address arithmetic overflow.
75564
75565 2003-10-14  Paul Eggert  <eggert@twinsun.com>
75566
75567         Handle invalid suffixes and overflow independently, so that
75568         callers can treat them independently as needed.  Fix some bugs in
75569         suffix handling, e.g., "100k@" was not diagnosed as an invalid
75570         suffix for a human-readable blocksize.  The major caller-visible
75571         change is the addition of a new
75572         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
75573         that both overflow and suffix chars were found.
75574
75575         * lib/human.c (humblock): Don't check separately for invalid suffix
75576         char; that is xstrtoumax's job (now that its bug is fixed).
75577         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
75578         INTMAX_MAX]: New macros.
75579         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
75580         TYPE_MAXIMUM): New macros.
75581         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
75582         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
75583         if overflow occurs, as it's what __strtol does and it's more useful
75584         in practice.
75585         (__xstrtol): If __strtol reports some error other than ERANGE,
75586         reflect it to the caller as LONGINT_INVALID.  If it reports
75587         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
75588         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
75589         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
75590         value.
75591         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
75592         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
75593         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
75594         [defined UINTMAX_MAX]: New macros.
75595
75596 2003-10-14  Bruno Haible  <bruno@clisp.org>
75597
75598         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
75599
75600 2003-10-14  Bruno Haible  <bruno@clisp.org>
75601
75602         * m4/sig_atomic_t: New file, from GNU gettext.
75603         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
75604
75605 2003-10-14  Bruno Haible  <bruno@clisp.org>
75606
75607         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
75608         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
75609         Also use volatile where needed.
75610
75611 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75612
75613         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
75614         Change maintainer from Bruno Haible to 'all'.
75615
75616 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75617
75618         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
75619
75620 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75621
75622         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
75623         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
75624         and define in terms of the other primitives.
75625         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
75626         (SIZE_MAX): Define if not already defined.
75627         (array_size_overflow): New function.
75628         (xalloc_die): Abort instead of exiting if 'error' returns.
75629         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
75630         (xmalloc, xrealloc): Use them.
75631         (xcalloc): Check for address arithmetic overflow.
75632         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
75633         a bit faster than strcpy.
75634
75635 2003-10-10  Simon Josefsson  <jas@extundo.com>
75636
75637         * modules/argp (Depends-on): Add restrict and strcase.
75638
75639 2003-10-10  Simon Josefsson  <jas@extundo.com>
75640
75641         * m4/argp.m4: Add AC_C_INLINE.
75642
75643 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75644
75645         Merge getpass from libc, plus a few fixes.
75646
75647         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
75648         Include <stdbool.h>.
75649         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
75650         __fsetlocking to empty.
75651         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
75652         do include <bits/libc-lock.h>.
75653         Do not include <fcntl.h>; not needed.
75654         [_LIBC]: Include <wchar.h>.
75655         (NOTCANCEL_MODE): New macro.
75656         (flockfile, funlockfile) [_LIBC]: New macros.
75657         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
75658         [!_LIBC]: New macros.
75659         (call_fclose): New function.
75660         (getpass): Use it.  Save tty stream separately; this simplifies the
75661         code and makes it more reliable if stdin happens to equal stdout.
75662         Invoke __fsetlocking on tty.
75663         Handle thread cancellation if needed.
75664         Namespace cleanup (use __tcgetattr, __getline).
75665         Use bool for Booleans.
75666         [USE_IN_LIBIO]: Handle wide streams.
75667         [!_LIBC]: Unconditionally do the fseek, since we don't know what
75668         stream might go where.
75669
75670         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
75671         doesn't have to include <stdio.h> before us.
75672         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
75673         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
75674         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
75675         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
75676         if not declared, so that we can use getpass.c code from libc without
75677         rewriting it.
75678         (flockfile, ftrylockfile, funlockfile): New macros.
75679
75680 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75681
75682         * modules/getpass: Depend on stdbool.
75683
75684 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75685
75686         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
75687
75688 2003-10-07  Karl Berry  <karl@gnu.org>
75689
75690         * config/config.{guess,sub}: update from config.
75691
75692 2003-10-06  Jim Meyering  <jim@meyering.net>
75693             Bruno Haible  <bruno@clisp.org>
75694
75695         This lets translators provide better translations for the
75696         "Written by ..." part of --version output.
75697         * lib/version-etc.h: Include stdarg.h.
75698         (version_etc_copyright): Declare as readonly.
75699         (version_etc): Make this function variadic with a NULL-terminated list
75700         of author name strings.
75701         (version_etc_va): New declaration.
75702         * lib/version-etc.c: Include stdarg.h, stdlib.h.
75703         (version_etc_copyright): Declare as readonly.
75704         (version_etc_va): New function. Provide a different translatable string
75705         for each possible number of authors < 10. Abbreviate when there are 10
75706         authors or more.
75707         (version_etc): Make this function variadic. Call version_etc_va.
75708         Suggestion from Gary V. Vaughan.
75709
75710         * lib/long-options.h (parse_long_options): Change prototype: the
75711         authors string is moved to the end and becomes variadic.
75712         * lib/long-options.c: Include stdarg.h.
75713         (parse_long_options): Make this function variadic, too.
75714         Call version_etc_va, not version_etc.
75715
75716 2003-10-06  Bruno Haible  <bruno@clisp.org>
75717
75718         * modules/version-etc-2: Remove file.
75719         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
75720
75721 2003-10-06  Bruno Haible  <bruno@clisp.org>
75722
75723         * modules/fatal-signal: New file.
75724         * MODULES.html.sh (func_all_modules): Add fatal-signal.
75725
75726 2003-10-06  Bruno Haible  <bruno@clisp.org>
75727
75728         * m4/fatal-signal.m4: New file.
75729         * m4/signalblocking.m4: New file, from GNU gettext.
75730
75731 2003-10-06  Bruno Haible  <bruno@clisp.org>
75732
75733         * lib/version-etc-2.h: Remove file.
75734         * lib/version-etc-2.c: Remove file.
75735
75736 2003-10-06  Bruno Haible  <bruno@clisp.org>
75737
75738         * lib/fatal-signal.h: New file, from GNU gettext.
75739         * lib/fatal-signal.c: New file, from GNU gettext.
75740
75741 2003-10-05  Paul Eggert  <eggert@twinsun.com>
75742
75743         * README: Rework advice for preventing empty .o files.
75744         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
75745         not <sys/types.h>.
75746
75747 2003-10-04  Karl Berry  <karl@gnu.org>
75748
75749         * lib/argp*: update from libc.
75750
75751 2003-10-04  Karl Berry  <karl@gnu.org>
75752
75753         * config/config.{guess,sub}: update from config.
75754
75755 2003-10-02  Bruno Haible  <bruno@clisp.org>
75756
75757         * modules/lchown (Include): Add lchown.h.
75758         * modules/time_r (Include): Use "..." syntax.
75759         * modules/xgetdomainname (Include): Add xgetdomainname.h.
75760
75761 2003-10-01  Simon Josefsson  <jas@extundo.com>
75762
75763         * MODULES.html.sh (func_all_modules): Move gethostname from section
75764         'based on' to section 'lacking' POSIX:2001.
75765
75766 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
75767
75768         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
75769         to output mode on the same stream.
75770
75771 2003-09-29  Paul Eggert  <eggert@twinsun.com>
75772
75773         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
75774         Fix arg typo in previous patch.
75775
75776 2003-09-28  Jim Meyering  <jim@meyering.net>
75777
75778         * lib/error.c: Correct cpp indentation.
75779
75780 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75781
75782         * modules/free: New file.
75783
75784 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75785
75786         * m4/free.m4: New file.
75787
75788 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75789
75790         * lib/minmax.h (MIN, MAX)
75791         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
75792         Omit the special code that used __typeof__, since we worry that
75793         it could be more trouble than it's worth.  See:
75794         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
75795         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
75796
75797         * lib/free.c: New file.
75798
75799 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
75800
75801         Trivial fixes to Makefile.am parts of module listings.
75802         * modules/strstr: Append strstr.h to lib_SOURCES.
75803         * modules/strcase: Likewise, for strcase.h.
75804
75805 2003-09-27  Karl Berry  <karl@gnu.org>
75806
75807         * config/mkinstalldirs: update from automake.
75808
75809 2003-09-26  Paul Eggert  <eggert@twinsun.com>
75810
75811         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
75812         (error_tail): Do not loop, reallocating temporary buffer, since
75813         the output cannot contain more wide characters than the input
75814         contains bytes, the size must be big enough already.  This avoids
75815         one potential size overflow calculation.  Check for size overflow
75816         when calculating temporary buffer size.  Free temporary buffer
75817         when done, if it was allocated with malloc; this plugs a memory
75818         leak.  Remove casts from void * to pointers, that are no longer
75819         needed now that we're assuming C89 or better.
75820
75821         Merge error changes from glibc.
75822
75823         * lib/error.c, error.h: Update copyright notice header to match glibc.
75824         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
75825         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
75826         Disable cancellation while printing error.
75827         * lib/error.h: Prepend __ to parameter names.
75828
75829 2003-09-26  Jim Meyering  <jim@meyering.net>
75830
75831         * lib/error.c (error_tail): Move some declarations
75832         into inner scope where the local variables are used.
75833
75834 2003-09-26  Bruno Haible  <bruno@clisp.org>
75835
75836         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
75837         stpncpy().
75838         Don't define stpncpy through config.h; it's now done through stpncpy.h.
75839
75840 2003-09-26  Bruno Haible  <bruno@clisp.org>
75841
75842         * lib/stpncpy.h (gnu_stpncpy): New declaration.
75843         (stpncpy): Define as alias for gnu_stpncpy.
75844         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
75845
75846 2003-09-25  Simon Josefsson  <jas@extundo.com>
75847
75848         * lib/xgetdomainname.h: New file.
75849         * lib/xgetdomainname.c: New file.
75850
75851 2003-09-25  Simon Josefsson  <jas@extundo.com>
75852             Bruno Haible  <bruno@clisp.org>
75853
75854         * modules/getdomainname: New file.
75855         * modules/xgetdomainname: New file.
75856         * MODULES.html.sh (func_all_modules): Add getdomainname,
75857         xgetdomainname.
75858
75859 2003-09-25  Simon Josefsson  <jas@extundo.com>
75860             Bruno Haible  <bruno@clisp.org>
75861
75862         * m4/getdomainname.m4: New file.
75863
75864 2003-09-25  Simon Josefsson  <jas@extundo.com>
75865             Bruno Haible  <bruno@clisp.org>
75866
75867         * lib/getdomainname.h: New file.
75868         * lib/getdomainname.c: New file.
75869
75870 2003-09-25  Karl Berry  <karl@gnu.org>
75871
75872         * lib/argp-fmtstream.c, argp-help.c: update from libc.
75873
75874 2003-09-25  Karl Berry  <karl@gnu.org>
75875
75876         * config/install-sh: update from automake.
75877
75878 2003-09-25  Bruno Haible  <bruno@clisp.org>
75879
75880         * modules/version-etc-2: New file, from modules/version-etc with
75881         modifications.
75882         * MODULES.html.sh (func_all_modules): Add version-etc-2.
75883
75884 2003-09-25  Bruno Haible  <bruno@clisp.org>
75885
75886         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
75887         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
75888
75889 2003-09-24  Simon Josefsson  <jas@extundo.com>
75890
75891         * modules/xgethostname: Add xgethostname.h.
75892
75893 2003-09-24  Paul Eggert  <eggert@twinsun.com>
75894
75895         * lib/linebuffer.c (freebuffer): Don't free the argument, just
75896         the buffer associated with the argument.  Bug reported by
75897         Simon Josefsson.
75898
75899 2003-09-24  Paul Eggert  <eggert@twinsun.com>
75900
75901         * README: Document assumptions that 'int' is at least 32 bits
75902         wide, that integer arithmetic is 2's complement without overflow,
75903         that there are no holes in integer values, that adding sizes of
75904         two nonoverlapping objects can't overflow, and that all-bits-zero
75905         yields scalar zero.  Fix spelling and capitalization typos.
75906
75907 2003-09-19  Karl Berry  <karl@gnu.org>
75908
75909         * lib/argp.h: update from libc.
75910
75911 2003-09-17  Paul Eggert  <eggert@twinsun.com>
75912
75913         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
75914         to avoid spurious warnings like "AC_RUN_IFELSE was called before
75915         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
75916
75917 2003-09-17  Paul Eggert  <eggert@twinsun.com>
75918
75919         * gnulib-tool: Use "test -h", not "test -L", for portability
75920         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
75921         (tags_regexp): Remove, since \| doesn't conform to POSIX.
75922         (sed_extract_prog): Issue s commands one-by-one, rather than
75923         using \| in one s command.
75924
75925 2003-09-16  Paul Eggert  <eggert@twinsun.com>
75926
75927         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
75928         input error, instead of returning NULL the next time we are called
75929         (and therefore losing track of errno).
75930
75931 2003-09-16  Bruno Haible  <bruno@clisp.org>
75932
75933         * gnulib-tool (func_create_testdir): Warn about duplicated
75934         dependencies.
75935
75936 2003-09-15  Paul Eggert  <eggert@twinsun.com>
75937
75938         * modules/argmatch, modules/fatal, modules/obstack,
75939         modules/xalloc, modules/xgethostname: Sort dependencies by
75940         importance, not alphabetically.
75941
75942 2003-09-15  Paul Eggert  <eggert@twinsun.com>
75943
75944         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
75945         fails, so that the caller gets the proper errno.
75946
75947         * lib/readutmp.c (read_utmp): Likewise.
75948         Check for fstat error.  Close stream and free storage
75949         when failing.
75950
75951 2003-09-14  Karl Berry  <karl@gnu.org>
75952
75953         * config/srclist.txt (strdup.c): disable for c89 changes.
75954
75955 2003-09-14  Jim Meyering  <jim@meyering.net>
75956
75957         * lib/getloadavg.c: Correct cpp indentation.
75958         * lib/strdup.c: Likewise.
75959         * lib/vasnprintf.c: Likewise.
75960
75961 2003-09-14  Bruno Haible  <bruno@clisp.org>
75962
75963         * modules/fwriteerror: New file.
75964         * MODULES.html.sh (func_all_modules): Add fwriteerror.
75965
75966 2003-09-14  Bruno Haible  <bruno@clisp.org>
75967
75968         * lib/fwriteerror.h: New file.
75969         * lib/fwriteerror.c: New file.
75970
75971 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75972
75973         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
75974         modules/xgethostname, modules/xalloc: Depend on exit.
75975
75976 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75977
75978         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
75979
75980         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
75981         and AC_MINIX, too, so that their extensions are available.
75982
75983         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
75984         This macro has been superseded by gl_BACKUPFILE.
75985
75986         More patches to assume C89 or better.
75987
75988         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
75989
75990         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
75991         unconditionally.
75992         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
75993         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
75994         Include <string.h>, <stdlib.h> unconditionally.
75995         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
75996         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
75997         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
75998         headers or for string.h.
75999         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
76000         or strtoul.
76001
76002         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
76003         headers.
76004         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
76005         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76006         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
76007         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
76008         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76009         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
76010         memcpy, memset.
76011         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
76012         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
76013         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
76014         strtol.
76015         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
76016         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
76017         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
76018         strtoul.
76019
76020 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76021
76022         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
76023         * lib/obstack.c [!defined _LIBC]: Likewise.
76024         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
76025         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
76026         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
76027
76028         More changes to assume C89 or better.
76029
76030         * lib/error.c (error_tail): Assume vprintf.
76031
76032         * lib/argmatch.c (getenv): Remove decl.
76033         * lib/progreloc.c (get_full_program_name): Define via prototype.
76034         * lib/setenv.c (clearenv): Likewise.
76035         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
76036         needed.
76037         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
76038         (malloc, memcpy): Remove decls.
76039         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
76040         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
76041         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76042         (memcpy): Remove macro.
76043         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
76044         (__P): Remove.  All uses removed.
76045         (PTR): Remove.  All uses changed to void *.
76046         (CHAR_BIT, NULL): Remove.
76047         (spaces, zeros, memset_space, memset_zero)
76048         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
76049         Remove.
76050         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
76051         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
76052         Define with prototype.
76053         Remove now-unnecessary prototype decl.
76054         (extra_args_spec): Assume ANSI C.  All uses changed.
76055         (extra_args_spec_iso): Remove.
76056         (my_strftime, emacs_strftimeu): Define via prototype.
76057         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
76058         unconditionally.
76059         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
76060         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
76061         (strtoul, strtol): Remove decls.
76062         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
76063         LONG_MAX): Remove.
76064         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76065         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
76066         (LOCALE_PARAM_PROTO): New macro.
76067         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
76068         (INTERNAL (strtol), strtol): Define with a prototype.
76069         (PARAMS): Remove.  All uses removed.
76070         * lib/tempname.c: Include <string.h> unconditionally.
76071         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
76072         * lib/xgethostname.c (main): Define with a prototype.
76073         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
76074         Include <stdlib.h> unconditionally.
76075         (calloc, malloc, realloc, free): Remove decls.
76076         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
76077         Include <stdlib.h> unconditionally.  Sort include file names.
76078         (strtod): Remove.
76079         (xstrtod): Define with a prototype.
76080         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
76081         (strtol, strtoul): Remove decls.
76082
76083 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76084
76085         More patches to assume C89 or better.
76086         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
76087         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
76088         string.h, memchr, STDC_HEADERS.
76089
76090 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76091
76092         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
76093         Include <stdlib.h>, <string.h> unconditionally.
76094         Remove now-unnecessary cast to char *.
76095         * lib/strnlen.c: Include <string.h> unconditionally.
76096         * lib/yesno.c (yesno): Define with a prototype.
76097
76098 2003-09-11  Bruno Haible  <bruno@clisp.org>
76099
76100         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
76101
76102 2003-09-10  Jim Meyering  <jim@meyering.net>
76103
76104         * lib/error.c: Correct indentation of cpp directives.
76105
76106 2003-09-10  Bruno Haible  <bruno@clisp.org>
76107
76108         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
76109         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
76110         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
76111         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
76112         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
76113         <stdlib.h> and <string.h> checks.
76114         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
76115         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
76116
76117 2003-09-10  Bruno Haible  <bruno@clisp.org>
76118
76119         * lib/strcspn.c: Include <string.h> unconditionally.
76120         * lib/strpbrk.c: Include <string.h> unconditionally.
76121         * lib/strstr.c: Include <string.h> unconditionally.
76122         * lib/unicodeio.c: Include <string.h> unconditionally.
76123         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
76124         * lib/unsetenv.c: Likewise.
76125         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
76126         * lib/yesno.c: Include <stdlib.h> unconditionally.
76127         (rpmatch): Add prototype.
76128
76129 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76130
76131         More patches to assume C89 or better.
76132         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
76133         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
76134         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
76135         or for string.h.
76136         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
76137         stdlib.h.
76138         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
76139         C headers.
76140         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
76141         string.h.
76142         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
76143         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
76144         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
76145         or for string.h.
76146         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
76147         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
76148         C headers.
76149         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
76150         memcpy.
76151         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
76152         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
76153         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
76154         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
76155         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
76156         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
76157         string.h, free.
76158         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
76159         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
76160         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
76161         C headers, or for string.h.
76162         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
76163         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
76164         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
76165         headers, memory.h, stdlib.h, string.h, strings.h.
76166         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
76167         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
76168         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
76169         strchr.
76170         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
76171         headers, memory.h, string.h.
76172         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
76173         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
76174         free.
76175         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
76176         headers.
76177         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
76178         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
76179         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
76180         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
76181         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
76182
76183 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76184
76185         More K&R removal.
76186
76187         * lib/acosl.c (main): Use a prototype.
76188         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
76189         tanl.c: Likewise.
76190
76191         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
76192
76193         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
76194         (getopt, etopt_long, getopt_long_only, _getopt_internal)
76195         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
76196         with a prototype.
76197         * lib/getopt.c (const): Remove macro.
76198         Include <string.h> unconditionally.
76199         (my_index): Remove; all uses changed to strchr.
76200         (strlen): Remove decl.
76201         (exchange): Remove forward decl; no longer needed.
76202         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
76203         Define with prototype.
76204         * lib/getopt1.c (const): Remove macro.
76205         (getopt_long, getopt_long_only, main): Define with prototype.
76206
76207         * lib/getugroups.c: Include <string.h> unconditionally.
76208
76209         * lib/getusershell.c: Include <stdlib.h> unconditionally.
76210         (getusershell, setusershell, endusershell, readname, main):
76211         Define with prototypes.
76212
76213         * lib/group-member.c: Include group-member.h first.
76214         Include <stdlib.h> unconditionally.
76215
76216         * lib/hard-locale.c: Include hard-locale.h first.
76217         Include <stdlib.h>, <string.h> unconditionally.
76218
76219         * lib/hash.c (free, malloc): Remove decls.
76220         Include <stdlib.h> unconditionally.
76221
76222         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
76223         (getenv): Do not declare.
76224
76225         * lib/idcache.c: Include <string.h> unconditionally.
76226
76227         * lib/long-options.c: Include long-options.h first, to test interface.
76228         Include <stdlib.h> unconditionally.
76229
76230         * lib/makepath.c: Include makepath.h first, to test interface.
76231         Include <stdlib.h> and <string.h> unconditionally.
76232
76233         * lib/linebuffer.c: Include <stdlib.h>.
76234         (free): Remove decl.
76235
76236         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
76237         stddef.h. rpl_malloc returns void *, not char *.
76238         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
76239         prototype.
76240
76241         * lib/md5.h: Include <limits.h> unconditionally.
76242         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
76243         (__P): Remove; all uses removed.
76244         * lib/md5.c: Include "md5.h" first.
76245         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
76246         md5_buffer, md5_process_bytes, md5_process_block):
76247         Define with prototypes.
76248         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
76249         * lib/sha.c: Include "sha.h" first.
76250         Include <stdlib.h>, <string.h> unconditionally.
76251
76252         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
76253         * lib/memcmp.c (__ptr_t): Likewise.
76254         * lib/memrchr.c (__ptr_t): Likewise.
76255         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
76256         Include <string.h> unconditionally.
76257         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
76258         * lib/memchr.c: Include <stdlib.h> unconditionally.
76259         * lib/memchr.c (LONG_MAX): Remove.
76260         * lib/memrchr.c (LONG_MAX): Likewise.
76261         * lib/memchr.c (__memchr): Define via a prototype.
76262         * lib/memrchr.c (__memrchr): Likewise.
76263         * lib/memcmp.c (__P): Remove, and remove all uses.
76264         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
76265         Remove forward decls; no longer needed.
76266         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
76267         Use types required by C89 in prototype.
76268
76269         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
76270         * lib/savedir.c: Likewise.
76271         * lib/mkdir.c (free): Remove decl.
76272         * lib/rmdir.c (rmdir): Define with a prototype.
76273         * lib/savedir.c: Include savedir.h first, to test interface.
76274
76275         * lib/mktime.c (STDC_HEADERS): Remove.
76276         Include <stdlib.h>, <string.h> unconditionally.
76277
76278         * lib/modechange.c: Include <stdlib.h> unconditionally.
76279         (malloc): Remove decl.
76280
76281         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
76282         (free): Remove decl.
76283
76284         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
76285         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
76286         (This type really should be intptr_t, but that's a C99ism.)
76287         (_obstack_memcpy): Remove: all uses changed to memcpy.
76288         Include <string.h> unconditionally.
76289         (struct obstack): Assume __STDC__ for types of members
76290         chunkfun, freefun, extra_arg.
76291         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
76292         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
76293         obstack_begin, obstack_specify_allocation,
76294         obstack_specify_allocation_with_arg, obstack_chunkfun,
76295         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
76296         Remove unprototyped decls and the macros that use them.
76297         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
76298         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
76299         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
76300         (defined __STDC__ && __STDC__)]:
76301         Remove nonprototyped code.
76302         Include <stdlib.h> unconditionally.
76303         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
76304         _obstack_allocated_p, _obstack_free, obstack_free,
76305         _obstack_memory_used, print_and_abort):
76306         Define using prototypes.
76307         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
76308         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
76309         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
76310         obstack_next_free, obstack_object_size, obstack_room) [0]:
76311         Remove unused, unprototyped code.
76312
76313         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
76314
76315         * lib/physmem.c (physmem_total, physmem_available, main): Define
76316         with prototypes.
76317
76318         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
76319         (main): Define with a prototype.
76320
76321         * lib/posixver.c (getenv): Remove decl.
76322
76323         * lib/putenv.c (malloc): Returns void *, not char *.
76324         Include <string.h> unconditionally.
76325         (strchr, memcpy, NULL): Do not define.
76326
76327         * lib/readtokens.c: Include readtokens.h first, to test interface.
76328         Include <stdlib.h>, <string.h> unconditionally.
76329         (init_tokenbuffer): Define with a prototype.
76330
76331         * lib/regex.c (PARAMS): Remove.  All uses removed.
76332         All uses of _RE_ARGS removed, too.
76333         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76334         unconditionally.
76335         (bzero): Assume memset exists.
76336         (memcmp, memcpy, NULL): Remove.
76337         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
76338         char, or assignments to local vars of type signed char.
76339         (init_syntax_once, PREFIX(extract_number_and_incr),
76340         PREFIX(print_partial_compiled_pattern),
76341         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
76342         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
76343         PREFIX(regex_grow_registers), PREFIX(regex_compile),
76344         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
76345         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
76346         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
76347         wcs_compile_range, byte_compile_range, truncate_wchar,
76348         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
76349         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
76350         count_mbs_length, wcs_re_match_2_internal,
76351         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
76352         PREFIX(alt_match_null_string_p),
76353         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
76354         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
76355         regfree, PREFIX(extract_number)): Define with prototype.  Remove
76356         now-unnecessary declaration, if any.
76357         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
76358         regcomp, regexec):
76359         Remove now-unnecessary casts among pointer types.
76360         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
76361
76362         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
76363         (free): Remove decl.
76364
76365         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
76366
76367         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
76368         (free): Remove decl.
76369
76370         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
76371         * lib/xgetcwd.c: Likewise.
76372
76373         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
76374         (free): Remove decl.
76375
76376         * lib/strchrnul.c (strchrnul): Define with a prototype.
76377         Fix bug: c_in was not converted to char before searching.
76378
76379         The following changes are not K&R related:
76380
76381         * lib/group-member.h: Include <sys/types.h>, so that this file is
76382         self-contained.
76383         * lib/makepath.h: Likewise.
76384
76385         * lib/getusershell.c (readname, default_index, line_size, readname):
76386         Use size_t, not int, for sizes.
76387         (readname): If the size overflows, report an error instead of
76388         looping forever.
76389
76390 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76391
76392         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
76393         libc.
76394
76395 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76396
76397         * README: New section: portability guidelines.
76398
76399 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76400
76401         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
76402         C89 spec.
76403
76404 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76405
76406         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
76407
76408 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76409
76410         Assume C89 or better; remove K&R cruft.
76411         A few of these changes were first proposed by Derek Robert Price
76412         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
76413
76414         * lib/addext.c: Include <string.h> unconditionally.
76415         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
76416         Don't declare getenv or malloc.
76417
76418         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
76419         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
76420         (NULL): Remove.
76421         (find_stack_direction, alloca): Use prototypes.
76422
76423         * lib/atexit.c (atexit): Define using a prototype.
76424
76425         * lib/basename.c, dirname.c, stripslash.c:
76426         Include <string.h> unconditionally.
76427
76428         * lib/bcopy.c: Include <stddef.h>.
76429         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
76430
76431         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
76432
76433         * lib/error.h (error, error_at_line, error_print_progname)
76434         [! (defined (__STDC__) && __STDC__)]: Remove decls.
76435         * lib/error.c: Include error.h first, to check interface.
76436         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76437         (VA_START): Remove; all uses changeed to va_start.
76438         (exit, strerror): Remove decls.
76439         (error_print_progname): Prototype uncondionally.
76440         Don't include <errno.h>; no longer needed.
76441         (private_strerror): Remove.
76442         (error_tail): Always define.
76443         (error, error_at_line): Assume C89 or better; always use prototypes.
76444         * lib/fatal.c: Include "fatal.h" first, to test interface.
76445         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76446         (VA_START): Remove; all uses changed to va_start.
76447         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
76448         this case.
76449         (exit): Remove decl.
76450         (fatal): Prototype unconditionally.  Assume va_start works.
76451         Abort at end, to pacify gcc.
76452
76453         * lib/euidaccess.c (main): Define with a prototype.
76454
76455         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
76456
76457         * lib/exitfail.c: Include <stdlib.h> unconditionally.
76458
76459         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
76460         prototypes.
76461         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
76462         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
76463         (getenv): Remove decl.
76464         (fnmatch): Define using a prototype.
76465         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
76466         (FCT): Define using a prototype.
76467
76468         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
76469
76470         * lib/gethostname.c: Include <stddef.h>.
76471         (gethostname): Define with prototype.  Length is size_t, not int.
76472
76473 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76474
76475         Assume C89 or better; remove K&R cruft.
76476         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
76477         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
76478         string.h, getenv, malloc.
76479         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
76480         headers.
76481         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
76482         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
76483         do not check for strerror.
76484         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
76485         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
76486         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
76487         do not check for doprnt or vprintf.
76488         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
76489         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
76490
76491 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76492
76493         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
76494         getversion.c should have been removed then, but was accidentally
76495         preserved.
76496
76497         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
76498         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
76499
76500 2003-09-08  Karl Berry  <karl@gnu.org>
76501
76502         * config/config.sub, config.guess, srclistvars.sh: update from savannah
76503                 config, forget about prep.
76504
76505         * config/depcomp, missing: update from automake.
76506
76507 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76508
76509         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
76510         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76511
76512 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76513
76514         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
76515         copy_tm_result.  Bug reported by Simon Josefsson in
76516         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76517
76518 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76519
76520         * m4/time_r.m4: New file.
76521         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
76522         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
76523         is. Check for timegm declaration.
76524         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
76525         Do not check for gmtime_r.
76526         Replace mktime if __mktime_internal does not exist and if mktime
76527         hasn't been replaced already.
76528
76529 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76530
76531         * lib/time_r.c, lib/time_r.h: New files.
76532
76533         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
76534         __localtime_r.
76535         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
76536         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
76537
76538         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
76539         __gmtime_r.
76540         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
76541         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
76542         Include <time_r.h>.
76543
76544         * lib/timegm.c: Switch to glibc implementation, with the following
76545         changes:
76546         [defined HAVE_CONFIG_H]: Include <config.h>.
76547         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
76548         (__mktime_internal) [!defined _LIBC]: New decl.
76549         (__gmtime_r) [!defined _LIBC]: New macro and function.
76550         (timegm): Use a prototype, since gnulib assumes C89.
76551         Do not bother declaring tmp to be const, as it's not really usefu.
76552         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
76553         (timegm): Declare only if HAVE_DECL_TIMEGM.
76554
76555 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76556
76557         * MODULES.html.sh (func_all_modules): Add time_r.
76558         * modules/time_r: New file.
76559         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
76560         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
76561
76562 2003-09-03  Paul Eggert  <eggert@twinsun.com>
76563
76564         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
76565         Bug reported by Lute Kamstra in
76566         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
76567
76568         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
76569         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
76570         course with correspondingly smaller numbers for tomorrow and
76571         yesterday.  From Tadayoshi Funaba.  Originally installed into
76572         sh-utils on 1999-08-07, but the patch got lost (I guess during the
76573         coreutils merge?).
76574
76575 2003-08-31  Simon Josefsson  <jas@extundo.com>
76576
76577         * modules/timegm: New file.
76578         * MODULES.html.sh (func_all_modules): Add timegm.
76579
76580 2003-08-31  Simon Josefsson  <jas@extundo.com>
76581
76582         * m4/timegm.m4: New file.
76583
76584 2003-08-31  Simon Josefsson  <jas@extundo.com>
76585
76586         * lib/timegm.h: New file.
76587         * lib/timegm.c: New file.  Based on
76588         wget-1.8.2/src/http.c:mktime_from_utc.
76589
76590 2003-08-31  Karl Berry  <karl@gnu.org>
76591
76592         * lib/argp.h: update from libc.
76593
76594 2003-08-28  Bruno Haible  <bruno@clisp.org>
76595
76596         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
76597         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
76598         followed by '#define fnmatch fnmatch_posix' gives an error.
76599
76600 2003-08-28  Bruno Haible  <bruno@clisp.org>
76601
76602         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
76603         warning on QNX, which defines O_BINARY to 000000.
76604
76605 2003-08-27  Jim Meyering  <jim@meyering.net>
76606
76607         * m4/mkstemp.m4: Require that the system mkstemp be able to create
76608         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
76609         would fail after 32.  Reported by Danny Levinson.  Details here:
76610         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
76611
76612 2003-08-24  Bruno Haible  <bruno@clisp.org>
76613
76614         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
76615         MSVC7 <stdio.h> is included later.
76616
76617 2003-08-22  Simon Josefsson  <jas@extundo.com>
76618
76619         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
76620
76621 2003-08-20  Karl Berry  <karl@gnu.org>
76622
76623         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
76624
76625 2003-08-20  Bruno Haible  <bruno@clisp.org>
76626
76627         * modules/progname: New file.
76628         * MODULES.html.sh (func_all_modules): Add progname.
76629
76630 2003-08-20  Bruno Haible  <bruno@clisp.org>
76631
76632         * lib/progname.h: New file, from GNU gettext.
76633         * lib/progname.c: New file, from GNU gettext.
76634         * lib/progreloc.c: New file, from GNU gettext.
76635
76636 2003-08-19  Jim Meyering  <jim@meyering.net>
76637
76638         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
76639         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
76640
76641 2003-08-19  Bruno Haible  <bruno@clisp.org>
76642
76643         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
76644         more.
76645
76646 2003-08-19  Bruno Haible  <bruno@clisp.org>
76647
76648         * lib/xstrdup.c: Assume <string.h> exists.
76649
76650 2003-08-18  Paul Eggert  <eggert@twinsun.com>
76651
76652         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
76653         in makefile rules.
76654
76655 2003-08-18  Jim Meyering  <jim@meyering.net>
76656
76657         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
76658         * m4/lib-ld.m4: Likewise.
76659
76660 2003-08-18  Jim Meyering  <jim@meyering.net>
76661
76662         * lib/setenv.h: Indent nested cpp directive.
76663         * lib/vasnprintf.c: Remove trailing blanks.
76664
76665 2003-08-17  Simon Josefsson  <jas@extundo.com>
76666
76667         * modules/xstrndup: New file.
76668         * MODULES.html.sh (func_all_modules): Add xstrndup.
76669
76670 2003-08-17  Simon Josefsson  <jas@extundo.com>
76671
76672         * modules/argp: Fix autoconf macro name. Add more dependencies.
76673
76674 2003-08-17  Simon Josefsson  <jas@extundo.com>
76675
76676         * m4/xstrndup.m4: New file.
76677
76678 2003-08-17  Simon Josefsson  <jas@extundo.com>
76679
76680         * m4/argp.m4: New file.
76681
76682 2003-08-17  Simon Josefsson  <jas@extundo.com>
76683             Bruno Haible  <bruno@clisp.org>
76684
76685         * lib/xstrndup.h: New file.
76686         * lib/xstrndup.c: New file.
76687
76688 2003-08-17  Bruno Haible  <bruno@clisp.org>
76689
76690         * modules/strndup (Files, Include): Add lib/strndup.h.
76691
76692 2003-08-17  Bruno Haible  <bruno@clisp.org>
76693
76694         * modules/euidaccess (Files): Add lib/euidaccess.h.
76695
76696 2003-08-17  Bruno Haible  <bruno@clisp.org>
76697
76698         * lib/strndup.h: New file.
76699
76700 2003-08-17  Bruno Haible  <bruno@clisp.org>
76701
76702         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
76703         like AC_GNU_SOURCE.
76704         * modules/extensions (configure.ac): Comment out the invocation of
76705         gl_USE_SYSTEM_EXTENSIONS.
76706
76707 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76708
76709         Merges from coreutils, etc.
76710         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
76711         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
76712         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
76713         fixing a typo.
76714         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
76715         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
76716
76717 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76718
76719         Document merge from coreutils.
76720         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
76721         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
76722         * modules/utime: Add m4/utimes-null.m4.
76723
76724 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76725
76726         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
76727         space, undoing this 2003-08-12 change:
76728         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76729
76730 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76731
76732         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
76733         strtoul.c from libc, undoing this 2003-08-12 change:
76734         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76735
76736 2003-08-16  Jim Meyering  <jim@meyering.net>
76737
76738         Merges from coreutils.
76739         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
76740         prefix.  Adjust cache variables similarly.  Create 500 rather than
76741         just 300 files, to exercise bug on Darwin6.5, too.
76742         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
76743         $missing_dir.
76744         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
76745         AM_SYS_POSIX_TERMIOS.
76746         Reported by mkc@mathdogs.com.
76747         Also change use of $am_cv_sys_posix_termios
76748         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
76749         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
76750         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
76751         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
76752         in /proc/mounts until it finds one with matching device number.  This
76753         is unnecessary when the FILE argument *is* a mount point.  No stat call
76754         is necessary in that case.  So, disable the statvfs-testing code on
76755         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
76756         as RedHat bug# 84846.
76757         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
76758         to 1MB, so as not to render systems with no stack size limit (e.g.,
76759         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
76760         Include <unistd.h>.  On some systems,
76761         it is required for the definition of _SC_PAGESIZE.
76762
76763 2003-08-16  Jim Meyering  <jim@meyering.net>
76764
76765         Merge from coreutils.
76766         * lib/xstrtoimax.c: #else #if -> #elif.
76767         * lib/xstrtoumax.c: Likewise.
76768
76769 2003-08-16  Jim Meyering  <jim@meyering.net>
76770
76771         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
76772         * m4/utimes.m4: Removed.
76773         * m4/utimes-null.m4: Renamed from utimes.m4.
76774
76775         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
76776         to 1MB, so as not to render systems with no stack size limit (e.g.,
76777         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
76778         Include <unistd.h>.  On some systems,
76779         it is required for the definition of _SC_PAGESIZE.
76780
76781 2003-08-16  Jim Meyering  <jim@meyering.net>
76782         and Paul Eggert  <eggert@cs.ucla.edu>
76783
76784         Merges from coreutils, etc.
76785
76786         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
76787         using the latest version from cvs.  This avoids problems with #line
76788         directives using a vendor (Sun) compiler.
76789         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
76790         Don't set GETGROUPS_LIB here; now it's
76791         done via getgroups.m4's wrapper function.
76792         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
76793         rather than just in sh-util/configure.in, so that the
76794         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
76795         same.
76796         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
76797         AC_FUNC_GETLOADAVG where to find getloadavg.c.
76798         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
76799         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
76800         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
76801         Remove code that is now done by the newly-required macros.
76802         Append $(EXEEXT) to DF_PROG.
76803         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
76804         Do not invoke or require the following here,
76805         since prereq.m4 or some gnulib .m4 now does this for us:
76806         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
76807         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
76808         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
76809         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
76810         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
76811         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
76812         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
76813         AC_FUNC_OBSTACK.
76814         Do not replace the following functions, as this is now the job
76815         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
76816         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
76817         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
76818         atexit getpass, strdup, getpagesize.
76819         Replace 'raise'.
76820         Do not check for the following functions, as this is now the job
76821         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
76822         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
76823         setregid.
76824         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
76825         Check for sys/sysctl.h.
76826         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
76827         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
76828         of checking for ssize_t ourselves.
76829
76830         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
76831         Require every macro that gnulib/modules/* suggests for us.
76832         (jm_PREREQ_ADDEXT): New macro.
76833         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
76834         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
76835
76836         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
76837         (gl_PHYSMEM): Use it.
76838         Also check for `table' function.
76839         Check for new headers and functions.
76840         Add check for sys/sysmp.h.
76841         With suggestions from Kaveh Ghazi.
76842         Ignore headers that are present but cannot be compiled.  This
76843         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
76844         C 5.4.
76845
76846 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76847
76848         Document merge from coreutils.
76849         * modules/userspec: Depend on posixver.
76850         * modules/strftime: Depend on tzset.
76851
76852 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76853
76854         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
76855         rather than tab, after '#' in shell-script copyright notices.
76856         Suggested by Bruno Haible.
76857
76858 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76859
76860         * config/srclist-update: Use three spaces, rather than tab, after '#'
76861         in shell-script copyright notices.  Suggested by Bruno Haible.
76862         Remove unnecessary parenthesization in regular expression.
76863
76864 2003-08-15  Jim Meyering  <jim@meyering.net>
76865
76866         Merge from coreutils.
76867         * lib/xgethostname.c: Include <stdlib.h>.
76868         (xghostname): Don't exit for anything other than memory-related
76869         failure; just return NULL.
76870         * lib/userspec.c: Include "posixver.h".
76871         (parse_user_spec): Accept `.' as a separator only
76872         in pre-POSIX-200112 mode.
76873         * lib/strtoimax.c: Use #elif rather than #else #if.
76874         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
76875         Remove function, now that we can rely on a working tzset function.
76876         [!_LIBC]: Ensure that the required autoconf test has been run.
76877         [!defined _NL_CURRENT && HAVE_STRFTIME]:
76878         Use underlying_strftime for %r.
76879         * lib/sha.c: Merge in some clean-up and optimization changes from
76880         glibc.
76881         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
76882         Ensure that it is a multiple of 64.
76883         Rearrange loop exit tests so as to avoid performing an
76884         additional fread after encountering an error or EOF.
76885         * lib/realloc.c: Update copyright date.
76886
76887 2003-08-15  Jim Meyering  <jim@meyering.net>
76888         and Paul Eggert  <eggert@twinsun.com>
76889
76890         Merge from coreutils.
76891         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
76892         member but strut utmpx does not.  Needed for AIX 4.3.3.
76893         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
76894
76895 2003-08-15  Jim Meyering  <jim@meyering.net>
76896         and Paul Eggert  <eggert@cs.ucla.edu>
76897
76898         Merges from coreutils, etc.
76899         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
76900         Require gl_FUNC_TZSET_CLOBBER.
76901         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
76902         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
76903         members.
76904
76905 2003-08-14  Paul Eggert  <eggert@twinsun.com>
76906
76907         Help the merge from coreutils.
76908         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
76909         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
76910         * m4/tzset.m4: Use it too.
76911
76912 2003-08-14  Paul Eggert  <eggert@twinsun.com>
76913
76914         * modules/tzset: New file.
76915
76916 2003-08-14  Jim Meyering  <jim@meyering.net>
76917
76918         Merges from coreutils.
76919         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
76920         variable names, rather than @FNMATCH_H@.
76921         * modules/alloca: Likewise for $(ALLOCA_H).
76922
76923         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
76924         the three copies of the literal target, `fnmatch.h'.
76925         * modules/alloca (alloca.h): Likewise.
76926
76927 2003-08-14  Jim Meyering  <jim@meyering.net>
76928
76929         Merge from coreutils.
76930         * m4/tzset.m4: New file.
76931         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
76932         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
76933         otherwise, AIX 5.1 systems would end up using the latter.
76934         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
76935         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
76936         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
76937         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
76938
76939 2003-08-14  Jim Meyering  <jim@meyering.net>
76940
76941         Merge from coreutils.
76942         * lib/obstack.h: Whitespace changes.
76943         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
76944         and xcalloc return values.
76945         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
76946         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
76947         hang on OSF/1 5.1 for DIR on both local and remote file systems.
76948         Reported by (and fix confirmed by) Nelson H. F. Beebe.
76949         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
76950         error from mntctl.
76951         Use mntctl's return value to drive the entry-processing loop, since
76952         we can't rely on the value of the vmt_length member in the last
76953         entry.  On some systems doing so could result in exhausting
76954         virtual memory.  Based in part on a patch from Mike Jetzer.
76955
76956 2003-08-14  Jim Meyering  <jim@meyering.net>
76957         and Paul Eggert  <eggert@twinsun.com>
76958
76959         Merges from coreutils, plus other fixes.
76960         * lib/physmem.c: Merge in portability changes from gcc/libiberty
76961         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
76962         for credits and details.  Thanks to Kaveh Ghazi for helping
76963         to keep these files in sync.
76964         (ARRAY_SIZE): Define it.
76965         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
76966         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
76967         (memcasecmp): Don't assume size_t fits in unsigned int.
76968         Remove casts and duplicate code.
76969         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
76970         (memcpy): Remove definition.
76971         Merge in some clean-up and optimization changes from glibc.
76972         [BLOCKSIZE]: Move definition to top of file.
76973         Ensure that it is a multiple of 64.
76974         Rearrange loop exit tests so as to avoid performing an
76975         additional fread after encountering an error or EOF.
76976         * lib/md5.h (md5_uintptr): Define.
76977         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
76978         return to the initial working directory.  Preserve errno
76979         for caller.
76980         * lib/idcache.c: Include "xalloc.h".
76981         (xmalloc, xrealloc): Remove decls.
76982         (getuser): Remove casts no longer required in C89.
76983         * lib/human.c: Include stdio.h, for sprintf.
76984         * lib/group-member.c: Include "xalloc.h".
76985         (xmalloc, xrealloc): Remove decls.
76986         (get_group_info): Remove casts no longer required in C89.
76987         * lib/getusershell.c (readname): Remove casts no longer required in
76988         C89.
76989         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
76990         * lib/getline.c: Whitespace fix, from coreutils.
76991
76992 2003-08-13  Paul Eggert  <eggert@twinsun.com>
76993
76994         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
76995         Check for isascii.
76996
76997         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
76998         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
76999         Undo previous (whitespace-only) change.
77000
77001 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77002
77003         * lib/exclude.c: Include <ctype.h>
77004         (IN_CTYPE_DOMAIN): New macro.
77005         (is_space): New fn.
77006         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
77007         and empty lines.
77008
77009         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77010         Undo previous (whitespace-only) change.
77011
77012 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77013
77014         * config/srclist-update: Change update back to the old behavior,
77015         leaving whitespace alone.  Use one 'sed' command rather than a
77016         pipeline.
77017         (fixlicense): Now a variable, not a function.
77018         (remove_trailing_blanks): Remove.
77019         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
77020         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77021         Undo previous (whitespace-only) change.
77022
77023 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77024
77025         Merge from coreutils.
77026         * modules/euidaccess: Add lib_SOURCES, include for new
77027         file euidaccess.h
77028
77029 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77030
77031         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77032         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77033         Normalize leading white space and remove trailing white space.
77034
77035         Merge from coreutils
77036         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
77037
77038         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
77039         0.12.1.  These files are now being upgraded automatically by
77040         ../config/srclist-update.
77041
77042 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77043
77044         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77045         Normalize leading white space and remove trailing white space.
77046         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
77047         notice, as per ../config/srclist-update.
77048
77049         Merge from coreutils.
77050         * lib/euidaccess.h: New file.
77051         * lib/euidaccess.c: Include it.
77052         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
77053         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
77054         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
77055
77056 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77057
77058         * config/srclist-update: Add copyright notice.
77059         (remove_id_lines, remove_trailing_blanks): New constants.
77060         (fixfile): Use them to normalize spacing a bit in copied files.
77061         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77062         Normalize leading white space and remove trailing white space.
77063
77064         * config/texinfo.tex: Sync with texinfo.
77065
77066         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
77067         strtoul.c from libc, to merge coreutils whitespace changes.
77068
77069         * config/srclist.txt: Get the following m4 files from gettext:
77070         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
77071         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
77072         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
77073         wint_t.m4.
77074
77075 2003-08-12  Karl Berry  <karl@gnu.org>
77076
77077         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
77078         been made.
77079
77080 2003-08-11  Paul Eggert  <eggert@twinsun.com>
77081
77082         * modules/gnu-source, m4/gnu-source.m4:
77083         Remove; we're assuming Autoconf 2.54 or later now.
77084         Suggested by Bruno Haible.
77085         * MODULES.html.sh (func_all_modules): Remove gnu-source.
77086
77087 2003-08-11  Bruno Haible  <bruno@clisp.org>
77088
77089         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
77090
77091 2003-08-11  Bruno Haible  <bruno@clisp.org>
77092
77093         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
77094         (vasnprintf): Use it instead of wcslen.
77095
77096 2003-08-11  Bruno Haible  <bruno@clisp.org>
77097
77098         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
77099         value to ensure that _Bool promotes to int. Use #define for _Bool when
77100         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
77101
77102 2003-08-10  Karl Berry  <karl@gnu.org>
77103
77104         * lib/regex.h: update from libc (whitespace fix).
77105
77106 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77107
77108         Merge some files from coreutils.  These changes were
77109         originally made by Jim Meyering.
77110         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
77111         many older Unixes require this.
77112         * lib/alloca.c (alloca): Remove cast to argument of free;
77113         no longer needed in C89.
77114         * lib/alloca_.h, regex.h: Fix white space to match
77115         what GNU indent does.
77116
77117 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77118
77119         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
77120         apparently Emacs's Unicode mode got confused before my 2003-08-05
77121         checkin.
77122
77123 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77124
77125         * m4/extensions.m4: New file.
77126         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
77127         Require gl_USE_SYSTEM_EXTENSIONS.
77128         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
77129         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
77130
77131 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77132
77133         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
77134         * modules/extensions, modules/gnu-source: New files.
77135         * modules/timespec, modules/unlocked-io: Depend on extensions.
77136
77137 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77138
77139         * modules/restrict: New file.
77140         * MODULES.html.sh (func_all_modules): Add restrict.
77141         * modules/regex: Depend on restrict.
77142
77143 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77144
77145         * m4/restrict.m4: New file.
77146         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
77147
77148 2003-08-07  Bruno Haible  <bruno@clisp.org>
77149
77150         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
77151         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
77152
77153 2003-08-07  Bruno Haible  <bruno@clisp.org>
77154
77155         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
77156         makes the module 'getndelim2' compatible with the module 'getline'.
77157
77158 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77159
77160         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
77161         byte with "\201" to avoid glitches when editing that source file
77162         with multi-gnome-terminal.
77163
77164 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77165
77166         * lib/bumpalloc.h: Remove.
77167
77168 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77169
77170         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
77171         * modules/bumpalloc: Remove.
77172
77173 2003-08-04  Paul Eggert  <eggert@twinsun.com>
77174
77175         * lib/getloadavg.c: Change copyright notice and spacing to conform to
77176         GNU coding style.
77177
77178         Merge from coreutils.
77179         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
77180         1. From glibc.
77181         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
77182         from Karl Berry, implemented by Jim Meyering.
77183         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
77184         from Dmitry V. Levin.
77185         Remove anachronistic cast of xrealloc.
77186         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
77187         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
77188         type. Otherwise, it wouldn't compile with at least /bin/cc on
77189         ymp-cray-unicos9.0.2.X.
77190         Combine two mostly-identical uses of alloca into one.
77191         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
77192
77193 2003-08-04  Dave Love  <d.love@dl.ac.uk>
77194
77195         [From Emacs.]
77196
77197         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
77198         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
77199         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
77200         obsolete NLIST_NAME_UNION.
77201         [__GNU__]: Undef BSD and FSCALE.
77202         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
77203
77204 2003-08-03  Paul Eggert  <eggert@twinsun.com>
77205
77206         * lib/stdbool_.h (_Bool): Make it signed char, instead of
77207         an enum type, so that it's guaranteed to promote to int.  See:
77208         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
77209
77210 2003-08-03  Karl Berry  <karl@gnu.org>
77211
77212         * config/depcomp: update from automake.
77213
77214 2003-07-31  Paul Eggert  <eggert@twinsun.com>
77215
77216         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
77217         (strerror): Don't assume that a printable int fits in 14 bytes.
77218
77219 2003-07-31  Bruno Haible  <bruno@clisp.org>
77220
77221         * modules/getpass-gnu: New file.
77222         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
77223
77224 2003-07-31  Bruno Haible  <bruno@clisp.org>
77225
77226         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
77227
77228 2003-07-24  Karl Berry  <karl@gnu.org>
77229
77230         * config/missing: update from automake.
77231
77232 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
77233             Bruno Haible  <bruno@clisp.org>
77234
77235         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
77236         * lib/getline.c (getline, getdelim): Likewise.
77237         Remove _GNU_SOURCE define; now it's defined in config.h through
77238         m4/getline.m4.
77239
77240 2003-07-23  Karl Berry  <karl@gnu.org>
77241
77242         * config/config.sub: update from prep.
77243
77244 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77245
77246         * modules/xalloc (Depends-on): Add exitfail.
77247         * modules/xmemcoll: Likewise.
77248
77249 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77250
77251         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
77252         over-parenthesization in macros.
77253
77254         Sync with coreutils.
77255
77256         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
77257         required by C99.
77258
77259         Use `exit_failure' for xalloc and xmemcoll instead of their own
77260         private exit-failure variables.
77261         * lib/xalloc.h (xalloc_exit_failure): Remove.
77262         * lib/xmalloc.c: Likewise.  Include exitfail.h.
77263         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
77264         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
77265         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
77266         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
77267
77268 2003-07-20  Jim Meyering  <jim@meyering.net>
77269
77270         * modules/closeout (Depends-on): Add exitfail.
77271         Suggestion from Bruno Haible.
77272
77273 2003-07-19  Karl Berry  <karl@gnu.org>
77274
77275         * config/config.sub: update from prep.
77276
77277 2003-07-18  Paul Eggert  <eggert@twinsun.com>
77278
77279         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
77280         Remove.
77281         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
77282         to test that it can stand by itself.  Include "exitfail.h".
77283         Clients should set exit_failure instead.
77284         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
77285
77286 2003-07-18  Bruno Haible  <bruno@clisp.org>
77287
77288         * modules/getndelim2: New file.
77289         * modules/getline: Share files with module getndelim2.
77290         * modules/getnline: Depend on getndelim2 instead of sharing files with
77291         it. Add getnline.c to lib_SOURCES.
77292         * MODULES.html.sh (func_all_modules): Add getndelim2.
77293
77294 2003-07-18  Bruno Haible  <bruno@clisp.org>
77295
77296         * m4/getndelim2.m4: New file.
77297         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
77298         invoke gl_PREREQ_GETNDELIM2.
77299         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
77300         gl_PREREQ_GETNDELIM2.
77301         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
77302         gl_GETNDELIM2.
77303
77304 2003-07-18  Bruno Haible  <bruno@clisp.org>
77305
77306         * lib/getndelim2.h: New file.
77307         * lib/getndelim2.c: Make into a module of its own. Include config.h,
77308         getndelim2.h.
77309         (getndelim2): Make non-static. Change return type to ssize_t.
77310         * lib/getline.h: Change argument names.
77311         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
77312         * lib/getnline.c: Include getndelim2.h.
77313
77314 2003-07-18  Andreas Schwab  <schwab@suse.de>
77315
77316         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
77317
77318 2003-07-17  Karl Berry  <karl@gnu.org>
77319
77320         * config/config.sub: update from prep.
77321
77322 2003-07-17  Bruno Haible  <bruno@clisp.org>
77323
77324         * modules/getnline: New file.
77325         * modules/getline: Add lib/getndelim2.c to source file list.
77326         * MODULES.html.sh (func_all_modules): Add getnline.
77327
77328 2003-07-17  Bruno Haible  <bruno@clisp.org>
77329
77330         * m4/getnline.m4: New file.
77331
77332 2003-07-17  Bruno Haible  <bruno@clisp.org>
77333
77334         * m4/Makefile.am.in: Remove file.
77335         * m4/Makefile.am: Remove file.
77336         * m4/Makefile.in: Remove file.
77337
77338 2003-07-17  Bruno Haible  <bruno@clisp.org>
77339
77340         * lib/getnline.h: New file.
77341         * lib/getnline.c: New file.
77342         * lib/getndelim2.c: New file, extracted from getline.c.
77343         (getndelim2): Renamed from getdelim2, with added nmax argument.
77344         * lib/getline.c: Include getndelim2.c.
77345         (getdelim2): Moved out to getndelim2.c.
77346         (getline, getdelim): Update.
77347
77348 2003-07-17  Bruno Haible  <bruno@clisp.org>
77349
77350         * lib/Makefile.am: Remove file.
77351         * lib/Makefile.in: Remove file.
77352
77353 2003-07-17  Bruno Haible  <bruno@clisp.org>
77354
77355         * configure.in: Remove file.
77356         * Makefile.in: Remove file.
77357
77358 2003-07-17  Bruno Haible  <bruno@clisp.org>
77359
77360         * MODULES.html.sh: Put the </BODY> right before </HTML>.
77361
77362 2003-07-16  Karl Berry  <karl@gnu.org>
77363
77364         * config/srclist-update: was running fixlicense twice, which caused
77365                 texinfo.tex to be nullified for some reason.  Simplify,
77366                 $gplsrc is no longer needed as far as I can see?
77367
77368 2003-07-16  Jim Meyering  <jim@meyering.net>
77369
77370         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
77371
77372 2003-07-15  Paul Eggert  <eggert@twinsun.com>
77373
77374         * config/srclist.txt: Get the following files from gettext-runtime/intl
77375         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
77376         ref-del.sin.  From Bruno Haible.
77377         * config/srclist-update (fixfile): Change grep pattern again, since the
77378         previous fix didn't work (there was another trailing $).  Use
77379         '[$]' to escape the $s.
77380
77381 2003-07-15  Karl Berry  <karl@gnu.org>
77382
77383         * lib/vasnprintf.c: update from gettext.
77384
77385 2003-07-15  Karl Berry  <karl@gnu.org>
77386
77387         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
77388         gets expanded when surrounded by '$'.
77389
77390 2003-07-15  Jim Meyering  <jim@meyering.net>
77391
77392         * modules/save-cwd: Don't depend on error.  From Derek Price.
77393
77394 2003-07-15  Jim Meyering  <jim@meyering.net>
77395
77396         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
77397
77398 2003-07-14  Simon Josefsson  <jas@extundo.com>
77399
77400         * modules/mempcpy: New file.
77401         * MODULES.html.sh (func_all_modules): Add mempcpy.
77402
77403 2003-07-14  Simon Josefsson  <jas@extundo.com>
77404
77405         * m4/mempcpy.m4: New file.
77406
77407 2003-07-14  Simon Josefsson  <jas@extundo.com>
77408
77409         * lib/mempcpy.h: New file.
77410         * lib/mempcpy.c: New file.
77411
77412 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77413
77414         * modules/getdate, modules/posixtm: Depend on mktime.
77415
77416 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77417
77418         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
77419         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
77420         unicodeio.c, unicodeio.h, unlocked-io.h:
77421         Switch from LGPL to GPL.
77422
77423 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77424
77425         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
77426         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
77427         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
77428         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
77429         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
77430         updated automatically by ../config/srclist-update.  This changes
77431         their license from LPGL to GPL.
77432
77433 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77434
77435         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
77436         assumed to refer to the root of the most recent stable gettext version.
77437         * config/srclistvars.sh: Add defaults for eggert.
77438         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
77439         Match "This program" as well as "The program".  This is needed
77440         for gettext.
77441
77442 2003-07-14  Jim Meyering  <jim@meyering.net>
77443
77444         Don't emit diagnostics.  Let callers do that.
77445         * lib/save-cwd.c: Don't include "error.h".
77446         (save_cwd): Don't call error.  Ensure that errno is valid
77447         when returning nonzero.
77448
77449         * lib/save-cwd.h (restore_cwd): Update prototype.
77450         * lib/save-cwd.c (restore_cwd): Remove two parameters.
77451         Simplify.  Don't call error upon failure.  Let callers do that.
77452         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
77453         when auditing is enabled.  But don't bother updating the #if.
77454
77455 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
77456
77457         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
77458         it breaks C++ compilation.
77459         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
77460
77461 2003-07-10  Simon Josefsson  <jas@extundo.com>
77462
77463         * modules/strchrnul (Makefile.am): Add strchrnul.h.
77464
77465 2003-07-10  Jim Meyering  <jim@meyering.net>
77466
77467         * m4/clock_time.m4: Remove trailing blank.
77468         * m4/intmax_t.m4: Likewise.
77469
77470 2003-07-10  Jim Meyering  <jim@meyering.net>
77471
77472         * lib/vasnprintf.c: Remove trailing blanks.
77473         Make cpp indentation consistent.
77474
77475 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77476
77477         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
77478         posixver.c, strftime.c, strnlen.c, strverscmp.c:
77479         Switch from LGPL to GPL.
77480
77481 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77482
77483         * config/srclist.txt: Sort sublists.  Add
77484         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
77485         that differ from gnulib for one reason or another; we'd like this list
77486         to be smaller but for now let's document what we have.
77487
77488 2003-07-08  Paul Eggert  <eggert@twinsun.com>
77489
77490         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
77491         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
77492         and sweeter "eval x=$x".
77493         * config/srclist.txt: Get lib/argp* from glibc.
77494
77495 2003-07-07  Paul Eggert  <eggert@twinsun.com>
77496
77497         * lib/mktime.c: Fix some boundary cases and remove need for floating
77498         point.
77499
77500         Issue a compile-time diagnostic if time_t is floating point, or if
77501         two's complement arithmetic is not in effect, or if arithmetic
77502         right shift does not propagate the sign.  These assumptions were
77503         all in the original code but they weren't checked.
77504
77505         (TIME_T_MIDPOINT, verify): New macros.
77506         (__isleap): Remove; it has integer overflow problems.
77507         (leapyear): New function, without those problems.
77508         (ydhms_tm_diff): Remove; splitting into two parts.
77509         (ydhms_diff): New function, containing the arithmetic part of
77510         the old ydhms_tm_diff function.  Issue a compile-time
77511         diagnostic if we are not using C99 integer division.
77512         Avoid casts when possible.
77513         (guess_time_tm): New function, containing the checking part of
77514         the old ydhms_tm_diff function.  Return the new value, rather than
77515         the difference between it and the old.  Accept a new argument T
77516         so that *T specifies the old value.  Check for overflow in the result.
77517
77518         (__mktime_internal): Use a time_t offset, not a long int offset.
77519         This undoes the 2003-06-04 change, which is no longer needed now
77520         that we have better overflow checking.
77521         (localtime_offset): Likewise.
77522
77523         (__mktime_internal): Avoid harmful overflow on hosts where time_t
77524         and long are 64-bit but int is only 32-bit.
77525         (ydhms_diff): Use long int to store year1 and yday1.
77526         Issue a compile-time diagnostic if long int is not wide enough.
77527
77528         (__mktime_internal): Use long int to store adjusted year and yday.
77529         Use plain C rather than preprocessor commands, if that doesn't
77530         affect efficiency.
77531         Check for overflow (and try to repair) after each probe
77532         rather than checking only at the very end.  This avoids some bugs
77533         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
77534         does not equal GMT offset at maximum time).
77535         Use integer to check for overflow rather than floating point; this
77536         is more portable to non-IEEE hosts, and is a tad faster.
77537         When we detect that we are oscillating between two values,
77538         don't check whether tm_isdst has the requested value, since
77539         we already know the answer.  When tm_isdst has the wrong value,
77540         use a different heuristic to find the right one, based on the
77541         extreme values actually observed in practice in tz2003a,
77542         rather than the (overly optimistic) "previous 3 calendar quarters".
77543
77544         (not_equal_tm, print_tm, check_result): Use "const T" rather than
77545         "T const" to accommodate glibc style.
77546         (check_result): Use less-confusing report format.  "long" -> "long int.
77547         (main): Likewise.
77548         Don't loop if the iteration overflows time_t.
77549         Allow a negative step in the iteration.
77550
77551 2003-07-06  Karl Berry  <karl@gnu.org>
77552
77553         * config/depcomp: update from automake.
77554         * config/config.sub: update from prep.
77555
77556 2003-07-03  Karl Berry  <karl@gnu.org>
77557
77558         * config/config.guess: update from prep.
77559
77560 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77561
77562         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
77563         xreadlink.c now includes it unconditionally.
77564
77565 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77566
77567         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
77568         having it depend on HAVE_SYS_TYPES_H.
77569
77570 2003-07-01  Bruno Haible  <bruno@clisp.org>
77571
77572         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
77573         <sys/types.h> should be sufficient.
77574         Reported by Paul Eggert.
77575
77576 2003-06-26  Karl Berry  <karl@gnu.org>
77577
77578         * config/depcomp: update from automake.
77579
77580 2003-06-26  Bruno Haible  <bruno@clisp.org>
77581
77582         * modules/human: Depend on module stdbool.
77583
77584 2003-06-25  Bruno Haible  <bruno@clisp.org>
77585
77586         * modules/readlink: New file.
77587         * modules/xreadlink: Depend on it.
77588         * MODULES.html.sh (func_all_modules): Add readlink.
77589
77590 2003-06-25  Bruno Haible  <bruno@clisp.org>
77591
77592         * m4/readlink.m4: New file.
77593
77594 2003-06-25  Bruno Haible  <bruno@clisp.org>
77595
77596         * lib/readlink.c: New file.
77597
77598 2003-06-22  Karl Berry  <karl@gnu.org>
77599
77600         * config/srclist.txt: update mkinstalldirs from automake.
77601         * config/mkinstalldirs: update.
77602
77603 2003-06-22  Bruno Haible  <bruno@clisp.org>
77604
77605         Portability to mingw32.
77606         * m4/ssize_t.m4: New file, from GNU gettext.
77607         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
77608         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
77609
77610 2003-06-22  Bruno Haible  <bruno@clisp.org>
77611
77612         * modules/safe-read: Add m4/ssize_t.m4.
77613         * modules/xreadlink: Add m4/ssize_t.m4.
77614
77615 2003-06-20  Bruno Haible  <bruno@clisp.org>
77616
77617         Assume C89, so PARAMS isn't needed.
77618         * lib/unicodeio.h (PARAMS): Remove.
77619         * lib/unicodeio.c: Don't use PARAMS.
77620
77621 2003-06-18  Karl Berry  <karl@gnu.org>
77622
77623         * config/config.{guess,sub}: update from prep.
77624
77625 2003-06-18  Jim Meyering  <jim@meyering.net>
77626
77627         Merge changes from coreutils.
77628         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
77629         Remove explicit declarations of xmalloc and realloc.
77630         Include xalloc.h.
77631         (read_utmp): Remove anachronistic cast of xmalloc.
77632
77633 2003-06-17  Paul Eggert  <eggert@twinsun.com>
77634
77635         Assume C89, so PARAMS isn't needed.
77636         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
77637         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
77638         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
77639         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
77640         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
77641         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
77642         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
77643         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
77644         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
77645         lib/xstrtod.h, lib/xstrtol.h: Likewise.
77646         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
77647         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
77648         no longer needed. Anyway, config.h should always be included before any
77649         other file.
77650
77651 2003-06-11  Simon Josefsson  <jas@extundo.com>
77652
77653         * modules/sysexits: New file.
77654         * MODULES.html.sh (func_all_modules): Add sysexits.
77655
77656 2003-06-11  Simon Josefsson  <jas@extundo.com>
77657
77658         * lib/sysexit_.h: New file.
77659
77660 2003-06-11  Derek Price  <derek@ximbiot.com>
77661
77662         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
77663         necessary.
77664
77665 2003-06-11  Bruno Haible  <bruno@clisp.org>
77666
77667         * m4/sysexits.m4: New file.
77668
77669 2003-06-10  Simon Josefsson  <jas@extundo.com>
77670
77671         * lib/argp.h: New file, from glibc.
77672         * lib/argp-ba.c: New file, from glibc.
77673         * lib/argp-eexst.c: New file, from glibc.
77674         * lib/argp-fmtstream.c: New file, from glibc.
77675         * lib/argp-fmtstream.h: New file, from glibc.
77676         * lib/argp-fs-xinl.c: New file, from glibc.
77677         * lib/argp-help.c: New file, from glibc.
77678         * lib/argp-namefrob.h: New file, from glibc.
77679         * lib/argp-parse.c: New file, from glibc.
77680         * lib/argp-pv.c: New file, from glibc.
77681         * lib/argp-pvh.c: New file, from glibc.
77682         * lib/argp-xinl.c: New file, from glibc.
77683
77684 2003-06-10  Simon Josefsson  <jas@extundo.com>
77685
77686         * modules/strchrnul: New file.
77687
77688 2003-06-10  Simon Josefsson  <jas@extundo.com>
77689
77690         * modules/argp: New file.
77691
77692 2003-06-10  Simon Josefsson  <jas@extundo.com>
77693
77694         * m4/strchrnul.m4: New file.
77695
77696 2003-06-10  Simon Josefsson  <jas@extundo.com>
77697
77698         * lib/strchrnul.h: New file.
77699         * lib/strchrnul.c: New file.
77700
77701 2003-06-10  Bruno Haible  <bruno@clisp.org>
77702
77703         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
77704
77705 2003-06-07  Karl Berry  <karl@gnu.org>
77706
77707         * config/config.{guess,sub}: update from prep.
77708
77709 2003-06-07  Jim Meyering  <jim@meyering.net>
77710
77711         * modules/strtod: Use $(...) notation, not @...@ for
77712         AC_REPLACE'd variables.
77713         * modules/localcharset: Likewise.
77714
77715 2003-06-07  Jim Meyering  <jim@meyering.net>
77716
77717         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
77718         in place of my name in the copyright comment.
77719         Remove definition and uses of __P.
77720
77721         From coreutils.
77722         * lib/stat.c: Don't declare xmalloc explicitly.
77723         Instead, include "xalloc.h".
77724         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
77725         xrealloc, and xcalloc return values.
77726         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
77727         Improve comment.
77728         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
77729
77730 2003-06-07  Bruno Haible  <bruno@clisp.org>
77731
77732         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
77733         avoid AC_CONFIG_LINKS.
77734         * modules/fnmatch (Makefile.am): Use explicit creation rule for
77735         fnmatch.h, to avoid AC_CONFIG_LINKS.
77736         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
77737
77738 2003-06-07  Bruno Haible  <bruno@clisp.org>
77739
77740         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
77741         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
77742         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77743         directory.
77744         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
77745         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77746         directory.
77747
77748 2003-06-06  Jim Meyering  <jim@meyering.net>
77749
77750         Merge from coreutils.
77751         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
77752         Consolidate declarations and initializations of *_base* locals.
77753
77754         Merge from coreutils.
77755         This avoids a core dump on systems without GNU putenv,
77756         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
77757         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
77758         (unsetenv): New static function, from GNU libc.
77759         (rpl_putenv): Use it.
77760
77761         * lib/modechange.c: Remove trailing blanks.
77762
77763         Merge from coreutils.
77764         * lib/fsusage.c: Remove declaration of statfs.
77765         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
77766
77767         * lib/posixtm.c: Include <stdbool.h> unconditionally.
77768
77769 2003-06-06  Jim Meyering  <jim@meyering.net>
77770
77771         * lib/stdbool_.h: Renamed from stdbool.h.in.
77772
77773 2003-06-06  Jim Meyering  <jim@meyering.net>
77774             Bruno Haible  <bruno@clisp.org>
77775
77776         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
77777         Adjust Makefile.am snippet not to redirect directly to target.
77778         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
77779
77780 2003-06-05  Paul Eggert  <eggert@twinsun.com>
77781
77782         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
77783         mismatch, look in future quarters as well as past.  This fixes a
77784         bug when processing fall-backwards gaps immediately after a long
77785         period of daylight-saving time.
77786
77787         * lib/mktime.c: Assume freestanding C89 or better.
77788         (HAVE_LIMITS_H): Remove.  Assume it's 1.
77789         (__P): Remove; not used.
77790         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
77791         (mktime, not_equal_tm, print_tm, check_result,
77792         main): Use prototypes.  Use const * where appropriate.
77793         (main): Fix typo in testing code that uncovered by above changes.
77794         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
77795
77796 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77797
77798         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
77799         locale.h, localeconv.  This merges changes from coreutils.
77800
77801         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
77802         It can be removed after the next Autoconf is released.
77803         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
77804         needed.
77805
77806 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77807
77808         * lib/mktime.c: Fix Debian bug 177940
77809         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
77810         (localtime_offset): Now long int, not time_t, because we want it
77811         to be guaranteed to be signed.  All uses changed.
77812         (__mktime_internal): If overflow would occur when adding offset,
77813         don't add it.
77814
77815         Merge 'human' changes from coreutils.  Rewrite to support
77816         locale-specific notations like thousands separators.
77817         * lib/human.c: Simplify authorship notice.
77818         Include human.h immediately after config.h.
77819         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
77820         <limits.h>: Do not include, since human.h does.
77821         (SIZE_MAX, UINTMAX_MAX): New macros.
77822         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
77823         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
77824         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
77825         (power_letter): Renamed from suffixes.
77826         (generate_suffix_backwards): Remove.
77827         (adjust_value): Now takes int style (because of human.h changes)
77828         and long double value (for greater precision on some platforms).
77829         (group_number): New function.
77830         (human_readable): Use it.  Use integer options, not enum.
77831         Put the options before the sizes in the arg list.
77832         Support all the new options.
77833         The old human_readable function has been removed;
77834         use inttostr.h instead.
77835         (human_readable, default_block_size, humblock):
77836         Use uintmax_t, not int, for block sizes.
77837         (human_readable_inexact, block_size_types): Remove.
77838         (block_size_opts): New constant.
77839         (human_options): Renamed from human_block_size, with new signature
77840         that allows block sizes up to UINTMAX_MAX.  All callers changed.
77841         * lib/human.h: Add copyright and authorship notice.
77842         Include <limits.h> and <stdbool.h> unconditionally.
77843         (PARAMS): Remove.  All uses removed.
77844         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
77845         (enum human_inexact_style): Remove tag; now a nameless enum.
77846         (human_floor, human_ceiling, human_round_to_even): Now have
77847         values 2, 0, 1 rather than -1, 1, 0.
77848         (human_group_digits, human_suppress_point_zero, human_autoscale,
77849         human_base_1024, human_SI, human_B): New constants.
77850         (human_readable_inexact, human_block_size): Remove.
77851         (human_readable): Size args are now uintmax_t, not int.
77852         (human_options): New decl.
77853
77854         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
77855         unnecessary now that we assume C89 or better.  This change
77856         imported from coreutils.
77857
77858         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
77859         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
77860         in the 2003-05-30 sync from glibc.
77861
77862         .h files should stand alone, but we shouldn't include <sys/types.h>
77863         if we can get away with just <stddef.h>.
77864
77865         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
77866         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
77867         rather than <sys/types.h>, as we merely need size_t.
77868         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
77869         to get size_t.
77870         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
77871         Include <stdio.h>, to get FILE.
77872         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
77873         memcasecmp.h has included <stddef.h> and all we need is size_t.
77874         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
77875         our interface, instead of including <sys/types.h>
77876
77877 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77878
77879         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
77880         now, as glibc mktime is buggy on non-glibc systems.
77881
77882 2003-06-03  Karl Berry  <karl@gnu.org>
77883
77884         * config/config.sub: update from prep.
77885
77886 2003-06-02  Paul Eggert  <eggert@twinsun.com>
77887
77888         [from coreutils]
77889         Fix some minor time-related bugs with POSIX time arguments.
77890         Some valid time stamps were being rejected (notably -1, and
77891         time stamps before 1900 on 64-bit hosts).  And some invalid
77892         time stamps were being accepted, e.g. September 31.
77893
77894         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
77895         that we can return (time_t) -1 successfully.
77896         * lib/posixtm.c: Likewise.
77897         [HAVE_STDBOOL_H]: Include <stdbool.h>.
77898         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
77899         (t): Remove static var.
77900         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
77901         of static var.  All uses changed.
77902         (year): Do not reject years before 1900; they can occur with
77903         64-bit time_t.
77904         (posix_time_parse): Do not check for out-of-range components;
77905         that is now the caller's responsibility, since our checks were
77906         only approximations.
77907         (posixtime): Use mktime to check for out-of-range components,
77908         since it knows them exactly.
77909         If mktime returns (time_t) -1, check whether an error actually occurred
77910         by invoking localtime on -1.
77911         (main) [TEST_POSIXTIME]: Check for input data errors, and report
77912         posixtime failures better.
77913         Improve the test data (in comments only).
77914
77915 2003-06-02  Karl Berry  <karl@gnu.org>
77916
77917         * config/mkinstalldirs (version): new variable.
77918         (--version): new option.
77919         (usage): improve message.
77920
77921 2003-05-30  Karl Berry  <karl@gnu.org>
77922
77923         * lib/mktime.c: update from libc.
77924
77925 2003-05-30  Bruno Haible  <bruno@clisp.org>
77926
77927         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
77928         * config/config.rpath: Upgrade to gettext-0.12.1.
77929
77930 2003-05-30  Bruno Haible  <bruno@clisp.org>
77931
77932         * m4/gettext.m4: Upgrade to gettext-0.12.1.
77933         * m4/nls.m4: New file, from gettext-0.12.1.
77934         * m4/po.m4: New file, from gettext-0.12.1.
77935         * m4/progtest.m4: Upgrade to gettext-0.12.1.
77936
77937 2003-05-30  Bruno Haible  <bruno@clisp.org>
77938
77939         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
77940         * lib/localcharset.h: Likewise.
77941         * lib/localcharset.c: Likewise.
77942
77943 2003-05-29  Karl Berry  <karl@gnu.org>
77944
77945         * config/config.rpath: update from gettext.
77946
77947 2003-05-28  Paul Eggert  <eggert@twinsun.com>
77948
77949         Assume the headers required for C89 freestanding compilers.
77950         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
77951         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
77952         * m4/human.m4 (gl_HUMAN): Likewise.
77953         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
77954         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
77955         * m4/userspec.m4 (gl_USERSPEC): Likewise.
77956         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
77957         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77958         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
77959
77960 2003-05-28  Paul Eggert  <eggert@twinsun.com>
77961
77962         Assume the headers required for C89 freestanding compilers.
77963         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
77964         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
77965         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
77966         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
77967         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
77968         define, since <limits.h> is guaranteed to do that.
77969         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
77970         * lib/exclude.c: Include <stdbool.h> unconditionally.
77971         * lib/tempname.c: Include <stddef.h> unconditionally.
77972         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
77973         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
77974         <stddef.h> does that.
77975         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
77976         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
77977         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
77978         needed.
77979         * lib/xstrtol.c: Likewise.
77980         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
77981         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
77982
77983         * lib/addext.c (addext): Use assignment rather than cast, to avoid
77984         warnings on some platforms.
77985
77986         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
77987         arbitrarily.
77988
77989 2003-05-26  Jim Meyering  <jim@meyering.net>
77990
77991         Merge in a change from coreutils:
77992         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
77993         that is guaranteed to be `no'.  Use `no_such_member' to indicate
77994         that condition, rather than `-1' which is slightly misleading.
77995         Change the name of the cache variable to have the gl_ prefix.
77996         Prompted by a patch from Richard Dawe for DJGPP.
77997
77998 2003-05-24  Karl Berry  <karl@gnu.org>
77999
78000         * config/config.guess: update from prep.
78001
78002 2003-05-22  Karl Berry  <karl@gnu.org>
78003
78004         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
78005
78006 2003-05-20  Karl Berry  <karl@gnu.org>
78007
78008         * config/config.guess: update from prep.
78009
78010 2003-05-18  Karl Berry  <karl@gnu.org>
78011
78012         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
78013         might actually be set by the user.
78014
78015         * config/depcomp, install-sh, mdate-sh: update from automake.
78016
78017 2003-05-17  Bruno Haible  <bruno@clisp.org>
78018
78019         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
78020         invalid expansion for AC_EGREP_CPP.
78021         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
78022         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
78023         Suggested by Akim Demaille <akim@epita.fr> in
78024         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
78025
78026 2003-05-12  Jim Meyering  <jim@meyering.net>
78027
78028         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
78029         the space-padded-by-default conversion specifiers, %e, %k, %l.
78030
78031 2003-05-12  Bruno Haible  <bruno@clisp.org>
78032
78033         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
78034         the string is longer than 4 KB.
78035
78036 2003-05-11  Karl Berry  <karl@gnu.org>
78037
78038         * config/config.{guess,sub}: update from prep.
78039
78040 2003-05-09  Bruno Haible  <bruno@clisp.org>
78041
78042         * modules/error: Add m4/strerror_r.m4 to file list.
78043
78044 2003-05-03  Bruno Haible  <bruno@clisp.org>
78045
78046         Upgrade to Unicode-4.0.
78047         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
78048         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
78049         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
78050         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
78051         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
78052         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
78053         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
78054         Change width of U+E0100..U+E01EF from 1 to 0.
78055
78056 2003-04-25  Jim Meyering  <jim@meyering.net>
78057
78058         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
78059         of type size_t, not int.
78060
78061 2003-04-25  Bruno Haible  <bruno@clisp.org>
78062
78063         * lib/copy-file.c: Include <stddef.h>, for size_t.
78064
78065 2003-04-21  Paul Eggert  <eggert@twinsun.com>
78066
78067         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
78068         code which expansion is under static control.  Patch imported from
78069         Akim Demaille's patch to Bison; see
78070         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
78071
78072 2003-04-14  Bruno Haible  <bruno@clisp.org>
78073
78074         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
78075
78076 2003-04-11  Jim Meyering  <jim@meyering.net>
78077
78078         Merge changes from Coreutils.
78079
78080         2003-03-22  Jim Meyering  <jim@meyering.net>
78081
78082         * lib/strftime.c (widen): Cast alloca return value to proper type.
78083
78084         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
78085
78086         From GNU libc.
78087         * lib/strftime.c (my_strftime): Handle very large width
78088         specifications for numeric values correctly.  Improve checks for
78089         overflow.
78090
78091         2003-01-19  Jim Meyering  <jim@meyering.net>
78092
78093         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
78094         definitions.
78095         (nl_get_alt_digit) [! defined my_strftime]: Define.
78096         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
78097         _nl_get_alt_digit and _nl_get_walt_digit.
78098
78099         * lib/strftime.c (my_strftime): Merge in locale-related changes from
78100         libc. These changes have no effect outside of _LIBC.
78101
78102 2003-04-10  Bruno Haible  <bruno@clisp.org>
78103
78104         * modules/findprog: New file.
78105         * MODULES.html.sh (func_all_modules): Add it.
78106
78107 2003-04-10  Bruno Haible  <bruno@clisp.org>
78108
78109         * m4/findprog.m4: New file.
78110         * m4/eaccess.m4: New file.
78111
78112 2003-04-10  Bruno Haible  <bruno@clisp.org>
78113
78114         * lib/findprog.h: New file, from GNU gettext.
78115         * lib/findprog.c: New file, from GNU gettext.
78116
78117 2003-04-05  Jim Meyering  <jim@meyering.net>
78118
78119         Merge changes from Coreutils.
78120
78121         * lib/exclude.h (PARAMS): Remove definition and uses.
78122         * lib/exclude.c: Remove uses of `PARAMS'.
78123
78124         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
78125         Add test-cases for DOS filenames. Declare program_name.
78126         (main): Set up program_name.  Patch by Rich Dawe.
78127
78128         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78129         error from mntctl.
78130         Use mntctl's return value to drive the entry-processing loop, since
78131         we can't rely on the value of the vmt_length member in the last
78132         entry.  On some systems doing so could result in exhausting
78133         virtual memory.  Based in part on a patch from Mike Jetzer.
78134
78135 2003-04-04  Bruno Haible  <bruno@clisp.org>
78136
78137         * modules/linebreak: New file.
78138         * MODULES.html.sh (func_all_modules): Add it.
78139
78140 2003-04-04  Bruno Haible  <bruno@clisp.org>
78141
78142         * m4/linebreak.m4: New file.
78143
78144 2003-04-04  Bruno Haible  <bruno@clisp.org>
78145
78146         * lib/linebreak.h: New file, from GNU gettext.
78147         * lib/linebreak.c: New file, from GNU gettext with slight
78148         modifications.
78149         * lib/lbrkprop.h: New file, from GNU gettext.
78150
78151 2003-04-03  Bruno Haible  <bruno@clisp.org>
78152
78153         * modules/utf8-ucs4: New file.
78154         * modules/utf16-ucs4: New file.
78155         * modules/ucs4-utf8: New file.
78156         * modules/ucs4-utf16: New file.
78157         * MODULES.html.sh (func_all_modules): Add them.
78158
78159 2003-04-03  Bruno Haible  <bruno@clisp.org>
78160
78161         * m4/utf-ucs4.m4: New file.
78162         * m4/ucs4-utf.m4: New file.
78163
78164 2003-04-03  Bruno Haible  <bruno@clisp.org>
78165
78166         * lib/utf8-ucs4.h: New file, from GNU gettext.
78167         * lib/utf16-ucs4.h: New file, from GNU gettext.
78168         * lib/ucs4-utf8.h: New file, from GNU gettext.
78169         * lib/ucs4-utf16.h: New file, from GNU gettext.
78170
78171 2003-04-02  Bruno Haible  <bruno@clisp.org>
78172
78173         * modules/binary-io: New file.
78174         * MODULES.html.sh (func_all_modules): Add it.
78175
78176 2003-04-02  Bruno Haible  <bruno@clisp.org>
78177
78178         * lib/binary-io.h: New file, from GNU gettext.
78179
78180 2003-04-01  Bruno Haible  <bruno@clisp.org>
78181
78182         * modules/pathname: New file.
78183         * MODULES.html.sh (func_all_modules): Add it.
78184
78185 2003-04-01  Bruno Haible  <bruno@clisp.org>
78186
78187         * lib/pathname.h: New file, from GNU gettext.
78188         * lib/concatpath.c: New file, from GNU gettext.
78189
78190 2003-03-30  Bruno Haible  <bruno@clisp.org>
78191
78192         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
78193
78194 2003-03-30  Bruno Haible  <bruno@clisp.org>
78195
78196         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
78197         function chown() doesn't exist.
78198
78199 2003-03-28  Bruno Haible  <bruno@clisp.org>
78200
78201         * modules/copy-file: New file.
78202         * MODULES.html.sh (func_all_modules): Add it.
78203
78204 2003-03-28  Bruno Haible  <bruno@clisp.org>
78205
78206         * m4/copy-file.m4: New file.
78207
78208 2003-03-28  Bruno Haible  <bruno@clisp.org>
78209
78210         * lib/copy-file.h: New file, from GNU gettext.
78211         * lib/copy-file.c: New file, from GNU gettext.
78212
78213 2003-03-18  Jim Meyering  <jim@meyering.net>
78214
78215         * lib/quote.c (quote_n): Fix typo in comment.
78216
78217 2003-03-18  Bruno Haible  <bruno@clisp.org>
78218
78219         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
78220         checking.
78221         * m4/onceonly_2_57.m4: Likewise.
78222
78223 2003-03-17  Bruno Haible  <bruno@clisp.org>
78224
78225         * m4/onceonly.m4: Require autoconf 2.54 or newer.
78226         (m4_quote): Remove macro.
78227         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
78228
78229 2003-03-14  Jim Meyering  <jim@meyering.net>
78230
78231         Merge changes from Coreutils.
78232         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
78233         to be const, in order to avoid warnings.
78234         (obstack_room): Likewise.
78235         (obstack_empty_p): Likewise.
78236
78237 2003-03-14  Bruno Haible  <bruno@clisp.org>
78238
78239         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
78240         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
78241
78242 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78243
78244         Merge changes from Bison.
78245         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
78246         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
78247         when compiling Bison 1.875's `bitset bset = obstack_alloc
78248         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
78249         * lib/hash.c: Include <stdbool.h> unconditionally.
78250
78251 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78252
78253         * m4/onceonly.m4 (m4_quote): New macro.
78254         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
78255         Quote AC_FOREACH variable-expansions properly.
78256
78257 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78258
78259         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
78260
78261 2003-03-09  Paul Eggert  <eggert@twinsun.com>
78262
78263         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
78264         Reported by Bruce Becker; see:
78265         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
78266
78267 2003-03-03  Paul Eggert  <eggert@twinsun.com>
78268             Bruno Haible  <bruno@clisp.org>
78269
78270         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
78271         Reported by John Hughes, see
78272         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
78273
78274 2003-02-20  Bruno Haible  <bruno@clisp.org>
78275
78276         * MODULES.html.sh (func_all_modules): Add poll.
78277
78278 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78279
78280         * modules/poll: New file.
78281
78282 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78283
78284         * lib/poll_.h: New file.
78285         * lib/poll.c: New file.
78286
78287 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78288
78289         * m4/poll.m4: New file.
78290
78291 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78292
78293         * modules/mathl: New file.
78294
78295 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78296
78297         * lib/mathl.h: New file.
78298         * lib/acosl.c: New file.
78299         * lib/asinl.c: New file.
78300         * lib/atanl.c: New file.
78301         * lib/ceill.c: New file.
78302         * lib/cosl.c: New file.
78303         * lib/expl.c: New file.
78304         * lib/floorl.c: New file.
78305         * lib/frexpl.c: New file.
78306         * lib/ldexpl.c: New file.
78307         * lib/logl.c: New file.
78308         * lib/sincosl.c: New file.
78309         * lib/sinl.c: New file.
78310         * lib/sqrtl.c: New file.
78311         * lib/tanl.c: New file.
78312         * lib/trigl.c: New file.
78313         * lib/trigl.h: New file.
78314
78315 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78316
78317         * m4/mathl.m4: New file.
78318
78319 2003-02-18  Bruno Haible  <bruno@clisp.org>
78320
78321         * MODULES.html.sh (func_all_modules): Add mathl.
78322
78323 2003-02-17  Bruno Haible  <bruno@clisp.org>
78324
78325         * modules/mkdtemp: New module.
78326         * MODULES.html.sh (func_all_modules): Add it.
78327
78328 2003-02-17  Bruno Haible  <bruno@clisp.org>
78329
78330         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
78331
78332 2003-02-17  Bruno Haible  <bruno@clisp.org>
78333
78334         * lib/mkdtemp.h: New file, from GNU gettext.
78335         * lib/mkdtemp.c: New file, from GNU gettext.
78336
78337 2003-02-02  Jim Meyering  <jim@meyering.net>
78338
78339         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
78340         e.g. glibc-2.2.93.
78341
78342 2003-01-31  Bruno Haible  <bruno@clisp.org>
78343
78344         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
78345         'rpl_rename'.
78346         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
78347         'rpl_strnlen'.
78348         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
78349         'rpl_strtod'.
78350         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
78351         'rpl_utime'.
78352
78353 2003-01-31  Bruno Haible  <bruno@clisp.org>
78354
78355         * lib/rename.c: #undef rename before defining rpl_rename.
78356         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
78357
78358 2003-01-30  Bruno Haible  <bruno@clisp.org>
78359
78360         * modules/vasnprintf, modules/vasprintf: New modules.
78361         * MODULES.html.sh (func_all_modules): Add them.
78362
78363 2003-01-30  Bruno Haible  <bruno@clisp.org>
78364
78365         * m4/signed.m4: New file, from GNU gettext.
78366         * m4/longdouble.m4: New file, from GNU gettext.
78367         * m4/wchar_t.m4: New file, from GNU gettext.
78368         * m4/wint_t.m4: New file, from GNU gettext.
78369         * m4/vasnprintf.m4: New file.
78370         * m4/vasprintf.m4: New file.
78371
78372 2003-01-30  Bruno Haible  <bruno@clisp.org>
78373
78374         * lib/printf-args.h: New file, from GNU gettext.
78375         * lib/printf-args.c: New file, from GNU gettext.
78376         * lib/printf-parse.h: New file, from GNU gettext.
78377         * lib/printf-parse.c: New file, from GNU gettext.
78378         * lib/vasnprintf.h: New file, from GNU gettext.
78379         * lib/vasnprintf.c: New file, from GNU gettext.
78380         * lib/asnprintf.c: New file, from GNU gettext.
78381         * lib/vasprintf.h: New file, from GNU gettext with modifications.
78382         * lib/vasprintf.c: New file, from GNU gettext.
78383         * lib/asprintf.c: New file, from GNU gettext.
78384
78385 2003-01-29  Bruno Haible  <bruno@clisp.org>
78386
78387         * modules/stpncpy: New module.
78388         * MODULES.html.sh (func_all_modules): Add it.
78389
78390 2003-01-29  Bruno Haible  <bruno@clisp.org>
78391
78392         * m4/stpncpy.m4: New file.
78393
78394 2003-01-29  Bruno Haible  <bruno@clisp.org>
78395
78396         * lib/stpncpy.h: New file, from GNU gettext with modifications.
78397         * lib/stpncpy.c: New file, from GNU gettext with modifications.
78398
78399 2003-01-28  Bruno Haible  <bruno@clisp.org>
78400
78401         * modules/c-ctype: New module.
78402         * MODULES.html.sh (func_all_modules): Add it.
78403
78404 2003-01-28  Bruno Haible  <bruno@clisp.org>
78405
78406         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
78407         Paul Eggert.
78408         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
78409         Paul Eggert.
78410
78411 2003-01-27  Bruno Haible  <bruno@clisp.org>
78412
78413         * modules/xsetenv: New module.
78414         * MODULES.html.sh (func_all_modules): Add it.
78415
78416 2003-01-27  Bruno Haible  <bruno@clisp.org>
78417
78418         * lib/xsetenv.h: New file, from GNU gettext.
78419         * lib/xsetenv.c: New file, from GNU gettext.
78420
78421 2003-01-23  Jim Meyering  <jim@meyering.net>
78422
78423         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
78424         from working on systems without dirfd (at least Irix and OSF1/Tru64).
78425
78426 2003-01-23  Bruno Haible  <bruno@clisp.org>
78427
78428         * modules/minmax: New module.
78429         * MODULES.html.sh (func_all_modules): Add it.
78430
78431 2003-01-23  Bruno Haible  <bruno@clisp.org>
78432
78433         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
78434         Eggert.
78435
78436 2003-01-22  Bruno Haible  <bruno@clisp.org>
78437
78438         * modules/exit: New module.
78439         * MODULES.html.sh (func_all_modules): Add it.
78440
78441 2003-01-22  Bruno Haible  <bruno@clisp.org>
78442
78443         * lib/exit.h: New file, from GNU gettext.
78444
78445 2003-01-19  Bruno Haible  <bruno@clisp.org>
78446
78447         * gnulib-tool: Recognize option --extract-maintainer.
78448         (func_get_maintainer): New function.
78449         * modules/*: Add Maintainer entry.
78450
78451 2003-01-16  Jim Meyering  <jim@meyering.net>
78452
78453         * m4/regex.m4: The `regex' struct is both input and output.
78454         Initialize it before each use.  Patch by Tim Waugh.
78455
78456 2003-01-16  Bruno Haible  <bruno@clisp.org>
78457
78458         * MODULES.html.sh: Add a table of contents. Add the module name as
78459         leftmost column. Add hyperlinks.
78460
78461 2003-01-15  Bruno Haible  <bruno@clisp.org>
78462
78463         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
78464
78465 2003-01-15  Bruno Haible  <bruno@clisp.org>
78466
78467         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
78468         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
78469         suffix.
78470
78471 2003-01-15  Bruno Haible  <bruno@clisp.org>
78472
78473         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
78474
78475 2003-01-15  Bruno Haible  <bruno@clisp.org>
78476
78477         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
78478         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
78479
78480 2003-01-14  Jim Meyering  <jim@meyering.net>
78481
78482         * lib/same.c (same_name): Tweak a comment.
78483
78484 2003-01-14  Bruno Haible  <bruno@clisp.org>
78485
78486         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
78487         when a string comparison is sufficient.
78488
78489 2003-01-14  Bruno Haible  <bruno@clisp.org>
78490
78491         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
78492         'unsigned int'.
78493
78494 2003-01-14  Bruno Haible  <bruno@clisp.org>
78495
78496         * lib/hash-pjw.c: Add comment about low quality of this function.
78497
78498 2003-01-13  Bruno Haible  <bruno@clisp.org>
78499
78500         * modules/stpcpy: Distribute lib/stpcpy.h.
78501         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
78502
78503 2003-01-13  Bruno Haible  <bruno@clisp.org>
78504
78505         * modules/*: Add a description.
78506         * modules/strpbrk: Fix Makefile.am snippet.
78507         * modules/strtoimax: Fix dependencies.
78508         * modules/strtoumax: Likewise.
78509
78510 2003-01-13  Bruno Haible  <bruno@clisp.org>
78511
78512         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
78513         * modules/alloca (Makefile.am): All object files depend on alloca.h.
78514         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
78515
78516 2003-01-13  Bruno Haible  <bruno@clisp.org>
78517
78518         * gnulib-tool (func_create_testdir): Store config/* files in the main
78519         directory.
78520         * config.rpath: Move to ...
78521         * config/config.rpath: ... here.
78522         * modules/gettext: Contains config/config.rpath, not config.rpath.
78523         * modules/iconv: Likewise.
78524
78525 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78526
78527         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78528         to avoid collisions with libcurses and libreadline.
78529
78530         * m4/getstr.m4: Remove.
78531         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
78532
78533 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78534
78535         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78536         to avoid collisions with libcurses and libreadline.
78537
78538         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
78539         * lib/getstr.h, getstr.c: Remove.
78540         * lib/getline.c: Include "getline.h", to check interface.
78541         Move body of old getstr.c here: this defines MIN_CHUNK and
78542         declares getdelim2, which is renamed from getstr.
78543         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
78544
78545         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
78546         All uses changed.
78547         * lib/linebuffer.h: Likewise.
78548         (readline): Remove backward-compatibility macro.
78549
78550 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78551
78552         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78553         to avoid collisions with libcurses and libreadline.
78554         * getstr: Remove.
78555         * MODULES.html.sh: Remove getstr.
78556         * modules/getline: Depend on unlocked-io, not getstr.
78557
78558 2003-01-12  Jim Meyering  <jim@meyering.net>
78559
78560         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
78561
78562 2003-01-10  Bruno Haible  <bruno@clisp.org>
78563
78564         * modules/alloca: Change Makefile.am requirements. Simplify Include
78565         requirements. Add lib/alloca_.h to file list.
78566
78567 2003-01-10  Bruno Haible  <bruno@clisp.org>
78568
78569         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
78570
78571 2003-01-10  Bruno Haible  <bruno@clisp.org>
78572
78573         * lib/alloca_.h: New file.
78574         * lib/getdate.y: Unconditionally include alloca.h.
78575         * lib/makepath.c: Likewise.
78576         * lib/setenv.c: Likewise.
78577         * lib/userspec.c: Likewise.
78578
78579 2003-01-09  Karl Berry  <karl@gnu.org>
78580
78581         * MODULES.html.sh: include `dirname $0` in PATH, to find
78582         gnulib-tool.
78583
78584 2003-01-09  Bruno Haible  <bruno@clisp.org>
78585
78586         * modules/stdbool: Change configure.ac, Makefile.am requirements.
78587         Simplify Include requirements. Add lib/stdbool.h.in to file list.
78588
78589 2003-01-09  Bruno Haible  <bruno@clisp.org>
78590
78591         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
78592
78593 2003-01-09  Bruno Haible  <bruno@clisp.org>
78594
78595         * lib/stdbool.h.in: New file.
78596
78597 2003-01-09  Bruno Haible  <bruno@clisp.org>
78598
78599         * gnulib-tool (func_all_modules): Ignore files ending in ~.
78600         * MODULES.html.sh: Likewise.
78601
78602 2003-01-08  Jim Meyering  <jim@meyering.net>
78603
78604         * lib/full-write.c: Undefine and define-away `const' after inclusion
78605         of errno.h, not before.  Suggestion from Bruno Haible.
78606
78607 2003-01-08  Bruno Haible  <bruno@clisp.org>
78608
78609         * modules/full-read: Depend on full-write.
78610
78611 2003-01-08  Bruno Haible  <bruno@clisp.org>
78612
78613         * lib/safe-read.c: Include specification header first, to ensure its
78614         selfcontainedness.
78615         * lib/full-write.c: Likewise.
78616
78617 2003-01-07  Jim Meyering  <jim@meyering.net>
78618
78619         * lib/full-write.c: Rework so that it may serve to define full_read,
78620         too.
78621         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
78622
78623 2003-01-07  Bruno Haible  <bruno@clisp.org>
78624
78625         * lib/strtoimax.c: Include <stdint.h> as an alternative to
78626         <inttypes.h>.
78627         * lib/xstrtol.h: Likewise.
78628         * lib/xstrtoimax.c: Likewise.
78629         * lib/xstrtoumax.c: Likewise.
78630         * lib/human.h: Likewise.
78631
78632         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
78633         on systems that have <inttypes.h> but not <stdint.h>.
78634
78635 2003-01-07  Bruno Haible  <bruno@clisp.org>
78636
78637         * MODULES.html.sh: Add copyright notice.
78638         (missed_files): Omit CVS directory entries.
78639         (func_module): Make it work with sed-3.02.
78640         * MODULES.txt: Remove file.
78641
78642 2003-01-06  Jim Meyering  <jim@meyering.net>
78643
78644         * lib/version-etc.c: Update year in translatable copyright string.
78645
78646 2003-01-03  Karl Berry  <karl@gnu.org>
78647
78648         * config/config.{guess,sub}: update from prep.
78649
78650 2003-01-02  Karl Berry  <karl@gnu.org>
78651
78652         * doc/COPYING.DOC: belatedly updated to 1.2.
78653
78654 2003-01-01  Karl Berry  <karl@gnu.org>
78655
78656         * gnulib-tool (func_verify_module): report module name $module in
78657         error message, not $1.
78658         * gnulib-tool (create-testdir): don't complain if destdir couldn't
78659         be created, only if it doesn't exist.
78660         * gnulib-tool (last_checkin_date): don't expand the $Date here.
78661
78662 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78663
78664         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
78665
78666 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78667
78668         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
78669         memcmp if strcoll doesn't work.
78670
78671 2002-12-31  Bruno Haible  <bruno@clisp.org>
78672
78673         * lib/utime.c (utime_null): No need to call ftruncate if the file was
78674         nonempty.
78675
78676 2002-12-31  Bruno Haible  <bruno@clisp.org>
78677
78678         * lib/memcoll.c (STRCOLL): New macro.
78679         (memcoll): Use it.
78680
78681 2002-12-31  Bruno Haible  <bruno@clisp.org>
78682
78683         * lib/localcharset.h: New file.
78684         * lib/localcharset.c: Include it.
78685         * lib/unicodeio.c: Likewise.
78686
78687 2002-12-31  Bruno Haible  <bruno@clisp.org>
78688
78689         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
78690         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
78691
78692 2002-12-31  Bruno Haible  <bruno@clisp.org>
78693
78694         * lib/getline.h: Include <stddef.h>, for size_t.
78695
78696         * lib/unicodeio.h: Include <stddef.h>, for size_t.
78697         * lib/unicodeio.c: Don't include <stddef.h>.
78698
78699 2002-12-31  Bruno Haible  <bruno@clisp.org>
78700
78701         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
78702         HAVE_TM_ZONE.
78703
78704 2002-12-24  Karl Berry  <karl@gnu.org>
78705
78706         * config/config.guess: update from prep.
78707
78708 2002-12-24  Bruno Haible  <bruno@clisp.org>
78709
78710         General infrasructure.
78711         * m4/README: Rewritten.
78712         * m4/onceonly.m4: New file.
78713         * m4/onceonly_2_57.m4: New file.
78714
78715         Module atexit.
78716         * m4/atexit.m4: New file.
78717
78718         Module strtod.
78719         * m4/strtod.m4: New file.
78720
78721         Module strtol.
78722         * m4/strtol.m4: New file.
78723
78724         Module strtoul.
78725         * m4/strtoul.m4: New file.
78726
78727         Module memchr.
78728         * m4/memchr.m4: New file.
78729
78730         Module memcmp.
78731         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
78732         (jm_FUNC_MEMCMP): Invoke it.
78733
78734         Module memcpy.
78735         * m4/memcpy.m4: New file.
78736
78737         Module memmove.
78738         * m4/memmove.m4: New file.
78739
78740         Module memset.
78741         * m4/memset.m4: New file.
78742
78743         Module strcspn.
78744         * m4/strcspn.m4: New file.
78745
78746         Module strpbrk.
78747         * m4/strpbrk.m4: New file.
78748
78749         Module strstr.
78750         * m4/strstr.m4: New file.
78751
78752         Module strerror.
78753         * m4/strerror.m4: New file.
78754
78755         Module mktime.
78756         * m4/mktime.m4: Renamed from jm-mktime.m4.
78757         (gl_PREREQ_MKTIME): New macro.
78758         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
78759
78760         Module malloc.
78761         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
78762         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
78763         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
78764
78765         Module realloc.
78766         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
78767         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
78768         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
78769
78770         Module strftime.
78771         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
78772         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
78773         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
78774         gl_TM_GMTOFF.
78775         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
78776
78777         Module xalloc.
78778         * m4/xalloc.m4: New file.
78779
78780         Module alloca.
78781         * m4/alloca.m4: New file.
78782
78783         Module putenv.
78784         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
78785         (jm_FUNC_PUTENV): Invoke it.
78786
78787         Module setenv.
78788         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
78789         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
78790         when invoked twice.
78791         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
78792         gt_FUNC_SETENV.
78793
78794         Module memrchr.
78795         * m4/memrchr.m4: New file.
78796
78797         Module stpcpy.
78798         * m4/stpcpy.m4: New file.
78799
78800         Module strcase.
78801         * m4/strcase.m4: New file.
78802
78803         Module strdup.
78804         * m4/strdup.m4: New file.
78805
78806         Module strnlen.
78807         * m4/strnlen.m4: New file.
78808
78809         Module strndup.
78810         * m4/strndup.m4: New file.
78811
78812         Module xstrtod.
78813         * m4/xstrtod.m4: New file.
78814
78815         Module xstrtol.
78816         * m4/xstrtol.m4: New file.
78817
78818         Module getdate.
78819         * m4/getdate.m4: New file.
78820
78821         Module unlocked-io.
78822         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
78823         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
78824         * m4/jm-glibc-io.m4n: Remove file.
78825
78826         Module long-options.
78827         * m4/long-options.m4: New file.
78828
78829         Module md5.
78830         * m4/md5.m4: New file.
78831
78832         Module sha.
78833         * m4/sha.m4: New file.
78834
78835         Module getstr.
78836         * m4/getstr.m4: New file.
78837
78838         Module getline.
78839         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
78840         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
78841         <sys/types.h>, for size_t. Use the function name gnu_getline, not
78842         simply getline. Infoke gl_PREREQ_GETLINE.
78843
78844         Module obstack.
78845         * m4/obstack.m4: New file.
78846
78847         Module hash.
78848         * m4/hash.m4: New file.
78849
78850         Module readtokens.
78851         * m4/readtokens.m4: New file.
78852
78853         Module strverscmp.
78854         * m4/strverscmp.m4: New file.
78855
78856         Module stdbool.
78857         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
78858         OSF/1.
78859
78860         Module strtoll.
78861         * m4/strtoll.m4: New file.
78862
78863         Module strtoull.
78864         * m4/strtoull.m4: New file.
78865
78866         Module strtoimax.
78867         * m4/strtoimax.m4: New file.
78868
78869         Module strtoumax.
78870         * m4/strtoumax.m4: New file.
78871
78872         Module xstrtoimax.
78873         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
78874         jm_AC_PREREQ_XSTRTOIMAX.
78875         Moved the strtol prerequisites to strtol.m4.
78876         Moved the strtoll prerequisites to strtoll.m4.
78877         Moved the strtoimax prerequisites to strtoimax.m4.
78878
78879         Module xstrtoumax.
78880         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
78881         jm_AC_PREREQ_XSTRTOUMAX.
78882         Moved the strtoul prerequisites to strtoul.m4.
78883         Moved the strtoull prerequisites to strtoull.m4.
78884         Moved the strtoumax prerequisites to strtoumax.m4.
78885
78886         Module chown.
78887         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
78888         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
78889
78890         Module dup2.
78891         * m4/dup2.m4: New file.
78892
78893         Module ftruncate.
78894         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
78895         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
78896
78897         Module getgroups.
78898         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
78899         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
78900
78901         Module gettimeofday.
78902         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
78903         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
78904         gl_PREREQ_GETTIMEOFDAY.
78905
78906         Module mkdir.
78907         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
78908         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
78909
78910         Module mkstemp.
78911         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
78912         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
78913         jm_AC_TYPE_UINTMAX_T.
78914         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
78915
78916         Module stat.
78917         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
78918         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
78919
78920         Module lstat.
78921         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
78922         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
78923
78924         Module timespec.
78925         * m4/timespec.m4 (gl_TIMESPEC): New macro.
78926         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
78927         * m4/st_mtim.m4: Indentation.
78928
78929         Module nanosleep.
78930         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
78931         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
78932         gl_PREREQ_NANOSLEEP.
78933
78934         Module regex.
78935         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
78936         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
78937         (gl_REGEX): New macro.
78938
78939         Module rename.
78940         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
78941         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
78942
78943         Module rmdir.
78944         * m4/rmdir.m4: New file.
78945
78946         Module utime.
78947         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
78948         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
78949         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
78950
78951         Module dirname.
78952         * m4/dirname.m4: New file.
78953
78954         Module getopt.
78955         * m4/getopt.m4: New file.
78956
78957         Module unistd-safer.
78958         * m4/unistd-safer.m4: New file.
78959
78960         Module fnmatch.
78961         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
78962         declaration.
78963         (gl_PREREQ_FNMATCH_EXTRA): New macro.
78964         (gl_FUNC_FNMATCH_POSIX): New macro.
78965         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
78966         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
78967         simply fnmatch.
78968
78969         Module exclude.
78970         * m4/exclude.m4: New file.
78971
78972         Module human.
78973         * m4/human.m4: New file.
78974
78975         Module acl.
78976         * m4/acl.m4: Nop.
78977
78978         Module backupfile.
78979         * m4/backupfile.m4: New file.
78980         * m4/d-ino.m4: Indentation.
78981
78982         Module fsusage.
78983         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
78984         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
78985         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
78986
78987         Module dirfd.
78988         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
78989         requirements.
78990
78991         Module euidaccess.
78992         * m4/euidaccess.m4: New file.
78993
78994         Module file-type.
78995         * m4/file-type.m4: New file.
78996
78997         Module fileblocks.
78998         * m4/fileblocks.m4: New file.
78999
79000         Module filemode.
79001         * m4/filemode.m4: New file.
79002
79003         Module isdir.
79004         * m4/isdir.m4: New file.
79005
79006         Module lchown.
79007         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
79008         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
79009
79010         Module makepath.
79011         * m4/makepath.m4: New file.
79012
79013         Module modechange.
79014         * m4/modechange.m4: New file.
79015
79016         Module mountlist.
79017         * m4/mountlist.m4: New file.
79018         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
79019         Indentation.
79020
79021         Module path-concat.
79022         * m4/path-concat.m4: New file.
79023
79024         Module pathmax.
79025         * m4/pathmax.m4: New file.
79026
79027         Module same.
79028         * m4/same.m4: New file.
79029
79030         Module save-cwd.
79031         * m4/save-cwd.m4: New file.
79032
79033         Module savedir.
79034         * m4/savedir.m4: New file.
79035
79036         Module xgetcwd.
79037         * m4/xgetcwd.m4: New file.
79038         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
79039
79040         Module xreadlink.
79041         * m4/xreadlink.m4: New file.
79042
79043         Module safe-read.
79044         * m4/safe-read.m4: New file.
79045
79046         Module safe-write.
79047         * m4/safe-write.m4: New file.
79048
79049         Module closeout.
79050         * m4/closeout.m4: New file.
79051
79052         Module stdio-safer.
79053         * m4/stdio-safer.m4: New file.
79054
79055         Module getpass.
79056         * m4/getpass.m4: New file.
79057
79058         Module getugroups.
79059         * m4/getugroups.m4: New file.
79060
79061         Module group-member.
79062         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
79063         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
79064
79065         Module idcache.
79066         * m4/idcache.m4: New file.
79067
79068         Module userspec.
79069         * m4/userspec.m4: New file.
79070
79071         Module gettime.
79072         * m4/clock_time.m4: New file.
79073         * m4/gettime.m4: New file.
79074
79075         Module settime.
79076         * m4/settime.m4: New file.
79077
79078         Module posixtm.
79079         * m4/posixtm.m4: New file.
79080
79081         Module gethostname.
79082         * m4/gethostname.m4: New file.
79083
79084         Module canon-host.
79085         * m4/canon-host.m4: New file.
79086
79087         Module gettext.
79088         * m4/codeset.m4: New file, from gettext-0.11.5.
79089         * m4/gettext.m4: New file, from gettext-0.11.5.
79090         * m4/glibc21.m4: New file, from gettext-0.11.5.
79091         * m4/iconv.m4: New file, from gettext-0.11.5.
79092         * m4/intdiv0.m4: New file, from gettext-0.11.5.
79093         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
79094         * m4/inttypes.m4: New file, from gettext-0.11.5.
79095         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
79096         * m4/isc-posix.m4: New file, from gettext-0.11.5.
79097         * m4/lcmessage.m4: New file, from gettext-0.11.5.
79098         * m4/lib-ld.m4: New file, from gettext-0.11.5.
79099         * m4/lib-link.m4: New file, from gettext-0.11.5.
79100         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
79101         * m4/progtest.m4: New file, from gettext-0.11.5.
79102         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
79103         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
79104         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
79105
79106         Module localcharset.
79107         * m4/localcharset.m4: New file.
79108
79109         Module hard-locale.
79110         * m4/hard-locale.m4: New file.
79111
79112         Module mbswidth.
79113         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
79114         onceonly macros.
79115         * m4/mbrtowc.m4: Add comment.
79116
79117         Module memcasecmp.
79118         * m4/memcasecmp.m4: New file.
79119
79120         Module memcoll.
79121         * m4/memcoll.m4: New file.
79122
79123         Module unicodeio.
79124         * m4/unicodeio.m4: New file.
79125
79126         Module rpmatch.
79127         * m4/rpmatch.m4: New file.
79128
79129         Module yesno.
79130         * m4/yesno.m4: New file.
79131
79132         Module exitfail.
79133         * m4/exitfail.m4: New file.
79134
79135         Module c-stack.
79136         * m4/c-stack.m4 (gl_C_STACK): New macro.
79137         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
79138
79139         Module error.
79140         * m4/error.m4 (gl_ERROR): New macro.
79141         (jm_PREREQ_ERROR): Use onceonly macros.
79142
79143         Module fatal.
79144         * m4/fatal.m4: New file.
79145
79146         Module getloadavg.
79147         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
79148         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
79149
79150         Module getpagesize.
79151         * m4/getpagesize.m4: New file.
79152
79153         Module getusershell.
79154         * m4/getusershell.m4: New file.
79155
79156         Module physmem.
79157         * m4/physmem.m4: New file.
79158
79159         Module posixver.
79160         * m4/posixver.m4: New file.
79161
79162         Module quotearg.
79163         * m4/quotearg.m4: New file.
79164
79165         Module quote.
79166         * m4/quote.m4: New file.
79167
79168         Module readutmp.
79169         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
79170
79171         Module sig2str.
79172         * m4/sig2str.m4: New file.
79173
79174         Other.
79175         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
79176         ulonglong.m4.
79177         * m4/intmax_t.m4: New file.
79178         * m4/d-type.m4: Indentation.
79179         * m4/jm-macros.m4: Update.
79180         * m4/prereq.m4 (jm_PREREQ): Update.
79181         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
79182         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
79183         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
79184         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
79185         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
79186         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
79187         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
79188         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
79189         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
79190         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
79191         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
79192         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
79193         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
79194         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
79195         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
79196         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
79197         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
79198         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
79199         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
79200
79201 2002-12-24  Bruno Haible  <bruno@clisp.org>
79202
79203         * MODULES.txt: Update according to m4/ changes.
79204
79205         Module gettext.
79206         * config.rpath: New file, from gettext-0.11.5.
79207
79208         * modules/*: New module descriptions.
79209         * gnulib-tool: New file.
79210         * MODULES.html.sh: New file.
79211
79212 2002-12-21  Karl Berry  <karl@gnu.org>
79213
79214         * doc/fdl.texi: update to version 1.2.
79215
79216 2002-12-19  Karl Berry  <karl@gnu.org>
79217
79218         * config/config.guess: update from prep.
79219
79220 2002-12-18  Bruno Haible  <bruno@clisp.org>
79221
79222         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
79223         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
79224
79225 2002-12-17  Bruno Haible  <bruno@clisp.org>
79226
79227         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
79228         stdlib.h, string.h.
79229
79230 2002-12-17  Bruno Haible  <bruno@clisp.org>
79231
79232         * lib/canon-host.c (strdup): Remove unused declaration.
79233
79234         * lib/fsusage.c: Include full_read.h.
79235         (get_fs_usage): Use full_read instead of safe_read.
79236
79237         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
79238
79239 2002-12-12  Karl Berry  <karl@gnu.org>
79240
79241         * config/config.guess: update from prep.
79242
79243 2002-12-11  Bruno Haible  <bruno@clisp.org>
79244
79245         * m4/setenv.m4: New file, from gettext-0.11.5.
79246
79247 2002-12-11  Bruno Haible  <bruno@clisp.org>
79248
79249         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
79250         not unsetenv().
79251         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
79252         modifications:
79253
79254         2002-12-11  Bruno Haible  <bruno@clisp.org>
79255
79256                 * setenv.c (alloca): Fall back to malloc.
79257                 (freea): New macro.
79258                 (setenv): Use freea() to free memory allocated with alloca().
79259
79260         2002-11-13  Bruno Haible  <bruno@clisp.org>
79261
79262                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
79263                 function declarations.
79264                 * unsetenv.c (unsetenv): Likewise.
79265
79266         2002-03-04  Bruno Haible  <bruno@clisp.org>
79267
79268                 Portability to AIX 4.3.3.
79269                 * unsetenv.c: New file, extracted from setenv.c.
79270                 * setenv.c: Move the unsetenv() function to unsetenv.c.
79271
79272         2001-12-20  Bruno Haible  <bruno@clisp.org>
79273
79274                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
79275                 use malloc instead. For SunOS 4.
79276
79277         2001-12-11  Bruno Haible  <bruno@clisp.org>
79278
79279                 * setenv.c: Declare alloca.
79280                 (compar_fn_t): New typedef.
79281                 (KNOWN_VALUE, STORE_VALUE): Use it.
79282
79283         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
79284         setenv.h.
79285
79286 2002-12-10  Paul Eggert  <eggert@twinsun.com>
79287
79288         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
79289         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
79290         Choose values that are less likely to collide with system fnmatch
79291         options.
79292         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
79293         defined (e.g., a pure POSIX system).
79294         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
79295         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
79296
79297 2002-12-06  Paul Eggert  <eggert@twinsun.com>
79298
79299         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
79300         a pain in practice to deal with generated m4 files.  This change
79301         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
79302
79303         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
79304         and jm-glibc-io.m4, as they are no longer a special case.
79305         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
79306         kludge and the auto-generation stuff.  Check only whether the
79307         functions are declared, not whether they exist, since older hosts
79308         that don't declare the functions can't use the optimization anyway.
79309
79310 2002-12-06  Jim Meyering  <jim@meyering.net>
79311
79312         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
79313
79314         Merge in changes from libc's misc/error.c, in preparation
79315         for the merge of gnulib's changes back into libc.
79316
79317         * lib/error.c (_): Define only if not already defined.
79318         Move definition to follow all #include directives.
79319         Include unlocked-io.h only if !_LIBC.
79320         [_LIBC]: Include <libio/libioP.h>.
79321         [USE_IN_LIBIO]: Include <libio/iolibio.h>
79322         (fflush): Tweak definition to use INTUSE.
79323         (putc): Define.
79324
79325 2002-12-05  Paul Eggert  <eggert@twinsun.com>
79326
79327         * lib/alloca.c [defined emacs]: Include "lisp.h".
79328         (xalloc_die) [defined emacs]: New macro.
79329         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
79330         [! defined emacs]: Include <xalloc.h>.
79331         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
79332         (pointer): Typedef to POINTER_TYPE *.
79333         (malloc): Remove decl; we now always use xmalloc.
79334         (alloca): Use old-style definition, since Emacs needs this.
79335         Check for arithmetic overflow when computing combined size.
79336
79337 2002-12-04  Paul Eggert  <eggert@twinsun.com>
79338
79339         Do not generate unlocked-io.h automatically, since it's easier to
79340         maintain it by hand.
79341
79342         * lib/unlocked-io.h: New file, from GNU diffutils,
79343         but with proper copyright notice and attribution.
79344         * lib/gen-uio: Remove.
79345         * lib/Makefile.am: Add copyright notice.
79346         (libfetish_a_SOURCES): Add unlocked-io.h.
79347         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
79348         (DISTCLEANFILES, io_functions): Remove macros.
79349         (EXTRA_DIST): Remove gen_uio.
79350         (unlocked-io.h): Remove rule.
79351
79352 2002-12-04  Jim Meyering  <jim@meyering.net>
79353
79354         Reflect the fact that stat.c and lstat.c are no longer generated.
79355         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
79356         (DISTCLEANFILES): Likewise.
79357         (EXTRA_DIST): Likewise.
79358         (all_local): Don't depend on stat.c or lstat.c.
79359         (stat.c, lstat.c): Remove rules.
79360         (EXTRA_DIST): Remove xstat.in.
79361
79362         * lib/xstat.in: Remove file.  Contents moved into stat.c.
79363         * lib/stat.c: New file.  Contents mostly from xstat.in.
79364         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
79365         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
79366
79367         * lib/safe-read.c: Rework so that it may serve to define safe_write,
79368         too.
79369         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
79370
79371 2002-12-03  Jim Meyering  <jim@meyering.net>
79372
79373         * lib/safe-read.c, safe-write.c: Change variable names and comments,
79374         but not semantics, to minimize the differences between these two files.
79375         (safe_read): Change comment to mention SAFE_READ_ERROR.
79376
79377         * lib/safe-read.c (IS_EINTR): Define.
79378         (safe_read): Use IS_EINTR in place of in-function cpp directives.
79379
79380 2002-12-02  Jim Meyering  <jim@meyering.net>
79381
79382         * lib/safe-read.c (EINTR): Define.
79383         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79384         (INT_MAX): Provide fallback.
79385         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
79386
79387         * lib/safe-read.h (SAFE_READ_ERROR): Define.
79388
79389 2002-12-02  Bruno Haible  <bruno@clisp.org>
79390
79391         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
79392         Define, taken from safe-read.c.
79393         (INT_MAX): Provide fallback.
79394         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
79395         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
79396
79397         * lib/safe-read.c (EINTR): Remove definition.
79398         (safe_read): Don't use EINTR if it is absent.
79399
79400 2002-12-01  Jim Meyering  <jim@meyering.net>
79401
79402         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
79403         zero.
79404         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
79405
79406 2002-11-27  Paul Eggert  <eggert@twinsun.com>
79407
79408         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
79409         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
79410         with `if (! (value < limit)) abort ();', for readability.
79411
79412 2002-11-26  Karl Berry  <karl@gnu.org>
79413
79414         * lib/strdup.c: copy from libc again, with jim's ok.
79415         * lib/.cppi-disable: re-add strdup.c
79416
79417 2002-11-25  Karl Berry  <karl@gnu.org>
79418
79419         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
79420         instead of "strtol.c".
79421
79422 2002-11-25  Karl Berry  <karl@gnu.org>
79423
79424         * config/install-sh: update from automake for variable quoting, $0 in
79425         error msgs, etc.
79426
79427         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
79428         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
79429         entry.
79430
79431 2002-11-25  Jim Meyering  <jim@meyering.net>
79432
79433         * lib/mktime.c: Sync from libc, now that it has the latest fix.
79434
79435 2002-11-24  Karl Berry  <karl@gnu.org>
79436
79437         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
79438         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
79439
79440 2002-11-24  Jim Meyering  <jim@meyering.net>
79441
79442         Update from coreutils:
79443
79444         * lib/mktime.c: Merge in changes from libc.
79445
79446         Avoid a link-time failure on some Linux systems.
79447         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
79448         (otherwise).
79449         (__mon_yday): Declare with the STATIC attribute.
79450         (__mktime_internal): Likewise.
79451         Based on a report from Greg Schafer.
79452
79453 2002-11-23  Jim Meyering  <jim@meyering.net>
79454
79455         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
79456         Use `unsigned', not `int', as type of index.
79457
79458         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
79459
79460         * lib/fsusage.c: Remove unneeded parentheses around operands of
79461         `defined'.
79462
79463 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79464
79465         * lib/quotearg.h: Allow multiple inclusion by surrounding with
79466         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
79467         so that we can be included first.
79468         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
79469         * lib/quotearg.c: Include quotearg.h immediately after config.h.
79470         No need to include stddef.h or sys/types.h any more.
79471         Surround local include files with "", not "<>".
79472         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
79473         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
79474         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
79475         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
79476         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
79477         (ISPRINT): Remove; no longer needed now that we assume C89.
79478
79479         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
79480         Preserve errno.
79481
79482         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
79483         quotearg_char): Use SIZE_MAX rather than
79484         (size_t) -1 when we are talking about "infinity".
79485
79486         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
79487
79488 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79489
79490         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
79491         hint that one should use `if (! x) abort ();' rather than `assert
79492         (x);', and anyway it's one less thing to worry about configuring.
79493         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
79494         hash_rehash, hash_insert): Use abort rather than assert.
79495
79496 2002-11-22  Bruno Haible  <bruno@clisp.org>
79497
79498         * lib/safe-read.h: Assume C89. Add comments.
79499         (safe_read): Change return type to size_t.
79500         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
79501         byte counts > SSIZE_MAX correctly.
79502         * lib/safe-write.h: New file.
79503         * lib/safe-write.c: New file.
79504         * lib/full-read.h: New file.
79505         * lib/full-read.c: New file.
79506         * lib/full-write.h: Assume C89. Add comments.
79507         * lib/full-write.c: Include safe-write.h.
79508         (full_write): Rewritten to use safe_write.
79509         Suggested by Jim Meyering and Paul Eggert.
79510
79511 2002-11-21  Jim Meyering  <jim@meyering.net>
79512
79513         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
79514
79515         Merge in changes from the coreutils.
79516
79517         2002-09-25  Paul Eggert  <eggert@twinsun.com>
79518         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
79519         <stdint.h>.
79520         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
79521         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
79522         int.  Work more efficiently if X is the same width as uintmax_t.
79523         Do not compare X to -1, to avoid bogus compiler warning.
79524         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
79525         Don't assume that f_frsize and f_bsize are the same type.
79526
79527         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
79528         warning on FreeBSD.
79529
79530         * lib/makepath.c (make_path): Restore umask *before* creating the final
79531         component.
79532         (make_path): Minor reformatting.
79533
79534         * lib/xmalloc.c: Adjust to work with new autoconf macros,
79535         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
79536         HAVE_MALLOC/HAVE_REALLOC.
79537
79538         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
79539         dummy ones.  At least on GNU/Linux systems, `auto' means something
79540         else.
79541         From Michael Stone.
79542
79543 2002-11-21  Bruno Haible  <bruno@clisp.org>
79544
79545         Remove case insensitive option matching.
79546         * lib/argmatch.h (argcasematch): Remove declaration.
79547         (ARGCASEMATCH): Remove macro.
79548         (__xargmatch_internal): Remove case_sensitive argument.
79549         (XARGMATCH): Update.
79550         (XARGCASEMATCH): Remove macro.
79551         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
79552         case_sensitive argument.
79553         (argcasematch): Remove function.
79554         (__xargmatch_internal): Remove case_sensitive argument.
79555         (main): Use XARGMATCH instead of XARGCASEMATCH.
79556
79557         * lib/xmalloc.c: Change compile-time error message. Add comment about
79558         required autoconf version.
79559
79560 2002-11-20  Paul Eggert  <eggert@twinsun.com>
79561
79562         Merge argmatch cleanups from Bison.  Assume C89.
79563
79564         * lib/argmatch.c: Include config.h here, not in argmatch.h.
79565         Include stdlib.h, for EXIT_FAILURE.
79566         Always include <string.h>, since we assume C89.
79567         (EXIT_FAILURE): Remove pre-C89 bug workaround.
79568         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
79569         Include <stddef.h> instead, since it's all we need for size_t.
79570         (PARAMS): Remove.  All uses removed.
79571         (ARRAY_CARDINALITY): Do not bother to #undef.
79572         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
79573         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79574         Remove unnecessary parentheses.
79575         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79576         Insert necessary parentheses.
79577         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
79578         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
79579
79580 2002-11-19  Bruno Haible  <bruno@clisp.org>
79581
79582         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
79583         * lib/mbswidth.h: Include <stddef.h>, for size_t.
79584
79585         * lib/mbswidth.h (PARAMS): Remove macro.
79586         (mbswidth, mbsnwidth): Use ANSI C function declarations.
79587         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
79588
79589         * lib/gcd.h (PARAMS): Remove macro.
79590         (gcd): Use ANSI C function declarations.
79591         * lib/gcd.c (gcd): Likewise.
79592
79593 2002-11-15  Bruno Haible  <bruno@clisp.org>
79594
79595         * lib/strcspn.c: Include <stddef.h>.
79596         (strcspn): Use ANSI C function declaration. Change return type to
79597         size_t. Use NULL.
79598         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
79599         (strpbrk): Use NULL.
79600         * lib/strpbrk.h (PARAMS): Remove macro.
79601         (strpbrk): Use ANSI C function declaration.
79602         * lib/strstr.c: Don't include <sys/types.h>.
79603         * lib/strstr.h (PARAMS): Remove macro.
79604         (strstr): Use ANSI C function declarations.
79605
79606 2002-11-14  Karl Berry  <karl@gnu.org>
79607
79608         * config/mkinstalldirs: `do' on separate line, instead of
79609         `for var; do'.
79610
79611 2002-11-06  Bruno Haible  <bruno@clisp.org>
79612
79613         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
79614         * lib/gcd.c (gcd): Likewise.
79615
79616 2002-11-05  Bruno Haible  <bruno@clisp.org>
79617
79618         * lib/gcd.h: New file, from gettext-0.11.5.
79619         * lib/gcd.c: New file, from gettext-0.11.5.
79620
79621 2002-11-05  Bruno Haible  <bruno@clisp.org>
79622
79623         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79624         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79625         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79626         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79627
79628         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
79629         <libintl.h>.
79630         * lib/makepath.c: Include gettext.h instead of <locale.h> and
79631         <libintl.h>.
79632
79633         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
79634         * lib/human.c: Include gettext.h instead of <libintl.h>.
79635         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
79636         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
79637         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
79638         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
79639         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
79640         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
79641         (textdomain): Remove definition.
79642         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
79643
79644         * lib/long-options.c: Remove include of <libintl.h> and definition of
79645         _.
79646         * lib/same.c: Remove include of <libintl.h> and definition of _.
79647
79648 2002-11-04  Owen Taylor  <otaylor@redhat.com>
79649
79650         * lib/config.charset: A few additions for Solaris.
79651
79652 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79653
79654         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
79655         * lib/localcharset.c (locale_charset): Declare as extern "C".
79656
79657 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79658
79659         * lib/config.charset: msdos in uk_UA uses CP1125.
79660
79661 2002-11-04  Bruno Haible  <bruno@clisp.org>
79662
79663         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
79664         * lib/strcase.h: New file, from GNU gettext-0.11.5.
79665         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
79666         * lib/strstr.h: New file, from GNU gettext-0.11.5.
79667         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
79668
79669 2002-11-04  Bruno Haible  <bruno@clisp.org>
79670
79671         * lib/localcharset.c (locale_charset): Don't return an empty string.
79672
79673 2002-11-04  Bruno Haible  <bruno@clisp.org>
79674
79675         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
79676         aliases.
79677
79678 2002-11-04  Bruno Haible  <bruno@clisp.org>
79679
79680         * lib/config.charset: Update for newest glibc. Add canonical names
79681         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
79682
79683 2002-11-04  Bruno Haible  <bruno@clisp.org>
79684
79685         * lib/config.charset: Add support for NetBSD.
79686
79687 2002-11-04  Bruno Haible  <bruno@clisp.org>
79688
79689         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
79690
79691 2002-11-01  Bruno Haible  <bruno@clisp.org>
79692
79693         * configure.in: Add AC_CONFIG_AUX_DIR call.
79694         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
79695         test/Makefile.
79696         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
79697
79698 2002-09-28  Karl Berry  <karl@gnu.org>
79699
79700         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
79701         installed automake until the next release, since changes have been
79702         made.
79703
79704 2002-09-25  Karl Berry  <karl@gnu.org>
79705
79706         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
79707         * lib/getopt*: copy from libc/posix.
79708         * lib/gettext.h: copy from gettext.
79709         * lib/.cppi-disable: add strdup.c, gettext.h.
79710
79711 2002-09-25  Karl Berry  <karl@gnu.org>
79712
79713         * config/srclist.txt: enable gettext.h check.
79714         * config/config.{guess,sub}: update from prep.
79715         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
79716                 from automake 1.6.3.
79717         See srclist*.
79718
79719 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
79720
79721         * regex.c (PATFETCH): Remove the translating fetch.
79722         (PATFETCH_RAW): Rename to PATFETCH.
79723         (set_image_of_range): New fun.
79724         (SET_RANGE_TABLE_WORK_AREA): Use it.
79725         (regex_compile): Don't translate the pattern chars so eagerly.
79726         Only do it when inserting an `exactn' bytecode or when handling
79727         a char-range.
79728         (mutually_exclusive_p): Avoid empty statement.
79729
79730 2002-07-06  Jim Meyering  <meyering@lucent.com>
79731
79732         * m4/README: Don't mention Makefile.am.in.
79733         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
79734
79735 2002-07-01  Jim Meyering  <meyering@lucent.com>
79736
79737         * lib/c-stack.c: Include sys/time.h.
79738         From Volker Borchert.
79739
79740 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79741
79742         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
79743
79744 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79745
79746         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
79747         New macro.  Use it uniformly instead of
79748         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
79749         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
79750         reported by Vin Shelton.
79751
79752 2002-06-22  Paul Eggert  <eggert@twinsun.com>
79753
79754         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
79755         Do not assume SA_SIGINFO behavior.
79756         Bug reported by Jim Meyering on NetBSD 1.5.2.
79757
79758 2002-06-22  Jim Meyering  <meyering@lucent.com>
79759
79760         * m4/c-stack.m4: New file, from diffutils-2.8.2.
79761         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
79762
79763         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
79764         now that configure.ac uses AC_GNU_SOURCE.
79765         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
79766         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
79767
79768         Update to latest tools.  Suggestions from Paul Eggert.
79769         * m4/stdbool.m4: New file, from diffutils-2.8.2.
79770         * m4/gnu-source.m4: Update from diffutils-2.8.2.
79771         * m4/fnmatch.m4: Likewise.
79772         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
79773         to AC_HEADER_STDBOOL
79774
79775 2002-06-22  Jim Meyering  <meyering@lucent.com>
79776
79777         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
79778         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
79779
79780 2002-06-22  Jim Meyering  <meyering@lucent.com>
79781
79782         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
79783
79784         * lib/exitfail.c, exitfail.h: Likewise.
79785         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
79786
79787         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
79788         of fnmatch.h.
79789         (EXTRA_DIST): Add fnmatch_loop.c.
79790         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
79791
79792         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
79793         * lib/fnmatch.c: Update from diffutils-2.8.2.
79794         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
79795         * lib/fnmatch.h: Remove file.
79796
79797 2002-06-21  Jim Meyering  <meyering@lucent.com>
79798
79799         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
79800         * m4/mbrtowc.m4: Likewise.
79801
79802         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
79803         * m4/mbswidth.m4: Reflect name change:
79804         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
79805         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
79806
79807         * m4/lib-link.m4: Update from gettext-0.11.2.
79808         * m4/gettext.m4: Likewise.
79809
79810         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
79811         From Alfred M. Szmidt.
79812
79813 2002-06-18  Paul Eggert  <eggert@twinsun.com>
79814
79815         * lib/file-type.h: Report an error if neither S_ISREG nor
79816         S_IFREG is defined, instead of using a test specific to glibc
79817         2.2.  This should be safe, since POSIX requires S_ISREG and
79818         Unix Version 7 had S_IFREG.  We don't need to check for
79819         <sys/types.h> since we don't use any symbols that it defines.
79820
79821 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
79822
79823         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
79824         $@-t, so that each temporary file name is unique and valid in the first
79825         8 characters, for operation under DOS.
79826
79827 2002-06-15  Paul Eggert  <eggert@twinsun.com>
79828
79829         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
79830
79831 2002-06-15  Jim Meyering  <meyering@lucent.com>
79832
79833         Work even with DJGPP 2.03, which lacks support for symlinks.
79834         From Richard Dawe.
79835         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
79836         is defined.
79837         * lib/lchown.c (S_ISLNK): Likewise.
79838
79839 2002-06-15  Jim Meyering  <meyering@lucent.com>
79840
79841         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
79842         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
79843         have been included before this file.
79844
79845 2002-06-14  Jim Meyering  <meyering@lucent.com>
79846
79847         * lib/file-type.h: Use the version from diffutils-2.8.2.
79848         * lib/file-type.c: Likewise.
79849
79850 2002-06-07  Jim Meyering  <meyering@lucent.com>
79851
79852         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
79853         They're needed at least for NetBSD 1.5.2.
79854         ($statxfs_includes): Include those same headers.
79855         ($statxfs_includes): Include sys/vfs.h if available.
79856         ($statxfs_includes): Likewise for sys/statvfs.h.
79857         Check for the following members in both structs statfs and statvfs:
79858         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
79859
79860 2002-06-01  Jim Meyering  <meyering@lucent.com>
79861
79862         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
79863         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
79864
79865 2002-05-28  Jim Meyering  <meyering@lucent.com>
79866
79867         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
79868         Reported by Volker Borchert.
79869
79870 2002-05-27  Jim Meyering  <meyering@lucent.com>
79871
79872         Fix a problem seen only on nonconforming systems whereby ls.c's
79873         use of localtime, and then of gettimeofday would cause trouble:
79874         the localtime call used to initialize rpl_gettimeofday's save
79875         mechanism would clobber ls's current local time information so
79876         that in any long listing the first file would always be listed
79877         with date 1970-01-01.  Analysis by Volker Borchert.
79878
79879         * lib/gettimeofday.c (localtime): Undefine.
79880         (rpl_localtime): New function.
79881
79882 2002-05-27  Jim Meyering  <meyering@lucent.com>
79883
79884         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
79885         localtime.
79886
79887         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
79888         use the replacement function; it wouldn't resolve at link time.
79889         Reported by Volker Borchert.
79890
79891 2002-05-22  Jim Meyering  <meyering@lucent.com>
79892
79893         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
79894         file-type.h.
79895         * lib/file-type.h: New file.
79896         * lib/file-type.c (file_type): New file/function.  Extracted from
79897         diffutils.
79898
79899 2002-04-30  Jim Meyering  <meyering@lucent.com>
79900
79901         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
79902
79903 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79904
79905         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
79906
79907 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79908
79909         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
79910         Do not check for alloca.h (no longer used) or stdbool.h (was never
79911         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
79912
79913 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79914
79915         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
79916
79917 2002-04-29  Jim Meyering  <meyering@lucent.com>
79918
79919         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
79920         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
79921         Use AC_FUNC_STRNLEN here instead.
79922
79923         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
79924         With autoconf-2.53a, it's part of AC_PROG_CC.
79925
79926 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79927
79928         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
79929         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
79930
79931 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79932
79933         * lib/sig2str.h, lib/sig2str.c: New files.
79934         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
79935
79936 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79937
79938         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
79939         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
79940         of 127, since 64 is the largest conceivable number for ancient
79941         nonstandard hosts.
79942         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
79943
79944 2002-04-28  Jim Meyering  <meyering@lucent.com>
79945
79946         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
79947
79948 2002-04-24  Jim Meyering  <meyering@lucent.com>
79949
79950         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
79951         (jm_PREREQ): Use it.
79952
79953         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
79954         mach/mach.h fcntl.h.
79955         Check for this function: setlocale.
79956
79957 2002-04-24  Jim Meyering  <meyering@lucent.com>
79958
79959         * lib/gettext.h: New file, from Gettext.
79960         * lib/Makefile.am (INCLUDES): Remove -I../intl.
79961         (libfetish_a_SOURCES): Add gettext.h.
79962
79963 2002-04-16  Jim Meyering  <meyering@lucent.com>
79964
79965         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
79966         ut_pid, ut_id, ut_exit.
79967
79968 2002-04-16  Jim Meyering  <meyering@lucent.com>
79969
79970         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
79971         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
79972         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
79973
79974 2002-04-12  Jim Meyering  <meyering@lucent.com>
79975
79976         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
79977         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
79978         existence of the getmntinfo function.  Needed for Darwin 5.3.
79979
79980         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
79981         This is necessary at least on Darwin 5.3.
79982
79983         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
79984         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
79985         strnlen.o in the library, and that makes some versions of ranlib
79986         object.
79987
79988 2002-04-12  Jim Meyering  <meyering@lucent.com>
79989
79990         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
79991
79992 2002-04-09  Jim Meyering  <meyering@lucent.com>
79993
79994         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
79995         to be more precise.  Rather than saying we're checking whether the
79996         function `works', say what we're testing.
79997         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
79998         Reported by Bruno Haible.
79999
80000 2002-03-10  Jim Meyering  <meyering@lucent.com>
80001
80002         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
80003         Suggestion from Santiago Vila.
80004
80005 2002-03-08  Jim Meyering  <meyering@lucent.com>
80006
80007         * lib/rename.c: Mention that this wrapper is needed also on
80008         mips-dec-ultrix4.4 systems.
80009
80010 2002-03-02  Jim Meyering  <meyering@lucent.com>
80011
80012         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
80013         not HAVE_CLOCK_SETTIME.
80014
80015 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80016
80017         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
80018         Check for clock_settime.
80019
80020 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80021
80022         * lib/nanosleep.h: Rename to....
80023         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
80024
80025         * lib/gettime.c: New file.
80026         * lib/settime.c: New file.
80027         * lib/stime.c: Remove.
80028
80029         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
80030         timespec.h.  Remove nanosleep.h.
80031
80032 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80033
80034         * m4/acl.m4: New file.
80035         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
80036         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
80037
80038 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80039
80040         * lib/acl.c, lib/acl.h: New files.
80041         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
80042
80043 2002-02-24  Jim Meyering  <meyering@lucent.com>
80044
80045         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
80046         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
80047         cause trouble.  Reported by Nelson Beebe.
80048
80049 2002-02-23  Paul Eggert  <eggert@twinsun.com>
80050
80051         * lib/path-concat.c (xpath_concat): Reorder code to pacify
80052         compilers that don't know that xalloc_die never returns.
80053
80054 2002-02-20  Jim Meyering  <meyering@lucent.com>
80055
80056         * lib/getdate.c: Regenerate using bison-1.33.
80057
80058 2002-02-17  Jim Meyering  <meyering@lucent.com>
80059
80060         * config/config.guess (main): Don't use `head -1'; it's no longer
80061         portable. Use `sed 1q' instead.
80062
80063 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
80064
80065         * m4/codeset.m4: Upgrade to gettext-0.11.
80066         * m4/gettext.m4: Upgrade to gettext-0.11.
80067         * m4/glibc21.m4: Upgrade to gettext-0.11.
80068         * m4/iconv.m4: Upgrade to gettext-0.11.
80069         * m4/isc-posix.m4: Upgrade to gettext-0.11.
80070         * m4/lcmessage.m4: Upgrade to gettext-0.11.
80071         * m4/lib-ld.m4: New file, from gettext-0.11.
80072         * m4/lib-link.m4: New file, from gettext-0.11.
80073         * m4/lib-prefix.m4: New file, from gettext-0.11.
80074         * m4/progtest.m4: Upgrade to gettext-0.11.
80075
80076 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80077
80078         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
80079         (jm_PREREQ): Use it.
80080
80081 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80082
80083         * lib/posixver.c, lib/posixver.h: New files.
80084         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80085
80086 2002-02-02  Paul Eggert  <eggert@twinsun.com>
80087             Bruno Haible  <bruno@clisp.org>
80088
80089         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
80090         (fwrite_success_callback): New declaration.
80091         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
80092         print_unicode_char. Call failure callback instead of error.
80093         (fwrite_success_callback): New function.
80094         (exit_failure_callback): New function.
80095         (fallback_failure_callback): New function.
80096         (print_unicode_char): Call unicode_to_mb.
80097
80098 2002-01-26  Jim Meyering  <meyering@lucent.com>
80099
80100         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
80101         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
80102
80103 2002-01-26  Jim Meyering  <meyering@lucent.com>
80104
80105         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
80106
80107 2002-01-22  Paul Eggert  <eggert@twinsun.com>
80108
80109         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
80110
80111 2002-01-22  Jim Meyering  <meyering@lucent.com>
80112
80113         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
80114         Otherwise, some versions of automake would omit the rule that makes
80115         Makefile from Makefile.in.
80116
80117 2002-01-21  Paul Eggert  <eggert@twinsun.com>
80118
80119         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
80120         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80121         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
80122         (memcoll): Set errno to zero if there is no error.
80123
80124         * lib/quotearg.c (quotearg_buffer_restyled):
80125         Fix bug with quoting buffers containing NUL when backslashing escapes.
80126         This bug was exposed by the other changes in this patch.
80127         (quotearg_n_options): New arg ARGSIZE.
80128         All callers changed.
80129         (quoting_options_from_style): New function.
80130         (quotearg_n_style): Use it.
80131         (quotearg_n_style_mem): New function.
80132
80133         * lib/quotearg.h (quotearg_n_style_mem): New function.
80134
80135 2002-01-19  Jim Meyering  <meyering@lucent.com>
80136
80137         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
80138         Remove useless quotes: DF_PROG="df".
80139         * m4/strnlen.m4: New file.
80140
80141 2002-01-16  Paul Eggert  <eggert@twinsun.com>
80142
80143         * lib/backupfile.c (ISDIGIT): Comment fix.
80144         * lib/getdate.y (ISDIGIT): Likewise.
80145         * lib/posixtm.c (ISDIGIT, year): Likewise.
80146         * lib/strverscmp.c (ISDIGIT): Likewise.
80147         * lib/userspec.c (ISDIGIT): Likewise.
80148
80149 2002-01-16  Jim Meyering  <meyering@lucent.com>
80150
80151         * lib/getdate.y: Add three semicolons, each just before a closing
80152         brace. Bison (as of version 1.31) no longer papers over that mistake.
80153
80154 2002-01-05  Jim Meyering  <meyering@lucent.com>
80155
80156         * lib/version-etc.c (version_etc_copyright): Update copyright year.
80157
80158 2001-12-19  Paul Eggert  <eggert@twinsun.com>
80159
80160         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
80161         not silently exit merely because the output buffer happens to
80162         have nothing pending.
80163
80164 2001-12-18  Paul Eggert  <eggert@twinsun.com>
80165
80166         See the big note in ../ChangeLog.
80167         * lib/human.c (suffixes): Prefer K to k for 1024.
80168         (generate_suffix_backwards): New function.
80169         (human_readable_inexact): Use it.
80170         * lib/xstrtol.c (__xstrtol): If there is no number but there
80171         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
80172         Accept 'K' as well as 'k'.
80173
80174 2001-12-15  Jim Meyering  <meyering@lucent.com>
80175
80176         * lib/regex.h (__restrict_arr): Update from libc.
80177
80178         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
80179         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
80180         (STREQ): Define.
80181
80182 2001-12-14  Jim Meyering  <meyering@lucent.com>
80183
80184         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
80185         Suggestion from Bruno Haible.
80186
80187 2001-12-10  Jim Meyering  <meyering@lucent.com>
80188
80189         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
80190         xrealloc, Instead, include "xalloc.h".
80191         (initbuffer): Don't cast xmalloc return value to char*.
80192         (readline): Reword comment.
80193         Don't cast xrealloc return value to char*
80194         Return NULL, not 0.
80195
80196 2001-12-09  Jim Meyering  <meyering@lucent.com>
80197
80198         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
80199         about `signed and unsigned type in conditional expression'.
80200         * lib/posixtm.c (posix_time_parse): Likewise.
80201
80202         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
80203
80204         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
80205         to avoid a pedantic warning.
80206
80207         * lib/getstr.c: Don't include assert.h.
80208         (getstr): Remove warning-evoking assertions.
80209         Return -1 if offset parameter is out of bounds.
80210         Change the type of a local from int to size_t.
80211
80212         * lib/strftime.c (my_strftime_localtime_r): Include this function
80213         definition in the `#if ! HAVE_TM_GMTOFF' block.
80214
80215         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
80216         Include xalloc.h instead.
80217
80218 2001-12-02  Jim Meyering  <meyering@lucent.com>
80219
80220         * lib/tempname.c: Don't declare getenv, thus reverting the change of
80221         2001-11-18.  It's no longer necessary, now that stdlib.h is always
80222         included.
80223
80224         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
80225         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
80226
80227 2001-11-30  Akim Demaille  <akim@epita.fr>
80228
80229         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
80230         before being defined.
80231
80232 2001-11-27  Paul Eggert  <eggert@twinsun.com>
80233
80234         * lib/quotearg.h (quotearg_n, quotearg_n_style):
80235         First arg is int, not unsigned.
80236         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
80237         (SIZE_MAX, UINT_MAX): New macros.
80238         (quotearg_n_options): Abort if N is negative.
80239         Avoid overflow check on hosts where size_t is 64 bits and int
80240         is 32 bits, as overflow is impossible there.
80241         Fix off-by-one typo that caused unnecessary reallocation.
80242
80243 2001-11-27  Jim Meyering  <meyering@lucent.com>
80244
80245         * lib/tempname.c: Merge with version from libc.
80246         * lib/regex.c: Likewise.
80247
80248         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
80249         systems for which STDC_HEADERS is 0, it was not included, resulting in
80250         a warning about an integer-to-pointer conversion problem with getenv.
80251         Reported by Volker Borchert.
80252
80253 2001-11-26  Jim Meyering  <meyering@lucent.com>
80254
80255         * lib/gtod.h: Remove file.
80256         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
80257         * lib/gettimeofday.c: Don't include gtod.h.
80258         (GTOD_init): Remove function.
80259         (rpl_gettimeofday): Do its job here instead, rather than aborting.
80260         Suggestion from Volker Borchert.
80261
80262 2001-11-23  Jim Meyering  <meyering@lucent.com>
80263
80264         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
80265         it.
80266         * lib/hash.c (struct hash_table): Define it here instead.
80267
80268 2001-11-22  Jim Meyering  <meyering@lucent.com>
80269
80270         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
80271
80272 2001-11-20  Jim Meyering  <meyering@lucent.com>
80273
80274         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
80275         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
80276
80277 2001-11-19  Jim Meyering  <meyering@lucent.com>
80278
80279         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
80280         directory.  Use "conftestXXXXXX" as the template.
80281         Suggestion from Paul Eggert.
80282
80283         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
80284         immediately, so the test doesn't mistakenly hit the max-open-files
80285         limit.
80286
80287 2001-11-18  Paul Eggert  <eggert@twinsun.com>
80288
80289         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
80290         (TEMPORARIES): New macro.
80291         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
80292         removes an artificial limitation (e.g. HP-UX 10.20, where
80293         TMP_MAX is 17576).
80294
80295 2001-11-18  Jim Meyering  <meyering@lucent.com>
80296
80297         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
80298
80299 2001-11-18  Jim Meyering  <meyering@lucent.com>
80300
80301         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
80302         on SunOS 4.
80303
80304         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
80305         files will be created before anything else.
80306
80307 2001-11-17  Paul Eggert  <eggert@twinsun.com>
80308
80309         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
80310         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
80311
80312 2001-11-17  Jim Meyering  <meyering@lucent.com>
80313
80314         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
80315         Prompted by a report from Bob Proulx.
80316
80317         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
80318         Instead, require UTILS_FUNC_MKSTEMP.
80319
80320 2001-11-17  Jim Meyering  <meyering@lucent.com>
80321
80322         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
80323         Now, that's done as part of AC_FUNC_STRTOD.
80324
80325 2001-11-17  Jim Meyering  <meyering@lucent.com>
80326
80327         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
80328         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
80329         rather than group writable.  Patch by Juan F. Codagnone.
80330
80331         * lib/readtokens.c: Remove explicit declarations of xmalloc and
80332         xrealloc, Instead, include "xalloc.h".
80333
80334         * lib/mountlist.c: Include unlocked-io.h after all system headers.
80335         Remove explicit declarations of xmalloc, xrealloc,
80336         and xstrdup.  Instead, include "xalloc.h".
80337
80338         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
80339         unlocked-io.h.
80340         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
80341         Likewise.
80342         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
80343
80344         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
80345         Reported by Padraig Brady.
80346
80347         * lib/mkstemp.c: #undef mkstemp.
80348         Include config.h.
80349         (rpl_mkstemp): Rename from mkstemp.
80350         Protoize.
80351
80352 2001-11-16  Jim Meyering  <meyering@lucent.com>
80353
80354         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
80355         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
80356         determine the amount of total physical memory, use pstat_getstatic.
80357         HPUX-11 doesn't define _SC_PHYS_PAGES.
80358         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
80359         If sysconf couldn't be used to determine the amount of available
80360         physical memory, use both pstat_getstatic and pstat_getdynamic.
80361         Based on a patch from Bob Proulx.
80362
80363 2001-11-10  Jim Meyering  <meyering@lucent.com>
80364
80365         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
80366         (jm_PREREQ): Use it.
80367
80368 2001-11-09  Jim Meyering  <meyering@lucent.com>
80369
80370         * m4/jm-macros.m4: Require autoconf-2.52f.
80371         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
80372         Use these AC_-prefixed names, not the AM_-prefixed ones.
80373
80374         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
80375
80376 2001-11-05  Jim Meyering  <meyering@lucent.com>
80377
80378         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
80379
80380 2001-11-04  Jim Meyering  <meyering@lucent.com>
80381
80382         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
80383         $DEFS.
80384
80385 2001-11-03  Jim Meyering  <meyering@lucent.com>
80386
80387         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
80388         of AC_DEFUN.
80389
80390         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
80391         know the name of the variable in the macro definition.
80392
80393 2001-11-03  Jim Meyering  <meyering@lucent.com>
80394
80395         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
80396         in argmatch_to_argument call.
80397
80398         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
80399         argument.
80400
80401         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
80402         e.g., a fault due to an attempt to free a NULL pointer.
80403
80404 2001-11-01  Jim Meyering  <meyering@lucent.com>
80405
80406         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
80407         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
80408
80409 2001-11-01  Jim Meyering  <meyering@lucent.com>
80410
80411         * lib/dirfd.c, lib/dirfd.h: New files.
80412         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
80413
80414         * lib/hash.c (hash_print) [TESTING]: Clean up.
80415
80416 2001-10-22  Paul Eggert  <eggert@twinsun.com>
80417
80418         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
80419         to avoid a warning if -Wall.
80420
80421 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
80422
80423         * README: New file
80424         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
80425         (per RMS's instructions, this is now the canonical source)
80426         * lgpl/, gpl/: New directories.
80427
80428 2001-10-21  Paul Eggert  <eggert@twinsun.com>
80429
80430         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
80431
80432 2001-10-21  Jim Meyering  <meyering@lucent.com>
80433
80434         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
80435         this code would end up calling gettext even in packages built
80436         with --disable-nls.
80437         * lib/getopt.c (_): Likewise.
80438         * lib/regex.c (_): Likewise.
80439
80440 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80441
80442         * m4/error.m4 (jm_PREREQ_ERROR):
80443         Do not invoke AC_CHECK_FUNCS with strerror_r, as
80444         AC_FUNC_STRERROR_R does that.
80445         Check for strerror declaration.
80446
80447         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
80448         are supposed to have them these days.
80449         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
80450         Merge changes from latest Autoconf CVS.
80451         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
80452         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
80453         POSIX decided to standardize on the int flavor of strerror_r.
80454
80455 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80456
80457         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
80458         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
80459         Use strerror_r that is only a macro, even if it is not a function.
80460         (strerror): Check for HAVE_DECL_STRERROR before declaring.
80461         (private_strerror): Use prototypes, not old-style function definition.
80462         (print_errno_message): New function.
80463         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
80464         char*-flavored one.
80465         (error_tail, error, error_at_line): Use it.
80466
80467 2001-10-11  Jim Meyering  <meyering@lucent.com>
80468
80469         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
80470         and quote_n (1, ... to avoid clobbering a buffer.
80471
80472 2001-10-05  Jim Meyering  <meyering@lucent.com>
80473
80474         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
80475         hash-pjw.h.
80476         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
80477         * lib/hash-pjw.h: New file.
80478
80479 2001-09-30  Jim Meyering  <meyering@lucent.com>
80480
80481         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
80482         `struct fsstat' has the `f_fstypename' member.
80483         Use that to define FS_TYPE, which is now used to make
80484         the getfsstat link test tighter.
80485
80486 2001-09-30  Jim Meyering  <meyering@lucent.com>
80487
80488         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
80489         Include <sys/ucred.h>, for Apple Darwin.
80490         Include sys/mount.h and sys/fs_types.h only if available.
80491         (FS_TYPE): Define.
80492         (read_filesystem_list): Use FS_TYPE.
80493
80494 2001-09-29  Paul Eggert  <eggert@twinsun.com>
80495
80496         * lib/exclude.c (excluded_filename): 0 -> false, since it's
80497         a boolean context.
80498
80499 2001-09-29  Jim Meyering  <meyering@lucent.com>
80500
80501         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80502         [one-argument getmntent function]): Include stdio.h before mntent.h.
80503         SunOS 4.1.x needs it for the declaration of `FILE'.
80504         Patch by Volker Borchert.
80505
80506         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80507         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
80508         sys/fs_types.h, and make the link-test for getfsstat guard #include
80509         directives with appropriate #if HAVE_*_H tests so that we can
80510         detect getfsstat on Apple Darwin1.3.7 systems.
80511         Reported by Nelson Beebe.
80512         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
80513
80514 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80515
80516         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80517         #defines strtoimax.  Also treat the other strto* functions
80518         like strtoimax.
80519
80520         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80521         Check for strtoul and strtoumax,
80522         as those declarations are made even in the signed case.
80523         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
80524         Likewise, for strtol and strtoimax.
80525
80526 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80527
80528         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80529         #defines strtoimax.  Also treat the other strto* functions
80530         like strtoimax.
80531
80532         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
80533         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
80534         (strtoimax, strtoumax): Do not declare if already defined as a macro.
80535
80536 2001-09-26  Jim Meyering  <meyering@lucent.com>
80537
80538         Most macros in unlocked-io.h had the wrong number of arguments.
80539         * lib/gen-uio: New script.
80540         (USE_UNLOCKED_IO): Define to 1 if not already defined.
80541         * lib/unlocked-io.hin: Remove file.
80542         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
80543         rather than trying to embed it here.
80544         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
80545         Reported by Padraig Brady.
80546
80547 2001-09-25  Volker Borchert  <bt@teknon.de>
80548
80549         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
80550         `result'.
80551
80552 2001-09-24  Jim Meyering  <meyering@lucent.com>
80553
80554         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
80555
80556 2001-09-23  Jim Meyering  <meyering@lucent.com>
80557
80558         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
80559         instead of the mere test for existence of mntent.h.  The latter
80560         would get a false-positive on AIX 3.4 systems.
80561         In the outer getmntent if-block, don't die if neither of the getmntent
80562         tests succeeds.  Instead, just fall through and continue with the
80563         remaining tests.
80564
80565 2001-09-23  Jim Meyering  <meyering@lucent.com>
80566
80567         * lib/mountlist.c: Remove useless parentheses in #if directives.
80568         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
80569         the deprecated MOUNTED symbol is no longer defined in mntent.h.
80570
80571 2001-09-22  Jim Meyering  <meyering@lucent.com>
80572
80573         * m4/gettext.m4: New file.  From gettext.
80574         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
80575         * m4/progtest.m4: Likewise
80576         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
80577         * m4/glibc21.m4: Likewise.
80578
80579         * m4/libintl.m4: Remove.  No longer used.
80580
80581 2001-09-22  Jim Meyering  <meyering@lucent.com>
80582
80583         * lib/localcharset.c: Update from latest gettext.
80584         * lib/config.charset: Likewise.
80585
80586 2001-09-20  Jim Meyering  <meyering@lucent.com>
80587
80588         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
80589         strtoimax.
80590         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
80591         strtoumax.
80592
80593 2001-09-20  Jim Meyering  <meyering@lucent.com>
80594
80595         * lib/xstrtol.c (strtoimax): Guard declaration with
80596         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
80597         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
80598         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
80599         (strtoumax): Likewise, for completeness (it wasn't necessary).
80600
80601 2001-09-17  Paul Eggert  <eggert@twinsun.com>
80602
80603         * lib/strtoimax.c (HAVE_LONG_LONG):
80604         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
80605         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
80606         to work around bug in IBM C compiler.
80607
80608 2001-09-17  Jim Meyering  <meyering@lucent.com>
80609
80610         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
80611         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
80612         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
80613         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
80614         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
80615         whenever the right hand side need not be expanded by the shell.
80616
80617 2001-09-16  Paul Eggert  <eggert@twinsun.com>
80618
80619         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
80620         library.  It's not correct, as some older glibcs are buggy.
80621         fnmatch wasn't fixed until glibc 2.2.
80622
80623         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
80624         special shell magic here.
80625
80626 2001-09-16  Jim Meyering  <meyering@lucent.com>
80627
80628         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
80629         * m4/jm-macros.m4: Require it.
80630
80631 2001-09-16  Jim Meyering  <meyering@lucent.com>
80632
80633         * lib/mkdir.c: New file.
80634
80635 2001-09-15  Jim Meyering  <meyering@lucent.com>
80636
80637         * m4/jm-macros.m4: Check for help2man.
80638
80639 2001-09-11  Jim Meyering  <meyering@lucent.com>
80640
80641         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
80642         The body, by Paul Eggert, was moved here from configure.in.
80643         * m4/jm-macros.m4: Require UTILS_HOST_OS.
80644
80645 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80646
80647         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
80648         (jm_PREREQ): Use it.
80649
80650 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80651
80652         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
80653         Use ssize_t, not int, to store result of readlink.
80654         Check for ssize_t overflow as well as size_t overflow,
80655         as POSIX says the result of readlink is implementation-defined
80656         when ssize_t overflows.
80657         Remove unnecessary cast to char*.
80658         Use free+malloc instead of realloc, as the storage doesn't need
80659         to be preserved and it's clearer and can be more efficient that way.
80660         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
80661         * lib/xreadlink.h (xreadlink): Update prototype.
80662
80663 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80664
80665         * lib/xgetcwd.c: Revert some of the previous change; intead,
80666         fix the HAVE_GETCWD_NULL code to behave more like the
80667         !HAVE_GETCWD_NULL code used to.
80668
80669         Include "xalloc.h".
80670         (xgetcwd): Do not return NULL when memory is exhausted; instead,
80671         invoke xalloc_die.
80672
80673 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80674
80675         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
80676         sys/param.h, as pathmax.h includes them.
80677
80678 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80679
80680         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
80681         (jm_PREREQ_XGETCWD): New macro.
80682
80683         * m4/getcwd.m4: New file.
80684
80685 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80686
80687         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
80688         like the HAVE_GETCWD_NULL code.
80689         Include pathmax.h if not HAVE_GETCWD.
80690         Do not include xalloc.h.
80691         (INITIAL_BUFFER_SIZE): New symbol.
80692         Do not use xmalloc / xrealloc, since the caller is responsible for
80693         handling errors.  Preserve errno around `free' during failure.
80694         Do not overrun buffer when using getwd.
80695
80696 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80697
80698         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
80699         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
80700         getcwd (NULL, 0).
80701
80702 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80703
80704         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
80705         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
80706         spotted by Jim Meyering.
80707
80708 2001-09-03  Jim Meyering  <meyering@lucent.com>
80709
80710         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
80711         failure.
80712
80713 2001-09-02  Jim Meyering  <meyering@lucent.com>
80714
80715         * lib/error.c: Update from GNU libc.
80716
80717 2001-09-01  Jim Meyering  <meyering@lucent.com>
80718
80719         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
80720         Used by df.
80721
80722 2001-09-01  Jim Meyering  <meyering@lucent.com>
80723
80724         * lib/xreadlink.c: New file.
80725         * lib/xreadlink.h: New file.
80726         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
80727         xreadlink.h.
80728
80729         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
80730         doesn't conflict with sparc Solaris 7's definition in
80731         /usr/include/sys/int_types.h.
80732
80733         * lib/exclude.c: Use `""', not `<>' to #include non-system header
80734         files.
80735         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
80736         and strncasecmp as r-values.  Unixware didn't have declarations.
80737
80738 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80739
80740         * lib/xstrtol.h: Add copyright notice.
80741         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
80742         LONGINT_INVALID_SUFFIX_CHAR.
80743
80744 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80745
80746         * lib/xstrtol.c (strtoimax): New decl.
80747
80748 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80749
80750         * lib/xgetcwd.c: Don't include pathmax.h.
80751         Include stdlib.h and unistd.h if available.
80752         Include xalloc.h.
80753         (xmalloc, xstrdup, free): Remove decls.
80754         (xgetcwd): Don't assume sizes fit in unsigned.
80755         Check for overflow when computing sizes.
80756         Simplify reallocation code.
80757
80758 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80759
80760         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
80761         a directory's st_size can have an arbitrary value, so the old
80762         usage could waste an arbitrary amount of memory.  All uses
80763         changed.
80764         * lib/savedir.h: Update prototype.
80765
80766 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80767
80768         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
80769
80770         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
80771         old strtoimax.c.
80772
80773         Also, make the following further changes to make this file's
80774         configuration more similar to that of strtol.c:
80775         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
80776         (strtoumax, uintmax_t, strtoull, strtol): Remove.
80777         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
80778         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
80779         changed to signed values.
80780
80781         And make the following changes as well:
80782         Fix copyright notice, as 1999 was missing.
80783         (verify): New macro.
80784         (strtoimax): Check sizes at compile-time, not run-time.
80785         Prefer strtol to strtoll if both work.
80786         (main): Remove; it was not that useful and was a pain to maintain.
80787
80788         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
80789
80790 2001-08-31  Jim Meyering  <meyering@lucent.com>
80791
80792         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
80793         Use an initial, malloc'd, buffer of length 128 rather than
80794         a statically allocated one of length 1024.
80795
80796 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80797
80798         Simplify code, partly by assuming autoconf 2.52 semantics.
80799
80800         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
80801
80802         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
80803         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
80804         All uses removed.
80805         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
80806         Move AC_REQUIRE to next-to-top level, to avoid confusion.
80807         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
80808         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
80809         jm_AC_HEADER_INTTYPES_H.
80810         * m4/jm-macros.m4 (jm_MACROS): Likewise.
80811
80812         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
80813
80814         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80815         Quote first arg of AC_DEFUN.
80816         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
80817         since they are needed to parse the include file even if we need
80818         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
80819         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
80820         but with opposite signedness.
80821
80822 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80823
80824         Merge 'exclude' changes from tar 1.13.22.
80825         This fixes one or two unlikely storage allocation overflow bugs,
80826         but doesn't change user-visible behavior otherwise.
80827
80828 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80829
80830         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
80831         (jm_PREREQ_EXCLUDE): New macro.
80832
80833 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80834
80835         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
80836         tm to be declared.
80837
80838 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80839
80840         * lib/hash.c: Remove '2001' from copyright notice.
80841
80842 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80843
80844         * lib/full-write.h: New file.
80845         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
80846         * lib/full-write.c: Correct credits, as cccp.c no longer
80847         exists and anyway it was so heavily changed from the old cccp
80848         code as to be unrecognizable.  Include full-write.h.
80849         (full_write): Return size_t, with short writes meaning failure.
80850         All callers changed.  This fixes a bug with large buffers
80851         on 64-bit hosts.
80852         * lib/utime.c: Include full-write.h.
80853
80854 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80855
80856         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
80857         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
80858         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
80859         Include if available.
80860         (<xalloc.h>): Include
80861         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
80862         (verify): New macro.  Use it to verify that EXCLUDE macros do not
80863         collide with FNM macros.
80864         (struct patopts): New struct.
80865         (struct exclude): Use it, as exclude patterns now come with options.
80866         (new_exclude): Support above changes.
80867         (new_exclude, add_exclude_file):
80868         Initial size must now be a power of two to simplify overflow checking.
80869         (free_exclude, fnmatch_no_wildcards): New function.
80870         (excluded_filename): No longer requires options arg, as the options
80871         are determined by add_exclude.  Now returns bool, not int.
80872         (excluded_filename, add_exclude):
80873         Add support for the fancy new exclusion options.
80874         (add_exclude, add_exclude_file): Now takes int options arg.
80875         Check for arithmetic overflow when computing sizes.
80876         (add_exclude_file): xrealloc might modify errno, so don't
80877         realloc until after errno might be used.
80878
80879         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
80880         New macros.
80881         (free_exclude): New decl.
80882         (add_exclude, add_exclude_file): Now takes int options arg.
80883         (excluded_filename): No longer requires options arg, as the options
80884         are determined by add_exclude.  Now returns bool, not int.
80885
80886 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80887
80888         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
80889
80890 2001-08-27  Jim Meyering  <meyering@lucent.com>
80891
80892         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
80893
80894         * lib/version-etc.c (N_): Remove definition.
80895         Revert most of last change.
80896         Instead, simply don't mark the `Copyright...' string for translation.
80897         Based on advice from Paul Eggert.
80898
80899         * lib/strtoxmax.c: Tweak comment.
80900
80901 2001-08-26  Jim Meyering  <meyering@lucent.com>
80902
80903         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
80904
80905         * m4/xstrtoimax.m4: New file.
80906         * m4/xstrtoumax.m4: Add comments explaining why we
80907         AC_REPLACE_FUNCS(strtol).
80908
80909 2001-08-26  Jim Meyering  <meyering@lucent.com>
80910
80911         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
80912         of copyright with `%s' so translators don't get an untranslated
80913         message in 2002.
80914         (COPYRIGHT_YEAR): Define.
80915         (version_etc): Use fprintf rather than fputs.
80916         Suggestion from Ulrich Drepper.
80917
80918         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
80919
80920         * lib/strtoll.c: New file, from GNU libc.
80921         * lib/xstrtoimax.c: New file.
80922
80923         * lib/xstrtol.h: Add xstrtoimax.
80924         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
80925         * lib/strtoimax.c: New file.  Likewise, but first define
80926         STRTOUXMAX_SIGNED.
80927
80928         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
80929         ...
80930         * lib/strtoxmax.c: ... then renamed to this.
80931
80932 2001-08-18  Paul Eggert  <eggert@twinsun.com>
80933
80934         * m4/inttypes.m4: Add AC_PREREQ(2.13).
80935         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
80936         (jm_AC_TYPE_INTMAX_T): New macro.
80937         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
80938
80939         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
80940
80941         * m4/longlong.m4: Renamed from ulonglong.m4.
80942         * m4/inttypes.m4: Renamed from inttypes_h.m4.
80943         * m4/uintmax_t.m4: Removed.
80944
80945 2001-08-13  Paul Eggert  <eggert@twinsun.com>
80946
80947         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
80948         Port to Solaris 8, where 'sed' requires a space after the 'r'
80949         command, and where sh dislikes "$/".  Clean up the spacing a bit.
80950         Redirect output to $tmp just once.
80951
80952 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
80953
80954         * lib/addext.c (<errno.h>): Include.
80955         (errno): Declare if not defined.
80956         (addext): Work correctly when pathconf returns -1 and leaves
80957         errno alone because there is no limit.  Also, work even if
80958         pathconf returns a value greater than SIZE_MAX.
80959
80960 2001-08-12  Jim Meyering  <meyering@lucent.com>
80961
80962         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
80963         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
80964         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
80965         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
80966         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
80967         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
80968         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
80969         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
80970         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
80971         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
80972         utime.m4, utimes.m4, xstrtoumax.m4:
80973         Quote the first argument in each use of AC_DEFUN.
80974
80975 2001-08-12  Jim Meyering  <meyering@lucent.com>
80976
80977         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
80978         Simply `return getcwd (NULL, 0);'.
80979         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
80980         Use 1300 as initial value for length, not PATH_MAX.
80981
80982         * lib/pathmax.h: Clean up cpp syntax.
80983
80984 2001-08-12  Jim Meyering  <meyering@lucent.com>
80985
80986         * lib/gettimeofday.c: New file.
80987         * lib/gtod.h: New file.
80988         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
80989
80990 2001-08-05  Jim Meyering  <meyering@lucent.com>
80991
80992         * m4/jm-macros.m4: Require autoconf-2.52.
80993
80994 2001-08-04  Jim Meyering  <meyering@lucent.com>
80995
80996         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
80997         stmt, to get in sync with glibc.
80998
80999 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81000
81001         The following changes are from gettext 0.10.39 as maintained by
81002         Bruno Haible.
81003
81004         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
81005         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
81006         with inverted sense.  All uses changed.
81007
81008         * lib/mbswidth.c: Don't include <limits.h>.
81009         Include <stdlib.h> and <string.h> unconditionally.
81010         (iswcntrl, mbsinit, ISCNTRL): New macros.
81011         (mbsnwidth): Use K&R style function declarations.
81012         Don't bother checking for MB_LEN_MAX == 1, since the compiler
81013         can optimize it when MB_CUR_MAX == 1.
81014         The width of control characters is zero, not 1.
81015
81016 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81017
81018         The following changes are from gettext 0.10.39 as maintained by
81019         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
81020
81021         * m4/codeset.m4: Upgrade to serial AM1.
81022         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
81023         all uses changed.  Quote first arg of AC_DEFUN.
81024         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
81025
81026         * m4/iconv.m4: Upgrade to serial AM2.
81027         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
81028         Add --with-libconv-prefix.
81029         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
81030         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
81031         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
81032         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
81033         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
81034
81035         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
81036         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
81037         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
81038         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
81039         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
81040         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
81041         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
81042         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
81043         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81044
81045         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
81046         string.h any more.
81047
81048         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
81049         not the default value.
81050
81051         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
81052         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
81053         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
81054         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
81055         Also check for iswcntrl, used for wcwidth fallback.
81056         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
81057         to Autoconf 2.13.
81058
81059 2001-08-03  Jim Meyering  <meyering@lucent.com>
81060
81061         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
81062         as it was in the original.  Reported by Paul Eggert.
81063
81064 2001-07-16  Jim Meyering  <meyering@lucent.com>
81065
81066         * m4/gettimeofday.m4: New file.
81067         Prompted by a report from Bernhard Baehr.
81068
81069 2001-07-15  Jim Meyering  <meyering@lucent.com>
81070
81071         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
81072         stuff. Now it's in ../Makefile.cfg.
81073
81074 2001-07-15  Jim Meyering  <meyering@lucent.com>
81075
81076         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
81077         (BUILT_SOURCES): Add unlocked-io.h.
81078         (io_functions): Define.
81079         (unlocked-io.h): New rule.
81080         (DISTCLEANFILES): Add unlocked-io.h.
81081         (all-local): Depend on unlocked-io.h, to ensure it is created.
81082
81083         * lib/unlocked-io.hin: New file
81084
81085         * lib/regex.c: Update from glibc.
81086
81087 2001-07-05  Jim Meyering  <meyering@lucent.com>
81088
81089         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
81090         recommendation.
81091         (libfetish_a_SOURCES): Put all .h files here instead.
81092         Remove a thus-exposed (better checks in automake) duplicate and
81093         two unnecessary .h files.
81094
81095 2001-07-04  Jim Meyering  <meyering@lucent.com>
81096
81097         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
81098         that generates jm-glibc-io.m4 so that it doesn't trigger any make
81099         distcheck failure.
81100
81101 2001-07-02  Jim Meyering  <meyering@lucent.com>
81102
81103         The following changes were prompted by suggestions from Bruno Haible.
81104
81105         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
81106         is now generated.
81107         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
81108         definition of EXTRA_DIST.
81109         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
81110         ensure that the generated file is created/updated whenever the list
81111         of $(unlocked_functions) is changed.
81112         (jm-glibc-io.m4): New rule.
81113         (unlocked-io.h): New rule -- currently unused.
81114
81115 2001-06-24  Jim Meyering  <meyering@lucent.com>
81116
81117         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
81118         unmatched right bracket, rather than kludging it with an extra,
81119         falsely-matching quote in a comment.  Patch by Akim Demaille.
81120
81121 2001-06-11  Jim Meyering  <meyering@lucent.com>
81122
81123         * lib/regex.c: Update from GNU libc.
81124
81125 2001-05-27  Jim Meyering  <meyering@lucent.com>
81126
81127         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
81128         Check for ut_type in struct utmp.
81129
81130 2001-05-27  Jim Meyering  <meyering@lucent.com>
81131
81132         * lib/readutmp.h (UT_TYPE): Define.
81133
81134 2001-05-24  Jim Meyering  <meyering@lucent.com>
81135
81136         * lib/argmatch.c: Include "quote.h".
81137         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
81138         quote function.  Reported by Göran Uddeborg.
81139
81140 2001-05-22  Jim Meyering  <meyering@lucent.com>
81141
81142         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
81143         now that we use the package-supplied version unconditionally.
81144         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
81145
81146 2001-05-21  Jim Meyering  <meyering@lucent.com>
81147
81148         * m4/regex.m4: Change a couple backticks to single quotes to avoid
81149         shell syntax errors.
81150
81151 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81152
81153         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
81154
81155 2001-05-20  Paul Eggert  <eggert@twinsun.com>
81156
81157         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
81158         Don't bother to check library strftime, since
81159         we'll be using our own my_strftime function anyway.
81160         Define my_strftime instead of strftime.
81161
81162 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
81163
81164         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
81165         which is not yet declared.
81166
81167 2001-05-15  Jim Meyering  <meyering@lucent.com>
81168
81169         * m4/regex.m4: Use proper quoting so brackets appear in the test
81170         program.
81171         Reported by, and with help from, Bruno Haible.
81172
81173 2001-05-13  Jim Meyering  <meyering@lucent.com>
81174
81175         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
81176         undefined.
81177
81178 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81179
81180         dirname code cleanup.  base_name now behaves more compatibly
81181         with POSIX basename when given file names that have trailing
81182         slashes, and similarly for dir_name.  Add new primitives
81183         base_len and dir_len.  Put the directory-name-related decls
81184         into dirname.h.
81185
81186         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
81187         * lib/backupfile.c (base_name): Likewise.
81188         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
81189         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
81190         * lib/makepath.c (strip_trailing_slashes): Likewise.
81191         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
81192         ISSLASH): Likewise.
81193         * lib/rename.c (strip_trailing_slashes): Likewise.
81194         * lib/same.c (base_name): Likewise.
81195         * lib/stripslash.c (ISSLASH): Likewise.
81196
81197         * lib/addext.c: Include <dirname.h> after size_t is defined.
81198         * lib/backupfile.c: Likewise.
81199
81200         * lib/addext.c (addext): Use base_len to trim redundant
81201         trailing slashes instead of doing it ourselves.
81202         But do not trim the last slash if it is not redundant.
81203
81204         * lib/backupfile.c (find_backup_file_name,
81205         max_backup_version): Use base_len instead of rolling it ourselves.
81206         Handle the case of "" and (on DOS) "C:" correctly.
81207
81208         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
81209         needed. Include <string.h>, <dirname.h>.
81210         (base_name): Allow file names ending in slashes, other than names
81211         that are all slashes.  In this case, return the basename followed
81212         by the slashes.  This is more general, and can be used in places
81213         where the original base_name purposely had an assertion failure.
81214         (base_len): New function.
81215
81216         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
81217         Do not include <assert.h>; no longer needed.
81218         Include xalloc.h.
81219         (memrchr): Remove decl.
81220         (dir_name_r): Remove.
81221         (dir_len): Renamed from dirlen.  All callers changed.
81222         Rewrite in terms of base_name, for simplicity and consistency.
81223         (dir_name): Never return NULL.  All callers changed.
81224         Do not include <stdlib.h> in test program; no longer needed.
81225         return 0; is fine for test program.
81226
81227         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
81228         New macros.
81229         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
81230
81231         * lib/path-concat.c (path_concat): Use base_len to compute
81232         base length, not strlen; this means we cannot rely on memcpy
81233         to null-terminate.
81234
81235         * lib/same.c (STREQ): Remove.
81236         (same_name): Handle the case where the basename ends in trailing '/'.
81237
81238         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
81239         a slash was stripped.  Do not strip the last slash after a
81240         file system prefix.
81241
81242 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81243
81244         * lib/Makefile.am (libfetish_a_SOURCES):
81245         Add strftime.c, since we now compile it on all hosts.
81246
81247         * lib/strftime.c (my_strftime):
81248         Define to nstrftime if emacs, but only if my_strftime is not defined.
81249         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
81250         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
81251         Add one more extra argument: a nanoseconds value.
81252         All uses changed.
81253         (ns): New macro.
81254         (my_strftime function): Add %N format.
81255         (emacs_strftimeu): Renamed from emacs_strftime,
81256         with extra ut argument.
81257
81258 2001-05-09  Paul Eggert  <eggert@twinsun.com>
81259
81260         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
81261
81262 2001-04-21  Jim Meyering  <meyering@lucent.com>
81263
81264         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
81265         doesn't interfere.
81266
81267 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81268
81269         * m4/ftruncate.m4: Check for chsize.
81270         Link with ftruncate.o unconditionally if ftruncate is missing.
81271         This was required when cross-compiling to i586-mingw32msvc.
81272
81273 2001-04-08  Jim Meyering  <meyering@lucent.com>
81274
81275         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
81276         recomputed; that's necessary when the offset spans a DST transition.
81277         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
81278
81279 2001-04-02  Jim Meyering  <meyering@lucent.com>
81280
81281         * lib/regex.h, regex.c: Update from GNU libc.
81282
81283 2001-03-24  Jim Meyering  <meyering@lucent.com>
81284
81285         * m4/jm-macros.m4: Require autoconf-2.49d.
81286
81287 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
81288
81289         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
81290
81291 2001-03-19  Paul Eggert  <eggert@twinsun.com>
81292
81293         * lib/version-etc.c (version_etc_copyright): Update to 2001.
81294
81295 2001-03-17  Jim Meyering  <meyering@lucent.com>
81296
81297         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
81298         now that the version in autoconf is equivalent.
81299         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
81300
81301         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
81302         Suggestion from Akim Demaille.
81303
81304         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
81305         (jm_PREREQ_TEMPNAME): New function.
81306
81307 2001-03-16  Paul Eggert  <eggert@twinsun.com>
81308
81309         * lib/tempname.c (uint64_t): Define to uintmax_t if
81310         not defined, and if UINT64_MAX is not defined.
81311         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
81312         Reported by John David Anglin.
81313
81314 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
81315
81316         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
81317         resolve alias if codeset is empty.
81318         * lib/config.charset (BeOS): Use wildcard syntax.
81319
81320 2001-03-13  Jim Meyering  <meyering@lucent.com>
81321
81322         * lib/path-concat.c (path_concat)
81323         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
81324         concatenating e.g., `C:' and `foo'.
81325         From Bruno Haible.
81326
81327 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81328
81329         * lib/localcharset.c (locale_charset): Don't use
81330         setlocale(LC_CTYPE,NULL). Don't return NULL.
81331         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
81332
81333 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81334
81335         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
81336         support for DOS/DJGPP.
81337
81338 2001-03-01  Paul Eggert  <eggert@twinsun.com>
81339
81340         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
81341         lacks mkstemp.  Compile our own tempname.c if we compile our own
81342         mkstemp.c, as mkstemp relies on tempname.
81343
81344 2001-03-01  Jim Meyering  <meyering@lucent.com>
81345
81346         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
81347         AH_VERBATIM really does output its argument verbatim.
81348
81349 2001-02-28  Paul Eggert  <eggert@twinsun.com>
81350
81351         * lib/Makefile.am (libfetish_a_SOURCES):
81352         Add dup-safer.c, fopen-safer.c.
81353         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
81354
81355         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
81356         * lib/unistd-safer.h: New files.
81357
81358 2001-02-25  Paul Eggert  <eggert@twinsun.com>
81359
81360         The mkstemp replacement is taken from glibc 2.2.2, with some
81361         portability fixes for use outside glibc, as follows:
81362
81363         * lib/tempname.c (struct_stat64): New macro.
81364         (direxists, __gen_tempname): Use it.
81365         This avoids a portability problem with Solaris 8.
81366
81367         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
81368         (<stddef.h>, <stdint.h>, <string.h>):
81369         Include only if STDC_HEADERS || _LIBC.
81370         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
81371         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
81372         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
81373         (__set_errno): Define this macro if <errno.h> doesn't.
81374         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
81375         Define these macros if <stdio.h> doesn't.
81376         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
81377         Define these macros if <sys/stat.h>
81378         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
81379         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
81380         __xstat64): Define if not _LIBC.
81381         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
81382         (__gen_tempname): Invoke gettimeofday only if
81383         HAVE_GETTIMEOFDAY || _LIBC;
81384         otherwise, fall back on plain "time".
81385         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
81386
81387         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
81388
81389         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
81390
81391 2001-02-18  Paul Eggert  <eggert@twinsun.com>
81392
81393         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
81394
81395 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81396
81397         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
81398         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
81399         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
81400         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81401
81402 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81403
81404         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
81405         Remove workaround macros for hosts that have mbrtowc but not
81406         mbstate_t, as we now insist on proper declarations for both
81407         before using mbrtowc.
81408
81409 2001-02-17  Jim Meyering  <meyering@lucent.com>
81410
81411         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
81412         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
81413         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
81414         UnixWare 7.1.1.
81415
81416         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
81417         rather than AC_CACHE_VAL.
81418
81419 2001-02-17  Jim Meyering  <meyering@lucent.com>
81420
81421         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
81422         around included file name.
81423
81424         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
81425
81426         * lib/strftime.c: Update from GNU libc (the only changes were to
81427         comments).
81428
81429 2001-02-17  Jim Meyering  <meyering@lucent.com>
81430
81431         * lib/regex.c: Update from libc.
81432
81433 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
81434
81435         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
81436         clash.
81437
81438 2001-02-16  Paul Eggert  <eggert@twinsun.com>
81439
81440         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
81441         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
81442         Reported by Mark Hounschell via Paul Eggert.
81443
81444 2001-02-07  Jim Meyering  <meyering@lucent.com>
81445
81446         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
81447
81448 2001-02-05  Jim Meyering  <meyering@lucent.com>
81449
81450         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
81451         it includes the patch required for `large file' support with at least
81452         HP-UX's 10.20 /bin/cc.
81453
81454 2001-02-03  Jim Meyering  <meyering@lucent.com>
81455
81456         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
81457         AS_IF, now that it works once again (mysteriously).
81458         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81459
81460 2001-01-30  Jim Meyering  <meyering@lucent.com>
81461
81462         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
81463         * m4/chown.m4: Rename conftestchown to conftest.chown.
81464         * m4/rename.m4: s/conftestdir/conftest.d1/ and
81465         s/conftestdir2/conftest.d2/.
81466         * m4/utimes.m4: s/conftestdata/conftest.data/
81467         Inspired by Pavel Roskin's change in autoconf.
81468
81469 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
81470
81471         * lib/config.charset: Update for FreeBSD 4.2.
81472
81473 2001-01-27  Jim Meyering  <meyering@lucent.com>
81474
81475         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
81476         a use of AS_IF.
81477         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81478
81479 2001-01-26  Jim Meyering  <meyering@lucent.com>
81480
81481         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
81482         quotearg.c includes it.
81483
81484 2001-01-26  Jim Meyering  <meyering@lucent.com>
81485
81486         * lib/quotearg.c: Include stddef.h.
81487         * lib/quote.c: Include stddef.h.
81488         Reported by Axel Kittenberger.
81489
81490         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
81491         line in double quotes so that it evokes a better diagnostic.
81492         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
81493         Reported by Axel Kittenberger.
81494
81495 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
81496
81497         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
81498         as if it was a `charset'.
81499
81500 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81501
81502         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
81503         has const.
81504
81505 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81506
81507         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
81508         to avoid a warning.  Add back 'const' to inptr.
81509
81510 2001-01-20  Jim Meyering  <meyering@lucent.com>
81511
81512         Be sure that headers are checked before used in code compiled
81513         for the type checks.
81514         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
81515         In place of that, invoke jm_CHECK_ALL_TYPES.
81516         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
81517         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
81518         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
81519         The check for ssize_t was mistakenly run before the test for unistd.h.
81520
81521         The configure-time check for stdbool.h was missing.
81522         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
81523         (jm_PREREQ_HASH): New function.
81524
81525 2001-01-17  Jim Meyering  <meyering@lucent.com>
81526
81527         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
81528         for autoconf-2.49c.
81529         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
81530
81531 2001-01-16  Jim Meyering  <meyering@lucent.com>
81532
81533         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
81534         From Bruno Haible.
81535
81536 2001-01-14  Jim Meyering  <meyering@lucent.com>
81537
81538         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
81539         foo and bar.  Create conftestdir/ in the script, not in the C code.
81540         Remove directories in the script, not in the C code.
81541         Remove conftestdir{,2} before trying to create the directory.
81542         Make the entire configure script fail if the mkdir fails.
81543
81544 2001-01-14  Jim Meyering  <meyering@lucent.com>
81545
81546         * lib/rename.c: New file.  From Volker Borchert.
81547         Include stdlib.h, string.h or strings.h, and xalloc.h.
81548         Use strip_trailing_slashes rather than open-coding it.
81549
81550 2001-01-03  Paul Eggert  <eggert@twinsun.com>
81551
81552         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
81553
81554 2001-01-03  Jim Meyering  <meyering@lucent.com>
81555
81556         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
81557         of local `inptr' to avoid warning with some system declarations of
81558         iconv.
81559
81560 2001-01-02  Volker Borchert  <bt@teknon.de>
81561
81562         * m4/rename.m4: New file.
81563         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
81564
81565 2001-01-01  Jim Meyering  <meyering@lucent.com>
81566
81567         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
81568         even on systems with utmpx.h.  It's necessary for the declaration of
81569         utmp's ut_user member.  Reported by Andreas Jaeger.
81570
81571         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
81572         available. They are required for the declarations of getgrgid and
81573         getpwuid resp.
81574         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
81575         Reported by Andreas Jaeger.
81576
81577 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
81578
81579         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
81580         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
81581         so `make install' also works in VPATH builds.
81582
81583 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
81584
81585         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
81586         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
81587         can be used in subdirectories.
81588
81589 2000-12-29  Paul Eggert  <eggert@twinsun.com>
81590
81591         * lib/modechange.c: Do not assume that mode_t uses the
81592         traditional octal encoding.  E.g. "chmod 1 FOO" should set
81593         the other-execute bit of FOO even if S_IXOTH != 1.
81594
81595         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
81596         WOTH, XOTH, ALLM): New macros.
81597         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
81598          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
81599         Use them.
81600         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
81601         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
81602         (mode_compile):
81603         No need to use uintmax_t; unsigned long is long enough.
81604         Don't bother to get suffix since we don't use it.
81605
81606 2000-12-26  Jim Meyering  <meyering@lucent.com>
81607
81608         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
81609         better with autoheader.
81610
81611 2000-12-24  Jim Meyering  <meyering@lucent.com>
81612
81613         * lib/hash.c (is_prime): Return explicit boolean values.
81614         (hash_get_first): Return NULL to appease Irix5.6's 89.
81615         Reported by Nelson Beebe.
81616
81617 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
81618
81619         * lib/localcharset.c (locale_charset): Add support for Win32.
81620
81621 2000-12-18  Paul Eggert  <eggert@twinsun.com>
81622
81623         * lib/physmem.h, lib/physmem.c: New files.
81624
81625         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
81626         (noinst_HEADERS): Add physmem.h.
81627
81628         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
81629         't' for compatibility with Solaris 8 sort.
81630
81631 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
81632
81633         * lib/config.charset: Add support for BeOS.
81634
81635 2000-12-17  Jim Meyering  <meyering@lucent.com>
81636
81637         * m4/dos.m4 (jm_AC_DOS): New file and macro.
81638         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
81639
81640 2000-12-16  Jim Meyering  <meyering@lucent.com>
81641
81642         This bug had a serious impact on chown: `chown N:M FILE' (for integer
81643         N and M) would have treated it like `chown N:N FILE'.
81644
81645         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
81646
81647 2000-12-16  Jim Meyering  <meyering@lucent.com>
81648
81649         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
81650         SHELLS_FILE to a file name that's useful on djgpp systems.
81651         Include stdlib.h.
81652         (ADDITIONAL_DEFAULT_SHELLS): Define.
81653         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
81654         Based mostly on a patch from Prashant TR.
81655
81656 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
81657
81658         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
81659         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
81660         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
81661
81662 2000-12-08  Andreas Schwab  <schwab@suse.de>
81663
81664         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
81665         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
81666
81667 2000-12-07  Jim Meyering  <meyering@lucent.com>
81668
81669         * lib/stripslash.c (ISSLASH): Define.
81670         (strip_trailing_slashes): Use ISSLASH rather than comparing against
81671         `/'.
81672         From Prashant TR.
81673
81674         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
81675         (dir_name_r): Declare this function as static.
81676         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
81677         manifest itself on a name containing a mix of slashes and
81678         backslashes.
81679         Make this function work with names starting with a DOS-style
81680         drive letter and colon prefix.
81681         (dir_name): Append `.' if necessary.
81682         Based mostly on patches from Prashant TR and Eli Zaretskii.
81683
81684         * lib/dirname.h (dir_name_r): Remove prototype.
81685
81686 2000-12-06  Paul Eggert  <eggert@twinsun.com>
81687
81688         * m4/off_t-format.m4: Remove this file.
81689         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
81690
81691 2000-12-06  Jim Meyering  <meyering@lucent.com>
81692
81693         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
81694         replacement strtoull, we may well need the replacement strtoul, too.
81695         Check for declarations of strtoul and strtoull.
81696         Check for strtol.  Mainly as a cue to cause automake to include
81697         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
81698         Check for limits.h -- strtol.c needs it.
81699
81700 2000-12-05  Jim Meyering  <meyering@lucent.com>
81701
81702         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
81703
81704 2000-12-04  Jim Meyering  <meyering@lucent.com>
81705
81706         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
81707         Also include memory.h, stdlib.h, unistd.h if appropriate.
81708         Reported by Andreas Jaeger (conflicting declaration of malloc).
81709
81710 2000-12-02  Jim Meyering  <meyering@lucent.com>
81711
81712         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
81713         * m4/jm-macros.m4 (jm_MACROS): require it.
81714
81715 2000-12-02  Jim Meyering  <meyering@lucent.com>
81716
81717         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
81718
81719 2000-12-01  Paul Eggert  <eggert@twinsun.com>
81720
81721         * lib/memrchr.c: Include <config.h> before any system include file.
81722
81723 2000-11-30  Jim Meyering  <meyering@lucent.com>
81724
81725         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
81726
81727 2000-11-30  Jim Meyering  <meyering@lucent.com>
81728
81729         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
81730
81731 2000-11-29  Paul Eggert  <eggert@twinsun.com>
81732
81733         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
81734
81735 2000-11-26  Jim Meyering  <meyering@lucent.com>
81736
81737         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
81738
81739 2000-11-22  Paul Eggert  <eggert@twinsun.com>
81740
81741         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
81742         size of (size_t) -1; it's not portable.
81743
81744 2000-11-17  Jim Meyering  <meyering@lucent.com>
81745
81746         * lib/strstr.c: Update from GNU libc.
81747
81748 2000-11-17  Akim Demaille  <akim@epita.fr>
81749
81750         * lib/obstack.h: Formatting changes.
81751         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
81752         prevent type checking.
81753         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
81754         cast the value to (void *): assigning a `foo *' to a `void *'
81755         variable is valid.
81756         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
81757
81758 2000-11-16  Jim Meyering  <meyering@lucent.com>
81759
81760         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
81761
81762 2000-11-11  Jim Meyering  <meyering@lucent.com>
81763
81764         * lib/error.c: Add a couple #includes, merging from GNU libc version.
81765
81766 2000-11-10  Jim Meyering  <meyering@lucent.com>
81767
81768         * lib/obstack.h: Update from GNU libc.
81769         * lib/obstack.c: Likewise.
81770
81771 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
81772
81773         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
81774
81775 2000-11-06  Paul Eggert  <eggert@twinsun.com>
81776
81777         * lib/getusershell.c (setusershell): Use rewind rather than
81778         fseek/fseeko, to avoid configuration hassles with fseeko.
81779         Don't bother opening SHELLS_FILE if shellstream is NULL;
81780         it's not necessary.
81781
81782 2000-11-05  Jim Meyering  <meyering@lucent.com>
81783
81784         * lib/makepath.h (make_dir): Declare.
81785         * lib/makepath.c (make_dir): Remove `static' attribute.
81786         Tweak a comment.
81787
81788 2000-11-04  Jim Meyering  <meyering@lucent.com>
81789
81790         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
81791
81792 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
81793
81794         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
81795         last one in a bucket, advance to the next bucket.
81796
81797 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
81798
81799         * lib/fnmatch.c: Do not comment out all the code if we are using
81800         the GNU C library, because in some cases we are replacing buggy
81801         code in the GNU C library itself.
81802
81803 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
81804
81805         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
81806         (regex_compile): Catch bogus \(\1\).
81807
81808 2000-10-30  Paul Eggert  <eggert@twinsun.com>
81809
81810         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
81811         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
81812         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
81813
81814 2000-10-30  Paul Eggert  <eggert@twinsun.com>
81815
81816         * lib/error.h, getline.h, modechange.h:
81817         Remove "2000" from Copyright line, as the file hasn't been
81818         changed this year other than in the copyright notice.
81819
81820         * lib/xalloc.h: Add "2000" to Copyright line, as this file
81821         was changed this year.
81822
81823 2000-10-29  Jim Meyering  <meyering@lucent.com>
81824
81825         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
81826         renaming.
81827         * m4/ls-mntd-fs.m4: Likewise
81828
81829 2000-10-29  Jim Meyering  <meyering@lucent.com>
81830
81831         * lib/xstat.in: Fix grammar in comment.
81832
81833 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
81834
81835         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
81836         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
81837         doesn't define __restrict_arr.
81838
81839 2000-10-28  Jim Meyering  <meyering@lucent.com>
81840
81841         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
81842         (jm_PREREQ_MEMCHR): New function.
81843
81844 2000-10-28  Jim Meyering  <meyering@lucent.com>
81845
81846         * lib/memchr.c: Update from libc.
81847         Adjust for portability:
81848         [HAVE_STDLIB_H]: Include stdlib.h.
81849         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
81850         Undef __memchr, too.
81851         [!weak_alias]: Define __memchr to memchr.
81852
81853         * lib/regex.c: Update from libc.
81854         * lib/regex.h: Likewise.
81855         * lib/getopt1.c: Likewise.
81856         * lib/memcmp.c: Likewise.
81857
81858         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
81859         Avoid using fseek, when possible -- it's broken by design.
81860         Patch by Ulrich Drepper.
81861
81862 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
81863
81864         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
81865         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
81866         Giving in to popular pressure to shut up the compiler with casts.
81867
81868 2000-10-26  Jim Meyering  <meyering@lucent.com>
81869
81870         * lib/strftime.c: Update from libc.
81871
81872 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
81873
81874         * regex.c: More `unsigned char' -> `re_char' changes.
81875         Also change several `int' into `re_wchar_t'.
81876         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
81877         (PUSH_FAILURE_POINTER): Don't cast any more.
81878         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
81879         We want GCC to complain, since this piece of code makes
81880         re_match non-reentrant, which *should* be fixed.
81881         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
81882         (EXTEND_BUFFER): Use RETALLOC.
81883         (SET_LIST_BIT): Don't cast.
81884         (re_wchar_t): New type.
81885         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
81886         that those two functions will always properly return.
81887         (IMMEDIATE_QUIT_CHECK): Cast to void.
81888         (analyse_first): Use recursion rather than an explicit stack.
81889         (re_compile_fastmap): Can't fail anymore.
81890         (re_search_2): Don't check re_compile_fastmap for failure.
81891         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
81892         Now also sets the new value (passed in a new argument).
81893         (re_match_2_internal): Use it.
81894         Also, use a new var `reg' of type size_t when looping through regs
81895         rather than reuse the inappropriate `mcnt'.
81896
81897 2000-10-25  Jim Meyering  <meyering@lucent.com>
81898
81899         * lib/obstack.c: Update from libc.
81900
81901 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
81902
81903         * regex.c (regex_compile): Change the way of handling a range from
81904         a char less than 256 to a char not less than 256.
81905
81906 2000-10-24  Andrew Innes  <andrewi@gnu.org>
81907
81908         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
81909         NT-Emacs only.
81910         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
81911         so that re_search functions only quit when callers expect them to.
81912
81913 2000-10-23  Jim Meyering  <meyering@lucent.com>
81914
81915         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
81916         wrong.  That set_locale call must not have any side effects.
81917         From Paul Eggert.
81918
81919 2000-10-22  Jim Meyering  <meyering@lucent.com>
81920
81921         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
81922         [CYCLIC]: Remove now-unused definition.
81923
81924         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
81925         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
81926         Suggestion from Ulrich Drepper.
81927
81928 2000-10-21  Jim Meyering  <meyering@lucent.com>
81929
81930         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
81931         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
81932         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
81933
81934 2000-10-21  Jim Meyering  <meyering@lucent.com>
81935
81936         * lib/dirname.c (memrchr): Declare if necessary.
81937         (dir_name): Remove the restriction that there be no
81938         trailing slashes.  Now, this code skips past them, effectively
81939         ignoring them.
81940         [TEST_DIRNAME] (main): New unit tests.
81941
81942         * lib/memrchr.c: New file from GNU libc.
81943         Undef __memrchr, too.
81944         [!weak_alias]: Define __memrchr to memrchr.
81945         Guard weak_alias use with `#ifdef weak_alias'.
81946
81947 2000-10-21  Jim Meyering  <meyering@lucent.com>
81948
81949         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
81950         (dir_name): Use dir_name_r.
81951         * lib/dirname.h (dir_name_r): Declare it.
81952
81953 2000-10-17  Jim Meyering  <meyering@lucent.com>
81954
81955         * lib/quote.h (PARAMS): Define and use.
81956         Reported by Akim Demaille.
81957
81958         * lib/getopt.c: Update from libc.
81959
81960 2000-10-16  Jim Meyering  <meyering@lucent.com>
81961
81962         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
81963         setlocale.
81964         From Jan Fedak.
81965
81966 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
81967
81968         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
81969
81970 2000-09-25  Jim Meyering  <meyering@lucent.com>
81971
81972         * lib/md5.h (rol): Define (from GnuPG).
81973
81974         * lib/sha.c: Give credit (GnuPG) where due.
81975         (M): Use rol rather than open-coding it.
81976         Add a FIXME comment.
81977
81978 2000-09-21  Jim Meyering  <meyering@lucent.com>
81979
81980         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
81981         Reported by Michael Stone.
81982
81983 2000-09-20  Jim Meyering  <meyering@lucent.com>
81984
81985         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
81986         (noinst_HEADERS): Add sha.h.
81987         Based on code from Scott G. Miller and from GnuPG.
81988
81989 2000-09-18  Jim Meyering  <meyering@lucent.com>
81990
81991         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
81992         LIBS. Otherwise, everyone ends up linking with -lelf for some
81993         configurations.
81994         Reported by Mike Stone.
81995
81996 2000-09-15  Jim Meyering  <meyering@lucent.com>
81997
81998         * lib/regex.c: Update from libc.
81999
82000 2000-09-10  Jim Meyering  <meyering@lucent.com>
82001
82002         * lib/getopt.c (_getopt_internal): Update from glibc.
82003
82004 2000-09-09  Jim Meyering  <meyering@lucent.com>
82005
82006         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
82007         think it should be used as a general replacement for isascii.
82008         * lib/fnmatch.c: Likewise.
82009         * lib/mbswidth.c: Likewise
82010         * lib/regex.c: Likewise.
82011
82012         Don't use atoi.
82013         * lib/userspec.c: Include sys/param.h and limits.h.
82014         Include xstrtol.h.
82015         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82016         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
82017         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
82018         UID, GID.  Check range.
82019
82020 2000-09-06  Jim Meyering  <meyering@lucent.com>
82021
82022         * lib/getopt.c (_getopt_internal): Update from glibc.
82023
82024 2000-08-30  Jim Meyering  <meyering@lucent.com>
82025
82026         * lib/strftime.c: Merge in changes from GNU libc.
82027
82028 2000-08-26  Jim Meyering  <meyering@lucent.com>
82029
82030         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
82031         * m4/fpending.m4: New file.
82032
82033 2000-08-26  Jim Meyering  <meyering@lucent.com>
82034
82035         * lib/closeout.c: Include "__fpending.h".
82036         (close_stdout_status): Return right away if there's nothing to flush.
82037
82038         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
82039         * lib/__fpending.c: New file.
82040         * lib/__fpending.h: New file.
82041
82042 2000-08-20  Jim Meyering  <meyering@lucent.com>
82043
82044         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
82045         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
82046         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
82047
82048 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
82049
82050         Improve fileutils installation on systems where running
82051         programs (like install) can't be unlinked.
82052         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
82053         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
82054
82055 2000-08-07  Paul Eggert  <eggert@twinsun.com>
82056
82057         Standardize on "memory exhausted" instead of "Memory exhausted"
82058         or "virtual memory exhausted".
82059         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
82060         "virtual memory exhausted".
82061         * lib/same.c (same_name): Invoke xalloc_die instead of printing
82062         our own message.
82063         * lib/userspec.c (parse_user_spec): Likewise.
82064         * lib/bumpalloc.h: comment fix
82065         * lib/same.c, userspec.c: Include xalloc.h.
82066
82067         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
82068         not char *const and pointing to a constant array.
82069         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
82070         (xrealloc): Comment fix.
82071
82072         * lib/userspec.c (parse_user_spec):
82073         Don't translate a message until just before returning,
82074         to avoid unnecessary translation.
82075
82076 2000-08-07  Jim Meyering  <meyering@lucent.com>
82077
82078         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
82079         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
82080         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
82081         getgroups.c, gethostname.c, getopt.h, group-member.c,
82082         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
82083         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
82084         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
82085         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
82086         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
82087         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
82088         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
82089         yesno.c: Back out Copyright date changes for each file with no change
82090         this year.  This eases coordination with other programs using the same
82091         source code modules.  From Paul Eggert.
82092
82093 2000-08-06  Paul Eggert  <eggert@twinsun.com>
82094
82095         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
82096         not char, for compatibility with glibc 2.1.3 strftime.c.
82097
82098 2000-08-03  Greg McGary  <greg@mcgary.org>
82099
82100         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
82101         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
82102         (EXTEND_BUFFER): Use them.
82103
82104 2000-08-01  Jim Meyering  <meyering@lucent.com>
82105
82106         * lib/dirname.c (ISSLASH): Define.
82107         (BACKSLASH_IS_PATH_SEPARATOR): Define.
82108         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
82109         both `\' and `/' may be use as path separators.
82110         Based on a patch from Prashant TR.
82111
82112 2000-07-31  Paul Eggert  <eggert@twinsun.com>
82113
82114         * lib/quotearg.c (quotearg_n_options): Don't make the initial
82115         slot vector a constant, since it might get modified.
82116
82117 2000-07-31  Jim Meyering  <meyering@lucent.com>
82118
82119         * lib/xmalloc.c: Use `virtual memory exhausted', not
82120         `Memory exhausted'.
82121         * lib/obstack.c (print_and_abort): Likewise.
82122
82123 2000-07-30  Paul Eggert  <eggert@twinsun.com>
82124
82125         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
82126         buffer, so that the caller can always quote one small
82127         component of a "memory exhausted" message in slot 0.
82128         From a suggestion by Jim Meyering.
82129
82130 2000-07-30  Jim Meyering  <meyering@lucent.com>
82131
82132         * lib/makepath.c (make_path): Quote the other instance, too.
82133
82134         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
82135         (STATIC_BUF_SIZE): Define.
82136         (quotearg_n_options): Use only statically allocated storage when
82137         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
82138         than STATIC_BUF_SIZE.
82139
82140 2000-07-29  Jim Meyering  <meyering@lucent.com>
82141
82142         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
82143         * lib/dirname.c (dir_name): Likewise.
82144
82145         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
82146         `/'.
82147
82148         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
82149         (dir_name): Assert that there are no trailing slashes.
82150
82151 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
82152
82153         * lib/mbswidth.h (mbswidth): Add a flags argument.
82154         (mbswidth): New declaration.
82155         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
82156         * lib/mbswidth.c (mbswidth): Add a flags argument.
82157         (mbsnwidth): New function.
82158
82159 2000-07-24  Jim Meyering  <meyering@lucent.com>
82160
82161         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
82162
82163 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82164
82165         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
82166
82167 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82168
82169         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
82170         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
82171         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
82172         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
82173         invoke multibyte primitives.
82174
82175 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82176
82177         * lib/quotearg.c:
82178         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
82179         so that mbstate_t is always defined.
82180
82181         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
82182         be 1 in at least one GCC installation, and this configuration
82183         error is likely to be common.  Ignoring MB_LEN_MAX hurts
82184         performance on hosts that have mbrtowc but have only unibyte
82185         locales, but I assume these hosts are rare.
82186
82187 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82188
82189         * lib/mbswidth.c (_XOPEN_SOURCE):
82190         Don't define; this causes problems on Solaris 7.
82191         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
82192
82193 2000-07-23  Jim Meyering  <meyering@lucent.com>
82194
82195         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
82196         too: getgrgid, getpwuid, getuid.
82197
82198 2000-07-23  Jim Meyering  <meyering@lucent.com>
82199
82200         * lib/basename.c (base_name): Add an assertion.
82201
82202 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
82203
82204         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
82205         shadow its mbsinit function.
82206
82207 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82208
82209         * lib/mbswidth.h: New file.
82210         * lib/mbswidth.c: New file.
82211         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
82212         (noinst_HEADERS): Add mbswidth.h.
82213
82214 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82215
82216         * lib/config.charset: Add support for FreeBSD. Improve support for
82217         HP-UX and IRIX 6.
82218
82219 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
82220
82221         * m4/mbswidth.m4: New file.
82222         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
82223
82224 2000-07-15  Jim Meyering  <meyering@lucent.com>
82225
82226         * lib/makepath.c: Include quote.h.
82227         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
82228         corresponding argument in a `quote (...)' call.
82229         Give better diagnostics.
82230
82231         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
82232         (noinst_HEADERS): Add quote.h.
82233
82234         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
82235         from tar's src/misc.c.
82236         * lib/quote.h: New file.  Prototypes for same.
82237
82238 2000-07-14  Paul Eggert  <eggert@twinsun.com>
82239
82240         From a suggestion by Bruno Haible.
82241         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
82242         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
82243         to decide whether to define the BeOS workaround macro;
82244         this adjusts to the change to AC_MBSTATE_T.
82245
82246 2000-07-14  Jim Meyering  <meyering@lucent.com>
82247
82248         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
82249         jm_AC_TYPE_UINTMAX_T.
82250
82251 2000-07-13  Paul Eggert  <eggert@twinsun.com>
82252
82253         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
82254
82255         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
82256         quotearg_buffer_restyled): Add support for
82257         clocale_quoting_style.  Undo previous change to
82258         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
82259         and "{RIGHT QUOTATION MARK}" msgids.
82260
82261 2000-07-10  Paul Eggert  <eggert@twinsun.com>
82262
82263         From a suggestion by Bruno Haible.
82264         * m4/mbstate_t.m4 (AC_MBSTATE_T):
82265         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
82266         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
82267         and mbstate_t, to a single-part test that simply defines mbstate_t.
82268         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
82269         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
82270
82271 2000-07-10  Jim Meyering  <meyering@lucent.com>
82272
82273         * m4/strerror_r.m4: Mirror the correction made in autoconf.
82274
82275         * m4/gnu-source.m4: Output to confdefs.h directly.
82276         Suggestion from Akim Demaille.
82277
82278 2000-07-09  Paul Eggert  <eggert@twinsun.com>
82279
82280         The old behavior of quoting `like this' doesn't look good with
82281         newer, ISO-style fonts.  See:
82282         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
82283
82284         Instead, quote "like this" by default.  Let the translator
82285         tailor the locale-specific quoting behavior by providing
82286         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
82287
82288         * lib/quotearg.c (N_): New macro.
82289         (gettext_default): New function.
82290         (quotearg_buffer_restyled): Use
82291         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
82292         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
82293
82294 2000-07-09  Jim Meyering  <meyering@lucent.com>
82295
82296         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
82297         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
82298
82299         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
82300         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
82301
82302 2000-07-09  Jim Meyering  <meyering@lucent.com>
82303
82304         * lib/Most files: Update copyright dates to include 2000.
82305
82306 2000-07-08  Jim Meyering  <meyering@lucent.com>
82307
82308         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
82309         if not defined.
82310         (xgethostname): Remove now-unnecessary #ifdef.
82311         Move declaration of `err' into loop where it's used.
82312
82313 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82314         and Bruno Haible  <haible@clisp.cons.org>
82315
82316         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
82317         only if the test for an object-type mbstate_t fails.  This
82318         prevents us from mistakenly reporting that mbstate_t is a
82319         system object type after we "#define mbstate_t int" to work
82320         around its lack.
82321
82322 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82323         and Bruno Haible  <haible@clisp.cons.org>
82324
82325         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
82326
82327 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82328
82329         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
82330         to strerror_r.
82331         Include <ctype.h> for use of isalpha.
82332
82333 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82334
82335         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
82336         by allocating a larger buffer. Test the gethostname return value for
82337         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
82338         returns an error and ENAMETOOLONG isn't defined.
82339
82340 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82341
82342         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
82343         dimension.
82344
82345 2000-07-04  Jim Meyering  <meyering@lucent.com>
82346
82347         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
82348         of the deprecated AC_CHECKING.
82349
82350 2000-07-04  Jim Meyering  <meyering@lucent.com>
82351
82352         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
82353         Reported by Bruno Haible.
82354
82355 2000-07-04  Jim Meyering  <meyering@lucent.com>
82356
82357         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
82358         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
82359         lacks mbrtowc.
82360
82361 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82362
82363         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
82364         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
82365
82366 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82367         and Bruno Haible  <haible@clisp.cons.org>
82368
82369         * lib/quotearg.c (mbrtowc):
82370         Assign to *pwc, and return 1 only if result is nonzero.
82371         (iswprint): Use ISPRINT when substituting our own mbrtowc.
82372
82373 2000-07-03  Jim Meyering  <meyering@lucent.com>
82374
82375         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
82376
82377 2000-07-03  Jim Meyering  <meyering@lucent.com>
82378
82379         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
82380         This is necessary to get a definition of e.g., UTMP_FILE on
82381         HP-UX 10.20.
82382         From Bob Proulx.
82383
82384 2000-07-02  Jim Meyering  <meyering@lucent.com>
82385
82386         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
82387
82388         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
82389         AC_LIBOBJ(function_name).
82390         * m4/chown.m4: Likewise.
82391         * m4/fnmatch.m4: Likewise.
82392         * m4/ftruncate.m4: Likewise.
82393         * m4/getgroups.m4: Likewise.
82394         * m4/getline.m4: Likewise.
82395         * m4/group-member.m4: Likewise.
82396         * m4/jm-macros.m4: Likewise.
82397         * m4/lstat.m4: Likewise.
82398         * m4/malloc.m4: Likewise.
82399         * m4/memcmp.m4: Likewise.
82400         * m4/nanosleep.m4: Likewise.
82401         * m4/putenv.m4: Likewise.
82402         * m4/realloc.m4: Likewise.
82403         * m4/regex.m4: Likewise.
82404         * m4/stat.m4: Likewise.
82405         * m4/strftime.m4: Likewise.
82406
82407 2000-07-02  Jim Meyering  <meyering@lucent.com>
82408
82409         * lib/quotearg.c (mbstate_t): Don't define here.
82410
82411 2000-07-02  Jim Meyering  <meyering@lucent.com>
82412
82413         * lib/nanosleep.c (SIGCONT): Define if not already defined.
82414
82415 2000-07-01  Jim Meyering  <meyering@lucent.com>
82416
82417         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
82418
82419 2000-07-01  Jim Meyering  <meyering@lucent.com>
82420
82421         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
82422         problem.
82423
82424 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82425
82426         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
82427         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
82428
82429 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82430
82431         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
82432         per change in ../m4/ls-mntd-fs.m4.
82433         (read_filesystem_list): Ignore symbolic links.
82434
82435 2000-06-29  Jim Meyering  <meyering@lucent.com>
82436
82437         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
82438         for declaration of strcmp.
82439
82440         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
82441
82442         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
82443         Avoid warning by casting result to `char *' to remove `const'.
82444
82445 2000-06-28  Jim Meyering  <meyering@lucent.com>
82446
82447         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
82448         included by quotearg.c, for which we perform this test.  From
82449         Bruno Haible.
82450
82451 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82452
82453         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
82454         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
82455         <utmpx.h> exists, put readutmp.o into LIBOBJS.
82456
82457 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82458
82459         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
82460
82461 2000-06-26  Paul Eggert  <eggert@twinsun.com>
82462
82463         savedir now sets errno on failure and invokes xmalloc to get memory.
82464         Fix a couple of other minor bugs while we're at it.
82465
82466         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
82467         (NAMLEN): Remove macro.
82468         (malloc, realloc): Remove decls.
82469         (stpcpy): Likewise.
82470         ("xalloc.h"): Include.
82471         (NAME_SIZE_DEFAULT): New macro.
82472         (savedir): Use xmalloc / xrealloc to allocate memory.
82473         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
82474         Skip "" directory entries.
82475         Use strlen to calculate directory entry length, since the old method
82476         is rarely used these days and isn't worth supporting.
82477         Don't use a pointer after freeing it.
82478         Check for integer overflow when calculating allocation size.
82479         Use memcpy to copy entries, instead of stpcpy.
82480         Set errno properly when returning NULL.
82481         Check for readdir error.
82482
82483 2000-06-26  Jim Meyering  <meyering@lucent.com>
82484
82485         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
82486
82487 2000-06-25  Jim Meyering  <meyering@lucent.com>
82488
82489         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
82490         Linux header bug when _XOPEN_SOURCE is defined to 500.
82491
82492 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82493
82494         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
82495         deficiency.
82496
82497 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82498
82499         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
82500         Include xalloc.h.
82501         Don't include <stdlib.h>.  Don't declare malloc, realloc.
82502
82503 2000-06-24  Jim Meyering  <meyering@lucent.com>
82504
82505         * m4/strerror_r.m4: Revive this file -- to try out an experimental
82506         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
82507         for which strerror does return char*, but which lacks a conveniently
82508         accessible declaration of the function.  If the compile-test says
82509         strerror_r doesn't work, then resort to a `run'-test that works on
82510         BeOS and segfaults on DEC Unix.
82511
82512 2000-06-24  Jim Meyering  <meyering@lucent.com>
82513
82514         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
82515
82516 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82517
82518         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
82519         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
82520
82521 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82522
82523         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
82524         (mbrtowc, mbstate_t): Define substitutes if
82525         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
82526         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
82527         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
82528
82529 2000-06-23  Jim Meyering  <meyering@lucent.com>
82530
82531         * m4/afs.m4: Add missing AC_MSG_RESULT.
82532         Reported by Bruno Haible.
82533
82534         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
82535         Suggestion from Bruno Haible.
82536
82537 2000-06-23  Jim Meyering  <meyering@lucent.com>
82538
82539         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
82540
82541 2000-06-21  Jim Meyering  <meyering@lucent.com>
82542
82543         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
82544
82545 2000-06-21  Jim Meyering  <meyering@lucent.com>
82546
82547         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
82548         (noinst_HEADERS): Add getstr.h.
82549
82550         * lib/getline.c (getstr): Move into a separate file.
82551         * lib/getstr.c (getstr): New file, extracted from getline.c, with
82552         the following changes: new parameter, delim2; both delim[12]
82553         parameters have type `int', not `char'.  The latter would lose
82554         with 8-bit delimiters.
82555         * lib/getstr.h: New file.
82556
82557 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82558
82559         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
82560         than 1024, return a memory chunk of least possible size, instead
82561         of size PATH_MAX + 2. In the loop, increment the size proportionally.
82562         Use free/xmalloc instead of xrealloc to avoid copying for very long
82563         paths.
82564
82565 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82566
82567         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
82568         the empty string.
82569
82570 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82571
82572         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
82573         address, not strdup.  Include <stdlib.h> and don't declare free().
82574
82575 2000-06-19  Jim Meyering  <meyering@lucent.com>
82576
82577         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
82578
82579 2000-06-18  Jim Meyering  <meyering@lucent.com>
82580
82581         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
82582
82583         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
82584         `checking whether...' message to be consistent with that of the
82585         lstat test.
82586
82587 2000-06-18  Jim Meyering  <meyering@lucent.com>
82588
82589         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
82590         Besides, these days every porting target provides a mkdir function.
82591
82592         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
82593         needed. (this snippet comes from src/system.h).
82594
82595 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
82596
82597         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
82598
82599 2000-06-15  Paul Eggert  <eggert@twinsun.com>
82600
82601         * lib/human.c (adjust_value): New function.
82602         (human_readable_inexact): Apply rounding style even when
82603         printing approximate values.
82604
82605 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82606
82607         * lib/human.c (human_readable_inexact): Allow an input block
82608         size that is not a multiple of the output block size, and vice versa.
82609         Reported by Piergiorgio Sartor.
82610
82611 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82612
82613         * lib/getdate.y (get_date): Apply relative times after time
82614         zone indicator, not before.  Reported by Todd A. Jacobs.
82615
82616 2000-06-13  Jim Meyering  <meyering@lucent.com>
82617
82618         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
82619
82620         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
82621
82622 2000-06-12  Paul Eggert  <eggert@twinsun.com>
82623
82624         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
82625
82626 2000-06-12  Jim Meyering  <meyering@lucent.com>
82627
82628         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
82629         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
82630         optional argument.
82631         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
82632         the optional argument, `lib'.
82633
82634 2000-06-08  Jim Meyering  <meyering@lucent.com>
82635
82636         * m4/largefile.m4: Remove file (now that it's part of autoconf).
82637
82638 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82639
82640         Rewrite largefile configuration so that we don't need to run
82641         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
82642         AC_CANONICAL_HOST in configure.in -- jmm]
82643
82644         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
82645         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
82646         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
82647         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
82648         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
82649         All uses changed.
82650         Instead of inspecting the output of getconf, try to compile the
82651         test program without and with the macro definition.
82652         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
82653         for getconf.  Instead, check for the needed flags by compiling
82654         test programs.
82655
82656 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82657
82658         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
82659
82660 2000-06-04  Jim Meyering  <meyering@lucent.com>
82661
82662         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
82663         SunOS 4.1.4 for which gid_t is an unsigned type.
82664
82665 2000-06-03  Jim Meyering  <meyering@lucent.com>
82666
82667         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
82668         now that autoconf requires that.
82669
82670         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
82671         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
82672         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
82673
82674 2000-06-03  Jim Meyering  <meyering@lucent.com>
82675
82676         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
82677
82678 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82679
82680         * m4/glibc21.m4: New file.
82681         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
82682
82683 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82684
82685         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
82686         newer, don't install charset.alias.
82687         * lib/config.charset: Change the Linux/glibc rules so they become empty
82688         on glibc-2.1 or newer.
82689
82690 2000-06-02  Jim Meyering  <meyering@lucent.com>
82691
82692         * lib/mountlist.c: Back out last change.  Instead, do this...
82693         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
82694         me_dummy member using the same `ignore'-testing code.
82695         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
82696         fs_type strings.
82697         From Mark D. Roth.
82698
82699 2000-05-29  Jim Meyering  <meyering@lucent.com>
82700
82701         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
82702         mounts with the `ignore' attribute.  Based on a patch from
82703         Mark D. Roth.
82704
82705 2000-05-28  Jim Meyering  <meyering@lucent.com>
82706
82707         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
82708         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82709         * m4/stat.m4: Likewise.
82710         * m4/lstat.m4: Likewise.
82711         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
82712
82713         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
82714         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
82715
82716 2000-05-26  Jim Meyering  <meyering@lucent.com>
82717
82718         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
82719
82720 2000-05-24  Jim Meyering  <meyering@lucent.com>
82721
82722         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
82723         autoconf requires that.
82724         * m4/lib-check.m4: Likewise.
82725         * m4/jm-macros.m4: Likewise.
82726         * m4/strftime.m4: Likewise.
82727
82728         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
82729         AC_CHECK_DECLS, now that autoconf requires that.
82730
82731 2000-05-22  Jim Meyering  <meyering@lucent.com>
82732
82733         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82734         * m4/lstat.m4: Likewise.
82735
82736 2000-05-22  Jim Meyering  <meyering@lucent.com>
82737
82738         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
82739
82740 2000-05-20  Jim Meyering  <meyering@lucent.com>
82741
82742         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
82743         (jm_PREREQ): Use it.
82744
82745 2000-05-18  Jim Meyering  <meyering@lucent.com>
82746
82747         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
82748         back, too, since it may have been modified by allocate_entry.
82749         (hash_delete): Rewrite to use neither the assignment operator
82750         nor the comma operator in an if-expression.
82751
82752 2000-05-15  Paul Eggert  <eggert@twinsun.com>
82753
82754         * lib/closeout.c:
82755         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
82756         Remove; no longer needed.
82757         "quotearg.h": Add include.
82758         (file_name): Do not bother to explicitly initialize to NULL; it's less
82759         efficient on some hosts.
82760         (close_stdout_status): Remove test as to whether stdout was already
82761         closed; it breaks for the case "echo x | sort >&-".
82762         Quote file name colons.
82763         Do not assume that _("write error") lacks format strings.
82764
82765 2000-05-15  Jim Meyering  <meyering@lucent.com>
82766
82767         * lib/version-etc.c (version_etc_copyright): Update the copyright
82768         string used in all --version output.
82769
82770 2000-05-14  Jim Meyering  <meyering@lucent.com>
82771
82772         * lib/closeout.c (close_stdout_set_file_name): New function.
82773         (close_stdout_status): Use new file-scoped global.
82774         Return right away if fstat says the stdout file descriptor is invalid.
82775         * lib/closeout.h (close_stdout_set_file_name): Declare.
82776
82777 2000-05-10  Jim Meyering  <meyering@lucent.com>
82778
82779         * lib/closeout.c [default_exit_status]: New file-scoped variable.
82780         (close_stdout_set_status): New function.
82781         * lib/closeout.h (close_stdout_set_status): Declare.
82782
82783 2000-05-09  Jim Meyering  <meyering@lucent.com>
82784
82785         * m4/gettext.m4: Rename this...
82786         * m4/libintl.m4: ...to this.
82787
82788 2000-05-08  Jim Meyering  <meyering@lucent.com>
82789
82790         * lib/long-options.c: Don't include closeout.h.
82791         (parse_long_options): Don't call close_stdout for --version.
82792
82793 2000-05-06  Paul Eggert  <eggert@twinsun.com>
82794
82795         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
82796         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
82797         2.1.3 bug.  This avoids a clash when files like regex.c define
82798         _GNU_SOURCE.
82799
82800 2000-05-06  Jim Meyering  <meyering@lucent.com>
82801
82802         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
82803         (AC_REPLACE_FUNCS): Add strnlen.
82804
82805         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
82806         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
82807
82808         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
82809         AC_SEARCH_LIBS call for nanosleep.
82810         (LIB_NANOSLEEP): Set and AC_SUBST.
82811
82812 2000-05-06  Jim Meyering  <meyering@lucent.com>
82813
82814         * lib/strnlen.c: Undefine __strnlen and strnlen.
82815         [!weak_alias]: Define __strnlen to strnlen.
82816
82817         * lib/atexit.c: New file, from libiberty.
82818
82819 2000-05-06  Jim Meyering  <meyering@lucent.com>
82820
82821         * lib/closeout.c (close_stdout_status): Also check for errors on the
82822         stderr stream.
82823
82824 2000-05-05  Jim Meyering  <meyering@lucent.com>
82825
82826         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
82827         AC_SEARCH_LIBS call for clock_gettime.
82828         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
82829
82830         * m4/search-libs.m4: Update from autoconf.
82831
82832         su doesn't work on Solaris 2.6.
82833         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
82834         <shadow.h>.  Reported by Dragos Harabor.
82835
82836 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
82837
82838         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
82839         memcpy instead of xmalloc, xrealloc, path_concat.
82840         (locale_charset): Treat empty environment variables as absent.
82841         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
82842
82843 2000-05-04  Jim Meyering  <meyering@lucent.com>
82844
82845         * lib/getopt.c: Update from glibc.
82846         * lib/obstack.c: Likewise.
82847         * lib/obstack.h: Likewise.
82848         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
82849         file
82850
82851         * lib/regex.h: Likewise.
82852         * lib/strndup.c: Likewise.
82853         * lib/strnlen.c: New file, from glibc.
82854
82855 2000-05-03  Jim Meyering  <meyering@lucent.com>
82856
82857         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
82858
82859 2000-05-02  Paul Eggert  <eggert@twinsun.com>
82860
82861         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
82862         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
82863         compile-time test, rather than inspecting host and OS, to
82864         decide whether to define _LARGEFILE_SOURCE.
82865
82866 2000-05-01  Jim Meyering  <meyering@lucent.com>
82867
82868         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
82869
82870         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
82871         Based on a patch from Bruno Haible.
82872
82873 2000-05-01  Jim Meyering  <meyering@lucent.com>
82874
82875         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
82876
82877 2000-04-29  Jim Meyering  <meyering@lucent.com>
82878
82879         * lib/path-concat.c: Declare strdup only if it's not defined.
82880         * lib/canon-host.c: Likewise.
82881
82882 2000-04-28  Jim Meyering  <meyering@lucent.com>
82883
82884         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
82885         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
82886         is included first, then limits.h is included by locale.h by libintl.h.
82887         From John David Anglin.
82888
82889 2000-04-25  Jim Meyering  <meyering@lucent.com>
82890
82891         * lib/makepath.c (S_IRWXUGO): Define.
82892         (make_path): Always perform explicit chmod if MODE specifies any
82893         of the `special' permission bits.  Prompted by a bug report against
82894         install from Mate Wierdl and Joost van Baal.
82895
82896 2000-04-18  Jim Meyering  <meyering@lucent.com>
82897
82898         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
82899         (jm_PREREQ): Use it.
82900
82901 2000-04-18  Jim Meyering  <meyering@lucent.com>
82902
82903         * lib/README: New file.
82904
82905         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
82906         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
82907
82908 2000-04-17  Jim Meyering  <meyering@lucent.com>
82909
82910         Get it right :-)
82911         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
82912         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
82913         Suggestion from Akim Demaille.
82914
82915 2000-04-17  Jim Meyering  <meyering@lucent.com>
82916
82917         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
82918         the definition of it to rpl_strftime also defined-away the system's
82919         declaration.
82920
82921 2000-04-15  Jim Meyering  <meyering@lucent.com>
82922
82923         Use `C' to denote so-called `contiguous' files, the same way
82924         that tar does.
82925         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
82926         (ftypelet): Use S_ISCTG.
82927         From Michael Deutschmann.
82928
82929 2000-04-14  Jim Meyering  <meyering@lucent.com>
82930
82931         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
82932         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
82933         clobbered.
82934
82935 2000-04-14  Jim Meyering  <meyering@lucent.com>
82936
82937         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
82938
82939 2000-04-13  Jim Meyering  <meyering@lucent.com>
82940
82941         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
82942         AH_VERBATIM to insert required #ifndef into config.h.in.
82943         Suggestion from Akim Demaille.
82944
82945 2000-04-12  Jim Meyering  <meyering@lucent.com>
82946
82947         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
82948         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
82949         Christian Krackowizer.
82950
82951         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
82952         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
82953         (AC_SYS_LARGEFILE): Require.
82954         (AM_C_PROTOTYPES): Require.
82955
82956 2000-04-08  Jim Meyering  <meyering@lucent.com>
82957
82958         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
82959         names don't conflict.  Reported by Eli Zaretskii.
82960
82961 2000-04-07  Jim Meyering  <meyering@lucent.com>
82962
82963         * lib/putenv.c: Move inclusion of errno.h so it follows that of
82964         sys/types.h, to work around system header problems on AIX 3.2.5.
82965         From Bruno Haible.
82966
82967 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
82968
82969         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
82970         bug.  Deal with the different error behavior of Irix iconv.
82971
82972 2000-04-05  Paul Eggert  <eggert@twinsun.com>
82973
82974         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
82975         IRIX if the installer said otherwise.
82976
82977 2000-04-05  Jim Meyering  <meyering@lucent.com>
82978
82979         Portability tweaks required for ultrix4.3.
82980         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
82981         (jm_CHECK_DECLS): Add getutent to the list of functions.
82982         (_jm_DECL_HEADERS): Add utmpx.h.
82983         From John David Anglin.
82984
82985         * m4/strftime.m4: Back out the 2000-04-02 change.
82986         Instead of that change, simply undefine putenv in the test program.
82987
82988 2000-04-05  Jim Meyering  <meyering@lucent.com>
82989
82990         Portability tweaks required for ultrix4.3.
82991         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
82992         getutent.
82993         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
82994         * lib/canon-host.c: Declare strdup.
82995         * lib/path-concat.c: Likewise.
82996         From John David Anglin.
82997
82998 2000-04-04  Jim Meyering  <meyering@lucent.com>
82999
83000         Be more DOS 8.3-friendly.
83001         * lib/ref-add.sin: Renamed from ref-add.sed.in.
83002         * lib/ref-del.sin: Renamed from ref-del.sed.in.
83003         * lib/Makefile.am: Reflect renaming.
83004         Reported by Eli Zaretskii.
83005
83006         Use a temporary file name that won't clash with `charset.alias'
83007         in the DOS 8.3 name space.
83008         * lib/Makefile.am (charset_tmp): Define.
83009         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
83010         (uninstall-local): Likewise.
83011         Reported by Eli Zaretskii.
83012
83013 2000-04-03  Jim Meyering  <meyering@lucent.com>
83014
83015         * m4/gettext.m4: Fix typo in comment.
83016
83017         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
83018         textutils/configure.in).  Suggestion from Paul Eggert.
83019         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
83020
83021 2000-04-02  Paul Eggert  <eggert@twinsun.com>
83022
83023         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
83024         variable in the shell rather than using putenv, which isn't
83025         portable.  This avoids the configure-time inter-test dependency
83026         on the potentially-renamed putenv function.
83027
83028 2000-03-30  Paul Eggert  <eggert@twinsun.com>
83029
83030         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
83031         before checking struct stat.st_blksize, so that
83032         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
83033
83034 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83035
83036         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
83037         since strftime.c uses HAVE_STRFTIME to decide whether to use
83038         the underlying strftime.
83039
83040 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83041
83042         * lib/time/strftime.c (my_strftime): Make sure we call the system
83043         strftime, not ourselves, when invoking the underlying strftime.
83044
83045 2000-03-24  Jim Meyering  <meyering@lucent.com>
83046
83047         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
83048         (charset_alias): Define.
83049         (install-exec-local): Factor out common code.
83050         (uninstall-local): Split lines longer than 80.
83051         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
83052         (SUFFIXES): Define.
83053         (.sed.in.sed): New rule.  Don't redirect directly to $@.
83054         (CLEANFILES): Add ref-add.sed and ref-del.sed.
83055
83056 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
83057
83058         * lib/config.charset: Output a line containing "Packages using this
83059         file".
83060         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
83061         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
83062         ref-del.sed): New rules.
83063
83064 2000-03-17  Jim Meyering  <meyering@lucent.com>
83065
83066         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
83067         Otherwise, include <strings.h>
83068
83069 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
83070
83071         * lib/unicodeio.c (utf8_wctomb): New function.
83072         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
83073         format instead of in UCS-4 with platform dependent endianness.
83074
83075 2000-03-10  Jim Meyering  <meyering@lucent.com>
83076
83077         * m4/lib-check.m4: Look for getspnam in -lgen, too.
83078         From Marco Franzen.
83079
83080 2000-03-07  Paul Eggert  <eggert@twinsun.com>
83081
83082         * lib/savedir.c (savedir): Work even if directory size is
83083         negative; this can happen with some screwy NFS configurations.
83084
83085 2000-03-06  Jim Meyering  <meyering@lucent.com>
83086
83087         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
83088         if it's NULL (because we ran out of memory).  From Bruno Haible.
83089
83090 2000-03-05  Jim Meyering  <meyering@lucent.com>
83091
83092         * lib/localcharset.c ("path-concat.h"): Include.
83093         (get_charset_aliases): Use path_concat instead of ANSI string
83094         concatenation.
83095
83096         * lib/unicodeio.h (PARAMS): Define.
83097         Use it to guard prototype.
83098
83099 2000-03-04  Jim Meyering  <meyering@lucent.com>
83100
83101         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
83102         for lib/localcharset.c.
83103
83104 2000-03-04  Jim Meyering  <meyering@lucent.com>
83105
83106         * lib/Makefile.am (install-exec-local): Create $(libdir) before
83107         installing into it.
83108         (uninstall-local): Uncomment this rule so `make distcheck' works
83109         once again.
83110
83111         * lib/unicodeio.c (<errno.h>): Include it.
83112         (errno): Declare if not defined.
83113
83114         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
83115
83116         * lib/config.charset: New version, incorporating remarks from a linux
83117         i18n mailing list.  From Bruno Haible.
83118
83119 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
83120
83121         * m4/codeset.m4: New file.
83122         * m4/iconv.m4: New file.
83123         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
83124
83125 2000-03-03  Jim Meyering  <meyering@lucent.com>
83126
83127         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
83128
83129 2000-03-02  Jim Meyering  <meyering@lucent.com>
83130
83131         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
83132         the messages come out on separate lines.
83133
83134         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
83135         rather than jm_CHECK_DECLARATIONS.
83136         * m4/decl.m4: Remove now-unused file.
83137
83138         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
83139         geteuid.
83140
83141 2000-03-02  Jim Meyering  <meyering@lucent.com>
83142
83143         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
83144
83145 2000-03-01  Jim Meyering  <meyering@lucent.com>
83146
83147         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
83148         * lib/unicodeio.c: Likewise.
83149
83150 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
83151
83152         * lib/config.charset: New file.
83153         * lib/localcharset.c: New file.
83154         * lib/unicodeio.h, lib/unicodeio.c: New files.
83155         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
83156         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
83157         (noinst_HEADERS): Add unicodeio.h.
83158         (all-local, install-exec-local, charset.alias): New targets.
83159
83160 2000-02-28  Paul Eggert  <eggert@twinsun.com>
83161
83162         * lib/quotearg.c (ALERT_CHAR): New macro.
83163         (quotearg_buffer_restyled): Use it.
83164
83165 2000-02-27  Jim Meyering  <meyering@lucent.com>
83166
83167         * m4/check-decl.m4: Add getenv to the list.
83168
83169 2000-02-27  Jim Meyering  <meyering@lucent.com>
83170
83171         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
83172         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
83173
83174         * lib/backupfile.c: Guard inclusion of stdlib.h with
83175         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
83176         Declare malloc if needed.
83177
83178         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
83179         `#ifndef HAVE_DECL..'
83180         now that autoconf always defines the HAVE_DECL_ symbols.
83181         * lib/human.c: Likewise.
83182         * lib/same.c: Likewise.
83183         * lib/strtoumax.c: Likewise.
83184
83185         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
83186         declaration check was not run.
83187         * lib/hash.c: Likewise.
83188         * lib/human.c: Likewise.
83189         * lib/same.c: Likewise.
83190         * lib/strtoumax.c: Likewise.
83191
83192         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
83193         `.', then first look up the entire `.'-containing string as a login
83194         name.
83195
83196 2000-02-23  Jim Meyering  <meyering@lucent.com>
83197
83198         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
83199         in place of my hack.
83200
83201 2000-02-18  Paul Eggert  <eggert@twinsun.com>
83202
83203         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
83204         (textint): New typedef.
83205         (parser_control): Member year changed from int to textint.
83206         All uses changed.
83207         (YYSTYPE): Removed; replaced by %union with int and textint members.
83208         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
83209         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
83210         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
83211         (tSNUMBER, tUNUMBER): Now of type <textintval>.
83212         (date, number, to_year): Use width of number in digits, not its value,
83213         to determine whether it's a 2-digit year, or a 2-digit time.
83214         (yylex): Store number of digits of numeric tokens.
83215         Reported by John Kendall.
83216
83217         (parser_control): Changed from struct parser_control to typedef (for
83218         consistency).  All uses changed.
83219
83220         (tID): Removed; not used.
83221         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
83222
83223 2000-02-14  Paul Eggert  <eggert@twinsun.com>
83224
83225         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
83226         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
83227
83228 2000-02-12  Jim Meyering  <meyering@lucent.com>
83229
83230         * lib/userspec.c (ISDIGIT): Define it.
83231         (isdigit): Remove definition.
83232         (is_number): Use ISDIGIT, not isdigit.
83233         <libintl.h>: Include.
83234         (_ and N_): Define.
83235         (parse_user_spec): Mark translatable strings.
83236
83237 2000-02-10  Jim Meyering  <meyering@lucent.com>
83238
83239         With these changes, nanosleep.[ch] are finally enough like the other
83240         lib/* replacement files to compile on a few more losing systems.
83241
83242         * lib/nanosleep.h: Don't include config.h.
83243         Remove prototype from declaration of nanosleep.
83244         (PARAMS): Remove now-unneeded definition.
83245         * lib/nanosleep.c: #undef nanosleep.
83246         (rpl_nanosleep): Rename from nanosleep.
83247
83248 2000-02-10  Jim Meyering  <meyering@lucent.com>
83249
83250         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
83251         gnu_nanosleep to rpl_nanosleep.
83252
83253 2000-02-09  Jim Meyering  <meyering@lucent.com>
83254
83255         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
83256         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
83257
83258 2000-02-08  Akim Demaille  <akim@epita.fr>
83259
83260         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
83261         `[' and `]' and remove uses of `changequote'.
83262         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
83263         (AC_SYS_LARGEFILE): Likewise.
83264         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83265         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
83266         of changequote.
83267         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
83268         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
83269         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
83270         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
83271
83272 2000-02-05  Jim Meyering  <meyering@lucent.com>
83273
83274         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
83275         Remove explicit use of AC_HEADER_TIME.  It is required by
83276         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
83277         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
83278         in autoconf whereby the expansion of the latter ended up preceding
83279         the expansion of its prerequisite, AC_HEADER_TIME.
83280         Reported by Volker Borchert.
83281
83282 2000-02-03  Jim Meyering  <meyering@lucent.com>
83283
83284         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
83285
83286 2000-02-03  Jim Meyering  <meyering@lucent.com>
83287
83288         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
83289         rather than with `#if HAVE_UTMPNAME'.
83290
83291 2000-02-02  Jim Meyering  <meyering@lucent.com>
83292
83293         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
83294         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
83295         Reported by Eli Zaretskii.
83296
83297 2000-02-01  Jim Meyering  <meyering@lucent.com>
83298
83299         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
83300
83301 2000-01-31  Jim Meyering  <meyering@lucent.com>
83302
83303         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
83304         functions.  Add the time.h and sys/time.h headers along with the
83305         AC_REQUIRE'ment of AC_HEADER_TIME.
83306
83307 2000-01-31  Jim Meyering  <meyering@lucent.com>
83308
83309         * lib/nanosleep.h (nanosleep): Guard declaration with
83310         `#if ! HAVE_DECL_NANOSLEEP'.
83311         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
83312         the declaration in that vendor's sys/timers.h.
83313         Reported by Christian Krackowizer.
83314
83315         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
83316         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
83317         (ISPRINT): Likewise.
83318         Reported by Tom Tromey.
83319
83320 2000-01-30  Jim Meyering  <meyering@lucent.com>
83321
83322         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
83323
83324         * m4/prereq.m4 (utmp_includes): Define.
83325         Check for ut_user and ut_name members in both struct utmpx
83326         and struct utmp.
83327
83328 2000-01-30  Jim Meyering  <meyering@lucent.com>
83329
83330         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
83331         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
83332         header files where only utmpx.ut_user is declared.
83333
83334         * lib/readutmp.h (UT_USER): Define.
83335
83336 2000-01-29  Jim Meyering  <meyering@lucent.com>
83337
83338         * m4/lib-check.m4: New file containing library-related checks from
83339         fileutils and sh-utils (textutils had none).
83340
83341 2000-01-28  Jim Meyering  <meyering@lucent.com>
83342
83343         * m4/perl.m4: Change format of warning message to look more like that
83344         from the missing script.  Suggestion from François Pinard.
83345
83346 2000-01-25  Jim Meyering  <meyering@lucent.com>
83347
83348         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
83349         well as time.h in the compile check.
83350         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
83351         Fix typo in cross-compiling case: s/yes/no/.
83352
83353 2000-01-23  Jim Meyering  <meyering@lucent.com>
83354
83355         * m4/jm-macros.m4: Move df-related tests here from
83356         fileutils/configure.in
83357
83358         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
83359         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
83360
83361         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
83362         s/space/ac_fsusage_space/.
83363         (jm_FILE_SYSTEM_USAGE): Take two parameters.
83364
83365         * m4/ftruncate.m4: New file (derived from part of
83366         fileutils/configure.in).
83367         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
83368         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
83369
83370         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
83371         AC_SUBST these here, rather than just in sh-util/configure.in, so
83372         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
83373         all the same.
83374         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
83375         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
83376         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
83377         (AC_SUBST(POW_LIBM)): Likewise.
83378         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
83379
83380 2000-01-23  Jim Meyering  <meyering@lucent.com>
83381
83382         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
83383         obstack.c.
83384
83385 2000-01-22  Jim Meyering  <meyering@lucent.com>
83386
83387         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
83388
83389         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
83390
83391         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
83392         configure.in
83393         (AC_CHECK_HEADERS): Likewise for sh-utils.
83394         (AC_CHECK_HEADERS): Likewise for textutils.
83395         Merge the three lists of headers.
83396
83397         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
83398         from fileutils' configure.in.
83399
83400         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
83401         code. Moved tests into their own function (_jm_DECL_HEADERS) in
83402         check-decl.m4.
83403
83404         * m4/check-decl.m4: Use #if rather than #ifdef.
83405         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
83406         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
83407         (_jm_DECL_HEADERS): Define new function.
83408         (jm_CHECK_DECLARATIONS): Require it.
83409
83410 2000-01-22  Jim Meyering  <meyering@lucent.com>
83411
83412         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
83413         [! HAVE_DECL_STRTOULL]: Declare strtoull.
83414         Required for some AIX systems.  Reported by Christian Krackowizer.
83415         [TESTING] (main): New function.
83416
83417         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
83418         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
83419         letters.
83420
83421         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
83422         iswprint.
83423
83424         * lib/strverscmp.c (ISDIGIT): Define.
83425         (strverscmp): Use ISDIGIT, not isdigit.
83426
83427 2000-01-19  Jim Meyering  <meyering@lucent.com>
83428
83429         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
83430         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
83431         defines `struct timespec' in <sys/time.h>
83432
83433         * m4/c-bs-a.m4: Remove uses of changequote altogether.
83434         Thanks to Akim for explaining.
83435
83436 2000-01-17  Paul Eggert  <eggert@twinsun.com>
83437
83438         * lib/nanosleep.c (nanosleep):
83439         Don't use SA_INTERRUPT to decide whether to call sigaction, as
83440         POSIX.1 doesn't require SA_INTERRUPT and some systems
83441         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
83442         it's been part of POSIX.1 since day 1 (in 1988).
83443
83444 2000-01-17  Jim Meyering  <meyering@lucent.com>
83445
83446         * lib/interlock: Remove unused file.  Reported by François Pinard.
83447
83448 2000-01-16  Paul Eggert  <eggert@twinsun.com>
83449
83450         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
83451         alert, backslash, formfeed, and vertical tab unnecessarily in
83452         shell quoting style.
83453
83454 2000-01-16  Jim Meyering  <meyering@lucent.com>
83455
83456         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
83457         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
83458         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
83459         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
83460
83461 2000-01-16  Jim Meyering  <meyering@lucent.com>
83462
83463         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
83464         because the latter didn't work.
83465
83466 2000-01-15  Jim Meyering  <meyering@lucent.com>
83467
83468         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
83469         (AC_REPLACE_FUNCS): Add memcpy and memset.
83470         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
83471         Add strpbrk.
83472         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
83473
83474 2000-01-12  Jim Meyering  <meyering@lucent.com>
83475
83476         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
83477         (jm_PREREQ): Use it.
83478         (jm_PREREQ_READUTMP): New macro.
83479         (jm_PREREQ): Use it.
83480
83481 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83482
83483         Quote multibyte characters correctly.
83484         * m4/c-bs-a.m4: New file.
83485         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
83486         (jm_PREREQ): Use it.
83487
83488 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83489
83490         * m4/uintmax_t.m4: Port to autoconf 2.13.
83491
83492 2000-01-08  Jim Meyering  <meyering@ascend.com>
83493
83494         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
83495         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
83496
83497 2000-01-04  Jim Meyering  <meyering@ascend.com>
83498
83499         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
83500         jm_STRUCT_DIRENT_D_TYPE.
83501         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
83502         jm_STRUCT_DIRENT_D_INO.
83503         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
83504         jm_STRUCT_UTIMBUF.
83505         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
83506         renamings.
83507         * m4/utime.m4: Likewise.
83508
83509         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
83510         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
83511
83512 2000-01-03  Paul Eggert  <eggert@twinsun.com>
83513
83514         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
83515         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
83516
83517 2000-01-02  Jim Meyering  <meyering@ascend.com>
83518
83519         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
83520         remember if this is necessary.
83521
83522 1999-12-26  Jim Meyering  <meyering@ascend.com>
83523
83524         * m4/jm-macros.m4: Use it here.
83525         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
83526
83527 1999-12-23  Jim Meyering  <meyering@ascend.com>
83528
83529         * m4/jm-macros.m4: Check for clock_gettime (moved from
83530         fileutils/configure.in)
83531         Check for gettimeofday.
83532
83533 1999-12-20  Jim Meyering  <meyering@ascend.com>
83534
83535         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
83536         autoconf-2.14a-1999-12-20.
83537
83538 1999-12-19  Jim Meyering  <meyering@ascend.com>
83539
83540         * m4/lstat-slash.m4: New file.
83541         * m4/jm-macros.m4: Use the new macro:
83542         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83543
83544 1999-12-07  Jim Meyering  <meyering@ascend.com>
83545
83546         * m4/perl.m4: Require that File::Compare be available, too.
83547         Too many systems seem to lack it.
83548
83549         * m4/strftime.m4: Add checks for most of the cpp macros tested in
83550         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
83551
83552 1999-11-18  Paul Eggert  <eggert@twinsun.com>
83553
83554         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
83555         problem with the QNX 4.25 shell, which doesn't propagate exit
83556         status of failed commands inside shell assignments.
83557
83558 1999-11-17  Jim Meyering  <meyering@ascend.com>
83559
83560         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
83561
83562 1999-11-07  Jim Meyering  <meyering@ascend.com>
83563
83564         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
83565
83566 1999-11-06  Jim Meyering  <meyering@ascend.com>
83567
83568         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
83569         * m4/jm-macros.m4 (jm_MACROS): Use it here.
83570
83571 1999-11-05  Jim Meyering  <meyering@ascend.com>
83572
83573         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
83574         configure.in of textutils, fileutils, and sh-utils into this one
83575         (shared between those packages) file.
83576         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
83577         AC_STRUCT_ST_BLKSIZE.
83578
83579 1999-11-03  Jim Meyering  <meyering@ascend.com>
83580
83581         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
83582         of AC_CHECK_TYPE checks includes unistd.h.
83583         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
83584         Suggestion from Akim Demaille.
83585
83586 1999-10-30  Jim Meyering  <meyering@ascend.com>
83587
83588         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
83589         m4-quoted string.
83590         * m4/ls-mntd-fs.m4: Likewise.
83591         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
83592         * m4/jm-winsz1.m4: Likewise.
83593
83594         * m4/const.m4: Remove file, since the fix made it into the experimental
83595         version of autoconf.
83596         * m4/mktime.m4: Likewise.
83597
83598         * m4/check-type.m4: Remove file, now that the latest version of
83599         AC_CHECK_TYPE takes a third arg to specify additional #includes.
83600
83601         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
83602         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
83603         AC_CHECK_TYPE.
83604
83605 1999-10-04  Jim Meyering  <meyering@ascend.com>
83606
83607         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
83608
83609 1999-09-22  Paul Eggert  <eggert@twinsun.com>
83610
83611         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
83612         2.95.1 bug with HP-UX 10.20.
83613
83614 1999-09-17  Jim Meyering  <meyering@ascend.com>
83615
83616         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
83617         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
83618         due to missing strdup (against sh-utils-2.0).
83619
83620 1999-08-29  Jim Meyering  <meyering@ascend.com>
83621
83622         * m4/jm-macros.m4: Require jm_BISON.
83623         * m4/bison.m4: New file.
83624
83625 1999-08-17  Paul Eggert  <eggert@twinsun.com>
83626
83627         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
83628         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
83629
83630 1999-08-05  Jim Meyering  <meyering@ascend.com>
83631
83632         * m4/getline.m4: Rename test file from conftestdata to conftest.data
83633         to avoid conflicts with `conftest' on 8+3 filesystems.
83634         Suggestion from Eli Zaretskii.
83635
83636 1999-08-04  Jim Meyering  <meyering@ascend.com>
83637
83638         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
83639         fileutils and sh-utils (textutils's getline test was inadequate).
83640         (AM_FUNC_GETLINE): Run this test.
83641         (AC_CHECK_FUNCS): Check for getdelim.
83642         Reported by Bob Proulx.
83643
83644 1999-08-02  Jim Meyering  <meyering@ascend.com>
83645
83646         * m4/jm-macros.m4: Add a comment.
83647
83648 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83649
83650         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
83651         <inttypes.h> defines strtoumax as a macro (and not as a
83652         function).
83653
83654 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83655
83656         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
83657         that we can shift, multiply and divide unsigned long long
83658         values; Ultrix cc can't do it.
83659
83660 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83661
83662         * m4/mktime.m4: New file, which is a preview of what should appear
83663         in the next public autoconf release.
83664
83665 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83666
83667         * m4/lfs.m4: Remove this file.
83668         * m4/largefile.m4: New file.  It contains the old contents of
83669         lfs.m4, except that all names with prefix AC_LFS have been
83670         changed to use the prefix AC_SYS_LARGEFILE instead, to be
83671         compatible with future autoconf versions.  Also, some minor m4
83672         quoting problems have been fixed.
83673
83674 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83675
83676         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
83677         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
83678         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
83679         and simplify the shell code.
83680
83681 1999-08-01  Jim Meyering  <meyering@ascend.com>
83682
83683         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
83684         m4.
83685
83686 1999-07-20  Jim Meyering  <meyering@ascend.com>
83687
83688         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
83689
83690 1999-07-15  Jim Meyering  <meyering@ascend.com>
83691
83692         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
83693
83694 1999-05-22  Jim Meyering  <meyering@ascend.com>
83695
83696         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
83697
83698 1999-05-20  Jim Meyering  <meyering@ascend.com>
83699
83700         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
83701         Add a colon after each `then' in case $4 is empty.
83702
83703 1999-05-16  Jim Meyering  <meyering@ascend.com>
83704
83705         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
83706
83707 1999-05-10  Jim Meyering  <meyering@ascend.com>
83708
83709         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
83710
83711         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
83712         AC_FUNC_MKTIME.
83713
83714 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
83715
83716         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
83717
83718 1999-05-04  Paul Eggert  <eggert@twinsun.com>
83719
83720         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
83721         not CPPFLAGS, so that linking works correctly in IRIX.
83722
83723 1999-04-30  Paul Eggert  <eggert@twinsun.com>
83724
83725         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
83726
83727 1999-04-20  Paul Eggert  <eggert@twinsun.com>
83728
83729         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
83730         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
83731         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
83732         jm_AC_TYPE_UNSIGNED_LONG_LONG.
83733         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
83734
83735         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
83736
83737 1999-04-20  Jim Meyering  <meyering@ascend.com>
83738
83739         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
83740         AC_REPLACE xstroull if necessary.  From Paul Eggert.
83741         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
83742
83743 1999-04-18  Jim Meyering  <meyering@ascend.com>
83744
83745         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
83746         * m4/jm-macros.m4: Use it.
83747
83748 1999-04-06  Jim Meyering  <meyering@ascend.com>
83749
83750         * m4/strftime.m4: Remove test for %f.
83751
83752 1999-03-29  Jim Meyering  <meyering@ascend.com>
83753
83754         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
83755         superset of the AC_TYPE_* checks in the textutils, fileutils,
83756         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
83757         AC_TYPE_PID_T.
83758
83759 1999-03-28  Jim Meyering  <meyering@ascend.com>
83760
83761         * m4/jm-macros.m4: Define GNU_PACKAGE here.
83762         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
83763         replaced e.g., in the *.sh files of the sh-utils.
83764
83765 1999-03-20  Jim Meyering  <meyering@ascend.com>
83766
83767         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
83768         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
83769         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
83770
83771 1999-03-19  Jim Meyering  <meyering@ascend.com>
83772
83773         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
83774
83775 1999-03-12  Jim Meyering  <meyering@ascend.com>
83776
83777         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
83778
83779 1999-03-07  Jim Meyering  <meyering@ascend.com>
83780
83781         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
83782         declared.
83783
83784 1999-02-17  Jim Meyering  <meyering@ascend.com>
83785
83786         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
83787         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
83788
83789 1999-02-07  Jim Meyering  <meyering@ascend.com>
83790
83791         * m4/group-member.m4: New file -- extracted from sh-utils'
83792         configure.in.
83793
83794         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
83795         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
83796
83797 1999-02-06  Jim Meyering  <meyering@ascend.com>
83798
83799         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
83800         * m4/fnmatch.m4: Likewise.
83801         * m4/getgroups.m4: Likewise.
83802         * m4/lstat.m4: Likewise.
83803         * m4/malloc.m4: Likewise.
83804         * m4/putenv.m4: Likewise.
83805         * m4/realloc.m4: Likewise.
83806         * m4/regex.m4: Likewise.
83807         * m4/stat.m4: Likewise.
83808         * m4/strftime.m4: Likewise.
83809         Suggestion from Alain Magloire.
83810
83811         * m4/chown.m4: Use `.$ac_objext', not `.o'.
83812         * m4/fnmatch.m4: Likewise.
83813         * m4/getgroups.m4: Likewise.
83814         * m4/getline.m4: Likewise.
83815         * m4/lstat.m4: Likewise.
83816         * m4/malloc.m4: Likewise.
83817         * m4/memcmp.m4: Likewise.
83818         * m4/putenv.m4: Likewise.
83819         * m4/realloc.m4: Likewise.
83820         * m4/regex.m4: Likewise.
83821         * m4/stat.m4: Likewise.
83822         * m4/strftime.m4: Likewise.
83823         Suggestion from Alain Magloire.
83824
83825         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
83826         an argument.
83827
83828         * m4/regex.m4: Add a run-time Test for proper operation of
83829         re_compile_pattern.
83830
83831 1999-01-31  Jim Meyering  <meyering@ascend.com>
83832
83833         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
83834
83835 1999-01-30  Jim Meyering  <meyering@ascend.com>
83836
83837         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
83838
83839         * m4/jm-mktime.m4: Make this a wrapper around the official
83840         AM_FUNC_MKTIME rather than my private copy, now that the official one
83841         is up to date.
83842         * m4/mktime.m4: Remove file.
83843
83844         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
83845         * m4/uptime.m4: Likewise.
83846         * m4/uintmax_t.m4: Likewise.
83847
83848 1999-01-28  Jim Meyering  <meyering@ascend.com>
83849
83850         * m4/jm-macros.m4: Use jm_AFS.
83851         * m4/afs.m4: New file (from fileutils' configure.in).
83852
83853         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
83854         * m4/chown.m4: Likewise.
83855         * m4/d-ino.m4: Likewise.
83856         * m4/d-type.m4: Likewise.
83857         * m4/fnmatch.m4: Likewise.
83858         * m4/getgroups.m4: Likewise.
83859         * m4/gettext.m4: Likewise.
83860         * m4/jm-mktime.m4: Likewise.
83861         * m4/jm-winsz2.m4: Likewise.
83862         * m4/lcmessage.m4: Likewise.
83863         * m4/ls-mntd-fs.m4: Likewise.
83864         * m4/malloc.m4: Likewise.
83865         * m4/memcmp.m4: Likewise.
83866         * m4/putenv.m4: Likewise.
83867         * m4/realloc.m4: Likewise.
83868         * m4/st_mtim.m4: Likewise.
83869         * m4/strftime.m4: Likewise.
83870
83871 1999-01-16  Jim Meyering  <meyering@ascend.com>
83872
83873         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
83874         (ARGMATCH_DIE_DECL): Define.
83875
83876 1999-01-12  Jim Meyering  <meyering@ascend.com>
83877
83878         * m4/Makefile.am.in: Rewrite to avoid using fmt.
83879         Reported by Lars Hecking.
83880
83881 1999-01-10  Jim Meyering  <meyering@ascend.com>
83882
83883         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
83884         gross kludge.
83885         * m4/inttypes_h.m4: Likewise.
83886         * m4/lstat.m4: Likewise.
83887         * m4/malloc.m4: Likewise.
83888         * m4/readdir.m4: Likewise.
83889         * m4/realloc.m4: Likewise.
83890         * m4/st_dm_mode.m4: Likewise.
83891         * m4/stat.m4: Likewise.
83892         * m4/utimbuf.m4: Likewise.
83893         * m4/utimes.m4: Likewise.
83894
83895         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
83896         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
83897         comments in config.h.in are meaningful.
83898
83899         * m4/jm-macros.m4: Require autoconf-2.13 here.
83900
83901         * m4/regex.m4: By default, don't use the included regex.c on systems
83902         with glibc 2.  Suggestion from Uli Drepper.
83903
83904 1999-01-02  Jim Meyering  <meyering@ascend.com>
83905
83906         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
83907
83908 1998-12-18  Jim Meyering  <meyering@ascend.com>
83909
83910         * m4/Makefile.am.in (Makefile.am): Simplify rule.
83911         Based on a suggestion from Lars Hecking.
83912
83913 1998-11-16  Paul Eggert  <eggert@twinsun.com>
83914
83915         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
83916
83917 1998-11-16  Jim Meyering  <meyering@ascend.com>
83918
83919         * m4/lfs.m4: Double-quote the `uname...` expression.
83920
83921 1998-11-14  Jim Meyering  <meyering@ascend.com>
83922
83923         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
83924         * m4/stat.m4: Likewise.
83925
83926 1998-11-03  Jim Meyering  <meyering@ascend.com>
83927
83928         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
83929         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
83930
83931 1998-10-18  Jim Meyering  <meyering@ascend.com>
83932
83933         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
83934
83935 1998-10-17  Jim Meyering  <meyering@ascend.com>
83936
83937         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
83938         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
83939         calls for those previously hard-coded headers.  Instead, take a new
83940         parameter.
83941         (jm_CHECK_DECLARATIONS): Reflect interface change.
83942         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
83943         (jm_CHECK_DECL_LOCALTIME_R): New macro.
83944
83945         * m4/mktime.m4: Test for spring-forward gap before long-running test.
83946
83947 1998-10-14  Jim Meyering  <meyering@ascend.com>
83948
83949         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
83950         instead of "TZ=America/Vancouver".  From Paul Eggert.
83951
83952 1998-10-11  Jim Meyering  <meyering@ascend.com>
83953
83954         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
83955         This adds a test for a recently added compatibility fix for mktime.c.
83956         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
83957
83958 1998-09-27  Jim Meyering  <meyering@ascend.com>
83959
83960         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
83961
83962         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
83963         ../configure.in, including a change from Gordon Matzigkeit to allow
83964         cross-compiling for the Hurd.
83965
83966         * m4/glibc.m4: New file/macro to test for the GNU C Library
83967         versions 1 and 2.  From Gordon Matzigkeit.
83968         Indent.
83969
83970 1998-09-21  Jim Meyering  <meyering@ascend.com>
83971
83972         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
83973
83974 1998-08-18  Paul Eggert  <eggert@twinsun.com>
83975
83976         Port nanosecond-resolution times to UnixWare 2.1.2 and
83977         pedantic Solaris 2.6.
83978
83979         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
83980         AC_STRUCT_ST_MTIM.
83981         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
83982         Generate name of ns member, instead of just 1 or undef.
83983         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
83984
83985 1998-08-15  Jim Meyering  <meyering@ascend.com>
83986
83987         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
83988         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
83989         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
83990         instead of jm_TYPE_SSIZE_T.
83991
83992 1998-08-12  Jim Meyering  <meyering@ascend.com>
83993
83994         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
83995
83996 1998-08-02  Jim Meyering  <meyering@ascend.com>
83997
83998         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
83999         in acconfig.h manually.
84000
84001 1998-07-31  Paul Eggert  <eggert@twinsun.com>
84002
84003         * m4/st_mtim.m4: New file.
84004
84005 1998-07-28  Jim Meyering  <meyering@ascend.com>
84006
84007         * m4/utimes.m4: Undef stat.
84008
84009 1998-07-25  Jim Meyering  <meyering@ascend.com>
84010
84011         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
84012         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
84013
84014 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
84015
84016         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
84017         uid and gid actually remain unchanged.
84018
84019 1998-07-07  Jim Meyering  <meyering@ascend.com>
84020
84021         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
84022
84023 1998-07-04  Jim Meyering  <meyering@ascend.com>
84024
84025         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
84026         to prove that this macro can be used in packages without regex.c.
84027
84028 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
84029
84030         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
84031         is to be used.
84032
84033 1998-07-03  Jim Meyering  <meyering@ascend.com>
84034
84035         * m4/gettext.m4: Add -lintl if it's found to be necessary.
84036
84037         * m4/gettext.m4: New file -- from gettext-0.10.35.
84038         * m4/lcmessage.m4: Likewise.
84039         * m4/progtest.m4: Likewise.
84040
84041         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
84042         * m4/jm-macros.m4: Require the new macro.
84043
84044 1998-06-29  Jim Meyering  <meyering@ascend.com>
84045
84046         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
84047         for the definition of NGROUPS (used in a system header included
84048         by sys/mount.h).
84049
84050 1998-06-28  Jim Meyering  <meyering@ascend.com>
84051
84052         * m4/ls-mntd-fs.m4: New file.
84053         * m4/fstypename.m4: New file.
84054
84055         * m4/jm-macros.m4: Require the new macro.
84056         * m4/jm-glibc-io.m4: New file.
84057
84058 1998-05-19  Jim Meyering  <meyering@ascend.com>
84059
84060         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
84061         * m4/lchown.m4: New file.
84062
84063         * m4/Makefile.am.in: New file.
84064         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
84065
84066 1998-05-14  Jim Meyering  <meyering@ascend.com>
84067
84068         * m4/Makefile.am (EXTRA_DIST): Add them.
84069         * m4/jm-macros.m4: New file.
84070         * m4/utimbuf.m4: New file.
84071
84072 1998-05-12  Jim Meyering  <meyering@ascend.com>
84073
84074         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
84075
84076 1998-05-11  Jim Meyering  <meyering@ascend.com>
84077
84078         * m4/isc-posix.m4: New file.
84079
84080 1998-05-10  Jim Meyering  <meyering@ascend.com>
84081
84082         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
84083
84084 1998-05-09  Jim Meyering  <meyering@ascend.com>
84085
84086         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
84087         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
84088         with automake.
84089
84090         * m4/ssize_t.m4: New file.
84091         * m4/mktime.m4: Remove file -- the new automake has this now.
84092
84093 1998-04-26  Jim Meyering  <meyering@ascend.com>
84094
84095         * m4/assert.m4: New file.
84096         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
84097
84098 1998-04-05  Jim Meyering  <meyering@ascend.com>
84099
84100         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
84101         (jm_PREREQ): Use it here.
84102
84103 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
84104
84105         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
84106         in acconfig.h.
84107
84108 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
84109
84110         * m4/prereq.m4: New file.
84111         * m4/error.m4: New file.
84112         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
84113
84114 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
84115
84116         * m4/getline.m4: Don't set am_cv_func_working_getline before the
84117         cache-check for the same variable -- that defeated the purpose of
84118         the test; the test program was never run.  This was a problem only
84119         on systems with losing getline functions -- HP-UX 10.20 is one.
84120         Reported by Bjorn Helgaas.
84121
84122 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
84123
84124         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
84125
84126 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
84127
84128         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
84129
84130         * m4/const.m4: New file.  Use an initializer in this declaration
84131         typedef int charset[2]; const charset x;
84132         Reported by Bob Glickstein.
84133
84134 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
84135
84136         * m4/chown.m4: Fix reversed types on -1 args to chown.
84137         From Kaveh Ghazi.
84138
84139 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
84140
84141         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
84142         Add lseek and memchr.
84143
84144         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
84145         T.E.Dickey <dickey@clark.net> said that some older preprocessors
84146         have a 20-character limit on names.
84147
84148 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
84149
84150         * m4/inttypes_h.m4: New file.
84151         * m4/uintmax_t.m4: New file.
84152         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
84153
84154
84155         -----
84156
84157         Local Variables:
84158         coding: utf-8
84159         End:
84160
84161         Copyright (C) 1997-2011 Free Software Foundation, Inc.
84162
84163         Copying and distribution of this file, with or without
84164         modification, are permitted provided the copyright notice
84165         and this notice are preserved.